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

body {
    background-image: url(./assets/firewatch1green.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    font-family: 'montserrat', sans-serif;
    color: #091442;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.title {
    padding: 20px;
    margin-top: 45px;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
}

.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 10px 25px 15px;
    min-width: 350px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 250px;
    width: 60vw;
    padding: 10px 15px;
    border: none;
    outline: none;
    border-radius: 15px 5px 15px 5px;
    background-color: rgba(255, 255, 255, 0.3);
    color: #313131;
    transition: 0.2s ease-out;
}

.input-wrapper:focus {
    background-color: rgba(255, 255, 255, 0.6);
}

#input-box {
    width: 70%;
    outline: none;
    border: none;
    background-color: transparent;
    font-size: 1.1rem;
    font-weight: 300;
    color: #313131;
}

#search-btn {
    outline: none;
    width: 25px;
    background: transparent;
    border: transparent;
    cursor: pointer;
}

.search-btn img {
    width: 50px;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 45px;
    padding-bottom: 30px;
    text-align: center;
    max-width: 360px;
    width: 85vw;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.current {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.location {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    margin-top: 10px;
}

.city {
    font-size: 2.5rem;
    font-weight: 600;
}

.country {
    background-color: #0d686cc4;
    color: #ffffffeb;
    border-radius: 30%;
    text-align: center;
    margin-left: 6px;
    margin-bottom: 15px;
    padding: 3px;
    font-weight: 600;
}


.date {
    padding-top: 25px;
}

.sunrise-sunset {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
}

.sunrise,
.sunset {
    font-size: 1rem;
    padding: 0px 15px 0px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    margin-top: 55px;
}

.sunrise {
    border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.sunrise img,
.sunset img {
    height: 40px;
}

.sunset img {
    margin-left: 10px;
}

.sunrise p,
.sunset p {
    margin-top: 8px;
    margin-left: 9px;
}

.sunrise p {
    margin-right: 15px;
}

.temp {
    font-size: 4rem;
    font-weight: 700;
    padding: 45px 35px 35px 35px;
}

.current .temp span {
    font-weight: 500;
}

.weather-description {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70%;
    font-size: 2rem;
    font-weight: 500;
    margin-top: 10px 10px;
    margin-bottom: 45px;
    font-style: italic;

}

.current .hi-low {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    width: 80%;
}

.low-box,
.hi-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
}

.low-box {
    border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.lowest,
.highest {
    height: 40px;
}

.min-temp {
    margin-right: 25px;
}

.feels-like {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 25px;
    margin-top: 45px;
}

.feels-like img {
    padding: 10px;
}

.feels-like p {
    font-size: 1.2rem;
}



/* LIGHT-DARK THEME TOGGLE */

.dark-mode {
    background-image: url(./assets/firewatchnight.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    color: white;
}

#theme-toggler {
    height: 40px;
    width: 40px;
    border: none;
    background-color: #2fa5cb30;
    box-shadow: 12px 12px 16px 0 rgba(0, 0, 0, 0.14), -8px -8px 12px 0 rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    cursor: pointer;
}

#theme-toggler:hover {
    box-shadow: inset 2px 2px 5px rgba(163, 177, 198, 0.51), inset -2px -2px 5px rgba(255, 255, 255, 0.19);
    filter: brightness(105%);
}


#theme-toggler img {
    height: 25px;
    width: 25px;
}

.hidden {
    display: none;
}

footer {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 45px;
}

/* Light mode */
/* @media (prefers-color-scheme: light) {
    body {
        background-image: url(./assets/firewatch1green.jpg);
        color:#091442;
    }
} */

/* Dark mode */
/* @media (prefers-color-scheme: dark) {
    body {
        background-image: url(./assets/firewatchnight.jpg);
        color: white;
    }
}  */



/* MODAL */

.modal-container {
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #004455d9;
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.popup-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10;
    padding: 0 30px 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.37);
    height: 180px;
    width: 20%;
    min-width: 300px;
    text-align: center;
}

.open-popup {
    display: flex;
}

.modal-text {
    font-size: 1.5rem;
    font-weight: normal;
    padding: 20px;
    color: white;
}

.ok-btn {
    width: 50%;
    padding: 10px;
    border: 0;
    outline: none;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    background-color: #04c174;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;

}



/* AUTOCOMPLETE */

.autocomplete-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 47px;
    left: 0px;
    list-style-type: none;
    margin: 0;
    padding: 0;
    max-height: 130px;
    width: 100%;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    border: 1px solid #ffffffad;
    z-index: 100;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.27);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(5px);
}

.open-dropdown {
    display: flex;
}

.autocomplete-menu ul {
    padding: 0;
    margin: 0;

}

.autocomplete-menu li {
    padding: 5px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.54);
}

.autocomplete-menu li:hover {
    background-color: rgba(255, 255, 255, 0.3);
}