/* Default styles for larger screens */

.custom-menu,
.custom-menu #menu ul li a,
.custom-menu img {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
}
.custom-menu #menu ul li a {
    font-size: 16px;
}
/* Set unique colors for each menu item in the active state using nth-child */
.custom-menu #menu ul li:nth-child(1).current-menu-item a,
.custom-menu #menu ul li:nth-child(1).current-menu-parent a,
.custom-menu #menu ul li:nth-child(1).current-menu-ancestor a {
    color: #77c8c8; /* Custom color for the first item */
    font-weight: bold;
}

.custom-menu #menu ul li:nth-child(2).current-menu-item a,
.custom-menu #menu ul li:nth-child(2).current-menu-parent a,
.custom-menu #menu ul li:nth-child(2).current-menu-ancestor a {
    color: #548fd6; /* Custom color for the second item */
    font-weight: bold;
}

.custom-menu #menu ul li:nth-child(3).current-menu-item a,
.custom-menu #menu ul li:nth-child(3).current-menu-parent a,
.custom-menu #menu ul li:nth-child(3).current-menu-ancestor a {
    color: #e8a7db; /* Custom color for the third item */
    font-weight: bold;
}

.custom-menu #menu ul li:nth-child(4).current-menu-item a,
.custom-menu #menu ul li:nth-child(4).current-menu-parent a,
.custom-menu #menu ul li:nth-child(4).current-menu-ancestor a {
    color: #97B966; /* Custom color for the fourth item */
    font-weight: bold;
}
.custom-menu #menu ul li:nth-child(5).current-menu-item a,
.custom-menu #menu ul li:nth-child(5).current-menu-parent a,
.custom-menu #menu ul li:nth-child(5).current-menu-ancestor a {
    color: #97B966; /* Custom color for the fourth item */
    font-weight: bold;
}
.custom-menu #menu ul li:nth-child(6).current-menu-item a,
.custom-menu #menu ul li:nth-child(6).current-menu-parent a,
.custom-menu #menu ul li:nth-child(6).current-menu-ancestor a {
    color: #97B966; /* Custom color for the fourth item */
    font-weight: bold;
}
.custom-menu #menu ul li:nth-child(7).current-menu-item a,
.custom-menu #menu ul li:nth-child(7).current-menu-parent a,
.custom-menu #menu ul li:nth-child(7).current-menu-ancestor a {
    color: #97B966; /* Custom color for the fourth item */
    font-weight: bold;
}
/*.custom-menu #menu ul li.current-menu-item span,
.custom-menu #menu ul li.current-menu-parent span,
.custom-menu #menu ul li.current-menu-ancestor span {
    color: #97B966;  Active menu items color 
    font-weight: bold;
}
.custom-menu #menu ul li.current-menu-item a,
.custom-menu #menu ul li.current-menu-parent a,
.custom-menu #menu ul li.current-menu-ancestor a {
    color: #97B966;  Active menu items color 
    font-weight: bold;
}*/
.custom-menu {
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 50px;
    left: 50px;
    background-color: #fff;
    padding: 5px;
    transition: 1.5s;
    border-radius: 70px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, .2);
    align-items: center;
    z-index: 9999;
}

.custom-menu #menu {
    margin: 0;
    padding: 0;
    width: 0;
    overflow: hidden;
    transition: 0.1s;
    flex: 1;
}

.custom-menu input:checked ~ #menu {
    width: 800px;
}

.custom-menu #menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-menu #menu ul li {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-right: 20px;
}

.custom-menu #menu li a {
    text-decoration: none;
    color: #1B1818;
    font-weight: 600;
    transition: 0.1s;
}

.custom-menu #menu ul li a.active,
.custom-menu #menu ul li a:hover {
    color: #97B966; /* Highlight color on hover or when active */
    font-weight: bold;
}

.custom-menu #menu ul li:nth-child(1) a.active,
.custom-menu #menu ul li:nth-child(1) a:hover {
    color: #77c8c8;
}

.custom-menu #menu ul li:nth-child(2) a.active,
.custom-menu #menu ul li:nth-child(2) a:hover {
    color: #548fd6;
}

.custom-menu #menu ul li:nth-child(3) a.active,
.custom-menu #menu ul li:nth-child(3) a:hover {
    color: #e8a7db;
}


.custom-menu input {
    position: absolute;
    width: 100px;
    height: 100px;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
}

.custom-menu img {
    width: 100px;
    height: 100px;
    pointer-events: none;
    transition: 0.5s;
    margin-right: 0px;
    z-index: 1;
}

.custom-menu input:checked ~ img {
    background-color: #ffffff;
}

.custom-menu.scrolled {
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, .2);
    border-radius: 70px;
}

.content {
    position: relative;
    margin-top: 0px;
    padding: 0px;
    z-index: 1;
}

/* Responsive Styles */

@media (max-width: 480px) {
    .custom-menu input {
        display: none; /* Hide checkbox by default */
    }

    .custom-menu input:checked ~ #menu {
        width: 100%;
        max-height: 1000px;
    }

    /* Show the menu content only when input is checked */
    .custom-menu #menu {
        max-height: 0;
        overflow: hidden;
    }

    .custom-menu #menu ul li a {
        line-height: 1em;
    }

    .custom-menu input:checked ~ #menu {
        width: 100%;
        max-height: 1000px;
    }

    .custom-menu {
        border-radius: 55px;
        top: 10px;
        display: flex;
        left: 10px;
        align-items: flex-start;
    }

    .custom-menu input {
        width: 100px;
        height: 100px;
    }

    .custom-menu img {
        width: 100px;
        height: 100px;
    }

    .custom-menu #menu ul {
        padding: 0px;
        margin-left: 20px;
        text-align: left;
        display: flex;
        flex-direction: column;
        border-left: 1px solid #ddd;
        border-right: 1px solid #ddd;
    }

    .custom-menu #menu ul li {
        padding: 8px 16px;
        border-bottom: 1px solid #ddd;
        margin-right: 0px;
    }

    .custom-menu #menu ul li:last-child {
        border-bottom: none;
    }

    .image-container {
        display: none;
        margin-top: 20px;
    }

    /* Show .image-container only when menu is open */
    .custom-menu input:checked ~ #menu + .image-container {
        display: flex;
    }

    .image-container img {
        margin-right: 20px;
        margin-left: 20px;
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 811px) {
    .custom-menu input {
        display: none;
    }

    .custom-menu input:checked ~ #menu {
        width: 100%;
    }

    .custom-menu #menu ul li a {
        font-size: 16px;
        margin-right: 10px;
    }

    .custom-menu {
        left: 20px;
    }

    .image-container {
        display: none;
    }

    /* Show .image-container only when menu is open */
    .custom-menu input:checked ~ #menu + .image-container {
        display: flex;
    }
}

/* Hide the .image-container on screens wider than 480px */
@media (min-width: 481px) {
    .image-container {
        display: none;
    }
}
