/* Theming */

:root{
    --white: #FFFFFF;
    --black: #000000;
    --nmaiblack: #101820;
    --grey: #85888C;
    --yellow: #F1C304;
    --orange: #BF5911;
    --orange2: #CE6821;
    --orange3: #8C410D;
}

/* Reset */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a{
    text-decoration: none;
}

ul{
    list-style: none;
}

/* Header */
.header{
    background-color: var(--white);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 5001;
}

/* Logo */
	.logo {
    	display: inline-block;
    	margin: 0;
	}

    .logo img {
    	width: 70px;
    }
    
    @media screen and (min-width: 768px) and (max-width: 1000px) {
    	.logo {
    		margin: 10px 10px 0;
		}
    	.logo img {
    		height: 100%;
    	}
    	
    }
    @media screen and (min-width: 1001px) {
    	.logo {
            margin: 15px;
        }
    	.logo img {
            width: 100%;
    	}
    	
    }
    
 
/* Nav menu */
.nav{
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: var(--white);
    overflow: hidden;
}
.menu a {
    display: block;
    padding: 10px 0;
    color: var(--nmaiblack);
	text-align: center;
	font-size: 16px;
    font-family: 'MetaOT-Bold', sans-serif;
    font-weight: 900;
}
.menu a.active {
    	color: var(--nmaiblack);
    	text-decoration: underline;
    }
@media screen and (min-width: 768px) and (max-width: 1000px)  {
	.menu a {
	  	display: block;
		float: right;
		padding: 35px 30px;
	}	
}
.menu a:hover{
    color: var(--black);
    text-decoration: underline;
}

.nav{
    max-height: 0;
    transition: max-height .5s ease-out;
}

/* Menu Icon */

.hamb{
    cursor: pointer;
    float: right;
    padding: 40px 20px;
}


.hamb-line {
    background: var(--black);
    display: block;
    height: 2px;
    position: relative;
    width: 19px;
    
}

.hamb-line::before,
.hamb-line::after{
    background: var(--black);
    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;
}

/* 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;
}


/* Responsiveness */

@media (min-width: 768px) {
    .header{
    	background-color: var(--nmaiblack);
    }
    .nav{
        max-height: none;
        top: 0;
        position: relative;
        float: right;
        width: fit-content;
        background-color: transparent;
        height: auto;
    }

    .menu li{
        float: left;
    }
    
	.menu a {
   	 	display: block;
    	padding: 30px;
    	color: var(--white);
		text-align: center;
    	font-family: 'MetaOT-Bold', sans-serif;
    	font-weight: 900;
        font-size: 1rem;
        border-bottom: solid 4px var(--nmaiblack);
        border-right: none;
	}
    .menu a:visited{
        background-color: transparent;
        color: var(--white);
    }
    .menu a:hover{
        background-color: transparent;
        color: var(--orange);
        text-decoration: underline;
    }
    .menu a.active {
    	color: var(--orange);
    	text-decoration: underline;
        color: var(--orange);
    	border-bottom: solid 4px var(--orange2);
        border-right: none;
    	text-decoration: none;
    }
    
    .hamb{
        display: none;
    }

}

@media screen and (min-width: 1001px) {
    .nav{
        max-height: none;
        top: 0;
        position: relative;
        float: none;
        width: inherit;
        background-color: transparent;

    }
	.menu a {
	  	display: block;
		padding: 30px 20px 30px 10px;
        border-right: solid 4px var(--nmaiblack);
        border-bottom: none;
        font-size: 1.1rem;
	}
	.menu li {
    	display: contents;
    	
    }
    .menu a:visited{
        background-color: transparent;
        color: var(--white);
    }
    .menu a:hover{
        background-color: transparent;
        color: var(--orange2);
        text-decoration: underline;
    }
    .menu a.active {
    	color: var(--orange2);
    	border-right: solid 4px var(--orange2);
        border-bottom: none;
    	text-decoration: none;
    }
}