﻿header {
    width: 100%;
    height: 65px;
    background-color: white;
    box-shadow: 0px 4px 20px 5px rgba(0, 0, 0, 0.35);
    margin-bottom: 1em;
    position: fixed;
    top: 0;
    left: 0;
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

    nav > div {
        padding: 1rem;
        align-content: center;
        vertical-align: middle;
    }


    /* LEFT */

    nav > .nav-left {
        display: flex;
        flex-direction: row;
        gap: 5px;
        height: 100%;
        margin-left: 1.5rem;
        vertical-align: middle;
        padding: 0;
    }


@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


nav > .nav-left > #nav-logo-ticks {
    height: 55px;
    margin: auto;
    margin-left: 0px;
    margin-right: 0px;
    animation: rotate 35s linear infinite;
    cursor: pointer;
}


nav > .nav-left > #nav-logo-text {
    height: 30px;
    margin: auto;
    margin-left: 0px;
    margin-right: 0px;
    cursor: pointer;
}

/* CENTER */
nav > .nav-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

    nav > .nav-center > h2 {
        color: #1C70D8;
        font-family: 'Open Sans Extra Bold';
        font-weight: 900;
        font-size: 2.2rem;
    }


/* RIGHT */

nav > .nav-right > .nav-hamburger {
    display: none;
}

.nav-bar {
    display: block;
    width: 25px;
    height: 3px;
    margin-top: 6px;
    background: #1C70D8;
}

nav > .nav-right > ul {
    margin-bottom: 0;
    margin-right: 0.5rem;
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
}

    nav > .nav-right > ul > li {
        list-style: none;
    }


        nav > .nav-right > ul > li > a {
            text-decoration: none;
            color: #000000;


            font-family: 'Open Sans Bold';
            font-weight: 500;
            font-size: 1.4rem;


            margin: 0.5rem 0.5rem 0.5rem 0.5rem;
            vertical-align: middle;
        }

        nav > .nav-right > ul > li > #nav-login-btn {
            background: #1C70D8;
            border: none;
            border-radius: 5px;
            padding: 4px 15px 4px 15px;
            margin: 5px 10px 5px 10px;
            text-decoration: none;
            color: white;
            font-family: 'Open Sans Bold';
            font-weight: 500;
            font-size: 1.5rem;
        }


/* BOOTSTRAP DROPDOWN */

#home-dropdown-btn {
    background: none;
    color: black;
    border: none;
    font-size: 1.4rem;
    font-weight: 500;
    font-family: 'Open Sans Bold';
    padding: 0;
}

#home-dropdown-item {
    padding: 1rem 1.5rem 1rem 1.5rem;
    color: black;
    font-size: 1.4rem;
    font-weight: 500;
    font-family: 'Open Sans Bold';
    background: white;
    --bs-dropdown-link-active-bg: white !important;
}




/* RESPONSIVE */


/* TABLET */
@media only screen and (max-width: 1111px) {

    nav > .nav-right > ul {
        position: fixed;
        flex-direction: column;
        left: -200%;
        top: 65px;
        width: 100%;
        margin-bottom: 10px;
        padding: 2rem 0rem 2rem 0rem;
        background-color: #ffffff;
        box-shadow: inset 0px 5px 5px -3px rgba(0, 0, 0, 0.40);
        border-bottom: 1px solid #00000023;
        align-content: center;
    }


        nav > .nav-right > ul > li {
            text-align: center;
        }

            nav > .nav-right > ul > li > a {
                font-size: 1.6rem;
                color: #1C70D8;
                display: block;
                padding: 8px;
            }

            nav > .nav-right > ul > li:hover {
                background-color: #1c70d810;
            }



        nav > .nav-right > ul > #nav-login-li:hover {
            background-color: #ffffff00;
        }





        nav > .nav-right > ul > li > #nav-login-btn {
            font-size: 1.6rem;
            padding: 5px 0px 5px 0px;
            margin: auto;
            max-width: 25%;
        }


    nav > .nav-right > .nav-hamburger {
        display: block;
        cursor: pointer;
    }


        nav > .nav-right > .nav-hamburger.active .nav-bar:nth-child(2) {
            opacity: 0%;
        }

        nav > .nav-right > .nav-hamburger.active .nav-bar:nth-child(1) {
            transform: translateY(9px) rotate(45deg);
        }

        nav > .nav-right > .nav-hamburger.active .nav-bar:nth-child(3) {
            transform: translateY(-9px) rotate(-45deg);
        }

    nav > .nav-right > ul.active {
        left: 0px;
    }

    /* BOOTSTRAP DROPDOWN RESPONSIVE */


    #home-dropdown {
        border: none;
        width: 100%;
    }


    #home-dropdown-item {
        color: #1C70D8 !important;
        text-align: center;
        border: none;
    }

    #home-dropdown.show {
        width: 100%;
        position: relative !important;
        transform: translate3d(0px, 0px, 0px) !important;
    }

    #home-dropdown-btn {
        width: 100%;
        color: #1C70D8;
        font-size: 1.6rem;
        padding: 0.8rem;
    }
}

/* MOBILE */
@media only screen and (max-width: 550px) {
    .nav-left > #nav-logo-text {
        display: none;
    }

    .nav-left > #nav-logo-ticks {
        max-height: 75%;
    }

    .nav-center > h2 {
        text-align: center;
    }

    .nav-right > p {
        display: none;
    }

    .right > button {
        display: none;
    }
}
