* {
    scrollbar-width: auto;
    scrollbar-color: #00a5ff transparent;
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
    width: 16px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: #00a5ff;
    border-radius: 10px;
    border: 3px solid #ffffff;
}

/* NAVIGATION */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--background);
    padding: 10px;
    border-bottom: 3px solid var(--primary);
}

.menu-icon {
    display: block;
    color: var(--primary);
    font-size: 2em;
    cursor: pointer;
}

.nav-list {
    list-style: none;
    padding: 0;
    display: none;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    max-height: 0;  /* Initially no height */
    transition: max-height 0.5s ease-in-out;
}

.nav-list li {
    width: 100%;
    text-align: center;
    font-family: 'Source Code Pro', monospace;
}

.nav-list li a {
    color: var(--primary);
    text-decoration: none;
    display: block;
    padding: 10px;
    transition: background-color 0.3s;
}

.nav-list li a:hover, .nav-list li a.active {
    background-color: var(--primary);
    color: var(--background);
}

@media (min-width: 768px) {
    .menu-icon {
        display: none;
    }

    .nav-list {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        max-height: none;
    }

    .nav-list li {
        text-align: center;
    }

    .nav-list li a {
        padding: 10px 20px;
    }
}
