@import 'variables.css';

*{
    scroll-behavior: smooth;
}

.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: #fff;
    width: 100%;
    height: 10%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.navbar .nav-container li {
    list-style: none;
    margin: 22px;
}

.navbar .nav-container a {
    text-decoration: none;
    color: #63656A;
    font-weight: var(--regular);
    font-size: 1rem;
    display: block;
    padding: 0.5rem;
    margin-left: 10px;
    cursor: pointer;
}

.navbar .nav-container a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #19988B;
    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: 30px;
}

.navbar .nav-container li:last-child {
    margin-right: 4rem;
}

.menu-items button {
    padding: 10px 24px;
    gap: 10px;
    width: 84px;
    height: 40px;
    background: #19988B;
    border-radius: 100px;
    border: none;
    color: #fff;
    margin-left: 3rem;
    transition: 0.3s;
    cursor: pointer;
}

.menu-items button:hover {
    opacity: 0.5;
}

/** Menu mobile**/
@media (min-width: 249px) and (max-width: 1439px) {
    .navbar {
        display: block;
        position: fixed;
        width: 100%;
        box-shadow: 0 1px 4px rgb(146 161 176 / 15%);
        background-color: #fff;
    }

    .navbar .menu-items {
        display: flex;
    }

    .navbar .nav-container li {
        list-style: none;
    }

    .navbar .nav-container a {
        text-decoration: none;
        color: #19988B;
        font-size: 1.2rem;
        padding: 0.7rem;
    }

    .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: #63656A;
    }

    .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 {
        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: #fff;
        justify-content: center;

    }

    .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;
    }

    .menu-items button {
        margin: 0;
    }

    .navbar .nav-container li:last-child {
        margin: 0;
    }
}

