
/*  NAVBAR */
.nav-logo {
    height: 65px;
    width: auto;
}

.jnavbar {
    display: flex;
    align-items: center;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 1.2em;
    max-width: 1400px;
    margin: auto;
}

.nav-link, .jbtn-nav {
    margin-left: 2rem;
}

.right-nav-parent {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.nav-link {
    color: rgba(0, 0, 0, 0.5);
}

.active {
    color: rgba(0, 0, 0, 0.9);
}

/* 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 span {
    background: white;
}

.toggle-button.active:hover .top {
    background: #1b314d;
}

.toggle-button.active:hover .middle {
    background: #1b314d;
}

.toggle-button.active:hover .bottom {
    background: #1b314d;
}

.toggle-button.active {
    z-index: 100;
    position: fixed;
    top: 2rem;
    right: 15px;
}

.toggle-button.active .top {
    transform: translateY(11px) translateX(0) rotate(45deg);
    background: #1b314d;
    border-radius: 5px;
}

.toggle-button.active .middle {
    opacity: 0;
    background: #1b314d;
    border-radius: 5px;
}

.toggle-button.active .bottom {
    transform: translateY(-11px) translateX(0) rotate(-45deg);
    background: #1b314d;
    border-radius: 5px;
}

.toggle-button span {
    background: white;
    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;
}

/* navbar overlay */

.overlay {
    position: fixed;
    background: #aecae7;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s, width .35s;
    overflow: hidden;
    z-index: 5;
}

.overlay .nav-logo {
    height: 70px;
    margin-top: 70px;
}

.overlay .jbtn-nav {
    font-family: "varela round";
    padding: 9px 19px;
    font-size: 1.2rem;
}

.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: 'Playfair_Display_Bold';
    font-weight: 400;
    text-align: center;
    color: #333;
}

.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: #1b314d;
    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: white;
    transition: .35s;
}

.overlay-brand {
    display: flex;
    justify-content: center;
    padding: .8rem 0;
}

.overlay-bottom img {
    width: 48px;
    height: 48px;
}

/* 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 (max-device-width: 1375px) {
    .nav-link, .jbtn-nav {
        margin-left: 0;
    }
}

@media (max-device-width: 1200px) {
    .nav-item {
        font-size: 1rem;
    }
    .info {
        font-size: 0.8rem;
    }
    .jbtn {
        font-size: 1rem;
        padding: 8px 17px;
    }
}

@media only screen and (max-width: 992px) {
    .right-nav-parent {
        display: none;
    }
    .toggle-button {
        display: block;
    }
    .navbar-brand {
        margin-left: 0;
    }
    .toggle-container {
        margin-left: auto;
    }
    .jnavbar {
        margin-top: 0;
    }
}

@media (max-device-width: 768px) {
    .nav-logo {
        height: 50px;
    }
    /* .info {
        font-size: 0.6rem;
    } */
}

@media only screen and (max-width: 576px) {
    .jpadding-nav {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-device-width: 420px) {
    .info {
        font-size: 0.7rem;
    }
}

@media (max-device-width: 364px) {
    .social {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .details {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* height queries */

@media only screen and (max-height: 580px) {
    .overlay nav {
        top: 160px;
        font-size: 25px;
    }
    .overlay ul li {
        min-height: 25px;
    }
    .overlay .jbtn-nav {
        padding: 7px 13px;
        font-size: 0.9rem;
        margin-top: 15px;
    }
    .overlay-bottom img {
        width: 30px;
        height: 30px;
    }
}

@media only screen and (max-height: 380px) {
    .overlay nav {
        top: 120px;
        font-size: 20px;
    }
    .overlay ul li {
        min-height: 20px;
    }
}