/* Reset and Base Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Menu Icon */
.menu-icon {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

.menu-icon span {
    display: block;
    height: 4px;
    background-color: red;
    border-radius: 2px;
    transition: transform 0.3s ease;


}

/* Menu System */
.menu {
    position: fixed;
    top: 10px;
    left: -300px;
    width: 250px;
    height: 100%;
    background-color: white;
    color: #fff;
    transition: left 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin: 15px 0;
}

.menu a {
    color: blue;
    font-size: 18px;
    font-weight: bold;
}

/*.submenu {
    margin-top: 10px;
    margin-left: 20px;
    display: none;
}*/
/* Indent Submenus */



.menu li:hover .submenu {
    display: block;
}

/* Active Menu Styles */
.menu.active {
    left: 0;
}

/* Animation for Menu Icon (Hamburger -> Cross) */
.menu-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-icon.active span:nth-child(2) {
    opacity: 0;
}
.menu-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Menu Links */
.menu-link {
    display: block;
    padding: 10px;
    color: white;
    /* background-color: #333; Default color */
    background-color: white;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
}

/* Submenus */
.submenu {
    margin-top: 10px;
    margin-left: 20px; /* Indent for submenu items */
    display: none; /* Hide submenus by default */
}

.submenu-link {
    font-size: 50%; /* Slightly smaller font for submenu links */
}

/* Visible Submenu */
.submenu.visible {
    display: block;
}

/* Hover Effect */
.menu-link:hover, .submenu-link:hover {
    /*background-color: #555; Lighter gray on hover */
    background-color: #007BFF;
    color: #fff;
}

/* Selected State */
.menu-link.selected, .submenu-link.selected {
    background-color: #007BFF; /* Blue for selected items */
    color: white;
}



