html, body {
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

#main_navbar {
    flex: 0 0 auto;
    margin: 0px;
    border-radius: 0px;
}

#body {
    flex: 1 1 auto;
    position: relative;
    overflow: auto;
}

.flash p {
    padding: 15px;
}

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

.menu a{
    display: block;
    padding: 30px;
    color: var(--white);

}

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

.top_menu{
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s ease-out;
}

li#account-drop a {
    display: block;
    float: left;
    padding: 10px 35px;
    color: white;
    text-decoration: none;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

/* Menu Icon */

.hamb {
    cursor: pointer;
    float: left;
    padding: 25px 20px;
    margin-bottom: 0;
}


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

.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;
}

#errorModal {
    display: flex;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
}
 
#errorModal .modal-content {
    margin: 15% auto;
    width: 50%;
    max-height: 80%;
    overflow: auto;
}

/* Responsiveness */

@media (max-width: 768px) {
    li#account-drop p {
        margin: 0;
    }
    nav.top_menu a {
        float: left;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .top_menu{
        max-height: none;
        top: 0;
        position: relative;
        float: left;
        width: fit-content;
    }

    .menu li{
        float: left;
    }

    .menu a:hover{
        background-color: transparent;
        color: var(--grey);
        
    }
    
    .hamb{
        display: none;
    }

}
@media (pointer: coarse) {
    body {
        height: 86vh;
    }
}