.help-menu {
    background-color: var(--help-background);
    font-family: "TFL", sans-serif;
    padding: 0;
    width: 60vw;
    max-width: 800px;
    height: 70vh;
    max-height: 600px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    border-radius: 8px;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Initial state for animations */
}

.help-menu.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out,
        visibility 0s linear;
}

.help-menu__header {
    background-color: var(--help-topbar);
    color: var(--help-text);
    padding: 1.5rem;
    margin: 0;
    font-size: 2rem;
}

.help-menu__content {
    background-color: var(--help-text-background);
    margin: 1rem;
    padding: 1rem;
    flex-grow: 1;
    overflow-y: auto; /* Enable scrolling if content overflows */
    border-radius: 4px;
}

.help-menu__control-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Consistent spacing between items */
}

.help-menu__control-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 4px;
    min-height: 3rem;
}

.help-menu__shortcut {
    color: var(--help-text-1);
    margin-right: 2rem;
    min-width: 120px;
    font-size: 1.1rem;
    font-weight: bold;
}

.help-menu__description {
    color: var(--help-text-2);
    font-size: 1.1rem;
}

/* Media queries for better responsiveness */
@media (max-height: 700px) {
    .help-menu {
        height: 90vh;
    }

    .help-menu__header {
        padding: 1rem;
        font-size: 1.5rem;
    }

    .help-menu__control-item {
        padding: 0.75rem;
    }
}

@media (max-width: 600px) {
    .help-menu {
        width: 95vw;
    }

    .help-menu__shortcut {
        min-width: 90px;
        font-size: 1rem;
    }

    .help-menu__description {
        font-size: 1rem;
    }
}

/* Add CSS custom properties for colors */
:root {
    --help-background: #f1f1f1;
    --help-topbar: #112d80;
    --help-text: #f1f1f1;
    --help-text-background: #c8c8c8;
    --help-text-1: #f1f1f1;
    --help-text-2: #2d2f3a;
}
