/* ===== SCROLLABLE CONTAINER CSS ===== */
/* For pages that need scrollable content (sos.html, etc.) */

.container {
    background:
        radial-gradient(circle at 20% 80%, rgba(139, 90, 92, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(107, 138, 170, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(122, 132, 113, 0.02) 0%, transparent 70%),
        rgba(230, 250, 230, 0.6);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    border: 1px solid rgba(198, 40, 40, 0.3);
    
    /* Scrollable container dimensions - Desktop */
    width: clamp(320px, 98vw, 1600px);
    height: auto;
    min-height: 100vh;
    
    /* Flexbox layout */
    display: flex;
    flex-direction: column;
    
    /* Scrolling behavior */
    overflow-y: visible;
    overflow-x: hidden;
    
    /* Natural positioning for scrollable content */
    position: relative;
    margin: 0 auto;
    box-sizing: border-box;
    
    /* Responsive padding */
    padding: clamp(0.3rem, 0.8vh, 0.8rem) clamp(0.5rem, 1vh, 1rem) clamp(0.8rem, 1.2vh, 1.2rem);
}

/* Desktop Container - 98vw width with auto height */
@media (min-width: 769px) {
    .container {
        width: 98vw;
        height: auto;
        min-height: auto;
        max-width: 98vw;
    }
}

/* Low resolution scaling for scrollable pages */
@media (max-height: 700px) {
    html {
        font-size: 14px !important;
    }
    
    .container {
        transform: scale(0.9);
        transform-origin: top center;
    }
}

@media (max-height: 600px) {
    html {
        font-size: 12px !important;
    }
    
    .container {
        transform: scale(0.8);
        transform-origin: top center;
    }
}

@media (max-height: 500px) {
    html {
        font-size: 10px !important;
    }
    
    .container {
        transform: scale(0.7);
        transform-origin: top center;
    }
}

/* Dark mode container styles */
body.dark-mode .container { 
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.2) 0%, rgba(25, 30, 40, 0.18) 30%, rgba(30, 35, 45, 0.16) 70%, rgba(35, 40, 50, 0.15) 100%) !important; 
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 8px 25px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important; 
    border: 1px solid rgba(255, 255, 255, 0.12) !important; 
}

/* Mobile Container Styles */
@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: clamp(0.25rem, 2vw, 1rem);
        box-sizing: border-box;
        min-height: 100vh;
        height: auto;
        border-radius: 0;
        background: transparent !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
    }
}
