@import './variables.css';

#brand {
    display: flex;
    align-items: center;
}

#brand img {
    height: 32px;
    width: 32px;
}

nav ul,
.mobile-menu {
    list-style: none;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

header {
    position: sticky;
    padding: 0 20px;
    height: 7vh;
    max-height: 70px;
    display: flex;
    justify-content: space-between;
    z-index: 999;
}

header a {
    text-decoration: none;
}

header ul a {
    font-size: 1rem;
    line-height: 1.2rem;
    color: var(--primary-font-color);
}

header ul li {
    padding: 5px;
    margin-left: 10px;
}
header ul li:hover {
    transform: scale(1.1);
    transition: 0.3s;
}

header .active,
header ul li a:hover {
    color: var(--primary-font-active-color);
}

#register,
#register-mobile,
#signup,
#signup-mobile {
    border-radius: 5px;
    padding: 2px 8px;
}

#register,
#register-mobile {
    border: 1px solid var(--secondary-font-color);
}

/* signup element potentially not going to be used */
#signup,
#signup-mobile {
    border: 1px solid #ff3860;
}

#signup a,
#signup-mobile a {
    color: #ff3860;
}

#register a,
#register-mobile a {
    color: var(--secondary-font-color);
}

#hamburger-icon {
    margin: auto 0;
    display: none;
    cursor: pointer;
}

#hamburger-icon .bar1,
#hamburger-icon .bar2,
#hamburger-icon .bar3 {
    width: 35px;
    height: 3px;
    background-color: var(--background-color);
    margin: 6px 0;
    transition: 0.4s;
}

.open .bar1 {
    -webkit-transform: rotate(-45deg) translate(-6px, 6px);
    transform: rotate(-45deg) translate(-6px, 6px);
}

.open .bar2 {
    opacity: 0;
}

.open .bar3 {
    -webkit-transform: rotate(45deg) translate(-6px, -8px);
    transform: rotate(45deg) translate(-6px, -8px);
}

.open .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.open .mobile-menu-bg {
    display: unset;
}

.mobile-menu {
    list-style: none;
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    height: calc(100vh - 50px);
    width: 100%;
}

.mobile-menu-bg {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    height: calc(100vh - 50px);
    width: 100%;
    opacity: .7;
    background-color: black;
}

.mobile-menu ul {
    background-color: orange;
}

.mobile-menu li {
    margin: 3px 0 3px 0;
    /*border-bottom: 1px dotted white;*/
}

.mobile-menu a {
    width: 100%;
    text-align: center;
}

@media only screen and (max-width: 835px) {
    header nav {
        display: none;
    }

    #hamburger-icon {
        display: block;
    }
}