body {
    background: radial-gradient(blue, cyan);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.weather-card {
    background-color: white;
    border-radius: 10px;
    padding: 50px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin: 0;
    text-align: center;
}

h1 {
    text-align: center;
    font-family: sans-serif, Arial;
}

#search-box {
    display: flex;
    gap: 10px;
    justify-content: center;
}

input[type='text'] {
    margin: 0 auto;
    width: 300px;
    height: 30px;
    padding-left: 10px;
    font-size: 18px;
    border-radius: 4px;
}

button {
    font-size: 14px;
    padding: 5px;
    border-radius: 7px;
}

#weatherResult {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#city {
    font-size: 32px;
    margin: 10px auto 0 auto; 
}

#temperature {
    font-size: 36px;
    margin: 5px auto;
}

#description {
    font-size: 24px;
    margin: 5px auto;
}

#wind {
    font-size: 16px;
    margin: 5px auto;
}

#icons {
    font-size: 6em;
    margin: 20px 0;
}

button:hover {
    cursor: pointer;
    opacity: 0.8;
}

.loading {
    color: gray;
    font-style: italic;
}

.error {
    color: red;
    font-weight: bold;
}
@media (max-width: 500px) {
    #weather-card {
        padding: 20px;
        width: 90%;
    }
    
    input[type= 'text'] {
        width: 100%;
    }
}