@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap');

html {
    scroll-behavior: smooth;
    font-family: 'Raleway', sans-serif;
}

body {
    margin: 0;
    padding: 0;
}

.wrapper {
    position: relative;
    overflow: hidden;
}

.preloader {
    background-color: black;
    background-image: url(images/preloader.gif);
    background-repeat: no-repeat;
    background-position: center center;
    height: 100vh;
    width: 100%;
    position: fixed;
    z-index: 100;
}

.current-weather-section {
    height: 100vh;
    background-color: #1e213a;
    color: #E7E7EB;
}

.current-weather-section .container {
    display: flex;
}

.current-weather-section .current-weather-container {
    order: 2;
    width: 100%;
    background: url(images/cloud-background.png) no-repeat 50% 15%;
}

.location-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px 15px 40px;
    height: calc(10vh - 32px);
    margin-top: 27px;
}

.location-bar > .location-search-btn {
    width: 160px;
    height: 45px;
    background-color: #6e707a;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border: none;
    color: #E7E7EB;
    cursor: pointer;
    font-size: 16px;
}


.location-bar > .material-icons {
    color: #E7E7EB;
    background-color: #6e707a;
    border-radius: 50%;
    border: 10px solid #6e707a;
    cursor: pointer;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.location-bar > *:hover {
    background-color: #8c8c8e;
    border-color: #8c8c8e;
}

.current-weather-section .current-weather-display {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.current-weather-display > #current-weather-icon {
    margin-top: -30px;
}

.current-temperature-display {
    display: flex;
    align-items: center;
    margin-bottom: -75px;
    margin-top: -140px;
}

.current-temperature-display > h1 {
    font-size: 100px;
}

.current-temperature-display > span {
    font-size: 40px;
    padding-left: 10px;
    padding-bottom: 40px;
}

.current-weather-display > p {
    font-size: 20px;
    margin-top: -45px;
}

.current-weather-display > .temperature-description {
    font-size: 30px;
    margin-top: -40px;
}

.current-date-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: -50px;
}

.current-location-display {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: -60px;
}

.search-menu-container {
    background: #1e213a;
    padding: 15px;
    height: 100vh;
    width: 100%;
    order: 1;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99;
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.search-menu-container.active-menu {
    transform: translateX(0);
}

.search-menu-container > .material-icons {
    font-size: 30px;
    color: #E7E7EB;
    float: right;
    cursor: pointer;
}

.search-menu-container > .search-bar-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin-top: 70px;
    margin-left: 14px;
    position: relative;
}

.search-menu-container .search-bar {
    border: 1px solid #E7E7EB;
    display: flex;
    align-items: center;
    width: 60vw;
    height: 48px;
    gap: 15px;
}

.search-menu-container .search-bar > .material-icons {
    color: #616475;
    margin-left: 12px;
}

.search-menu-container .search-bar > #location-search{
    background: none;
    border: none;
    font-size: 17px;
    color: #E7E7EB;
    all: unset;
    width: 45vw;
}

.search-menu-container .search-bar > #location-search::placeholder {
    color: #616475;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration { 
    display: none; 
}

.search-menu-container .search-bar-container > .submit-search {
    background-color: #3c47e9;
    color: #E7E7EB;
    border: none;
    width: 110px;
    height: 50px;
    font-size: 17px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.search-menu-container .search-location-suggestions-container {
    width: calc(60vw + 15px + 115px);
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-47%);
    overflow: auto;
}

.search-location-suggestions-container .search-location-suggestions {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    cursor: pointer;
}

.search-location-suggestions-container .search-location-suggestions:hover {
    border: 1px solid #616475;
}

.detailed-weather-section .container {
    background-color: #100e1d;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    color: #E7E7EB;
}

.detailed-weather-section > .container > *:not(:last-child){
    width: 80vw;
}

.detailed-weather-section .temperature-unit-change-container {
    display: flex;
    justify-content: end;
    gap: 15px;
    margin-top: -17px;
    margin-bottom: 20px;
}

