/*  * Navbar Styling */

.main-logo {
    width: 200px;
}

.navbar-custom {
    grid-row: 1fr;
    grid-row-start: 2;
    width: 100%;
    margin-top: 50px;
    background-color: #fff;
    position: absolute;
    display: flex;
    align-items: center;
    padding: .5rem 1rem;
}

.navbar-brand {
    margin-left: 50px;
}

.right-nav-parent {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.right-nav-parent ul {
    padding-right: 2rem;
}

.nav-link {
    color: #333;
}

.nav-link.active {
    color: #f99b1c;
}

/* dropdown styling */

.dropdown-menu {
    width: 275px;
}

.dropdown-options {
    padding: .5rem 0 1rem 1rem;
}

.dropdown-options a {
    color: #333;
    padding-left: 1rem;
}

.dropdown-options a:hover {
    color: #f89b00;
}

/* social media styling */

.social-links {
    padding-top: 5px;
    padding-bottom: 5px;
}

.social-links img {
    width: 25px;
}

/* navbar toggle */

.toggle-container {
    display: flex;
    align-items: center;
}

.toggle-button {
    display: none;
    position: relative;
    top: 0;
    /* the default value 5% */
    right: 0;
    /* the default value 2% */
    height: 30px;
    /* the default value 27px*/
    width: 35px;
    cursor: pointer;
    z-index: 100;
    transition: opacity .25s ease;
}

.toggle-button:hover {
    /* opacity: .7; */
}

.toggle-button:hover span{
    background: #f99b1c;
}

.toggle-button.active:hover .top{
    background: #f99b1c;
}
.toggle-button.active:hover .middle{
    background: #f99b1c;
}
.toggle-button.active:hover .bottom{
    background: #f99b1c;
}

.toggle-button.active {
    z-index: 100;
    position: fixed;
    top: 2rem;
    right: 1rem;
}

.toggle-button.active .top {
    transform: translateY(11px) translateX(0) rotate(45deg);
    background: #000;
    border-radius: 5px;
}

.toggle-button.active .middle {
    opacity: 0;
    background: #000;
    border-radius: 5px;
}

.toggle-button.active .bottom {
    transform: translateY(-11px) translateX(0) rotate(-45deg);
    background: #000;
    border-radius: 5px;
}

.toggle-button span {
    background: #000;
    border: none;
    height: 5px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: all .35s ease;
    cursor: pointer;
    border-radius: 5px;
}

.toggle-button span:nth-of-type(2) {
    top: 11px;
}

.toggle-button span:nth-of-type(3) {
    top: 22px;
}

.overlay {
    position: fixed;
    background: #fff;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s, width .35s;
    overflow: hidden;
    z-index: 3;
}

.overlay.open {
    opacity: 1;
    visibility: visible;
    width: 100%;
}

.overlay.open li {
    animation: fadeInRight .5s ease forwards;
    animation-delay: .3s;
}

.overlay.open li:nth-of-type(2) {
    animation-delay: .35s;
}

.overlay.open li:nth-of-type(3) {
    animation-delay: .4s;
}

.overlay.open li:nth-of-type(4) {
    animation-delay: .45s;
}

.overlay.open li:nth-of-type(5) {
    animation-delay: .50s;
}

.overlay.open li:nth-of-type(6) {
    animation-delay: .55s;
}

.overlay nav {
    position: relative;
    top: 250px;
    transform: translateY(-50%);
    font-size: 50px;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    text-align: center;
}

.overlay ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    position: relative;
    height: 100%;
}

.overlay ul li {
    display: block;
    height: 25%;
    height: calc(100% / 6);
    min-height: 50px;
    position: relative;
    opacity: 0;
}

.overlay ul li a {
    display: block;
    position: relative;
    color: #000;
    text-decoration: none;
    overflow: hidden;
}

.overlay ul li a:hover:after, .overlay ul li a:focus:after, .overlay ul li a:active:after {
    width: 100%;
}

.overlay ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    transform: translateX(-50%);
    height: 3px;
    background: #f89b00;
    transition: .35s;
}

.overlay-brand {
    display: flex;
    justify-content: center;
    padding: .8rem 0;
}

.overlay .overlay-social-media a {
    color: #f89b00;
}

/* The @keyframes rule specifies the animation code , more info: https://www.w3schools.com/cssref/css3_pr_animation-keyframes.asp */

@keyframes fadeInRight {
    0% {
        opacity: 0;
        left: 20%;
    }
    100% {
        opacity: 1;
        left: 0;
    }
}

/* ! ***** !!!!! MEDIA QUERIES !!!!! ***** */

@media only screen and (max-width: 936px) {
    .right-nav-parent {
        display: none;
    }
    .toggle-button {
        display: block;
    }
    .navbar-brand {
        margin-left: 0;
    }
    .toggle-container {
        margin-left: auto;
    }
    .navbar-custom {
        margin-top: 0;
    }
}

@media only screen and (max-height: 580px) {
    .overlay nav {
        top: 160px;
        font-size: 25px;
    }
    .overlay ul li {
        min-height: 25px;
    }
}

@media only screen and (max-height: 380px) {
    .overlay nav {
        top: 120px;
        font-size: 20px;
    }
    .overlay ul li {
        min-height: 20px;
    }
}