/* NAVBAR */

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
    margin: auto;
    padding: 0 2rem;
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    @media(max-width: 992px) {
        padding: 0 1.5rem;
    }
}

#navbar-inner {
    display: flex;
    width: 100%;
    @media(max-width: 992px) {
        justify-content: space-between;
    }
}

.navbar-logo {
    flex: initial;
    margin-right: 2.4rem;
    color: #444;
    margin-left: 5px;
    a {
        padding: 0 !important;
    }
    img {
        height: 42px;
        padding-top: 3px;
    }
    
    @media(max-width: 991px) {
        margin: 0;
    }
}

.navbar-toggle {
    display: none;
    justify-content: center;
    align-items: center;
    i {
        font-size: 23pt;
        color: #262626;
        &:before {
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            font-style: normal;
            content: '\f0c9';
        }
    }
    &.active {
        z-index: 1;
        i {
            color: white;
            &:before {
                content: '\f00d';
            }
        }
    }
    @media(max-width: 992px) {
        display: flex;
    }
}
.navbar-items {
    display: flex;
    flex: 1;
    flex-wrap: nowrap;
    align-items: center;
    min-width: 400px;
}

.navbar-actions {
    text-align: right;
    display: flex;
    align-items: center;
}

@media(max-width: 991px) {
    .navbar-items {
        top: 0;
        ul {
            padding-top: 20px;
        }
    }
    .navbar-actions {
        bottom: 0;
        ul {
            padding-bottom: 20px;
        }
    }
    .navbar-items,
    .navbar-actions {
        opacity: 0;
        pointer-events: none;
        position: fixed;
        width: 100%;
        height: 50%;
        min-width: auto;
        background: #267350;
        color: white;
        left: 0;
        transition: opacity 0.5s;
        &.active {
            opacity: 1;
            pointer-events: all;
        }
        ul {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            height: 100%;
            justify-content: space-evenly;
        }
    }
}

.navbar li {
    display: inline-block;
    padding: 0 .5em;
    vertical-align: top;
}

.navbar a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .5em;
    position: relative;
    color: inherit;
    text-decoration: none;

    &:after {
        content: "";
        position: absolute;
        bottom: -3px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 1px;
        background-color: currentColor;
        transition: all .2s ease-out;
    }

    @media(max-width: 992px) {
        font-size: 12pt;
    }
}

.navbar-items .active a {
    color: $primary;
    font-weight: 700;
    @media(max-width: 992px) {
        color: white;
        &:after {
            display: none;
        }
    }
}

.navbar-items .active a:after {
    width: calc(100% - 1em);
}

.navbar-items a:hover:after {
    width: calc(100% - 1em);
}

.navbar {
    .navbar-search {
        display: none;
    }
}


.navbar-search {
    display: flex;
    position: relative;
    margin: 0 10px;
}

.navbar-search button {
    background: #efefef;
}

@media(max-width: 1350px) {
    .navbar {
        font-size: 11pt
    }
    .navbar-search {
        display: none;
    }
}

.navbar-search input {
    display: block;
    width: 200px;
    height: 35px;
    color: #22252a;
    background-color: #e6e9ee;
    transition: all .2s ease-out;
    border: 1px solid #e6e9ee;
    border-radius: 3px;
    padding: .4em 1em;
    outline: none;
}

.navbar-search input:focus {
    background-color: #fff;
    box-shadow: 0 0 4px rgba(34, 37, 42, .4);
    outline: none;
}

.navbar-search button {
    outline: none;
    width: 45px;
    text-align: center;
    color: #545454;
    border: none;
    border-radius: 0 5px 5px 0;
    font-size: 15px;
}

.navbar-search button:hover {
    font-size: 16px;
}

.navbar-profile-photo {
    display: flex;
    justify-items: center;
    align-items: center;

    img {
        border-radius: 50%;
        height: 30px;
    }
    span {
        padding-left: 10px;
    }
}

.navbar-icon {
    font-size: 14pt;
    margin-right: 7px;
}

.navbar-login {
    background: #ffffff;
    color: black;
    border: 1px solid $primary;
    border-radius: 3px;
    margin-right: 10px;
    transition: 1s;
    @media(max-width: 992px) {
        margin: 0;
        background: none;
        color: inherit;
    }
}

.navbar-register {
    background: $primary;
    color: white;
    border-radius: 3px;
    transition: 1s;
    border: 1px solid $primary;
}