#nav {
    text-align: center;
    font-family: 'Press Start 2P';
    margin-left: 50px;
    margin-right: 50px;
    color:rgb(66, 46, 65);
    text-shadow: 3px 3px 3px #ffffff;  
    letter-spacing: -1px;
    margin-top: 10%;
    justify-content: center;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    position: relative;
    z-index: 5;
}

#nav ul {
    list-style-type: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding-left: 0;
}

#nav li {
    display: flex;
    margin: 7px 20px;
    transition: opacity 0.3s, font-size 0.3s;
}

#nav a {
    text-decoration: none;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.3s, font-size 0.3s;
    cursor:pointer;
    color: rgb(112, 77, 124);
}

#nav a:hover, a.active {
    opacity: 1 !important;
    font-size: 20px !important;
}

#tabcontent {
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: rgb(164, 153, 166);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: rgb(202, 155, 200); 
    border-radius: 10px; 
}

::-webkit-scrollbar-thumb:hover {
    background-color: #aaa; 
}

@media screen and (max-width: 1300px){
    #nav {
        margin-top: 15%;
    }
}
@media screen and (max-width: 900px){
    #nav {
        margin-top: 18%;
    }
}
@media screen and (max-width: 650px){
    #nav {
        margin-top: 25%;
    }
}

@media screen and (max-width: 450px){
    #nav {
        margin-top: 30%;
    }

    #tabcontent {
        word-wrap: break-word;
    }

}