nav {
    width: 50%;
    height: 6rem;
    margin: 2.3rem auto 0 auto;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border: 0.4rem solid #000;
}

#mobile-nav {
    display: none;
}

nav div {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    border-left: 0.4rem solid #000;
}

nav div:first-child {
    width: 30%;
}

nav div a {
    height: 100%;
}

nav div a img {
    height: 60%;
    margin: auto;
}

nav div:nth-child(1) {
    border: none
}

nav div a {
    width: 100%;
    font-size: 2rem;
    font-weight: 500;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav div:nth-child(2) a:hover {
    background-color: #FFC9F0;
}

nav div:nth-child(3) a:hover {
    background-color: #FF905C;
}

nav div:nth-child(4) a:hover {
    background-color: #9DDCFF;
}

nav div:nth-child(5) a:hover {
    background-color: #C77ADB;
}

nav div img {
    margin-right: 1rem;
}

.hidden {
    display: none;
}

.mobile-menu {
    position: absolute;
    top: -2.5rem;
    width: 100vw;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #fffe;
}

.mobile-menu div {
    height: 5rem;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu div a {
    margin: auto auto 0 auto;
    font-size: 2rem;
    font-weight: 500;
    color: #000;
}

.close-button {
    width: fit-content;
    height: fit-content;
    display: flex;
    margin: 0 1rem 0 auto;
}

@media (orientation: portrait) {
    #nav {
        display: none;
    }

    #mobile-nav {
        display: flex;
    }

    #mobile-nav {
        width: 80%;
    }

    #mobile-nav div {
        border: none;
    }

    #mobile-nav div:first-child {
        width: 100%;
    }

    #mobile-nav div a {
        margin: 0 auto 0 1.5rem;
    }

    #mobile-nav div a img {
        height: 70%;
    }

    #mobile-menu-button {
        width: fit-content;
        height: fit-content;
        display: flex;
        margin: 0 1rem 0 auto;
    }

    #mobile-menu-button img {
        margin: 0;
    }
}