/* Add a black background color to the top navigation */
.topnav {
    /* overflow: hidden; */
    background-color: #618689;
    position: fixed;
    /* Set the navbar to fixed position */
    top: 0;
    /* Position the navbar at the top of the page */
    width: 100%;
    /* Full width */
    height: 6rem;
    transition: 0.4s;
    /* Adds a transition effect when the padding is decreased */
    z-index: 1000;
    font-family: 'Montserrat';
}

/* Style the links inside the navigation bar */
.topnav a {
    float: left;
    display: block;
    color: #fff;
    text-align: center;
    padding: 14px;
    text-decoration: none;
    line-height: 25px;
    border-radius: 4px;
    position: relative;
    top: 0.35rem;
}

/* Add an active class to highlight the current page */
.active {
    background-color: none;
    color: black;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
    display: none;
}

.nav-right {
    display: block;
    margin-right: 2%;
    float: right;
    padding-top: 1.2%;
    /* font-family: 'Montserrat'; */
}

#nav-home {
    font-size: 25px;
    /* font-family: 'Montserrat'; */
}

#nav-medal {
    font-size: 25px;
    /* font-family: 'Montserrat'; */
}

/* Micrologos */
.micrologo {
    background-repeat: no-repeat;
    background-position: right;
    padding: 25px;
}

#home-logo {
    background-image: url(/img/micrologos/home.png);
}

#project-logo {
    background-image: url(/img/micrologos/educ.png);
}

#wet-logo {
    background-image: url(/img/micrologos/wet2.png);
}

#dry-logo {
    background-image: url(/img/micrologos/drylab.png);
}

#human-logo {
    background-image: url(/img/micrologos/human.png);
}

#medal-logo {
    background-image: url(/img/micrologos/medal.png);
}

#team-logo {
    background-image: url(/img/micrologos/team.png);
}

/* navbar-dropdown container - needed to position the navbar-dropdown content */
.navbar-dropdown {
    float: left;
    overflow: hidden;
}

/* Style the navbar-dropdown button to fit inside the topnav */
.navbar-dropdown .dropbtn {
    font-size: 25px;
    border: none;
    outline: none;
    color: #fff;
    /* font-family: 'Montserrat'; */
    padding: 8px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}

/* Style the navbar-dropdown content (hidden by default) */
.navbar-dropdown-content {
    display: none;
    position: absolute;
    background-color: #618689;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    /* margin-left: 15px; */
}

.dropbtn {
    position: relative;
    top: 0.35rem;
}

/* Style the links inside the navbar-dropdown */
.navbar-dropdown-content a {
    float: none;
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

/* Add a dark background on topnav links and the navbar-dropdown button on hover */
.topnav a:hover,
.navbar-dropdown:hover .dropbtn {
    /* background-color: #fca11c; */
    color: black;
}

/* Add a grey background to navbar-dropdown links on hover */
.navbar-dropdown-content a:hover {
    background-color: #54a1ab;
    color: black;
}

/* Show the navbar-dropdown menu when the user moves the mouse over the navbar-dropdown button */
.navbar-dropdown:hover .navbar-dropdown-content {
    display: block;
}

/* The sticky class is added to the navbar with JS when it reaches its scroll 
position */
.sticky {
    position: fixed;
    top: 0;
    width: 100%;
}

/* logo */
#logo {
    width: auto;
    padding: 10px;
    padding-top: 0%;
    margin-top: 0%;
    height: 90px;
    font-weight: bold;
    transition: 0.4s;
    float: left;
    position: relative;
    bottom: 0.55em;
}

#logo:hover {
    pointer-events: none;
}

/* When the screen is less than 600 pixels wide, hide all links, 
except for the first one ("Home"). Show the link that contains 
should open and close the topnav (.icon) */
@media screen and (max-width: 1213px) {

    .topnav a:not(:first-child),
    .navbar-dropdown .dropbtn {
        display: none;
    }

    .topnav a.icon {
        float: right;
        display: block;
        height: 30px;
        width: auto;
        position:sticky;
        top:1.3%;
    }
}


/* The "responsive" class is added to the topnav with JavaScript when the user 
clicks on the icon. This class makes the topnav look good on small screens 
(display the links vertically instead of horizontally) */
@media screen and (max-width: 1213px) {

    .topnav {
        margin-top: 0%;
    }

    .topnav.responsive {
        position: fixed;
    }

    .topnav.responsive .icon {
        display: block;
        float: right;
        height: 30px;
        width: auto;
    }

    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
        background-color: #618689;
    }

    .topnav.responsive .navbar-dropdown {
        float: none;
        background-color: #618689;
    }

    .topnav.responsive .navbar-dropdown-content {
        position: relative;
    }

    .topnav.responsive .navbar-dropdown .dropbtn {
        display: block;
        width: 100%;
        text-align: left;
    }
}
