.hero {
    height: 30vh;
    display: flex;
    justify-content: center;
    position: relative;
    vertical-align: middle;
    margin-bottom: 10rem;
    overflow-x: clip;
}


.hero-inner {
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-inner .center-text {
    margin-bottom: 2rem;
}

.hero-logo {
    z-index: 1;
    margin: 1rem;
}

.hero-logo img {
    max-width: 50vw;
    height: auto;
    display: block;
    margin:auto;
    color: #FFDB51;
}

.hero-row {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
    max-width: 50vw;
    height: 100px;
    position: relative;
}

.hero-row::before {
    content: "";
    position: absolute;
    inset: 0;

    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    background: #0738B9;
    z-index: 0;

    height: 100%;

    transform-origin: bottom;
    transform: scaleY(100);
}

.full-width-wave {
    width: 100vw;
    height: 30vh;
    display: block;
    position: absolute;
    z-index: 0;
}

.full-width-wave img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.full-width-wave.block {
    position: relative;
}

.full-width-wave.inverted.block img {
    position: absolute;
    bottom: 4vh;
}

.full-width-wave.inverted {
    rotate: 180deg;
}



@media (max-width: 720px) {
    .full-width-wave:not(.block) {
        left: -70vw;
    }

    .full-width-wave img {
        width: 170%;
    }
}

.hero-phrase {
    width: 11.5rem;
    max-width: 20vw;
}

.hero-phrase p {
    color: #fff;
    font-size: 1em;
    line-height: 1;
    margin: 0;
    font-weight: 500;
}

.divider {
  width: 1px;
  background-color: #fff;
  height: 100%;
}

.hero-countdown {
    text-align: center;
    z-index: 1000;
}

#countdown-label {
    font-size: 0.75em;
    opacity: 0.95;
    margin-bottom: 0.35rem;
    color: #fff;
}

#countdown-timer {
    font-size: 1em;
    font-weight: 400;
    letter-spacing: 0.4px;
    color: #fff;
}

#tickets-button {
    display: none;
    height: 2vh;
    font-size: 1.75rem;
    line-height: 2rem;
    color: #FFDB51;
}

@media (max-width: 720px) {
    .hero {
        margin-bottom: 5rem;
    }
    .hero-row {
        flex-direction: column;
        justify-content: start;
        padding-top: 3vh;
        gap: 0.5rem;
    }
    .hero-phrase {
        max-width: 50vw;
    }
    .hero-countdown { text-align: center; margin-top: 0.6rem; }
    .hero-logo {
        margin: 0;
    }
    .hero-logo img {
        max-width: 70vw;
    }
    #tickets-button {
        width: 100vw;
    }
}

/* ---------------- ANIMATIONS ---------------- */

@media (prefers-reduced-motion: no-preference) {
    /* .full-width-wave {
        transition: height 1200ms ease-in-out;
    }

    .full-width-wave:not(.is-visible) {
        height: 10vh;
    } */



    @keyframes movingWaveHeight {
        0% {
            height: 24vh;
        }
        30% {
            height: 35vh;
        }
        50% {
            height: 26vh;
        }
        70% {
            height: 30vh;
        }
        100% {
            height: 24vh;
        }
    }

    @keyframes movingWaveRotate {
        0% {
            rotate: 0deg;
        }
        20% {
            rotate: 1.2deg;
        }
        30% {
            rotate: 0deg;
        }
        50% {
            rotate: -0.5deg;
        }
        70% {
            rotate: 0deg;
        }
        90% {
            rotate: 1deg;
        }
        100% {
            rotate: 0deg;
        }
    }

    @media (max-width:720px) {
        @keyframes movingWaveRotate {
            0% {
                rotate: 0deg;
            }
            20% {
                rotate: 7deg;
            }
            30% {
                rotate: 0deg;
            }
            50% {
                rotate: -3deg;
            }
            70% {
                rotate: 0deg;
            }
            90% {
                rotate: 4deg;
            }
            100% {
                rotate: 0deg;
            }
        }
    }

    @keyframes wetSand {
        0% {
            height: 35vh;
            opacity: 0.7;
        }
        10% {
            height: 35vh;
            opacity: 0.7;
        }
        30% {
            height: 35vh;
            opacity: 0;
        }
    }

    @keyframes wetSand2 {
        0% {
            height: 30vh;
            opacity: 0.7;
        }
        10% {
            height: 30vh;
            opacity: 0.7;
        }
        30% {
            height: 30vh;
            opacity: 0;
        }
    }

    .full-width-wave:not(.still) img {
        animation:
            movingWaveHeight 10000ms ease forwards,
            movingWaveRotate 20000ms ease-in-out forwards;
        animation-iteration-count: infinite
    }

    .full-width-wave:not(.still)::before {
        content: "";
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        inset: 0;
        background-image: url(../assets/wet_sand.png);
        background-size: 100% 100%;
        background-repeat: no-repeat;
        opacity: 0;
        z-index: -20;

        animation:
            wetSand 10000ms ease 3000ms forwards,
            wetSand2 10000ms ease 7000ms forwards,
            movingWaveRotate 20000ms ease-in-out forwards;
        animation-iteration-count: infinite;

        top: 1px; /* Fixes tiny line appearing between wave and the rest of the blue background. */
    }

    @media (max-width: 720px) {
        .full-width-wave:not(.still)::before {
            width: 170%;
        }
    }
}
