#sidebar {
    background-color: #666;
    width: 180px;
    padding: 20px;
    color: #f2f2f2;
}

.nav-menu {
    list-style-type: none;
    padding: 0;
    color: #f2f2f2;
}

.dropdown {
    display: none;
    list-style-type: none;
    position: absolute;
    background-color: #999;
    border-radius: 5px;
    padding: 10px;
    margin-left: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    color: #333;
    min-width: 150px;
}

.has-dropdown::after {
    content: " ▼";
    font-size: 10px;
    margin-left: 2px;
    color: #e74c3c;
}

/* Small bright color entities */
.nav-li:hover, .nav-li:hover {
    color: #e74c3c; /* Cheery Red */
    cursor: pointer;
}

.nav-a {
    display: block;
    width: calc(100% - 20px);
    height: 100%;
    color: #e74c3c; /* Cheery Red */
    text-decoration: none;
    background-color: #f2f2f2;
    border-radius: 3px;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    min-width: 150px;
    padding: 5px 10px;
}

.nav-a-blue {
    display: block;
    width: calc(100% - 20px);
    height: 100%;
    background-color: #ff784d; /* Cheery Red */
    color: black;
    text-decoration: none;
    border-radius: 3px;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    min-width: 150px;
    padding: 5px 10px;
}
.nav-a:hover, .nav-a:focus {
    background-color: #ff5722; /* Vibrant Orange */
    color: #ffffff;
    text-decoration: none;
}

.nav-li {
    display: block;
    background-color: #f2f2f2;
    color: #e74c3c; /* Cheery Red */
    margin-bottom: 8px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.nav-li:last-child {
    margin-bottom: 0;
}

.nav-li:hover {
    background-color: #ff5722; /* Vibrant Orange */
    color: #ffffff;
}


/* Mobile view */
@media (max-width: 768px) {
    #sidebar {
        width: 100%;
        position: absolute;
        overflow: hidden;
        clip: rect(0 0 0 0); /* Ensures the sidebar doesn't show when "closed". */
        height: 1px;
        width: 1px;
        margin: -1px;
        padding: 0;
        border: 0;
    }

    #sidebar.active {
        /* The "Open" state of the sidebar. */
        position: static;
        overflow: visible;
        clip: auto;
        height: auto;
        width: auto;
        margin: 0;
        padding: 20px;
    }

    /* The navigation button for opening the sidebar */
    .sidebar-toggle {
        display: block;
        min-width: 70px;
        background-color: #f2f2f2;
        padding: 10px;
        border-radius: 6px;
        font-size: 1.1em; /* make the button more finger-friendly for mobile users */
    }

    main {
        flex-direction: column;
    }
}
