

/* --- Definitive Fullscreen Fix --- */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: visible !important; /* Prevents layout width issues */
  background-color: #000000;     /* Sets the desired black background */
}

/* FORCE LANDSCAPE ORIENTATION */
@media screen and (orientation: portrait) {
  html {
    transform: rotate(90deg);
    transform-origin: left top;
    width: 100vh;
    height: 100vw;
    overflow-x: hidden;
    position: absolute;
    top: 100%;
    left: 0; /* Changed from -10px to 0 for consistency */
    right: 0;  /* Changed from -10px to 0 for consistency */
  }
}

  .boxes-1 {
    position: absolute;
    left: 580px;
    min-width: 200px;
    width: auto;  
    height: 50px;
    background-color: #93c5fd; /* blue-300 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.40);
    border: 2px solid #35303086;
    border-radius: 4px;
    padding: 10px 20px;
}

/* INDIVIDUAL BUTTON POSITIONING - DESKTOP */
.jessica-button {
    top: 120px;
}

.vicky-button {
    top: 195px;
}

.alex-button {
    top: 270px;
}

.kayla-button {
    top: 345px;
}

.images-1 {
    position: absolute;
    top: 425px;
    left: 100px;
    width: 250px; 
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.7));
    cursor: pointer; 
   }   

/* CONFETTI CELEBRATION STYLES */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.success-text {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3em;
    font-weight: bold;
    color: #00c851;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    z-index: 1001;
    opacity: 0;
    transition: all 0.5s ease;
}

.success-text.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: pulse 0.6s ease;
}

/* TRY AGAIN ANIMATION STYLES */
.try-again-text {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2.5em;
    font-weight: bold;
    color: #ff9500;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    transition: all 0.4s ease;
}

.try-again-text.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: gentle-shake 0.8s ease;
}

@keyframes pulse {
    0% { 
        transform: translate(-50%, -50%) scale(1); 
    }
    25% { 
        transform: translate(-50%, -50%) scale(1.15); 
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.05); 
    }
    75% { 
        transform: translate(-50%, -50%) scale(1.1); 
    }
    100% { 
        transform: translate(-50%, -50%) scale(1); 
    }
}

@keyframes gentle-shake {
    0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    10% { transform: translate(-50%, -50%) scale(1.05) rotate(-2deg); }
    20% { transform: translate(-50%, -50%) scale(1) rotate(2deg); }
    30% { transform: translate(-50%, -50%) scale(1.02) rotate(-1deg); }
    40% { transform: translate(-50%, -50%) scale(1) rotate(1deg); }
    50% { transform: translate(-50%, -50%) scale(1.02) rotate(0deg); }
    60% { transform: translate(-50%, -50%) scale(1) rotate(-1deg); }
    70% { transform: translate(-50%, -50%) scale(1.01) rotate(1deg); }
    80% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

.confetti {
    position: absolute;
    width: 12px;
    height: 12px;
    opacity: 0;
}

.confetti.active {
    opacity: 1;
    animation: confetti-explosion 2.5s ease-out forwards;
}

@keyframes confetti-explosion {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    25% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(1440deg) scale(0.2);
        opacity: 0;
    }
}
  
/* MOBILE LANDSCAPE OPTIMIZATION */
@media screen and (max-width: 1200px) and (orientation: landscape) {
    
    /* Scale down character images for mobile */
    
    
    /* Reposition characters closer together vertically */
.images-1[src*="Jessica"] {
    top: 200px !important; /* Move Jessica down from 280px */
    left: 30px !important;
}

.images-1[src*="Alex"] {
    top: 40px !important; /* Move Alex down from 20px */
    left: 10px !important;
}

.images-1[src*="Vicky"] {
    top: 200px !important; /* Move Vicky down from 280px */
    right: 30px !important;
    left: auto !important;
}

.images-1[src*="Kayla"] {
    top: 95px !important; /* Move Kayla down from 20px */
    right: 30px !important;
    left: auto !important;
}
   /* Make everything more compact for mobile */
.images-1 {
    width: 90px !important; /* Down from 100px */
}

/* Move answer buttons up and make them smaller */
.boxes-1 {
    left: 50% !important;
    transform: translateX(-50%);
    min-width: 215px !important; /* Down from 240px */
    height: 36px !important; /* Down from 40px */
    font-size: 12px !important; /* Down from 13px */
    padding: 5px 10px !important; /* Down from 6px 12px */
}

/* Adjust button positions - move them up even more */
.boxes-1[onclick*="jessica"] {
    top: 45px !important; /* Down from 50px */
}

.boxes-1[onclick*="vicky"] {
    top: 90px !important; /* Down from 100px */
}

.boxes-1[onclick*="alex"] {
    top: 135px !important; /* Down from 150px */
}

.boxes-1[onclick*="kayla"] {
    top: 180px !important; /* Down from 200px */
}
    .images-1[src*="Kayla"] {
        top: 20px !important;
        right: 30px !important;
        left: auto !important;
        touch-action: manipulation;
    }
    
    /* Adjust button vertical positions */
    .boxes-1[onclick*="jessica"] {
        top: 60px !important;
    }
    
    .boxes-1[onclick*="vicky"] {
        top: 120px !important;
    }
    
    .boxes-1[onclick*="alex"] {
        top: 180px !important;
    }
    
    .boxes-1[onclick*="kayla"] {
        top: 240px !important;
    }
    
    /* Optimize success/try-again text for mobile */
    .success-text {
        font-size: 2.2em !important;
    }
    
    .try-again-text {
        font-size: 1.8em !important;
    }
    
    /* Optimize confetti for mobile performance */
    .confetti {
        width: 8px !important;
        height: 8px !important;
    }
}

/* MOBILE PORTRAIT (if they accidentally rotate) */
@media screen and (max-width: 896px) and (orientation: portrait) {
    body::before {
        content: "📱 Please rotate your device to landscape mode for the best experience! 🔄";
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0,0,0,0.9);
        color: white;
        padding: 20px;
        border-radius: 10px;
        text-align: center;
        z-index: 2000;
        font-size: 18px;
    }
}

    /* FULL SCREEN MOBILE OPTIMIZATION */
/* Hide iOS Safari bars */
body {
    /* Extend content into safe areas */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    
    /* Prevent scrolling that shows browser bars */
   
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Viewport height fix for mobile browsers */
body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

html {
    height: -webkit-fill-available;
}

/* Hide address bar on scroll */
@media screen and (max-width: 896px) {
    body {
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
    }
}
  
/* --- Home Button Styles --- */
.home-button {
  position: fixed;
  /* New positioning for bottom-left */
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: calc(20px + env(safe-area-inset-left));
  
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 6px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: transform 0.2s ease-in-out, background-color 0.2s ease;
}

.home-button:hover,
.home-button:active {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.4);
}

.home-button img {
  width: 20px;
  height: 20px;
  display: block; /* Removes extra space under the image */
}

/* --- Button Color Fixes --- */

/* This targets the button with the "vicky-button" class */
.vicky-button {
  background-color: #4ade80; /* A nice green color */
}

/* This targets the button with the "kayla-button" class */
.kayla-button {
  background-color: #fca5a5; /* A soft red color */
}

/* Let's also set Alex's button color here for consistency */
.alex-button {
  background-color: #7FD6DD; 
}

