/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #E0F7FA 0%, #4FC3F7 100%);
    min-height: 100vh;
    color: #2C3E50;
    overflow-x: hidden;
    position: relative;
}

/* Snowflake Animation */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

/* Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

h1 {
    font-family: 'Fredoka One', cursive;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #2C3E50;
    font-size: 2.5rem;
}

.subtitle {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* Frosted Glass Calculator */
.calculator-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
}

.weather-inputs {
    display: flex;
    gap: 1rem;
}

.input-group.small {
    flex: 1;
}

/* Glow Button */
.glow-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #00B4DB, #0083B0);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.glow-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 180, 219, 0.4);
}

.glow-button:active {
    transform: translateY(1px);
}

/* Result Card */
#result-card {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

#result-card.visible {
    opacity: 1;
    pointer-events: all;
}

.result-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s;
}

#result-card.visible .result-glass {
    transform: scale(1);
}

#result-icon {
    font-size: 4rem;
    margin: 1rem 0;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 600px) {
    .weather-inputs {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2rem;
    }
}