/* style5c.css - Optional fixed 1366×768 device sheet (not linked from io2.html by default) */
@import url("style5.css");

/* Exact device sizing for 1366x768 */
html, body {
    width: 1366px;
    height: 768px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
}

body {
    background-color: #000000;
}

/* Main container - fills entire screen */
.io-main {
    width: 1366px;
    height: 768px;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Header section */
.io-header {
    padding: 20px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(199, 199, 199, 0.2);
    flex-shrink: 0;
    position: relative;
}

.io-header-logo {
    position: absolute;
    left: 15px;
    top: -50px;
    height: 275px;
    width: auto;
    display: block;
    z-index: 2;
}

.io-title {
    color: #ffffff;
    font-family: 'Comfortaa', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 2.3rem; /* Increased by 15% from 2rem */
    font-weight: 700;
    margin: 0;
    padding: 0;
}

/* Weather cards container - takes up most of the space */
.io-weather-container {
    flex: 0 0 auto;
    overflow-y: auto;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.io-conds {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 36px 0;
    display: block;
    width: 100%;
    clear: both;
}

.io-obs-time {
    padding: 10px 0;
    margin: 0;
    text-align: center;
    width: 100%;
}

/* Weather grid - 3 columns x 2 rows */
.weather-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    clear: both;
}

/* Forecast section - fixed at bottom with space for two lines */
.io-forecast {
    padding: 10px 30px;
    text-align: center;
    border-top: 1px solid rgba(199, 199, 199, 0.2);
    flex-shrink: 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forecast-text {
    color: #eaeaea;
    font-family: 'Comfortaa', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 1.27rem; /* Increased by 15% from 1.1rem */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    max-width: 1200px;
}

/* Keep this after .forecast-text so margin is not reset */
.io-weather-container .io-conds {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.io-uvindex-text,
.io-wind-direction {
    font-size: 1.4rem;
}

.io-wind-direction sup {
    font-size: 0.6em;
    line-height: 0;
}

.io-rain-total {
    color: #7AB9C7;
}

.io-weather-container .weather-card h3,
.io-weather-container .forecast-card-title {
    font-size: 1.3rem;
}

/* IO-only safeguard: ensure metric values stay visible on dark background */
.io-weather-container .weather-value,
.io-weather-container .temp-unit {
    color: #eaeaea;
}


/* IO-only: reduce sunrise/sunset text by 25% */
.io-weather-container .sun-time-value {
    font-size: calc(0.79rem + 10pt);
}

/* Ensure weather cards are properly sized */
.io-weather-container .weather-card {
    height: 230px;
    min-height: 230px;
}

/* Hide default header/footer if they appear */
.header,
.footer {
    display: none !important;
}

/* Animated radar iframe layer above existing IO content */
.io-radar-overlay {
    position: fixed;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    z-index: 3000;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    animation: io-radar-fade 23s linear infinite;
}

.io-radar-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@keyframes io-radar-fade {
    0% { opacity: 0; }        /* start hidden */
    43.478% { opacity: 0; }   /* 10s hidden pause */
    56.522% { opacity: 1; }   /* 3s fade-in */
    86.957% { opacity: 1; }   /* 7s visible pause */
    100% { opacity: 0; }      /* 3s fade-out */
}

/* Responsive adjustments for exact 1366x768 */
@media (width: 1366px) and (height: 768px) {
    /* Ensure no scrolling */
    html, body {
        overflow: hidden;
    }
    
    /* Fine-tune spacing if needed */
    .io-header {
        padding: 15px 30px;
    }
    
    .io-weather-container {
        padding: 15px 30px;
    }
    
    .io-forecast {
        padding: 8px 30px;
    }
}

