@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@100;200;300;400;500;600;700;800;900&display=swap');

*,
::after,
::before{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: 'Work Sans', sans-serif;
    background-color: rgb(7, 7, 7);
}
.container{
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
#wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: snow;
    width: 90%;
    height: 58vh;
    border-radius: 14px; 
    padding: 1rem;  
}
#wrapper h1{
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-top: 0.6rem;
}
.tab-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6rem;
    margin-top: 1.8rem;
}
.tab{
    font-size: 12px;
    padding: 6px;
    cursor: pointer;
}
.tab.current-tab{
    background-color: rgba(219, 226, 239, 0.6);
    border: 1px dashed #1B1B1B;
    border-radius: 8px;
}
.weather-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.grant-location-container{
    margin-top: 4rem;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}
.grant-location-container h2{
    font-size: 21px;
    /* margin-top: 1.2rem; */
}
.grant-location-container p{
    font-size: 0.7rem;
    margin-top: -1.125rem;
}
.grant-access-btn{
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background-color: #1B1B1B;
    color: white;
    transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
}
.grant-access-btn:hover {
    box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
    transform: translateY(-2px);
}
.grant-access-btn:active {
    box-shadow: none;
    transform: translateY(0);
}
.form-container{
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 1.4rem;
    gap: 18px;
}
.form-container-down{
    animation: sbox-down 220ms linear 1 normal;
    animation-fill-mode: forwards;
}
.form-container-up{
    animation: sbox-up 220ms cubic-bezier(.23, 1, 0.32, 1) 1 normal;
    animation-fill-mode: forwards;
}
.search-box{
    width: 180px;
    height: 30px;
    border-radius: 20px;
    padding: 4px 18px;
    border: 1px solid #1B1B1B;
    font-size: 14px;
    outline: none;
}
.search-box::placeholder{
    font-family: 'Work Sans', sans-serif;
}
.search-btn{
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background-color: white;
    color: #06283D;
    border: 1px solid #1B1B1B;
    cursor: pointer;
    transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
}
.search-btn:hover {
    box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
    transform: scale(0.98);
}
.loading-container{
    margin-top: 3rem;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.loading-container img{
    width: 190px;
    -webkit-user-drag: none;
}
.loading-container p{
    margin-top: -3rem;
    font-size: 18px;
}
.user-info-container{
    width: 100%;
    display: none;
    flex-direction: column;
    margin-top: 2.6rem;
    gap: 0.4rem;
}
.city-name{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.city-name p{
    font-size: 28px;
    font-weight: 700;
}
.city-name img{
    height: 24px;
    -webkit-user-drag: none;
}
.disp{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.6rem;
}
.disp h3{
    margin-top: 0.6rem;
    font-size: 34px;
    font-weight: 700;
}
.weather-icon{
    width: 125px;
}
.right-side-disp{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1.4rem;
}
.right-side-disp p{
    margin-left: -1.6rem;
    margin-top: 0.2rem;
}
.parameters-container{
    margin-top: 3.4rem;
    margin-bottom: 1.4rem;
    width: 100%;
    display: flex;
    justify-content: space-around;
}
.parameter{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.325rem;
}
.parameter i{
    font-size: 21px;
}
.parameter div p{
    font-size: 12px;
    text-align: center;
}
.parameter-data{
    color: #1B1B1B;
    font-size: 13px;
    font-weight: 700;
}
.page-not-found{
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.page-not-found p{
    margin-top: -1rem;
    font-size: 18px;
    font-weight: 600;
}





.active{
    display: flex;
}


@media only screen and (min-width: 575px){
    #wrapper{
        width: 550px;
        min-height: 75vh;
        margin: 5rem auto;
    }
    #wrapper h1{
        font-size: 2rem;
    }
    .tab-container{
        margin-top: 1rem;
        gap: 14rem;
    }
    .tab{
        font-size: 17px;
        padding: 6px;
    }
    .grant-location-container{
        margin-top: 2.4rem;
        gap: 1.6rem;
    }
    .grant-location-container h2{
        font-size: 28px;
    }
    .grant-location-container p{
        font-size: 0.9rem;
        margin-top: -0.8rem;
    }
    .grant-location-container p{
        font-size: 0.9rem;
        margin-top: -0.8rem;
    }
    .form-container{
        margin-top: 1rem;
    }
    .search-box{
        width: 280px;
        height: 35px;
        font-size: 16px;
    }
    .search-btn{
        height: 35px;
        width: 35px;
    }
    .loading-container{
        margin-top: 0;
    }
    .loading-container img{
        width: 240px;
    }
    .user-info-container{
        margin-top: 1rem;
    }
    .city-name p{
        font-size: 42px;
        font-weight: 700;
    }
    .city-name img{
        height: 32px;
        -webkit-user-drag: none;
    }
    .disp h3{
        font-size: 58px;
        font-weight: 700;
    }
    .weather-icon{
        width: 180px;
        -webkit-user-drag: none;
    }
    .right-side-disp p{
        margin-left: -3.6rem;
    }
    .parameter{
        gap: 1rem;
    }
    .parameter i{
        font-size: 32px;
    }
    .parameter div p{
        font-size: 16px;
    }
    .page-not-found{
        width: 380px;
    }
}


@keyframes sbox-down {
    0%{
        scale: 1;
        transform: translateY(0%);
    }
    25%{
        scale: 1.1;
        transform: translateY(70%);
    }
    50%{
        transform: translateY(140%);
    }
    75%{
        scale: 1.2;
        transform: translateY(210%);
    }
    100%{
        scale: 1.3;
        transform: translateY(280%);
    }
}
@keyframes sbox-up {
    0%{
        scale: 1.3;
        transform: translateY(270%);
    }
    25%{
        scale: 1.2;
        transform: translateY(210%);
    }
    50%{
        transform: translateY(140%);
    }
    75%{
        scale: 1.1;
        transform: translateY(70%);
    }
    100%{
        scale: 1;
        transform: translateY(0);
    }
}