body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: rgba(0, 0, 0, 0.5);  
    color: white;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

#body.show {
    display: flex;  
}


#menu {
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    max-height: 80vh;
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    color: white;
    display: none;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
    overflow-y: scroll;
    background-color: rgba(34, 34, 34, 0.8); 
    scrollbar-width: thin;
    scrollbar-color: #ffffff rgba(0, 0, 0, 0.3);
}

#menu::-webkit-scrollbar {
    width: 8px; 
}

#menu::-webkit-scrollbar-thumb {
    background-color: #8d8c8c; 
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

#menu::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px; 
}

#menu h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
    color: transparent;
    background: linear-gradient(90deg, 
        #ff0000,
        #ff7f00,
        #ffff00, 
        #00ff00,
        #0000ff,
        #8a2be2,
        #ff1493,
        #ff69b4,
        #00ffff,
        #ff6347,
        #32cd32, 
        #ffffe0  
    );
    background-size: 400% 400%; 
    background-clip: text;  
    -webkit-background-clip: text;  
    padding: 10px;
    border-radius: 8px; 
    border: 1px solid rgba(255, 255, 255, 0.3); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); 
    animation: colorh2 15s ease infinite; 
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7); 
}

@keyframes colorh2 {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#menu ul li {
    padding: 15px;
    border-radius: 10px;
    background-color: rgba(34, 34, 34, 0.7);
    margin-bottom: 15px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 48%;
    box-sizing: border-box;
}

#menu ul li::before {
    content: attr(data-icon);
    margin-right: 15px;
    font-size: 25px;
    display: inline-block;
    transition: transform 0.3s ease;
}

#menu ul li:hover::before {
    animation: rotateIcon 1s linear infinite;
}

@keyframes rotateIcon {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(45deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(-45deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

#menu ul li:hover {
    background-color: rgba(51, 51, 51, 0.8);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

#menu ul li.selected {
    background-color: rgba(68, 68, 68, 0.8);
    color: #FFD700;
}


#help-tooltip {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1001;
    display: none; 
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.help-icon {
    font-size: 20px;
    color: #FFD700;
    background-color: rgba(34, 34, 34, 0.7);
    padding: 1px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    position: relative;
    top: 25px;
    left: 10px;
}

.help-icon:hover {
    background-color: rgba(109, 108, 108, 0.8);
    transform: scale(1.1);
}

.tooltip-content {
    display: none;
    position: absolute;
    top: 30px;
    left: 128%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 8px;
    width: 200px;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    transform: translateX(10px);
}

#help-tooltip.show {
    display: flex; 
}

#help-tooltip:hover .tooltip-content {
    display: block;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

@media (max-width: 768px) {
    #help-tooltip {
        top: 10px;
        left: 10px;
    }
}

.stop-btn {
    text-align: right;
    margin-top: 51px; 
    position: absolute;
    top: 0;
    left: 42%;
    transform: translateX(-50%); 
    width: 100%;
}

#stop-button {
    padding: 5px;
    font-size: 16px;
    background-color: #ff0000;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

#stop-button:hover {
    background-color: #cc0000;
}
#close-menu-btn {
    position: absolute;
    top: 5px; 
    left: 5px;
    background-color: #ff0000;
    color: white;
    font-size: 14px;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none; 
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#close-menu-btn:hover {
    background-color: #cc0000;
    transform: scale(1.1);
}

