:root {
    --green: #008938;
    --green-dark: #00461a;
    --green-light: #009640;
    --green-lightest: #97d700;
    --yellow: #f2b700;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Subway';
    src: url("./fonts/SubwaySans-Regular-Cy-Gr-Web.woff2") format("woff2"),
    url("./fonts/SubwaySans-Regular-Cy-Gr-Web.woff") format("woff");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Subway';
    src: url("./fonts/SubwaySans-Bold-Cy-Gr-Web.woff2") format("woff2"),
    url("./fonts/SubwaySans-Bold-Cy-Gr-Web.woff") format("woff");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Subway';
    src: url("./fonts/SubwaySans-Super-Cy-Gr-Web.woff2") format("woff2"),
    url("./fonts/SubwaySans-Super-Cy-Gr-Web.woff") format("woff");
    font-weight: 800;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

body, input, select, textarea {
    font-family: 'Subway', system-ui, -apple-system, sans-serif;
}

body {
    margin: 0;
    background-color: black;
    color: white;
}

sup {
    line-height: 0;
}

.small {
    font-size: 0.8rem;
}

.smaller {
    font-size: 0.7rem;
}

.big {
    font-size: 1.2rem;
}

.content-wrapper {
    position: relative;
    max-width: 1200px;
    margin: auto;
    padding-inline: 1rem;
    transform-origin: center;
    transition: all 0.2s ease-in-out;
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
}

.logos-container {
    max-width: 360px;
    margin: auto;
}

ol ol {
    list-style-type: lower-alpha;
}

.intro {
    h4 {
        text-align: center;
    }

    ol {
        list-style-type: none;
        counter-reset: my-counter;
        margin: 0;
        padding: 0;

        li {
            counter-increment: my-counter;
            position: relative;
            padding-inline: 3em 1em;
            min-height: 2rem;
            display: grid;
            align-items: center;
        }

        li::before {
            content: counter(my-counter);
            position: absolute;
            left: 0;
            font-size: 2rem;
            font-weight: 800;
            line-height: 1;
            color: var(--yellow);
            text-align: center;
            width: 2rem;
        }
    }
}

h2, h3 {
    font-weight: 800;
    line-height: 1;
}

h4 {
    font-size: 1.5rem;
}

.text-center {
    text-align: center;
}


.fancy-border {
    background: var(--green);
    border-radius: 1rem;
    box-shadow: -0.5rem -0.5rem var(--green-lightest), 0.5rem 0.5rem var(--yellow);
    padding: 1rem 2rem;
}

a.fancy-border {
    display: inline-block;
    text-decoration: none;
    color: white;
    font-weight: bold;
    margin-block: 2rem;
}

main {
    display: flex;
    flex-direction: column;
    gap: 2rem;

    > div {
        margin: auto;
        max-width: 50ch;

        > p {
            text-align: center;
            text-wrap: balance;
        }
    }
}

#store-finder {
    cursor: pointer;
}

.hint {
    font-size: 0.8rem;
    border-radius: 1em;
    box-shadow: -0.5em -0.5em var(--yellow), 0.5em 0.5em var(--green-dark);
    padding: 0.25em 1em;
    text-align: center;
    text-wrap: balance;
    background: var(--green-lightest);
    color: var(--green-dark);
}

#contact-form {
    background: var(--green);
    border-radius: 1rem;
    box-shadow: -0.5rem -0.5rem var(--green-lightest), 0.5rem 0.5rem var(--yellow);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-block: 2rem;

    > * {
        margin: 0;
    }

    h2 {
        text-transform: none;
        font-weight: 700;
    }

    input[type="text"] {
        border: 1px dashed white;
        width: 100%;
        color: white;
        background: transparent;
        border-radius: 1em;
        padding: 1em;
        outline: none;
        font-size: 1rem;

        &::placeholder {
            color: white;
        }

        &:not([required])::placeholder {
            opacity: 0.8;
        }
    }
}

#store-finder-iframe {
    position: fixed;
    width: calc(100% - 4rem);
    height: calc(100% - 4rem);
    top: 2rem;
    left: 2rem;
    border: none;
    border-radius: 1rem;
    box-shadow: -1rem -1rem var(--green-lightest), 1rem 1rem var(--green), 0 0 0 1px var(--green-dark);
    cursor: pointer;
    transform-origin: center;
    transition: all 0.2s ease-in-out;
}

button.close {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    background: var(--green-light);
    border: 0;
    border-radius: 50%;
    width: 2em;
    aspect-ratio: 1;
    box-shadow: 0 0 1rem 0.2rem black;
    cursor: pointer;
}

button.close-overlay {
    position: absolute;
    top: 0;
    right: 0;
}

#close-iframe {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1;
}

.hidden {
    display: none;
}

.hide-overflow {
    overflow: hidden;
}

.inactive {
    pointer-events: none;
    opacity: 0.25;
    scale: 0.9;
}

footer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 60ch;
    margin: 2rem auto;

    &.content-width {
        max-width: unset;
    }

    .links {
        display: flex;
        gap: 1rem;
        font-weight: 700;
    }
}

a {
    color: white;
}

.rotating-border {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid transparent;
    border-block: 5px solid var(--yellow);
    border-inline: 5px solid var(--green);
    box-sizing: border-box;
    background: #0008;

    &:not(.hidden) {
        display: block;
        animation: spin 2s linear infinite;
    }
}

.countdown-wrapper {
    display: grid;
    place-items: center;
    text-align: center;
    margin-top: 2rem;

    .hourglass-wrapper {
        display: inline-grid;
        grid-template-columns: auto auto;
        place-items: center;
        gap: 1rem;
        height: fit-content;
        font-size: 3rem;
        font-weight: 800;
        font-variant-numeric: tabular-nums;
        font-style: italic;
        width: fit-content;
        letter-spacing: 0.1em;
        background: var(--green);
        padding: 0.5em 1em;
        border-radius: 0.25em;

        &.disabled {
            background: red;
        }

        .hourglass {
            height: 1.25em;
            width: auto;
        }

        .countdown {
            margin: 0;
        }
    }
}

.prize-description {
    color: var(--yellow);
    font-size: 2rem;
    font-style: italic;
    text-align: center;
    text-wrap: balance;
}

.buttons {
    display: flex;
    justify-content: center;

    input[type=submit] {
        background: var(--yellow);
        color: white;
        font-size: 2rem;
        text-transform: uppercase;
        font-weight: 800;
        padding: 0.25em 0.5em;
        border-radius: 0.25em;
        border: none;

    }
}

.icon {
    width: 10ch;
    margin: auto;
}

.legal {
    text-align: justify;
}

.overlay {
    > * {
        position: fixed;
        width: 100%;
        height: 100dvh;
        overflow: auto;
        left: 0;
        background: black;
        padding: 1rem;
        transition: 0.4s ease-in-out;

        &:not(.active) {
            top: 110%;
        }

        &.active {
            top: 0;
        }
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


@media (max-width: 599px) {
    #store-finder {
        width: 100vw;
        margin-left: -1rem;
    }

    footer .links {
        flex-direction: column;
        align-items: center;
    }

    .buttons input[type=submit] {
        font-size: 6vw;
    }
}
