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

body {
    background-color: #efefef;
}

.card {
    position: absolute;
    width: 90%;
    max-width: 480px;
    top: 50%;
    left: 50%;
    padding: 2rem 1.75rem;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #5bc4fb, #3e3b51
    );
    border-radius: 1rem;
    text-align: center;
    color: #efefef;
}

#search {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ebfffc;
    border-radius: 2rem;

}

#search input {
    outline: none;
    border: 0;
    background: #ebfffc;
    border-radius: 1rem;
    padding: 0.5rem 1.5rem;
    flex: 1;
    height: 2rem;
    align-items: center;
    font-size: 1.2rem;
}

#search button {
    width: 1.5rem;
    height: 1.5rem;
    background: #ebfffc;
    font-size: 1rem;
    border: none;
    outline: none;
    background: transparent;
    margin: 0.5rem;
    display: flex;
    align-items: center;
    cursor: pointer;
}

#search button img {
    width: 1rem;
    height: 1rem;
}

.weather-icon {
    width: 10rem;
    margin: 1rem 0;
}

#weather h1 {
    font-size: 5rem;
    font-weight: 500;
}

#weather h2 {
    font-size: 3rem;
    font-weight: 500;
}

#details {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    margin-top: 1rem;
}

#details .col {
    display: flex;
    align-items: center;
    text-align: left;
}

#details .col img {
    width: 3rem;
    margin-right: 1rem;
}

.humidity, .wind {
    font-size: 1.5rem;
    font-weight: 400;
}

#weather-details {
    display: none;
}

#error {
    display: none;
    margin-top: 1rem;
}
