/* Basic styles for the page */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

/* Menu icon positioned in the top right corner */
.menu-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    /* background-color: white; */
    color: white;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 100; 
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth color transition */
}

/* When hovering over the menu change the color of the icon */
.menu-container:hover {
    .menu-icon{
        color: #0027bb;
    }
}

/* Menu styling */
.menu {
    position: fixed;
    overflow: auto;
    top: 0;
    right: -300px; /* Initially hidden off-screen */
    width: 300px;  /* Adjust width as needed */
    height: 100vh;
    background-color: white;
    transition: right 0.3s ease; /* Smooth sliding effect */
    z-index: 101; 
}

/* Menu items styling */
.menu ul{
    list-style: none;
    margin: 0;
}

.menu ul li {
    margin: 20px 0;
}

.sub-menu{
    display: none;
    list-style: none;
}

.menu ul li a {
    text-decoration: none;
    color: #0027bb;
    font-size: 1.5rem;
}

/* When hovering over the icon or the menu container, show the menu */
.menu-icon:hover ~ .menu,
.menu:hover {
    right: 0;
}

@media only screen and (max-width: 600px) {
    .menu{
        width: 170px;
    }

    .menu ul li a{
        font-size: 15px;
    }
}