@keyframes checkboxAnim {
    0% {
        transform: rotate(0deg);
        margin-right: 1rem;
    }

    100% {
        transform: rotate(180deg);
        margin-right: -1rem;
    }
}

@keyframes checkboxAnimBack {
    0% {
        transform: rotate(180deg);
        margin-right: -1rem;
    }

    100% {
        transform: rotate(0deg);
        margin-right: 1rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.mainBody {
    height: 100vh;
    width: 100%;

    transition: .4s;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.toggleContainer {
    width: fit-content;
    height: fit-content;
    min-width: 6rem;
    min-height: 6rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#checkbox {
    height: 3rem;
    width: 3rem;
    border-radius: 100px;
    transform: scale(.75);
    -webkit-appearance: none;
    appearance: none;

    background: #343a40;
    outline: none;
    border-radius: 30px;

    cursor: pointer;

    transition: .3s;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#checkbox:hover {
    box-shadow: 0px 4px 26px 6px rgba(0, 0, 0, 0.25);
}

#checkbox::before {
    content: "";
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    background: #CFCFCF;
    border-radius: 100px;
    transition: .3s;
}

#checkbox::after {
    content: "";
    position: absolute;
    background: #343a40;
    width: 1rem;
    height: 2rem;
    margin-right: 1rem;
    transform: rotate(0deg);
    border-top-left-radius: 6.25rem;
    border-bottom-left-radius: 6.25rem;
    border-right: 0;
    transition: .4s border-radius;
    animation: checkboxAnimBack .4s;
}

#checkbox:checked::before {
    background: #343a40;
}

#checkbox:checked::after {
    animation: checkboxAnim .4s;
    content: "";
    position: absolute;
    transform: rotate(-180deg);
    width: 1rem;
    height: 2rem;
    margin-right: -1rem;
}

#checkbox:checked,
#checkbox:checked::after {
    background: #CFCFCF;
}

footer {
    width: 100vw;
    height: 40px;
    transition: 0.4s;
}

.footer-item {
    margin: 20px;
}

footer.dark-mode {
    background-color: #343a40;
    color: #CFCFCF;
}

#contact-me {
    text-align: center;
}

.darkBg {
    background: #343a40;
}

.dark-mode {
    color: #CFCFCF;
    background-color: #343a40;
}
#me {
    justify-content: center;
    align-self: center;
}

 .content-container {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding: 0 20px;
    overflow-y: scroll; 
    scrollbar-width: thin; 
    scrollbar-color: #CFCFCF #343a40;
 }
 .content-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Webkit browsers (Chrome, Safari) */
 }

 .navbar-nav .nav-link.active {
    pointer-events: none;
    color: #f8f9fa !important;
    font-weight: bold; 
 }