/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #000;
    color: #fff;
    padding: 0px;
    line-height: 1.4;
}

/* Main container */
.container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 5px;
}

h1 {
    text-align: center;
    margin-bottom: 1px;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
    font-size: clamp(1.5rem, 4vw, 2rem); /* Responsive font size */
}

/* Gauge layout */
.gauges-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 1px;
    margin-bottom: 5px;
}

.gauge-wrapper {
    flex: 1 1 200px;
    min-width: 200px;
    max-width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 1px;
}

.gauge-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.gauge {
    width: 100%;
    height: 200px;
}

.value-display {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #fff;
}

.gauge-interpretation {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    background-color: rgba(0,0,0,0.2);
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

/* Update info section */
.update-info {
    margin-top: 10px;
    text-align: center;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-style: italic;
    font-size: 0.9rem;
	/* in KAFW-gauges.css */
     display: none !important; 

}

/* Loading animation */
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 5px solid #fff;
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    color: #fff;
    animation: pulse 1.5s infinite;
}

/* Responsive layouts */
@media (max-width: 1000px) {
    .gauges-container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }
    
    .gauge-wrapper {
        width: 45%;
        max-width: 300px;
    }
    
    .gauge {
        height: 200px;
    }
    
    body {
        padding: 5px;
    }
}

@media (max-width: 600px) {
    .gauges-container {
        flex-direction: column;
    }
    
    .gauge-wrapper {
        width: 100%;
        max-width: 300px;
    }
    
    .gauge {
        height: 180px;
    }
    
    h1 {
        margin-bottom: 5px;
    }
    
    .gauge-wrapper {
        padding: 10px;
    }
}