/************* MOBILE HAMBURGER MENU *************/
#hamburgerNav {
    display: none;
}

.hamburgerMenu {
    position: relative;
    display: inline-block;
}

.hamburgerIcon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburgerIcon span {
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

.menuLinks {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.menuLinks a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: black;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.menuLinks li {
    list-style: none;
}

.menuLinks.open {
    max-height: 300px;
}


/*Functionality for each of the three hamburger lines for mobile nav when clicked*/
.hamburgerIcon.open span:first-child {
    /*Transforms the first hamburger line to an X (right side line of x)and moves it slighty because the rotation skews the position*/
    transform: rotate(45deg) translate(10px, 5px);
}

.hamburgerIcon.open span:nth-child(2) {
    /*Get rids of the second line completely*/
    opacity: 0;
}

.hamburgerIcon.open span:last-child {
    /*transform the third hamburger line to an X (left side line of x)and moves it in the opposite direction of the first line slighty because the rotation skews the position*/
    transform: rotate(-45deg) translate(10px, -5px);
}


.hamburgerIcon span:first-child {
    transform: none;
}

.hamburgerIcon span:first-child {
    opacity: 1;
}

.hamburgerIcon span:first-child {
    transform: none;
}