@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Sacramento&display=swap');
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* toggle classes */



body {
    font-size: 1.25rem;
    font-family: 'Montserrat', sans-serif;
    background-color:#161616;
    color: white;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
}

.blur {
    filter: opacity(50%);
}

h1 {
    font-weight: 900;
}


.change-location label {
    font-weight: 300;
    font-size: 1.25rem;
}
#city_text {
    width: 400px;
    margin: 1rem auto;
    background-color: transparent;
    padding: 1.5rem;
    height: 50px;
}
#city_text:focus{
    background-color: transparent;
}

#or {
    font-weight: 800;
    display: block;
    text-align: center;
    font-size: 2rem;
}

.selections {
    margin: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.selections label {
    font-weight: 300;
    font-size: 1.25rem;
}

.selections select, .selections select option {
    border-radius: 3px;
    font-size: 1rem;
    color: gray;
    border: 1px solid white;
    background-color: transparent;
    width: 325px;
    height: 50px;
    margin: 1rem;
}

.change-location label {
    font-weight: 400;
}


.icon {
    border-radius: 50%;
    position: relative;
    top: -50px;
    width: 100px;
    margin-bottom: -50px;
}

.weather-cards {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.weather-cards .weather-card {
    margin: 1.563rem;
    min-width: 300px;
    min-height: 500px;
    /* width: 300px; */
    border-radius: 16px;
    box-shadow: 1px 10px 10px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: black;
}

.day {
    background: linear-gradient(to top, #FFF4CC, #FFC903);
}

.day-rain {
    background: linear-gradient(180deg, #8094FF 0%, #8094FF 100%);
}

.night {
    background: linear-gradient(180deg, #808496 0%, #18191F 100%);
}

.weather-cards .weather-card .weather-icon {
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-cards .weather-card img {
    margin-top: 5rem;
    padding: 0.5rem;
    background-color: white;
    border-radius: 50%;
}

.details {
    margin-top: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.details .location {
    padding: 1rem;
    border-radius: 16px;
    width: 90%;
}

.day-location {
    background-color: #FFBD12;
}

.day-rain-location {
    background-color: #C1BBFF;
}

.night-location {
    background-color: #18191F;
    color: white;
}

.details h4 {
    font-weight: 800;
    font-size: 2rem;
}

.details .reading {
    margin: 1rem 0;
    padding: 2rem;
    border-radius: 16px;
    width: 95%;
    border: 2px solid #18191F;
}

.details .reading .reading-temp {
    font-weight: 700;
    font-size: 1.98rem;
}

.day-reading {
    background-color: #FFD465;
}

.day-rain-reading {
    background-color: #928CD1;
}

.night-reading {
    background-color: #969BAB;
}

.error {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.error span {
    background-color: rgb(146, 6, 6);
    padding: 2rem;
    border-radius: 17px;
    color: white;
    position: relative;
}

.error span i {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
}