
/* Nav menu */
.nav{
    width: 100%;
    /*height: 100%;
    position: fixed;*/
    background-color: #fff;
    overflow: hidden;
    margin-top: 7px;
    text-align: center;
}

.nav ul li{
    border-bottom: 1px solid #165c84;
}

.menu img{
    height: 35px;
    margin-top: -8px;
}

.menu a{
    display: block;
    padding: 15px;
    color: #165c84;
    font-weight: 600;
}
.menu a:hover{
    background-color: #ffd77d;
}
.nav{
    max-height: 0;
    transition: max-height .5s ease-out;
}

/* Menu Icon */
.hamb{
    cursor: pointer;
    float: right;
    padding: 40px 20px;
}/* Style label tag */

.hamb-line {
    background: #165c84;
    display: block;
    height: 2px;
    position: relative;
    width: 24px;

} /* Style span tag */

.hamb-line::before,
.hamb-line::after{
    background: #165c84;
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}
.hamb-line::before{
    top: 8px;
}
.hamb-line::after{
    top: -8px;
}

.side-menu {
    display: none;
} /* Hide checkbox */

/* Toggle menu icon */
.side-menu:checked ~ nav{
    max-height: 350%;
}
.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: 80px;
        top: 0;
        position: relative;
        float: right;
        width: fit-content;
        margin-top: 0px;
        padding-right: 10px;
    }
    .nav ul li{
        border-bottom: 0;
    }
    .menu li{
        float: left;
        height: 100px;
        padding-top: 40px;
        font-size: 17px;
    }

    .menu img{
        margin-top: -20px;
    }
    .menu a:hover{
        background-color: transparent;
        color: #f46e6e;        
    }

    .hamb{
        display: none;
    }
}