@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background-image: url(https://source.unsplash.com/1600x900/?landscape);
}

.card {
    color: white;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 1em;
    padding: 1.2em;
    width: 100%;
    max-width: 320px;
    padding: 1.2em;
    border: solid 1px rgba(255, 255, 255, 0.5);
}

.search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: solid 1px rgba(255, 255, 255, 0.5);
}

.search-bar {
    border: none;
    border-radius: 20px;
    outline: none;
    background: none;
    padding: 0.5em 0;
    font-family: inherit;
    font-size: 1.1rem;
    color: white;
    width: calc(100% - 30px);
}

svg {
    fill: rgba(255, 255, 255, 0.5);
    margin-right: 0.5em;
}

button {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
}

.description-text {
    text-transform: capitalize;
}

.description {
    display: flex;
    align-items: center;
    margin-bottom: 1em;
}

.weather.loading {
    visibility: hidden;
    position: absolute;

}