* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 450px;
}

.weather-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
    transition: all 0.3s ease;
}

.weather-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.location {
    text-align: center;
    margin-bottom: 20px;
}

.location h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 5px;
}

.location p {
    color: #666;
    font-size: 1.2rem;
}

.weather-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.weather-icon {
    font-size: 5rem;
    margin-right: 20px;
    color: #4a6cf7;
}

.temperature h2 {
    font-size: 3.5rem;
    color: #333;
    margin-bottom: 5px;
}

.temperature p {
    color: #666;
    font-size: 1.2rem;
}

.details {
    background-color: rgba(74, 108, 247, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item i {
    font-size: 1.5rem;
    color: #4a6cf7;
    margin-right: 15px;
    width: 25px;
    text-align: center;
}

.detail-item span {
    color: #333;
    font-size: 1.1rem;
}

.refresh {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

#refresh-btn {
    background-color: #4a6cf7;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

#refresh-btn i {
    margin-right: 8px;
}

#refresh-btn:hover {
    background-color: #3a5bd9;
    transform: scale(1.05);
}

.footer {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Weather icon colors based on conditions */
.sunny {
    color: #ffb300;
}

.cloudy {
    color: #78909c;
}

.rainy {
    color: #4fc3f7;
}

.stormy {
    color: #546e7a;
}

.snowy {
    color: #e0e0e0;
}

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

.loading {
    animation: pulse 1.5s infinite ease-in-out;
}

/* Responsive design */
@media (max-width: 480px) {
    .weather-card {
        padding: 20px;
    }
    
    .location h1 {
        font-size: 2rem;
    }
    
    .weather-icon {
        font-size: 4rem;
    }
    
    .temperature h2 {
        font-size: 3rem;
    }
}
