/* The side navigation menu */

.sidenav {
    height: 100%;
    overflow-y: hidden;
    width: 300px;
    transform: translateX(-270px); /* change margin with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 1000;
    top: 0;
    left: 0;
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
    text-align: left;
    background: linear-gradient(to right, #1c1c1c, transparent 90%);
}

.sidenav.sidenav-open {
    transform: translateX(0);
    overflow-y: auto;
}


#sidenav-scroll {
    position: absolute;
    padding: 80px 0 50px 0;
    width: 100%;
}

/* The navigation menu links */

.sidenav a {
    padding: 0;
    margin: 0;
    text-decoration: none;
    font-size: 20px;
    color: #f0f0f0;
    display: inline-flex;
    transition: 0.3s;
    height: 40px;
    width: 270px;
}

.sidenav a .sidenav-content {
    margin: 0;
    padding-left: 20px;
    width: 100%;
    height: 100%;
    display: inline-flex;
    transition: 0.3s;
}

.sidenav-icon, .sidenav-image {
    left: 0;
    margin-right: 5px;
    -webkit-transform: translateY(5px);
    transform: translateY(5px);
    height: 20px;
    width: 20px !important;
}

.sidenav-image {
    margin: 0 5px 0 0;
    padding: 0;
}

.sidenav a .sidenav-content:hover {
    color: #e9b82f;
    padding-left: 40px;
}

.sidenav .separator {
    height: 20px;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */

#main {
    transition: margin-left .5s;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */

@media screen and (max-height: 450px) {
    .sidenav a {
        font-size: 18px;
    }
}
