body {
    min-height: 100vh;
        margin: 0;
        display: flex;
        align-items: center;
        /* vertical centering */
        justify-content: center;
        /* horizontal centering */
    background-color: #05a7ff;
}

.banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #8982ff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
    color: white;
    font-family: Arial, sans-serif;
}

/* Rain cloud */
.cloud {
    position: fixed;
    top: 12px;
    left: calc(100% - 100px);
    font-size: 4rem;
    cursor: grab;
    touch-action: none;
    user-select: none;
    background: none;
    border: none;
    line-height: 1;
    animation: float 4s ease-in-out infinite alternate;
    z-index: 2;
}

.cloud:hover {
    filter: brightness(1.2);
}

.cloud.dragging {
    cursor: grabbing;
    animation-play-state: paused;
}

@keyframes float {
    0% {
        translate: 0 0;
    }

    100% {
        translate: 0 -12px;
    }
}

.rat {
    position: fixed;
    top: 0;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    object-fit: contain;
    pointer-events: none;
    z-index: 3;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(var(--spin, 360deg));
    }
}

.button {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    z-index: 1;
    color: blue;
    font-weight: bold;
}

.home-button {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    color: blue;
    background: white;
    font-weight: bold;
    text-decoration: none;
}

.everything-button {
    transform: translate(-50%, calc(-50% + 60px));
}

.message {
    position: fixed;
    background-color: orangered;
    color: black;
    padding: 10px 20px;
    border-radius: 5px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.road {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: #444;
    box-shadow: inset 0 5px #eee, inset 0 -5px #eee;
    z-index: 0;
    pointer-events: none;
}

.road::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 6px;
    transform: translateY(-50%);
    background: repeating-linear-gradient(90deg,
            #f7d54a 0 36px,
            transparent 36px 64px);
}

.car-button {
    position: fixed;
    right: 20px;
    bottom: 100px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    z-index: 1;
}

.car {
    position: fixed;
    bottom: 25px;
    /* sits in the road's lower lane */
    left: 0;
    font-size: 3rem;
    line-height: 1;
    pointer-events: none;
    z-index: 1;
    animation: drive 4s linear forwards;
}

@keyframes drive {
    from {
        transform: translateX(100vw);
    }

    to {
        transform: translateX(-100px);
    }
}

.rabbit {
    position: fixed;
    left: 30px;
    bottom: 100px;
    font-size: 3rem;
    line-height: 1;
    pointer-events: none;
    z-index: 1;
    animation: launch 3s linear forwards;
}

@keyframes launch {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    10% {
        transform: translate(11vw, -20vh) rotate(54deg);
    }

    20% {
        transform: translate(22vw, -34vh) rotate(108deg);
    }

    30% {
        transform: translate(33vw, -43vh) rotate(162deg);
    }

    40% {
        transform: translate(44vw, -48vh) rotate(216deg);
    }

    50% {
        transform: translate(55vw, -47vh) rotate(270deg);
    }

    60% {
        transform: translate(66vw, -42vh) rotate(324deg);
    }

    70% {
        transform: translate(77vw, -32vh) rotate(378deg);
    }

    80% {
        transform: translate(88vw, -18vh) rotate(432deg);
    }

    90% {
        transform: translate(99vw, -3vh) rotate(486deg);
    }

    100% {
        transform: translate(110vw, 10vh) rotate(540deg);
    }
}

.traffic-report {
    position: fixed;
    top: 58%;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-weight: bold;
    z-index: 1;
}

.road-sign {
    position: fixed;
    bottom: 30px;
    font-size: 3rem;
    line-height: 1;
    pointer-events: none;
    z-index: 1;
}

.video-embed {
    position: fixed;
    left: calc(50% + 60px);
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    aspect-ratio: 16 / 9;
    visibility: hidden;
    /* hidden but still playable via JS */
    pointer-events: none;
    /* clicks pass through */
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 1rem;
}

.goat {
    position: fixed;
    /* Same spot as the hidden video */
    left: calc(50% + 60px);
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    aspect-ratio: 16 / 9;
    font-size: 4rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    z-index: 1;
    transition: transform 0.15s;
}

.goat:hover {
    scale: 1.2;
}

.explode {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 120px));
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    z-index: 1;
    color: red;
    font-weight: bold;
}

.explosion {
    position: fixed;
    font-size: 4rem;
    line-height: 1;
    pointer-events: none;
    z-index: 5;
    transform: translate(-50%, -50%);
    animation: explode-pop 0.6s ease-out forwards;
}

@keyframes explode-pop {
    0% {
        scale: 0.3;
        opacity: 1;
    }

    60% {
        scale: 2;
        opacity: 1;
    }

    100% {
        scale: 2.4;
        opacity: 0;
    }
}

@keyframes shake {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(2px, -2px);
    }

    50% {
        transform: translate(-2px, 2px);
    }

    75% {
        transform: translate(2px, 2px);
    }

    100% {
        transform: translate(0, 0);
    }
}

.shaking {
    animation: shake 0.2s linear 3;
}

.card {
    position: relative;
    text-align: center;
    padding: 3rem 4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    max-width: 750px;
    width: 90%;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    align-self: flex-start;      /* stop vertical centering */
    margin-top: 200px;           /* clear the fixed banner; adjust to its height */
    min-height: calc(100vh - 200px + 3rem);  /* bottom edge ends 3rem past the page bottom */
}

.settings {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.settings-menu:not([hidden]) {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
}

.settings button {
    font-size: 1.5rem;
    padding: 10px 20px;
}

.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #4f46e5;
    /* changes the check/fill color */
    cursor: pointer;
}