
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}


header {
    background: linear-gradient(135deg, #00e1ff, #dad2e0, #0dd4ee);
    padding: 10px;
    text-align: center;
}

nav {
    background-color: #333;
    color: white;
    position: relative;
    z-index: 1000;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: flex-start; 
}

nav ul li {
    display: inline-block;
    padding: 14px 20px;
    cursor: pointer;
    color: #0c0c0c;
    transition: background-color 0.3s ease, transform 0.3s ease;
    background: linear-gradient(135deg, #adaab8, #72d6dc, #ffffff, #3298af, #ffffff);
    background-size: 300%; /* Increase background size for animation */
    --webkit-background-clip: text;
    --webkit-text-fill-color: transparent;
    animation: rainbow-text 2s infinite linear;
    display: flex;
    align-items: center;
}

@keyframes rainbow-text {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

nav ul li:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

nav ul li#menu {
    font-weight: bold;
    color: #000000;
    display: flex;
    align-items: center;
}

nav ul li i {
    margin-right: 8px;
}

/* Dropdown container styles */
#dropdown-container {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    padding-left: 20px;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
    max-height: 0;
    opacity: 0;
    position: absolute;
    border-radius: 5px;
    left: 10px; /* Adjusted for left alignment */
}

/* .hidden {
    max-height: 0;
    opacity: 0;
} */

#dropdown-container:not(.hidden) {
    max-height: 500px; /* Adjust this value to the expected height */
    opacity: 1;
}

.list-item:hover::after {
    transform: rotate(90deg);
}

/* Arrow icon styles */
.arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
    font-size: 12px;
    color: #333;
}

.rotate {
    transform: rotate(90deg); /* Rotate 90 degrees when active */
}

.list-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    background-color: #fafafa;
    margin-bottom: 8px;
    border-radius: 5px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item:hover {
    background-color: #e0f7fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
