/*
Menu icon
----------------------------------------------------------------------------*/
.navbar-icon {
    margin-left: auto;
    display: inline-block;
    background: none;
    cursor: pointer;
    border: none;
    outline: 0 !important;
}

.navbar-icon > div {
    width: 35px;
    height: 5px;
    background-color: var(--textColor1);
    margin: 6px 0;
    transition: var(--transitionMd);
}

/* Rotate first bar */
.change .bar1 {
    -webkit-transform: rotate(-45deg) translate(-9px, 6px) ;
    transform: rotate(-45deg) translate(-9px, 6px) ;
}

/* Fade out the second bar */
.change .bar2 {
    opacity: 0;
}

/* Rotate last bar */
.change .bar3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px) ;
    transform: rotate(45deg) translate(-8px, -8px) ;
}

/*
General
----------------------------------------------------------------------------*/
nav * {
    text-decoration : none;
    color: inherit;
}
nav {
    background: var(--color1);
    height: 5em;
    display: flex;
    align-items: center;
    padding: 0 1.5em;
    box-sizing: border-box;
    overflow: hidden;
    position: fixed; /* Set the navbar to fixed position */
    top: 0; /* Position the navbar at the top of the page */
    width: 100%; /* Full width */
    z-index: 100;
}

.navbar-brand {
    height: 50%;
    display: flex;
    margin : auto
    align-items: center;
}

.navbar-brand img {
    height: 100%;
    vertical-align: middle;
}

.navbar-links-container {
    background: var(--color1);
    position: fixed;
    top: 5em;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    margin-left: auto;
    flex-direction: column;
    transition: var(--transitionMd);
    opacity: 0;
    visibility:hidden;
}

.navbar-links-container.change {
    visibility:inherit;
    opacity: 1;
}

/* Remove scroll when modal opened */

body.change {
  overflow-y: hidden;
  position: fixed;
}

.navbar-links-container > a {
    font-size: 1.4em;
    text-transform: lowercase;
    height: 4.4em;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*
Responsive
----------------------------------------------------------------------------*/
@media only screen and (min-width: 900px) {

    nav {
        padding: 0 2.5em;
    }

    .navbar-icon{
        display: none;
    }

    .navbar-links-container {
        opacity: 1;
        visibility:inherit;
        position: relative;
        top: 0;
        flex-direction: row;
        height: inherit;
        width: auto;
        align-items: center;
        margin-left: auto;
    }

    .navbar-links-container > a {
        font-size: 1em;
        margin: 0 1.2em;
        height: 2em;
        border-bottom: 0.15em solid transparent;
        padding-bottom: 0.1em;
    }

    .navbar-links-container > a:hover {
        transition: var(--transitionSt);
        border-bottom: 0.15em solid currentColor;
    }

    .active {
        border-bottom: 0.15em solid currentColor !important;
    }
}