@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

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

}

body {
    font-family: "Roboto", system-ui;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
    background-image: url(./bg.jpg);
    background-repeat: no-repeat;
    height: 100vh;
    overflow-y: auto;
}


.container {
    text-align: center;
    background: #568eaa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(192, 15, 15, 0.1);
    width: 800px;
    height: auto;
}

#loading {
    font-size: 18px;
    color: #d5d8db;
}

.search-bar {
    padding-top: 40px;
    margin-bottom: 20px;
}

input {
    padding: 10px;
    width: 100%;
    border: 3px solid #ccc;
    font-size: 15px;
    border-radius: 4px;
    margin-right: 10px;
    width: 200px;
}

button {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background-color: bisque;
    cursor: pointer;
}

.error-message {
    color: red;
    font-size: 20px;
}


.forecast-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
    background-color: #e0f7fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-direction: row;
    align-items: flex-start;
    max-width: 100%;
    position: relative;
    height: 100px;

}

.heading {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #568eaa;
    padding: 5px 10px;
    font-size: 25px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 5px;
}

.forecast-day {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    margin: 10px;
    padding: 15px;
    text-align: center;
    background-color: #67b2ba;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#weather-result {
    max-height: 300px;
    overflow-y: auto;
    padding: 20px;
    background-color: #e0f7fa;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#forecast-result {
    height: 260px;
    padding: 80px;
    background-color: #f0f7fa;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/*media queries*/

@media(min-width:600px) {
    .forecast-day {
        flex: 1 1 calc(50%-20px);
    }
}

@media(min-width:900px) {
    .forecast-day {
        flex: 1 1 calc(33.33%-20px);
    }
}

#loading {
    font-size: 18px;
    color: #d5d8db;
}

.error-message {
    color: red;
    font-size: 30px;
}

.weather-container {
    background-color: #e0f7fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(188, 10, 10, 0.1);
}