html {
    font-family: Nunito, sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    color: white;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    padding: 0;
    position: relative;
    text-rendering: optimizeLegibility;
    background-image: url("../images/background.png");
    background-color: #16171b;
}

body:not(:has(.scoreboard)) {
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    width: 4px;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--green);
}

section + section {
    margin-top: 40px;
}

@media (max-width: 570px) {
    section + section {
        margin-top: 0;
    }
}

section .container {
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 20px;
    padding: 50px;
}

@media (max-width: 570px) {
    section .container {
        padding: 30px;
        border-radius: 0;
    }
}

section.faq .container,
section.teams .container {
    background-image: url("../images/background.png"), linear-gradient(to right, #22433d, #1c3528)
}

section.registration .container {
    background-image: url("../images/background.png"), linear-gradient(90deg, #b6755b, #ae3637);
}

footer {
}

footer .logo {
    width: 56px;
    opacity: .5;
    margin-right: 20px;
}

footer .container {
    padding: 17px 40px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center
}

@media (max-width: 570px) {
    footer .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

footer p a {
    color: inherit;
    text-decoration: none;
}
footer p a:hover,
footer p a:active,
footer p a:focus {
    color: inherit;
    text-decoration: underline;
}

footer p {
    color: #aaa;
    font-variant-numeric: slashed-zero;
    font-family: IBM Plex Mono,monospace;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal
}

footer p + p {
    margin-top: 0;
}

#title-block {
    padding-top: 80px;
}

#title-block h1 {
    margin-bottom: 10px;

    font-family: "Poiret One", sans-serif;
    font-optical-sizing: auto;
    font-size: 120px;
    line-height: 120px;
    font-weight: 200;
    font-style: normal;

    background-image: linear-gradient(to right, var(--orange), var(--red));
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

@media (max-width: 630px) {
    #title-block h1 {
        font-size: 50px;
        line-height: 50px;
        margin-bottom: 10px;
    }
}

#title-block .lead {
    font-family: Nunito, sans-serif;
    font-optical-sizing: auto;
    font-size: 30px;
    line-height: 35px;
    font-weight: 200;
    text-align: center;
    text-wrap: balance;
    color: var(--white);
}

@media (max-width: 570px) {
    #title-block .lead {
        font-size: 30px;
        line-height: 35px;
    }
}

#title-block .full-width-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: calc(100% - 20px);
    padding: 40px 10px 40px;
}

#title-block .full-width-container:has(.times) {
    padding: 80px 20px 120px;
}

@media (max-width: 1365px) {
    #title-block .full-width-container:has(.times) {
        padding: 50px 20px 80px;
    }
}

@media (max-width: 768px) {
    #title-block .full-width-container:has(.times) {
        padding: 50px 10px;
    }
}

#title-block .times {
    text-align: right;
    font-size: 16px;
    position: relative;
    top: -20px;
}

@media (max-width: 1365px) {
    #title-block .times {
        top: -10px;
    }
}

@media (max-width: 768px) {
    #title-block .times {
        font-size: 12px;
        top: -10px;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

th {
    font-weight: 600;
    text-align: left;
}

table a:hover {
    text-decoration: underline;
}

table td {
    vertical-align: top;
}

ul.nav {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    margin: 0;
}

@media (max-width: 570px) {
    ul.nav {
        padding-left: 5px;
    }
    ul.nav .hide-on-mobile,
    footer .hide-on-mobile {
        display: none;
    }
}

ul.nav li a {
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
    transition: color .2s ease-in-out;
    padding: 12px
}

ul.nav li a.active {
    font-weight: 600;
}
ul.nav li a:hover,ul.nav li a:focus {
}

.nav .language-switcher a {
    font-size: 20px;
}

.nav .language-switcher a img {
    height: 15px;
}

.nav > li:not(.language-switcher) {
    height: 25px;
}

/* See https://stackoverflow.com/questions/12539006/tooltips-for-mobile-browsers */
@media (pointer: coarse), (hover: none) {
  [title] {
    position: relative;
  }
  [title]:focus::after {
    content: attr(title);
    position: absolute;
    left: 0;
    top: 90%;
    color: #000;
    background-color: #ffd0d0;
    border: 1px solid #f28585;
    width: 200px;
    padding: 3px;
    z-index: 2;
    font-size: 10px;
  }
}

.hidden {
    display: none !important;
}

:root {
    --border-color: #dedede;
    --border-color-light: #f6f6f6;
    --yellow: #f79a3d;
    --green: #7a9f73;
    --white: #fff;
    --orange: #f39260;
    --red: #d11717;
}

header {
    width: 100vw;
    position: fixed;
    z-index: 2;
    backdrop-filter: blur(40px);
    background-color: #16171bcc;
    background-image: url("../images/background.png");
    box-shadow: 0 1px 0 0 #ffffff1a;
}

header .logo {
    width: 80px
}

header section.container {
    padding: 5px 24px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    border-color: transparent;
}

.teams ol {
    padding-left: 16px;
}

.teams ol li {
    margin-top: 3px;
}

.token-remember {
    background-color: #aedeae;
    padding: 5px 8px;
    font-weight: 600;
    color: var(--green);
}

.registration form,
form.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    width: 500px;
    max-width: calc(100% - 20px);
}

form.login-form {
    width: 750px;
    gap: 0;
    margin-top: -15px;
}

@media (max-width: 570px) {
    .registration form,
    form.login-form {
        max-width: 100%;
    }
}

.registration form label {
    margin-top: 30px;
    font-size: 18px;
}

