body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-size: cover;
    transition: background 0.5s ease;
    overflow: hidden;
    position: relative;
}

main.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex: 1;
    width: 100%;
    max-width: 500px;
    height: 100%;   
}
#city-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
}

#weather-card {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 350px;
    max-height: 60vh;
    overflow-y: auto;
}

#weather-card:empty {
    display: none;
}

label {
    display: block;
    font-size: 0.9rem;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #cbd5e1; 
}

select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    margin: 5px;
    outline: none;
    cursor: pointer;
}

select option {
    background-color: #1f2937; 
    color: white;
}

button {
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: #3b82f6;
    color: white;
    font-weight: bold;
    transition: transform 0.2s;
}

button:hover {
    transform: scale(1.05);
}
#toggle-temp {
    margin-top: 15px;
    background: #2563eb;
}
.hidden { display: none !important; }

.weather-gif {
    width: 100%;
    max-width: 250px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.icon-large {
    font-size: 4rem;
}

#spinner {
    display: none; 
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.2);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

footer{
    font-size: 1rem;
    color: #cbd5e1;
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}
.icons {
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
    display: flex;
    
    align-items: center;
}
.icons:hover {
    color: #3b82f6;
}
