.main {
    min-width: 100vw;
    min-height: var(--documentHeight);
    z-index: 10;
}

.menu-container-mobile {
    display: none;
}

.s {
    font-size: 3.5em;
    position: fixed;
    left: var(--padding);
    top: var(--padding);
    z-index: 110;
    /* animation: fadeIn var(--animation-time); */
}

.b {
    font-size: 3.5em;
    position: fixed;
    right: var(--padding);
    bottom: var(--padding);
    z-index: 110;
    /* animation: fadeIn var(--animation-time); */
}

.nav {
    position: fixed;
    right: var(--padding);
    top: var(--padding);
    z-index: 110;
    /* animation: fadeIn var(--animation-time); */
}

@media (max-width:481px) and (orientation: portrait) {

    .s,
    .b {
        font-size: 2.5em;
    }

    .b {
        top: var(--padding)
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1
    }
}

#navigation {
    position: fixed;
    right: 0;
    top: 0;
    width: 25vw;
    height: 100vh;
    background-color: var(--sb-dark);

    z-index: 1;
    padding: var(--padding);
    display: flex;
    flex-direction: column;
    text-align: right;
    animation: fadeIn 0.5s
}

.menu-container {
    width: 64px;
    height: 16px;
}

.menu {
    cursor: pointer;
    width: 64px;
    height: 16px;
}

.close {
    cursor: pointer;
    font-weight: bold;
    color: var(--sb-light)
}

.linksContainer {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 100%;
    flex-grow: 1;
    position: relative;
    z-index: 200;
    text-align: center;
}

.linksContainer ul {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.linksContainer ul li {
    height: unset
}


.link {
    font-size: 3em;
    text-decoration: none;
    color: var(--sb-light);
    position: relative;
}

.link::after {
    content: "";
    left: 0px;
    bottom: -2px;
    position: absolute;
    height: 2px;
    width: 100%;
    transform: scaleX(0);
    transition: transform 0.5s ease;
    background-color: var(--sb-light);
}

.link:hover::after {
    transform: scaleX(1);
}



@media (max-width:1241px) and (orientation: portrait) {
    #navigation {
        width: 40vw;
    }
}

@media (max-width: 820px) and (orientation: portrait) {

    .close {
        align-self: flex-end;
        height: 4rem;
    }

    .s,
    .b,
    .close {
        height: 4rem;
    }

    #navigation {
        width: 100vw;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
}


@media (max-width:481px) and (orientation: portrait) {
    .menu-container-mobile {
        display: block;
        color: var(--sb-light)
    }

    .menu-container {
        display: none !important;
    }

    .link:hover::after {
        transform: scaleX(0);
    }
    .menu-container-mobile,
    .menu-container,
    .close {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        top: calc(var(--padding) + .4rem);
    }

    .menu-container-mobile,
    .menu-container {
        width: 64px;
        height: 64px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        top: calc(var(--padding) / 2);
    }

    .menu-container-mobile {
        justify-content: flex-start;
    }

    .close {
        z-index: 201;
    }

    .link {
        font-size: 2.5em;
        margin-right: 0;
    }
}