body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #19f1cd;
    background: linear-gradient(to top, #02a164 0%, #44f318 100%);
}

p {
    font-size: 16vw;
    color:white;
    font-family: 'Roboto Mono', monospace;
    /* padding-bottom: 0px; */
    /* -webkit-text-stroke: 3px black; */
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #2196F3;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

@media (max-width: 768px) {
    p {
        font-size: 17vw;
    }
}

#backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.8); /* Optional: slight overlay */
    z-index: -1; /* Keep it behind other content */
}

.scrolling-images {
    display: flex;
    flex-wrap: nowrap;
    height: 100%;
    align-items: center;

    /* Enable continuous scrolling */
    animation: scroll 40s linear infinite;
    will-change: transform; /* Optimizes animation performance */
}

.scrolling-images img {
    height: 100%;
    object-fit: cover; /* Ensure images look good */
    margin-right: 10px; /* Optional spacing between images */
    flex-shrink: 0; /* Prevent shrinking */
}

/* Seamless continuous scrolling */
@keyframes scroll {
    from {
        transform: translateX(0); /* Start from the beginning */
    }
    to {
        transform: translateX(-50%); /* Scroll halfway (to the end of the original set) */
    }
}

.hidden {
    display: none;
}

/* General styles for pop-up text */
/* General styles for pop-up text */
.text-popup {
    position: absolute;
    font-size: 5vw;
    font-weight: bold;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    animation: flashColors 1s infinite, randomMove 5s infinite alternate;
    animation-timing-function: linear; /* Smooth movement */
    text-shadow: 2px 2px 4px #000;
    white-space: nowrap;
    transform-origin: center;
}

/* Flashing rainbow colors */
@keyframes flashColors {
    0% { color: red; }
    14% { color: orange; }
    28% { color: yellow; }
    42% { color: green; }
    57% { color: blue; }
    71% { color: indigo; }
    85% { color: violet; }
    100% { color: red; }
}

/* Random movement effect */
/* @keyframes randomMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20vw, -10vh) rotate(-15deg); }
    50% { transform: translate(-15vw, 20vh) rotate(30deg); }
    75% { transform: translate(10vw, -15vh) rotate(-25deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
} */

/* @keyframes randomMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10vw, -5vh) rotate(-15deg); }
    50% { transform: translate(-10vw, 5vh) rotate(30deg); }
    75% { transform: translate(5vw, -5vh) rotate(-25deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
} */

@keyframes randomMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(15vw, -10vh) rotate(-10deg); }
    20% { transform: translate(-10vw, 15vh) rotate(20deg); }
    30% { transform: translate(5vw, -15vh) rotate(-30deg); }
    40% { transform: translate(-15vw, 5vh) rotate(10deg); }
    50% { transform: translate(10vw, 10vh) rotate(-20deg); }
    60% { transform: translate(-5vw, -5vh) rotate(30deg); }
    70% { transform: translate(0vw, 20vh) rotate(-10deg); }
    80% { transform: translate(-20vw, -10vh) rotate(15deg); }
    90% { transform: translate(15vw, 5vh) rotate(-25deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Add the scuffed red flashing box */
#flashing-box {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background-color: red;
    color: white;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 2vw;
    font-weight: bold;
    text-align: center;
    border: 5px dashed yellow;
    box-shadow: 0 0 10px 5px green;
    animation: flash 1s infinite alternate, shake 0.5s ease-in-out infinite;
    z-index: 9999;
    transform: rotate(-10deg);
}

/* Flashing animation */
@keyframes flash {
    0% {
        opacity: 1;
        background-color: red;
    }
    50% {
        opacity: 0.5;
        background-color: darkred;
    }
    100% {
        opacity: 1;
        background-color: red;
    }
}

/* Shake animation */
@keyframes shake {
    0% {
        transform: rotate(-10deg);
    }
    25% {
        transform: rotate(5deg);
    }
    50% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(10deg);
    }
    100% {
        transform: rotate(-10deg);
    }
}