.temperature-unit-change-container > * {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.temperature-unit-change-container > .degree-celsius-icon {
    background-color: #E7E7EB;
    border: 10px solid #E7E7EB;
    color: #110e3c;
}

.temperature-unit-change-container .degree-fahrenheit-icon {
    background-color: #6e707a;
    border: 10px solid #6e707a;
    color: #E7E7EB;
}

.temperature-unit-change-container > * > p {
    font-weight: bold;
    font-size: 18px;
}


.detailed-weather-section .forecast-box-container {
    width: 80vw;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    margin-top: 50px;
}

.forecast-box-container .forecast-box {
    background: #1e213a;
    text-align: center;
    padding: 10px;
}

.forecast-box > .min-max-temperature-container {
    display: flex;
    justify-content: space-evenly;
}

.min-max-temperature-container > * {
    display: flex;
    align-items: center;
    font-weight: bold;
}

.min-max-temperature-container > .lowest-temperature {
    color: #a09fb1;
}

.current-weather-highlights-display .current-weather-highlights-container {
    width: 80vw;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(80%, 328px), 1fr));
    justify-items: center;
    gap: 50px;
    margin-top: 50px;
}

.current-weather-highlights-display .highlights-box {
    background-color: #1e213a;
    padding: 30px;
    width: min(80%, 328px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.current-weather-highlights-display .highlights-box:nth-child(3) ,  .current-weather-highlights-display .highlights-box:nth-child(4){
    padding-bottom: 40px;
}


.highlights-box > p {
    margin: 0;
    font-size: 20px;
    font-weight: normal;
}

.highlights-box > .value-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 75px;
}

.value-container > h1 {
    font-size: 64px;
}

.value-container > span {
    margin: 7px;
    font-weight: normal;
    font-size: 40px;
}

.wind-status-box .wind-direction-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    font-weight: normal;
}

.wind-direction-container > .material-icons {
    font-size: 18px;
    color: #E7E7EB;
    background-color: #6e707a;
    border-radius: 50%;
    border: 7px solid #6e707a;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.humidity-box > .humidity-percentage-bar-container {
    width: 80%;
    height: 80px;
    margin-top: -20px;
}

.humidity-box > .humidity-percentage-bar-container > .percentage-info {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: #a09fb1;
}

.humidity-box > .humidity-percentage-bar-container > .percentage-bar {
    background-color: white;
    width: 100%;
    height: 10px;
    border-radius: 10px;
    margin-top: -10px;
}

.humidity-box > .humidity-percentage-bar-container > .percentage-bar > .percentage-value {
    float: left;
    height: 100%;
    background-color: #ffec65;
    border-radius: 10px;
}

.humidity-box > .humidity-percentage-bar-container > p {
    font-size: 16px;
    font-weight: normal;
    position: relative;
    left: 97%;
    top: -10px;
    color: #a09fb1;
}

.copyright-footer {
    border: 1px solid transparent;
    background-color: #100e1d;
    text-align: center;
    color: white;
    margin-top: 60px;
}

@media only screen and (min-width: 950px) {

    .wrapper {
        display: flex;
    }

    .wrapper > .current-weather-section {
        width: 485px;
    }

    .wrapper > .detailed-weather-section{
        width: calc(100vw - 490px);
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .current-weather-section .search-menu-container {
        width: 455px;
        right: auto;
        left: 0;
    }

    .search-menu-container .search-bar-container {
        margin-left: 0;
    }

    .search-menu-container .search-bar {
        width: 275px;
    }

    .search-menu-container .search-bar > #location-search{
        width: 200px;
    }

    .search-menu-container .search-location-suggestions-container {
        width: 405px;
        margin-left: -13px;
    }

    .detailed-weather-section > .container > *:not(:last-child) {
        width: calc(100vw - 620px);
    }

    .detailed-weather-section .forecast-box-container {
        padding: 10px 0;
        margin-bottom: 20px;
        width: 100%;
        margin-top: 30px;
    }

    .current-weather-highlights-display .current-weather-highlights-container {   
        width: 100%;
        margin-top: 40px;
    }
}

@media only screen and (min-width: 1325px) {

    .current-weather-highlights-display .current-weather-highlights-container {
        justify-items: start;
    }

}
