/* ========================================
   SIDEBAR NAVIGATION LINKS
   ======================================== */

.links {
    display: none;
    position: absolute;
    width: 30%;
    right: 0;
    top: 70px;
    height: auto;
    z-index: 1000;
    overflow: hidden;
    justify-content: flex-start;
    align-items: center;
    margin-left: 10px;
}

.container.active .links {
    display: flex;
}

ul {
    list-style: none;
}

ul li.active a {
    color: #e20f2f;
}

.links a {
    text-decoration: none;
    color: #eee;
    padding: 0.7rem 0;
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    opacity: 0;
    transform: translateY(10px);
    animation: hide 0.5s forwards ease;
}

.links a:hover {
    color: #e20f2f;
}

.container.active .links a {
    animation: appear 0.5s forwards ease var(--i);
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hide {
    from {
        opacity: 1;
        transform: translateY(0px);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}
