/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: linear-gradient(to bottom, #6ab7f5, #b3e0ff);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Alert Box*/
#alert-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    display: none;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.hidden {
    display: none;
}

/* Header */
header {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 15px;
}

h1 {
    font-size: 24px;
    color: #0056b3;
}

/* Main container */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Search box */
.search-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

#city-input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 70%;
    flex: 1;
    min-width: 0;
    transition: 0.3s ease-in-out;
}

#city-input:focus {
    border-color: #0056b3;
    outline: none;
}

/* Search button */
#search-btn {
    padding: 10px 15px;
    font-size: 16px;
    background: #0056b3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#search-btn:hover {
    background: #003d80;
}

/* Weather card */
.weather-card {
    width: 350px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}


h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

#weather-icon {
    width: 80px;
    height: 80px;
    margin: 10px 0;
}

p {
    font-size: 18px;
    margin: 5px 0;
    color: #555;
}

/* Forecast Section */
.forecast-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.forecast-card {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 120px;
    transition: transform 0.2s ease-in-out;
}

.forecast-date {
    font-weight: bold;
    font-size: 14px;
}

.forecast-icon {
    width: 50px;
    height: 50px;
}

.forecast-temp {
    font-size: 16px;
    font-weight: bold;
}

.forecast-condition {
    font-size: 12px;
    color: #666;
}

/* Responsive design */
@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    #city-input {
        width: 65%;
    }
}

@media (max-width: 350px) {
    .search-box {
        flex-direction: column;
    }

    #city-input {
        width: 100%;
    }
}
