
        #eter{
          position: relative;
            width: 1300px;
            height: 333px;
            background: transparent; 
        }
        #game-container {
            display: flex;
            position: relative;
            width: 1300px;
            height: 1000px;
            background: transparent;
        }

        #doll-container {
    flex: 1;
    position: relative; /* This is the anchor for the dolls and clothes */
    height: 1000px; /* Or whatever height matches your #game-container */
    border: 1px solid transparent; /* Helps you see the container's boundary */
}

.doll-base {
    width: 250px;
    position: absolute;
    bottom: 0px;
    
    /* NEW STABLE CENTERING */
    left: 200px;
    right: 0;
    
    pointer-events: none;
    z-index: 1;
}

/* Responsive fix for mobile */
@media (max-width: 600px) {
    .doll-base {
        width: 220px; /* Slightly smaller so it doesn't feel cramped */
    }
}

#wardrobe {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two items per row */
    gap: 15px;
    padding: 10px;
    min-height: 400px; /* Keeps the closet height stable */
    background: AliceBlue;
}

.closet-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
}

.closet-nav button {
    padding: 5px 15px;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid #ccc;
}

        .draggable-item {
            width: 200px;
            cursor: grab;
            z-index: 10;
            transition: transform 0.1s ease; /* Smooth scaling */
    transform-origin: center;       /* Scale from the middle */
    touch-action: none;
        }
#yt-player {
    position: absolute;
    bottom: 5px;  /* Spacing from bottom */
    left: 700px;    /* Spacing from left */
    width: 200px;  /* YouTube's required minimum width */
    height: 112px; /* Maintains 16:9 aspect ratio at 200px width */
    border: 2px solid #ccc;
    border-radius: 8px;
    z-index: 100;
    overflow: hidden;
}
.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: 50%,50%;
    align-items: 50%,50%;
    z-index: 9999; /* Keeps it above everything */
    transition: opacity 0.5s ease;
}

.popup-content {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    padding: 40px;
    text-align: 50%,50%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    max-width: 600px;
}

.popup-hidden {
    opacity: 0;
    pointer-events: none;
}
hr.pixel-divider {
    border: 0;
    height: 35px; /* Adjust height to match your image */
    background-image: url('blue14.gif');
    background-repeat: 3;
    background-position: 50% 50%;
    margin: 40px auto;
    width: 100%;
}
hr.pixel-divider2 {
    border: 0;
    height: 55px; /* Adjust height to match your image */
    background-image: url('yellow4.gif');
    background-repeat: 3;
    background-position: 50% 50%;
    margin: 40px auto;
    width: 100%;
}
#ui-header {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    align-items: 50%,50%;
    gap: 15px;
    width: 90%;
    max-width: 800px;
    justify-content: center;
    pointer-events: none; /* Allows clicking through the gaps to the dolls */
}

#size-controls, #finish-btn {
    pointer-events: auto; /* Re-enables clicking on the actual buttons */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 40px;
    padding: 15px 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#size-controls {
  
    gap: 20px;
}

body {
    /* Prevents the 'bounce' and 'pull-to-refresh' on mobile */
    overscroll-behavior-y: contain; 
}

#mood-overlay {
    position: fixed; 
    inset: 0; /* Shorthand for top:0, left:0, right:0, bottom:0 */
    width: 100vw; 
    height: 100dvh; /* 'dvh' is Dynamic Viewport Height for mobile bars */
    pointer-events: none; 
    z-index: 9999; 
    transition: background-color 1s ease;
    mix-blend-mode: overlay;
}
#mood-btn {
    /* Increase the text size */
    font-size: 26px; 
    
    /* Padding: First number is Top/Bottom, second is Left/Right */
    padding: 12px 30px; 
    
    /* Make it a rounded "pill" shape */
    border-radius: 50px; 
    
    /* Optional: Add a subtle glow so it looks important */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    
    /* Keeps the button from shrinking too much */
    min-width: 140px; 
}

/* Add a "squishy" animation when clicked */
#mood-btn:active {
    transform: scale(0.92);
}

#timer {
    font-family: 'Haettenschweiler', sans-serif; /* Using your bold font */
    font-size: 32px;            /* Making it nice and big */
    color: yellow;              /* High contrast color */
    background: rgba(0, 0, 0, 0.4); /* Dark translucent background */
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 50px;
    border: 2px solid yellow;
    text-shadow: 2px 2px 0px magenta; /* Retro "pop" effect */
    
    /* Position it at the top-left or inside your UI header */
    display: inline-block;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.3);
}

/* Optional: Make it pulse red when time is low (less than 60s) */
.timer-low {
    color: red !important;
    border-color: red !important;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0.5; }
}
 