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

body {
    font-family: 'Space Grotesk', sans-serif;
    overflow: hidden;
    background: linear-gradient(180deg, #7a8b99 0%, #b8c4ce 100%);
    min-height: 100vh;
    color: white;
}

#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#weather-overlay {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    pointer-events: none;
}

#city-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

#weather-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.2));
}

#weather-icon svg {
    width: 100%;
    height: 100%;
}

#date-display {
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 5px;
    letter-spacing: 0.05em;
}

#temperature {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 500;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

#controls-panel {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 90%;
    max-width: 400px;
}

#search-container {
    display: flex;
    gap: 8px;
    width: 100%;
}

#city-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#city-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#city-input:focus {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

#search-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#search-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

#quick-cities {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.city-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.city-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

#settings {
    display: flex;
    gap: 10px;
}

#temp-toggle,
#screenshot-btn {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#temp-toggle:hover,
#screenshot-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    gap: 20px;
}

#loading.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loading p {
    font-size: 1rem;
    opacity: 0.8;
}

footer {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

footer a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    #weather-overlay {
        top: 20px;
    }
    
    #controls-panel {
        bottom: 50px;
    }
    
    #quick-cities {
        gap: 5px;
    }
    
    .city-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* Animation for weather icon */
#weather-icon svg {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}