:root{
    --white: #f9f9f9;
    --black: #302a59;
    --grey: #4c4389;
}

/* Reset */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:"Nunito Sans";
}



a{
    text-decoration: none;
}

ul{
    list-style: none;
}

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

/* Logo */
.logo{
    display: inline-block;
    color: var(--white);
    font-size: 0px;display:none;

}

/* Nav menu */
.nav{
    width: 100% !important;
    height: 100%;
    background-color: var(--black);
    overflow: hidden;
    
}
.menu{display:block;}

.menu li{flex-grow: 1; flex-shrink: 1; flex-basis: 0; vertical-align:middle;padding:20px;}
.menu a{
    display: block;
    padding: 10px 20px; max-width:auto;
    color: var(--white);

}

.menu a:hover{
    background-color: var(--grey);
}

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

/* Menu Icon */

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


.hamb-line {
    background: var(--white);
    display: block;
    height: 2px;
    position: relative;
    width: 24px;
    margin-left:25px;
}

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

/* 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) {
    .nav{
        max-height: none;
        top: 0;
        position: relative;
        width: fit-content;
        background-color: transparent;

    }

.menu {display:flex; vertical-align: stretch;width:100%;}
    .menu li{
        flex-grow: 0; flex-shrink: 1; flex-basis: auto; vertical-align:middle;padding:10px;
    }

    /*.menu a:hover{
        background-color: transparent;
        color: var(--grey);
        max-width:200px;
    }*/
    
    .hamb{
        display: none;
    }

}