.navigation-rail {
    width: 5rem;
    background-color: #e6e6e6;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    flex-direction: column;
    justify-content: stretch;
    transition: all 0.4s ease-in-out;
    opacity: 0.8;
}

@media (orientation: landscape) {
    .navigation-rail:hover {
        width: 14rem;
        opacity: 1;
    }
}

.navigation-rail .top > a,
.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    height: 4rem;
    color: #0a80ff;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.icon-button {
    width: 36px;
    height: 36px;
    color: #0a80ff;
    margin-left: 0.5rem;
}

.navigation-rail .top span,
.navigation-rail .top button {
    display: none;
}

.navigation-rail > nav {
    height: 100%;
    display: flex;
    justify-content: center;
}

.navigation-rail > nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    align-self: center;
}

.navigation-rail > .bottom {
    overflow: hidden;
    height: 4rem;
}

.navigation-rail > .bottom > div,
.navigation-rail > nav ul li {
    width: 12rem;
    display: flex;
    flex-direction: row;
}

.navigation-rail > .bottom a,
.navigation-rail > nav ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1rem;
    width: 100%;
    transition: all 0.4s ease-in-out;
}

.navigation-rail > .bottom a:hover,
.navigation-rail > nav ul li a:hover {
    scale: 1.05;
}

@media only screen and (max-width: 1200px) and (orientation: portrait) {
    .navigation-rail {
        position: absolute;
        height: 100%;
        top: 0;
        left: -100%;
        width: 0;
        z-index: 2000;
    }

    body.navigation-open .navigation-rail {
        left: 0;
        width: 100vw;
        opacity: 1;
    }

    .navigation-rail .top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }

    .navigation-rail .top span,
    .navigation-rail .top button {
        display: initial;
        font-weight: bold;
    }
}

.nav-icon {
    width: 3rem;
    height: 3rem;
    margin-right: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-icon > figure.avatar {
    margin: 0;
}

body.navigation-open::after {
    display: none;
}

.top .nav-icon {
    margin: 0;
}
