
.c-nav {
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.c-nav__item {
    padding: 10px 20px;
    font-weight: 500;
    font-size: 1.3em;
    border-radius: .5rem;
    color: rgb(var(--title-color));
    transition: .3s;
    cursor: pointer;
}
.c-nav__item:hover {
    color: rgb(var(--accent-color));
}

.c-sidebar-btn {
    display: none;
    font-size: 1.5em;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: .5rem;
    color: rgb(var(--title-color));
    margin-left: 20px;
    overflow: hidden;
    cursor: pointer;
}

.c-theme {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    width: 5rem;
    border-radius: 3rem;
    background-color: rgb(var(--border-color));
    font-size: 1.3em;
    margin-left: 20px;
    cursor: pointer;
}

.c-theme::before {
    content: '';
    position: absolute;
    left: 8px;
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
    background-color: rgb(var(--main-color));
    transition: .2s;
    box-shadow: 0 2px 3px rgba(0, 0, 0, .2);
}
.c-theme:hover::before {
    transform: scale(1.05);
}

.c-theme--active::before {
    left: calc((5rem - 1.2em) - 8px);
}

.c-theme--light {
    color: rgba(var(--yellow-color), .9);
}
.c-theme--dark {
    color: rgba(var(--blue-color), .9);
}

/* ========== SIDEBAR ========== */

.c-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 280px;
    display: flex;
    flex-direction: column;
    transform: translateX(280px);
    background-color: rgb(var(--main-color), .9);
    backdrop-filter: blur(5rem);
    box-shadow: 0 0 20px rgba(0, 0, 0, .2);
    transition: .4s;
    transition-timing-function: cubic-bezier(.25,.8,.25,1);
    z-index: 50;
}
.c-sidebar--open {
    transform: translateX(0);
}

.c-sidebar__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.c-sidebar__item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(var(--title-color));
    padding: 10px 20px;
    font-size: 1.3em;
    transition: .3s;
    cursor: pointer;
}
.c-sidebar__item:hover {
    color: rgb(var(--accent-color));
}

.c-sidebar__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
