/* The Overlay (background) */
.overlay {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */
    height: 100%;
    width: 0;
    position: fixed;
    /* Stay in place */
    z-index: 10000;
    /* Sit on top */
    left: 0;
    top: 0;
    background-color: rgb(0, 0, 0);
    /* Black fallback color */
    background-color: rgba(0, 0, 0, 0.9);
    /* Black w/opacity */
    overflow-x: hidden;
    /* Disable horizontal scroll */
    transition: 0.5s;
    /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

/* Position the content inside the overlay */
.overlay-content {
    top: 100px;
    margin: 0 auto;
    width: 100%;
}

/* The navigation links inside the overlay */
.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

/* When you mouse over the navigation links, change their color */
.overlay a:hover,
.overlay a:focus {
    color: #f1f1f1;
}

#myNav {
    overflow-y: scroll;
}

.dropdown-menu {
    height: 0 !important;
    overflow: hidden;
    -webkit-transition: height 0.5s;
    -moz-transition: height 0.5s;
    -ms-transition: height 0.5s;
    -o-transition: height 0.5s;
    transition: height 0.5s;
}

.show .dropdown-menu {
    height: auto !important;
}

.overlay-content .nav .dropdown-menu {
    width: 100%;
    text-align: center;
    margin: 0 auto !important;
    position: relative !important;
    transform: translate3d(0px, 0px, 0px) !important;
}

.overlay-content .nav .dropdown-menu a {
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 23px;
    text-align: center;
}

.overlay-content .nav li a {
    font-size: 25px;
}

.overlay-content .nav li {
    width: 100%;
}

.overlay-content .dropdown-toggle::after {
    margin-left: 20px;
    position: absolute;
    width: 0.4em;
    display: inline-flex !important;
    margin-top: 13px;
    height: 0.4em;
    vertical-align: middle;
    content: "";
    border: 0.3em solid;
    border-radius: 3px;
    border-width: 0 0.1em 0.1em 0;
    transform: rotateZ(45deg);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: transparent !important;
    color: black !important;
}

.dropdown-menu {
    min-width: 19rem !important;
}

.dropdown-item {
    white-space: normal !important;
}