*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: "Shantell Sans", cursive;
    font-optical-sizing: auto;
    font-size: 24px;
    line-height: 1.79;
    letter-spacing: 5.76px;
    color: white;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "BNCE" 0,
        "INFM" 0,
        "SPAC" 0;
}

.rampart-font {
    font-family: "Rampart One", sans-serif;
    font-weight: 400;
    letter-spacing: initial;
}

.spectral-font {
    font-family: "Spectral SC", serif;
    font-weight: 500;
    letter-spacing: initial;
}

.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 64px 16px;
    min-height: 100vh;
    overflow: hidden;
}

.hero::before {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,.2);
    z-index: 0;
    pointer-events: none;
    content: "";
}

.hero > div {
    position: relative;
}

video {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    translate: -50% -50%;
    width: 100%;
    min-width: 100%;
    height: 120%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.mobile-content {
    text-align: right;
    margin-left: auto;
}

.mobile-heading {
    font-size: 54px;
    line-height: 78px;
    color: white;
}

.desktop-content {
    display: none;
}

@media screen and (min-width: 768px) {
    .mobile-heading {
        font-size: 100px;
        line-height: 144px;
    }
}

@media screen and (min-width: 1323px) {
    .hero {
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .mobile-content {
        display: none;
    }

    .desktop-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-grow: 1;
        width: 100%;
        height: 100%;
        padding-bottom: 47px;
    }

    .desktop-content:has(.modal.visible) {
        pointer-events: none;
    }

    .text {
        max-width: 880px;
        margin: 0 calc((100vw - 1260px) / 2) 100px auto;
        color: white;
    }

    .badge {
        position: relative;
        display: inline-flex;
        margin-left: 127px;
        padding: 8px 80px 8px 64px;
        color: black;
        font-size: 16px;
        line-height: 24px;
        white-space: nowrap;
        background-color: rgba(211, 224, 88, 1);
        border-radius: 100px;
        box-shadow: 0 2px 60px rgba(211, 224, 88, 1);

    }

    .badge img {
        display: block;
        width: 40px;
        position: absolute;
        left: 16px;
        top: 50%;
        translate: 0 -50%;
    }

    .desktop-heading {
        margin-bottom: 24px;
        font-size: 100px;
        line-height: 144px;
        text-align: right;
    }

    .description {
        text-align: right;
    }

    .actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 0 auto;
    }

    .select-holder {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        margin-bottom: 31px;
        padding-right: 72px;
        color: red;
    }

    select {
        opacity: 0;
        position: absolute;
        z-index: 1;
        inset: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }

    option[disabled] {
        display: none;
    }

    .select-holder img {
        display: block;
        position: absolute;
        top: 50%;
        right: 0;
        translate: 0 -50%;
        pointer-events: none;
    }

    .select-holder span {
        pointer-events: none;
    }

    .button {
        background: none;
        border: 0;
        font: inherit;
        color: white;
        text-decoration: underline;
        text-decoration-skip-ink: none;
        cursor: pointer;
    }

    .button:hover {
        color: rgba(255,255,255,.5);
        font-size: 18px;
        transition: color 0.1s;
    }

    .button:active {
        color: red;
        transition: none;
    }

    .age-holder {
        display: grid;
        grid-template-rows: 0fr;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 12px;
        font-size: 14px;
        transition: grid-template-rows 1s;
    }

    .age-holder.is-visible {
        grid-template-rows: 1fr;
    }

    .age-heading {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .range-holder {
        display: grid;
        grid-template-columns: 72px 1fr 90px;
        gap: 10px;
        text-align: right;
    }

    .range-holder span {
        color: rgba(211, 224, 88, 1);
        font-size: 1.1em;
        text-align: left;
    }

    .footer {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 47px;
        overflow: hidden;
        background: url("./img/footer-bg.webp") center / cover;
    }

    .footer-images {
        display: flex;
        height: 100%;
        align-items: center;
        animation: move 2s linear infinite;
        translate: -138px;
    }

    .footer-images img {
        display: block;
    }

    .footer-images img + img {
        margin-left: -4px;
    }

    .qr-code {
        position: fixed;
        left: calc((1440px - 1398px) / 2);
        bottom: 98px;
        width: 23%;
        max-width: 311px;
        aspect-ratio: 1;
        padding: 24px;
        background-color: #fff;
        border-radius: 88px;
        scale: 0;
        transition: scale 0.3s;
    }

    .qr-code.is-visible {
        scale: 1;
    }

    .qr-code img {
        display: block;
        width: auto;
        max-width: 100%;
        max-height: 100%;
    }

    .modal {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 20;
        display: none;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 0, 0, .2);
        backdrop-filter: contrast(3) brightness(2);
        pointer-events: auto;
    }

    .modal.active {
        display: flex;
    }

    .modal-content {
        display: flex;
        flex-direction: column;
        background-color: black;
        min-width: 33%;
        padding: 24px 12px;
        transform: scale(0) rotate(360deg);
        transition: transform 1s;
        background: black url("./img/june.JPG") no-repeat center / contain;
        border-radius: 93px;
    }

    .modal-content.animate {
        transform: scale(1) rotate(0deg);
    }

    .modal-heading {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
        gap: 4px;
        margin-bottom: 24px;
        text-align: center;
        font-size: 18px;
    }

    .modal-heading span {
        display: grid;
        place-items: center;
        width: 32px;
        height: 32px;
        border-radius: 47%;
        background-color: green;;
    }

    .modal-heading svg {
        color: white;
    }

    .modal-text {
        margin-bottom: 12px;
        font-size: 14px;
    }

    .modal-button {
        display: block;
        margin-left: auto;
        padding: 2px 4px;
        color: white;
        font: inherit;
        background-color: red;
        border: 0;
        border-radius: 11px;
        cursor: pointer;
    }

    .modal-button:hover {
        background-color: white;
        color: black;
    }
}

@keyframes move {
    from {
        translate: -138px;
    }

    to {
        translate: -401px;
    }
}
