* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #ffffff;
    font-family: 'Ubuntu', sans-serif;
}

body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: url('assets/bg.svg') no-repeat center center fixed, linear-gradient(to bottom, #005596, #001D33);
    background-size: auto 120%;
    font-family: 'Ubuntu', sans-serif;
    animation: bgScroll 5s cubic-bezier(.2,0,.8,1) infinite alternate;
}

@keyframes bgScroll {
    0% {
        background-position: center 0%;
    }
    100% {
        background-position: center 20%;
    }
}
h1 {
    font-size: 40px;
    font-weight: 400;
    text-align: center;
    line-height: 1.1;
}

h2, button {
    font-size: 35px;
    font-weight: 700;
    text-align: center;
    line-height: 1;
}

p {
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    line-height: 1;
}

button {
    appearance: none;
    border: none;
    aspect-ratio: 4/1;
    height: 80px;
    width: 100%;
    background-color: transparent;
    background-image: url('assets/button.svg');
    background-size: 100% 100%;
    text-transform: uppercase;
    font-size: 25px;
    
}

strong {
    font-weight: 700;
}

.header {
    position: fixed;
    width: 100%;
    top: 17%;
    transform: translateY(-50%);
}

.footer, .play-button {
    position: fixed;
    width: 100%;
    bottom: 17%;
    transform: translateY(50%);
}


/* Roulette container */
.roulette {
    background: #ffffff;
    width: 90%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 972 / 350;
    height: auto;
    border-radius: 100px;
}

/* Mask animation - alternates between mask1 and mask2 */
.mask {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    animation: maskToggle 1s steps(1, end) infinite;
}

@keyframes maskToggle {
    0%, 49.99% {
        content: url('assets/mask1.svg');
    }
    50%, 100% {
        content: url('assets/mask2.svg');
    }
}

/* Rollers container */
.rollers {
    display: flex;
    flex-direction: row;
    width: 85.5%;
    height: 72%;
    position: relative;
    z-index: 5;
    justify-content: space-between;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Individual roller */
.roller {
    aspect-ratio: 1/1;
    background-image: url('assets/roller.svg');
    background-size: 100% 300%;
    height: 100%;
    width: auto;
    transition: background-position 5s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.3s ease;
    opacity: 1;
}

/* Show/hide logic */
.play-button,
.footer {
    opacity: 0;
    scale: 0.75;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(.35,0,0,1), scale 0.5s cubic-bezier(.35,0,0,1);
}

.play-button.show, .footer.show {
    opacity: 1;
    scale: 1;
    pointer-events: all;
}

.footer, .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer button {
    margin-top: 20px;
}

