@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');
body {

    background-color: #0C1114;
    padding: 0;
    color: white;
    font-family: "Lexend", lucida;
}
a {
    text-decoration: none;
    scroll-behavior: smooth;
    color: white;
}


/* header */
header {
    position: relative;
    padding: 0 2rem;
    z-index: 100;
}

.navbar {
    width: 90%;
    height: 5vh;
    max-height: 1200px;
    margin: 0  auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 3.5rem;
    cursor: pointer;
}


.navbar ul li {
    list-style: none;
    display: inline-block;
    margin: 0 20px;
    position: relative;
    
}
.navbar ul li a{
    text-decoration: none;
    color: #fff;
    font-size: 25px;
    
}
.navbar ul li::after{
    content: '';
    height: 3px;
    width: 0%;
    background: #009688;
    position: absolute;
    left: 0;
    bottom: -10px;
    transition: 0.5s;
}
.navbar ul li:hover::after{
    width: 100%;
}

.navbar .toggle_btn {
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    display: none;
}


.login_btn, .signedin_btn {
    color: white;
    border-style: solid;
    border-width: 2px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: scale 0.2 ease;
}

.login_btn:hover, .signedin_btn:hover {
    scale: 1.05;
}
.login_btn:active .signedin_btn:active {
    scale: 0.95;
}

/* Dropdown menue */

.dropdown_menue {
    display: none;
    position: absolute;
    right: 2rem;
    top: 60px;
    height: 0;
    width: 300px;
    background-color: #ffffff08;
    backdrop-filter: blur(15px);
    border-radius: 10px;
    overflow: hidden;
    transition: height 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown_menue.open {
    height: 250px;
}

.dropdown_menue li {
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown_menue .login_btn ,
.dropdown_menue .signedin_btn {
    width: 100%;
    display: flex;
    justify-content: center;
}
/* Responsive nav bar */

@media(max-width: 929px) {
    .navbar .links,
    .navbar .login_btn, 
    .navbar .signedin_btn{
        display: none;
    }
    .navbar .toggle_btn {
        display: block;
    }
    .dropdown_menue {
        display: block;
    }
}

@media (max-width: 576px) {
    .dropdown_menue {
        left: 2rem;
        width: unset;
    }
}

/* Login box */



.wrapper-box {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 99%;
    height: 100vh;
}
.wrapper {
    width: 400px;
    height: 440px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transform: scale(0);
    transition: transform 0.5s ease, height 0.2s ease;
}

.wrapper.active-popup {
    transform: scale(1);
    z-index: 10;
}

.wrapper.active {
    height: 520px;
}

.form-box {
    width: 80%;
    padding: 40px;
}

.wrapper .form-box.login {
    transition: transform 0.18s ease;
    transform: translateX(0);
}

.wrapper.active .form-box.login{
    position: absolute;
    transition: none;
    transform: translateX(-400px);
}
.wrapper .form-box.register {
    position: absolute;
    transform: translateX(400px);
}

.wrapper.active .form-box.register {
    transition: transform 0.18s ease;
    transform: translateX(0);
}

.wrapper .icon-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    background-color: #162938;
    font-size: 2em;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 20px;
    cursor: pointer;
    z-index: 1;
}

.form-box h2 {
    font-size: 2em;
    text-align: center;
}

.input-box {
    position: relative;
    width: 100%;
    height: 50px;
    border-bottom: 2px solid;
    margin: 30px 0;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-5);
    font-size: 1em;
    font-weight: 500;
    pointer-events: none;
    transition: 0.5s;

}

.input-box input:focus~label,
.input-box input:valid~label {
    top: -5px;
}

.input-box input {
    width: 80%; /* Changed from 100% to 80 to stop overflow from autofill!! TEMP */
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 1em;
    font-weight: 600;
    padding: 0 35px 0 5px;
}

.input-box .icon {
    position: absolute;
    right: 8px;
    font-size: 1.2em;
    line-height: 57px;
}

.remember-forgot {
    font-size: 0.9em;
    color: #9c9c9c;
    font-weight: 500;
    margin: -15px 0 15px;
    display: flex;
    justify-content: space-between;
}

.remember-forgot label input {
    accent-color: #9c9c9c;
    margin-right: 3px;
}

.remember-forgot a {
    color: #9c9c9c;
    text-decoration: none;
}

.remember-forgot a:hover {
    text-decoration: underline;
}

.btn {
    width: 100%;
    height: 45px;
    background-color: rgba(212, 212, 212, 0.851);
    border: none;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
}

.login-register {
    font-size: 0.9em;
    color: #9c9c9c;
    text-align: center;
    font-weight: 500px;
    margin: 25px 0 10px;
}

.login-register p a {
    color: #9c9c9c;
    text-decoration: none;
    font-weight: 600;
}

.login-register p a:hover { 
    text-decoration: underline;
}



/* Footer */

.footer-main {
    position: relative;
    display: flex;
    padding: 0.8rem 0;
    background-color: #2323246c;
    margin: auto;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.footer-block {
    position: relative;
    display: flex;
    gap: 20px;
    flex-direction: column;
    
}

.footer-block h1{
    padding: 0.1rem 0.5rem;
    border-bottom: 2px solid #39393ad0;
    margin: 0;
}

.footer-block a {
    padding-left: 0.8rem;
    width: 90%;
    font-weight: 100;
}

.footer-end {
    display: flex;
    background-color: #1b1b1c78;
    height: 2rem;
    margin: auto;
}

.footer-end a img{
    height: 100%;
    aspect-ratio: 1/1;
}

.footer-end p {
    margin: auto 0;
    font-weight: 100;
    font-size: 0.9rem;
    padding: 8px;
}

@media (max-width: 600px) {
    .footer-main {
        flex-direction: column;
        margin: auto;
    }
}