@import 'variables.css';

.box-shadow{
    -webkit-box-shadow: 0px 9px 5px 0px rgba(230, 221, 230, 0.58);
    -moz-box-shadow: 0px 9px 5px 0px rgba(230, 221, 230, 0.58);
    box-shadow: 0px 9px 5px 0px rgba(230, 221, 230, 0.58);
}

.nav-container .checkbox {
    display: none;
}

nav {
    width: 100%;
    position: fixed;
}

.navbar {
    position: relative;
    display: flex;
    align-content: center;
    justify-content: center;
    z-index: 9999;
}

.navbar .nav-container {
    width: 100%;
}

.navbar .menu-items {
    background-color: var(--white);
    width: 100%;
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar .nav-container li {
    list-style: none;
    margin: 22px;
}

.navbar .nav-container a {
    text-decoration: none;
    color: var(--text-black);
    font-weight: var(--regular);
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem;
    margin-left: 10px;
}

.navbar .nav-container a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--background-primary);
    transition: width .3s;
}

.navbar .nav-container a:hover::after {
    width: 100%;
}

.navbar .nav-container a.icon {
    margin-left: 10px;
}

.menu-items li:first-child {
    position: absolute;
    left: 200px;
}

/** Menu mobile**/
@media (max-width: 860px) {
    .navbar {
        display: block;
        position: fixed;
        width: 100%;
        box-shadow: 0 1px 4px rgb(146 161 176 / 15%);
        background-color: var(--white);
    }

    .navbar .menu-items {
        display: flex;
    }

    .navbar .nav-container li {
        list-style: none;
    }

    .navbar .nav-container a {
        text-decoration: none;
        color: var(--text-black);
        font-weight: var(--regular);
        font-size: 1.2rem;
        padding: 0.7rem;
    }

    .navbar .nav-container a:hover {
        font-weight: var(--bolder);
    }

    .nav-container {
        display: block;
        position: relative;
        height: 60px;
    }

    .nav-container .checkbox {
        position: absolute;
        display: block;
        height: 22px;
        width: 32px;
        top: 20px;
        left: 85%;
        z-index: 5;
        opacity: 0;
        cursor: pointer;
    }

    .nav-container .hamburger-lines {
        display: block;
        height: 22px;
        width: 32px;
        position: absolute;
        top: 17px;
        left: 85%;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .nav-container .hamburger-lines .line {
        display: block;
        height: 0.2rem;
        width: 100%;
        border-radius: 10px;
        background: var(--background-secondary);
    }

    .nav-container .hamburger-lines .line1 {
        transform-origin: 0% 0%;
        transition: transform 0.4s ease-in-out;
    }

    .nav-container .hamburger-lines .line2 {
        transition: transform 0.2s ease-in-out;
    }

    .nav-container .hamburger-lines .line3 {
        transform-origin: 0% 100%;
        transition: transform 0.4s ease-in-out;
    }

    .navbar .menu-items {
        padding-top: 120px;
        height: 100vh;
        width: 100%;
        transform: translate(-150%);
        display: flex;
        flex-direction: column;
        margin-left: -17%;
        padding-left: 50px;
        transition: transform 0.5s ease-in-out;
        text-align: center;
        background-color: var(--white);

    }

    .navbar .menu-items li {
        margin-bottom: 1.2rem;
        font-size: 1.5rem;
        font-weight: var(--regular);
    }

    .nav-container input[type="checkbox"]:checked~.menu-items {
        transform: translateX(0);
    }

    .nav-container input[type="checkbox"]:checked~.hamburger-lines .line1 {
        transform: rotate(48deg);
    }

    .nav-container input[type="checkbox"]:checked~.hamburger-lines .line2 {
        transform: scaleY(0);
    }

    .nav-container input[type="checkbox"]:checked~.hamburger-lines .line3 {
        transform: rotate(-48deg);
    }

    .nav-container input[type="checkbox"]:checked~.logo {
        display: none;
    }

    .menu-items li:first-child {
        position: initial;
    }


}

@media (min-width: 861px) and (max-width: 1024px) {
    .menu-items img {
        width: 8vh;
    }
}