@import './colors.css';

@font-face {
    font-family: Electro Shackle;
    src: url("../assets/fonts/electro_shackle/Electro\ Shackle.otf") format("opentype");
}

.header {
    height: 18vh;
    background-color: #0072c0;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 7%;
    position: relative;
}

.logo-heading {
    height: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
}



.header > nav {
    display: none;
}

.nav-item,
.nav-item > a {
    text-decoration: none;
    color: white;
}

    .nav-item.black, .nav-item.black > a {
        text-decoration: none;
        color: black;
    }

.menu-bars,
.menu-bars-close {
    cursor: pointer;
    color: white;
}

    .menu-bars:before {
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        content: "\f0c9";
        font-size: 22pt;
    }

.menu-bars-close {
    padding-right: 1.2em;
}

    .menu-bars-close:before {
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        content: "\f00d";
        font-size: 22pt;
    }


/* ---- Mobile menu ---- */

.dropdown, .dropup {
    position: relative;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 10rem;
    padding: .5rem 0;
    margin: .125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #0072c0;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: .25rem;
}

.dropdown-toggle::after {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: .25rem 1.5rem;
    clear: both;
    font-weight: 400;
    text-decoration: none;
    color: white;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.mobile-menu {
    position: fixed;
    height: 100vh;
    width: 100vw;
    background-color: #0072c0;
    z-index: 10;
}

.menu-options {
    height: 80vh;
}

    .menu-options > ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-evenly;
        height: 100%;
        padding-left:1rem;
    }

.nav-item.mobile, .dropdown-item.mobile {
    cursor: pointer;
    font-size: 16pt;
    transition: font-size 0.2s;
}

    .nav-item.mobile:hover {
        font-size: 18pt
    }




@media only screen and (min-width: 1024px) {
    .header {
        height: 12vh;
    }

    .menu-bars {
        display: none;
    }

    .header > nav {
        display: flex;
        align-items: center;
        width: 50%;
    }

        .header > nav > ul {
            width: 100%;
            display: flex;
            justify-content: space-evenly;
            align-items: center;
            cursor: pointer;
        }

    /* ------------ Navbar  ------------ */
    .navbar-expand-lg {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-flow: row nowrap;
        flex-flow: row nowrap;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
    }

        .navbar-expand-lg .navbar-collapse {
            display: -webkit-box !important;
            display: -ms-flexbox !important;
            display: flex !important;
            -ms-flex-preferred-size: auto;
            flex-basis: auto;
        }

        .navbar-expand-lg .navbar-nav {
            -webkit-box-orient: horizontal;
            -webkit-box-direction: normal;
            -ms-flex-direction: row;
            flex-direction: row;
        }

    .navbar-collapse {
        -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

    .navbar-nav {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        padding-left: 0;
        margin-bottom: 0;
        list-style: none;
        width: 100%;
        justify-content: space-evenly;
        align-items: center;
        cursor: pointer;
    }

    .navbar {
        position: relative;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        padding: .5rem 1rem;
    }

    .navbar-expand-lg .navbar-nav .dropdown-menu {
        position: absolute;
    }

    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
    }



    .nav-item > a, .dropdown-item {
        transition: color 0.5s, text-shadow 0.5s;
    }

        .nav-item > a:hover, .dropdown-item:hover {
            text-shadow: 2px 2px 1px rgba(0, 0, 0, 1);
        }
}
