/*  menu styling is from the website: https://blog.logrocket.com/create-responsive-mobile-menu-with-css-no-javascript/ */

/*style the header and logo */
header{
    background-color: #264d73;
    width: 100%;
    height: 50px;
	position: sticky;
	top: 50px;
	margin-bottom: 100px;
}
header img {
  position: fixed;
  left: 20px;
  top: 15px;
  width: 120px;
}
header ul {
    list-style-type: none;
}

/* Nav menu */
nav{
    width: 100%;
    height: 100%;
	position: fixed;
	background-color: #264d73;
    overflow: hidden;
    padding-left: 15px;
    z-index: 9999;
}
nav{
    max-height: 0;
    transition: max-height .5s ease-out;
}

/* style menu for mobile */
.menuItem a{
	display: block;
	font-size: .95em;
    padding-top: 14px; 
    color: white;
}

.menuItem a:hover {
	color: yellow;
}

.current span{
	border-bottom: 2px solid white;
}


/* Display Hamburger Menu Icon */
.hamb{
    cursor: pointer;
    float: right;
    padding: 30px 20px 20px 20px;
}/* Style label tag */

.hamb-line {
    background: white;
    display: block;
    height: 2px;
    position: relative;
    width: 24px;

} /* Style span tag */
.hamb-line::before,
.hamb-line::after{
    background: white;
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}
.hamb-line::before{
    top: 5px;
}
.hamb-line::after{
    top: -5px;
}

.side-menu {
    display: none;
} /* Hide checkbox */


/* Toggle menu icon */
.side-menu:checked ~ nav{
    max-height: 100%;
}
.side-menu:checked ~ .hamb .hamb-line {
    background: transparent;
}
.side-menu:checked ~ .hamb .hamb-line::before {
    transform: rotate(-45deg);
    top:0;
}
.side-menu:checked ~ .hamb .hamb-line::after {
    transform: rotate(45deg);
    top:0;
}


/* Style menu for desktop*/
@media (min-width: 800px) {
    
    .hamb{
        display: none;
    }    
    nav{
        max-height: none;
        top: 0;
        position: relative;
        float: right;
        width: fit-content;
        overflow: visible;
    } 
    .menu{        
        display: flex;
        justify-content: space-between;
        position: relative;
    }    
    .menuItem{
        float: left;
        padding-right: 30px;
    }  
        
}
