@import url('global-variables.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    position: fixed;
    width: 100%;
    height: 3rem;
    z-index: 1000;
    background-color: var(--secondary-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    /* padding: 0rem 15rem; */
    max-width: 90rem;
    
    color: var(--font-light-color);
}

.navbar-logo-regular {
    padding: 0.5rem 2rem;
    display: block;
}

.navbar-logo-mini {
    padding: 0.5rem 2rem;
    display: none;
}

.navbar-items {
    display: flex;
}

.navbar-items > a {
    padding: 0.8rem 2rem;
    height: 100%;
    border-left: solid var(--font-light-color) 2px;
    font-family: "Luengo W00 Light";
}

.navbar-items > a:last-child {
    border-right: 2px solid var(--font-light-color);
}

.navbar-ham-menu {
    display: none;
    height: 3rem;
    width: 3rem;
    margin: 0.5rem;
    /* border: solid green 2px; */
    position: relative;
    margin-right: 1.5rem;
}

.navbar-ham-menu span {
    display: block;
    height: 0.25rem;
    width: 100%;
    background-color: var(--font-light-color);
    border-radius: 0.25rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .3s ease;
}

.navbar-ham-menu span:nth-child(1) {
    top: 25%;
}
.navbar-ham-menu span:nth-child(3) {
    top: 75%;
}

.navbar-ham-menu.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}
.navbar-ham-menu.active span:nth-child(2) {
    opacity: 0;
}
.navbar-ham-menu.active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.off-screen-menu {
    background-color: var(--secondary-color);
    /* height: 20rem; */
    padding: 3rem 0;
    width: 20rem;
    max-width: 30rem;
    position: fixed;
    top: 4rem;
    right: -35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "Luengo W00 Bold";
    font-size: 2rem;
    transition: .3s ease;
}

.off-screen-menu li {
    margin: 1rem 0;
}

.off-screen-menu.active {
    right: 0;
}

.navbar-dropdown {
    /* display: none; */
    list-style-type: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media screen and (max-width: 42rem) {
    header {
        height: 4rem;
    }
    .navbar-items {
        display: none;
    }
    .navbar-ham-menu {
        display: block;
    }
}