.line {
    height: 2px;
    opacity: 0;
    background-color: rgb(76, 173, 176);
    transition: 0.5s ease;
    width: inherit;
}

.navBarLink {
    font-weight: bold;
    color: rgb(99, 99, 99);
    transition: 0.5s ease;
}

.navBarLink:hover + .line, .navBarLink[selected] + .line {
    opacity: 1;
}

.navBarLink:hover, .navBarLink[selected] {
    color: rgb(76, 173, 176);
}

.navBarInfo {
    transition: 0.5s ease;
    border-radius: 4px;
}

.navBarInfo:hover {
    color: white;
    background-color: rgb(76, 173, 176);
}

@media only screen and (max-width: 768px) {
    #navBarInfo {
        scale: 80%;
        display: inline;
    }
    .hideWhenMedia {
        display: none;
    }
}