form.login-form label {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 570px) {
    form.login-form label {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
}

.registration form label > div {
    font-weight: 400;
    margin-bottom: 10px;
}

form.login-form label > div {
    font-size: 18px;
    font-weight: 200;
    width: 400px;
}

.registration form label > p,
form.login-form label > p {
    margin-bottom: 10px;
}

.registration form label input + div,
.registration form label select + div {
    font-weight: 400;
    margin-top: 10px;
    margin-bottom: 0;
}

.registration form label input + div.error,
.registration form label select + div.error,
form.login-form div.error {
    font-size: 18px;
    font-weight: 200;
    color: #ff747d;
    margin-top: 10px;
}

.registration form input {
    padding: 8px 5px;
    width: calc(100% - 13px);
    font-size: 16px;
}

form.login-form input {
    padding: 8px 5px;
    width: calc(100% - 13px);
    font-size: 16px;
}

form.login-form input[type="file"] {
    padding-left: 0;
}

.registration form select {
    padding: 8px 5px;
    width: calc(100% - 8px);
    -webkit-border-radius: 0;
}

/* Fix for mobile Safari browser */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    select {
        -webkit-appearance: menulist-button !important;
        height: 35px !important;
        padding-left: 15px;
        color: black !important;
    }
}

.registration form button[type="submit"],
.registration button.drawing-board__generate,
form.login-form button[type="submit"],
form.login-form input::file-selector-button {
    width: calc(100%);
    padding: 1rem 2rem .85rem;
    background-color: transparent;
    color: var(--white);
    text-align: center;
    letter-spacing: .04em;
    border-radius: .25rem;
    font-weight: 400;
    transition: opacity .2s;
    border: 0;
    cursor: pointer;
    font-family: "Nunito", sans-serif;
    font-size: 16px;
    box-shadow: inset 0 0 0 1px var(--white);
}

@media (max-width: 768px) {
    .registration form button[type="submit"],
    .registration button.drawing-board__generate,
    form.login-form button[type="submit"] {
        font-size: 14px;
    }
}

.registration form button[type="submit"]:hover,
.registration button.drawing-board__generate:hover,
form.login-form button[type="submit"]:hover {
    opacity: 0.6;
}

form.login-form button[type="submit"] {
    margin-top: 10px;
    width: 100%;
}

form.login-form input::file-selector-button {
    width: auto;
    padding: 5px 2rem;
}

.spacer {
    border-bottom: 1px solid var(--border-color);
    height: 50px;
}


h1 {
    text-align: center;
    font-family: Nunito, sans-serif;
    font-size: 64px;
    font-style: normal;
    font-weight: 700;
    line-height: 86px;
    letter-spacing: -1.3px;
    cursor: default;
    max-width: 100%;
    margin: 0;
    text-wrap: balance;
    color: #000
}

@media (max-width: 1365px) {
    h1 {
        font-size:56px;
        line-height: 70px
    }
}

@media (max-width: 768px) {
    h1 {
        font-size:44px;
        line-height: 58px
    }
}

@media (max-width: 570px) {
    h1 {
        font-size:36px;
        line-height: 48px;
        color: #000;
        margin-bottom: 10px
    }
}

h2 {
    font-family: "Nunito", sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 40px;
    text-wrap: balance;
    max-width: 100%;
    cursor: default;
    margin: 20px 0;
}

.container h2:first-child {
    margin-top: 0;
}

@media (max-width: 570px) {
    h2 {
        font-size: 24px;
        line-height: 32px;
    }
}

h2:has(+ .subtitle) {
    margin-bottom: 0;
}

h2 + .subtitle {
    margin-bottom: 10px;
}

h3 {
    color: #000;
    font-family: "Nunito", sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 50px;
    margin: 0;
    text-wrap: balance;
    max-width: 100%;
    cursor: default
}

@media (max-width: 570px) {
    h3 {
        font-size:24px;
        line-height: 36px
    }
}

h4 {
    color: #000;
    font-family: "Nunito", sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 140%;
    margin: 0;
    text-wrap: balance;
    max-width: 100%;
    cursor: default
}

@media (max-width: 570px) {
    h4 {
        font-size:20px
    }
}

h6 {
    color: #6d6d6d;
    font-family: IBM Plex Mono,monospace;
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
    text-transform: uppercase;
    font-variant-numeric: slashed-zero;
    font-feature-settings: "ss03" 1;
    text-wrap: pretty;
    max-width: 100%;
    cursor: default;
    margin: 0
}

@media (max-width: 570px) {
    h6 {
        font-size:11px;
        line-height: 14px
    }
}

p {
    cursor: default;
    margin: 0;
    font-size: 18px;
    font-weight: 300;
    line-height: 150%;
}

p + p {
    margin-top: 20px;
}

a {
    color: var(--orange);
}

a:hover,
a:active {
    color: var(--red);
    text-decoration: none;
}

a h1,a h2,a h3,a h4,a h5,a h6 {
    cursor: pointer
}

span {
    margin: 0
}

code {
    /*font-family: IBM Plex Mono, monospace;*/
    font-family: monospace;
    font-variant-numeric: slashed-zero;
    font-feature-settings: "ss03" 1;
    font-weight: 400;
    line-height: normal;
    cursor: default
}

code.code--small,code .code--small {
    font-size: 10px;
}

code.code--dark,code .code--dark {
    color: #999;
}

.container {
    width: 1440px;
    max-width: 100vw;
    margin: 0 auto;
    box-sizing: border-box
}

@media (max-width: 1760px) {
    .container {
        width: 1120px
    }
}

@media (max-width: 1220px) {
    .container {
        width: calc(100vw - 100px)
    }
}

@media (max-width: 570px) {
    .container {
        width: 100vw;
        border-left: none;
        border-right: none
    }
}

.content-width {
    margin: 0 auto;
    width: 850px;
    max-width: 100%
}
