#navbar {
    width: 100%;
    height: calc(2vh + 10vw);
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #313445;
    transition: 0.5s;
    background-size: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-evenly;
}

#navbar a {
    text-decoration: none;
    float: left;
    margin-left: 0;
    color: #FFF;
    line-height: 2vh;
    font-size: 1.5vw;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-evenly;
    text-shadow: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

#navbar a:hover {
    color: #dff7ff;
    transform: translateY(-2px);
}

#navbar a.unlink {
    color: red;
}

#navbar a  div {
    border: white 2px solid;
    border-radius: 50%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#navbar a:hover div {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 20px rgba(126, 214, 255, 0.8);
    transform: scale(1.05);
}

@media (orientation: portrait) {
    #navbar {
        overflow-y: hidden;
        border-bottom: 3px solid rgba(145, 158, 171, 0.24);
    }

    main {
        margin-top: calc(2vh + 10vw);
        height: calc(98vh - 10vw);
        max-height: calc(98vh - 10vw);
        width: 100vw;
        max-width: 100vw;
    }
}

@media (orientation: landscape) {
    #navbar {
        width: calc(2vw + 10vh);
        height: 100%;
        flex-direction: column;
        overflow-x: hidden;
        border-right: 3px solid rgba(145, 158, 171, 0.24);
    }

    #navbar a {
        font-size: 1vh;
        writing-mode: vertical-lr;
        text-orientation: upright;
    }

    #navbar a img {
        height: 9.5vh;
        width: 10vh;
    }

    main {
        margin-left: calc(2vw + 10vh);
        width: calc(98vw - 10vh);
        max-width: calc(98vw - 10vh);
        height: 100vh;
        max-height: 100vh;
    }
}