@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/* 
    hsl(222, 47%, 10%) 
*/

:root {
    --clr-darkest: hsl(204, 80%, 16%);
    --clr-dark: hsla(202, 87%, 25%, 0.586);
    --clr-light: hsl(202, 87%, 98%);
}

html {
    font-size: 10px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    color: var(--clr-light);
    background-color: #9accfe;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    user-select: none;
    overflow-x: hidden;
}
body::-webkit-scrollbar {
    display: none;
}

video {
    position: fixed;
    z-index: -3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-height: 100vh;
    min-width: 100vw;
}

.container {
    margin-right: auto;
    margin-left: auto;
    padding: 0.5rem;
}
.search {
    margin-top: 1.75em;
    margin-bottom: 1.5em;
}

.input-wrapper {
    width: 100%;
    position: relative;
    backdrop-filter: blur(2.5rem);
}

.input-wrapper input {
    min-height: 4.15rem;
    height: 1.75em;
    width: 100%;
    font-size: 1.35em;
    border: 1px solid var(--clr-darkest);
    color: var(--clr-darkest);
    outline: none;
    border-radius: 10px;
    background: transparent;
    /* background-color: hsla(222, 45%, 90%, 0.2); */

    padding: 0 1.8em 0 1em;
}
.input-wrapper input::placeholder {
    color: var(--clr-dark);
    font-family: "Poppins", sans-serif;
    letter-spacing: -1px;
}
.input-wrapper button {
    border: none;

    background-color: transparent;
    border-radius: 10px;
    color: var(--clr-darkest);
    position: absolute;
    padding: 1rem;
    top: 50%;
    right: 2px;
    transform: translateY(-50%);
    font-size: 1em;
    cursor: pointer;
}
.input-wrapper button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.current-weather {
    background-color: var(--clr-darkest);

    width: 100%;
    aspect-ratio: 7 / 7;
    border-radius: 20px;
    padding: 1.1em 1.1em;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}
.current-weather h2 {
    font-size: 2.25em;
    transform: translateY(15%);
    padding-left: 0.2rem;
}
.current-weather h3 {
    padding-left: 0.2rem;
    font-size: 1.5em;
}
.current-weather .weather {
    display: flex;
    align-items: flex-end;
}
.current-weather img {
    width: 6em;
    transform: translate(-10%, 5%);
}

.future-weather {
    backdrop-filter: blur(2.5rem);
    border: 1px solid var(--clr-darkest);
    border-top: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    color: var(--clr-darkest);
    padding: calc(1em + 20px) 1em 1em;
    border-radius: 0 0 20px 20px;
    margin: -20px auto 0;
    /* background-color: hsla(222, 45%, 90%, 0.2); */
}

.future-weather .humidity-wind section {
    display: flex;
    justify-content: space-between;
    font-size: 1.25em;
}
.future-weather .future {
    display: flex;
    justify-content: space-between;
    text-align: center;
    border-radius: 15px;
    overflow-x: scroll;
    padding-bottom: 1.5em;
    /* scrollbar-width: thin;
    scrollbar-color: var(--clr-darkest) transparent; */
}
.future::-webkit-scrollbar {
    height: 1.2vh;
}
.future::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: hsl(204, 80%, 16%, 0.4);
}
.future::-webkit-scrollbar-thumb:hover {
    background-color: hsl(204, 80%, 16%, 0.8);
}
.future::-webkit-scrollbar-track {
    border-radius: 5px;
    background-color: hsl(204, 80%, 16%, 0.1);
}

.future-weather .future .future-icons {
    border-radius: 15px;
    flex-basis: 25%;
    flex-shrink: 0;
    margin-top: 0.5em;
}
.future-weather .future .future-icons img {
    display: block;
    margin: auto;
    width: 75%;
    max-width: 8rem;
}

.future-weather .future .future-icons p {
    font-weight: 600;
    font-size: 1.25em;
    transform: translateY(-20%);
}
.selected {
    background-color: hsl(204, 80%, 16%, 0.1);
    border-radius: 10px;
}

/* XS */
@media (min-width: 485px) {
    .container {
        max-width: 485px;
        font-size: 1.25rem;
    }
    .input-wrapper {
        width: 95%;
        margin-right: auto;
        margin-left: auto;
    }
    .current-weather {
        width: 95%;
    }
    .future-weather {
        width: 95%;
        font-size: 1.35rem;
    }
}
/* SM */
@media (min-width: 640px) {
    .container {
        max-width: 640px;
        font-size: 1.35rem;
    }
    .current-weather {
        aspect-ratio: 7 / 5;
    }
}
/* MD */
@media (min-width: 768px) {
    .container {
        max-width: 768px;

        font-size: 1.5rem;
    }
    .input-wrapper {
        width: 70rem;
    }

    .current-weather {
        width: 70rem;
        aspect-ratio: 7 / 4;
    }

    .future-weather {
        height: 25.5rem;
        width: 70rem;
    }
}

/* L */
@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
        font-size: 1.4rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .input-wrapper {
        width: 50%;
    }

    .current-weather {
        width: 28rem;
        aspect-ratio: 5 / 7;
        margin: 0;
    }
    .current-weather img {
        transform: translate(-10%, 15%);
    }
    .current-weather h2 {
        font-size: 1.75em;
        font-weight: 700;
    }
    .current-weather h3 {
        font-size: 1.1em;
        font-weight: 500;
    }
    .future-weather {
        height: 34rem;
        width: 40rem;
        margin: 0;
        border-radius: 0 20px 20px 0;
        border: 1px solid var(--clr-darkest);
        border-left: none;
    }
}
/* XL */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
        font-size: 1.575rem;
    }
    .input-wrapper {
        width: 45%;
    }
    .current-weather {
        width: 30rem;
    }
    .future-weather {
        height: 37rem;
        width: 42rem;
    }
}

/* XXL */
@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
        font-size: 1.575rem;
    }
    .input-wrapper {
        width: 40%;
    }
    .current-weather {
        width: 32rem;
    }
    .future-weather {
        height: 39rem;
        width: 44rem;
    }
}
