
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden; 
    margin: 0;
}


section {
    position: relative; 
    width: 100%;
    height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
}

.bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
}

.trees {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    z-index: 3;
    animation: moveTrees 25s linear infinite alternate; 
}


.girl {
    position: absolute;
    bottom: 25%;
    height: 60%;
    object-fit: contain;
    pointer-events: none;
    opacity: 0.85;
    z-index: 2; 
    animation: moveBikeLeft 15s linear infinite; 
}


@keyframes moveBikeLeft {
    0%   { transform: translateX(100vw); }
    100% { transform: translateX(-100vw); }
}


.leaves {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.leaves .set {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.leaves .set div {
    position: absolute;
    display: block;
    width: 60px;
    height: 60px;
    animation: animateLeaves 15s linear infinite;
    transform-origin: bottom center;
    opacity: 0;
}

.leaves .set div:nth-child(1) { left: 20%; animation-delay: 0s; animation-duration: 12s; }
.leaves .set div:nth-child(2) { left: 50%; animation-delay: 3s; animation-duration: 10s; }
.leaves .set div:nth-child(3) { left: 70%; animation-delay: 6s; animation-duration: 15s; }
.leaves .set div:nth-child(4) { left: 0%; animation-delay: 9s; animation-duration: 11s; }
.leaves .set div:nth-child(5) { left: 85%; animation-delay: 12s; animation-duration: 13s; }
.leaves .set div:nth-child(6) { left: 15%; animation-delay: 15s; animation-duration: 9s; }
.leaves .set div:nth-child(7) { left: 60%; animation-delay: 18s; animation-duration: 16s; }
.leaves .set div:nth-child(8) { left: 35%; animation-delay: 21s; animation-duration: 14s; }

.leaves .set div img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
}

@keyframes animateLeaves {
    0% { opacity: 0; top: -10%; transform: translateX(0) rotate(0deg); }
    10% { opacity: 1; }
    20% { transform: translateX(-20px) rotate(45deg); }
    40% { transform: translateX(-40px) rotate(90deg); }
    60% { transform: translateX(-20px) rotate(135deg); }
    80% { transform: translateX(0px) rotate(180deg); }
    100% { top: 110%; transform: translateX(50px) rotate(225deg); opacity: 0; }
}



.VS {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;

    background-color: rgba(255, 255, 255, 0.208);
    backdrop-filter: blur(10px);
    width: 90%;
    max-width: 400px;
    height: auto;
    max-height: 90vh;
    padding: 30px 20px;
    border-radius: 15px;
    border: .5px solid rgba(255, 255, 255, 0.56);
    box-shadow: 1px 1px 25px rgba(0, 0, 0, 0.097);
    z-index: 10;
}

.VS h2 {
    width: 100%;
    text-align: center;
    color: #90281F;
    font-size: 3rem;
    margin-bottom: 20px;
}

.VS h3 {
    width: 100%;
    text-align: center;
    color: #90281F;
    font-size: 2rem;
    margin-bottom: 20px;
    
}
.VS .inputBox {
    width: 100%;
}

.inputBox input {
    width: 100%;
    padding: 14px;
    border-radius: 5px;
    border: none;
    color: #90281F;
    outline: none;
    text-transform: capitalize;
    background: rgba(255, 255, 255, 0.4);
    transition: background 0.3s ease;
    margin-bottom: 15px;
    font-size: 16px;
}
.inputBox input:focus {
    background: rgba(255, 255, 255, 0.6);
}

.inputBox input::placeholder {
    color: #90281F;
    opacity: 0.8;
}

#btn {
    background-color: #90281F;
    color: white;
    cursor: pointer;
    transition: .3s ease;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    
}
#btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.group {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 15px;
    gap: 20px;
}
.group a {
    color: #90281F;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
    text-align: right;
}
.group a:hover {
    color: #7a1f18;
    text-decoration: underline;
}


.toast1, .toast2, .toast3 {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 10px 16px;
    font-size: 0.9rem;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, bottom 0.5s;
    z-index: 1000;
    max-width: 90%;
    text-align: center;
    word-wrap: break-word;
}


#popupTrigger:checked ~ .toast1 {
  opacity: 1;
  visibility: visible;
  animation: fadeout 6s forwards;
}

#popupTrigger:checked ~ .toast2 {
  opacity: 1;
  visibility: visible;
  animation: fadeout 6s forwards;
}

#popupTrigger:checked ~ .toast3 {
  opacity: 1;
  visibility: visible;
  animation: fadeout 6s forwards;
}


#popupTrigger:checked {
  animation: uncheck 6s forwards;
}

@keyframes fadeout {
  0%   { opacity: 1; bottom: 40px; }
  80%  { opacity: 1; }
  100% { opacity: 0; bottom: 30px; }
}

@keyframes uncheck {
  100% { transform: none; } 
}

/* ============================= */
/* 📱 RESPONSIVE FIXES */
/* ============================= */

/* Tablets & below */
@media (max-width: 768px) {
  .girl {
    display: none;
  }

  .trees {
    animation: none;
  }

  .VS {
    padding: 25px 18px;
  }

  .VS h2 {
    font-size: 2.2rem;
  }

  .VS h3 {
    font-size: 1.6rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  body,
  section {
    height: auto;
    min-height: 100svh;
  }

  .VS {
    width: 95%;
    max-width: 360px;
    padding: 22px 16px;
  }

  .inputBox input {
    padding: 12px;
    font-size: 15px;
  }

  #btn {
    padding: 12px;
    font-size: 15px;
  }

  .group {
    flex-direction: column;
    gap: 10px;
  }

  .group a {
    text-align: center;
  }

  .leaves .set div {
    width: 40px;
    height: 40px;
  }
}

/* Very small devices */
@media (max-width: 360px) {
  .VS h2 {
    font-size: 1.9rem;
  }

  .VS h3 {
    font-size: 1.4rem;
  }
}




