
/* IMPORT ARCADE PIXEL FONT */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* PAC-MAN MAIN MENU OVERLAY */
#main-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000; /* Pitch black arcade monitor look */
    display: flex;
    justify-content: flex-start; /* Start from top to leave room for exact layout */
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    font-family: 'Press Start 2P', monospace; /* Authentic pixel arcade font */
    color: white;
    user-select: none;
    padding-top: 50px; /* Space from the top edge */
    box-sizing: border-box;
}

/* ARCADE LOGO CONTAINER (Matches image_3.png with orange border, yellow text) */
.menu-logo-container {
    border: 5px solid #ff5a00; /* Bright orange outer border */
    border-radius: 8px;
    padding: 12px 30px;
    background-color: #000000;
    margin-bottom: 220px; /* Massive space below the logo to push text down */
    box-shadow: 0 0 0 2px #000, 0 0 0 4px #ff5a00; /* Double layered orange border */
}

.menu-title {
    color: #ffde00; /* Authentic Pacman Yellow */
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 
        -2px -2px 0 #000,  2px -2px 0 #000, -2px  2px 0 #000,  2px  2px 0 #000,
        -3px  0px 0 #000,  3px  0px 0 #000,  0px -3px 0 #000,  0px  3px 0 #000,
        4px   4px 0 #ff5a00; /* Dark shadow styling to match image logo */
    display: inline-block;
}

/* ARCADE-STYLE VERTICAL OPTIONS LIST (Left-aligned & Centered on Screen) */
.menu-options {
    display: flex;
    flex-direction: column;
    gap: 18px; /* Classic vertical packing */
    align-items: flex-start; 
    width: 280px; /* Forces uniform starting point for selection pointer */
}

/* MENU BUTTONS */
.menu-button {
    background: transparent;
    border: none;
    color: #4a4a4a; /* Dark gray for unselected text like 'OPTIONS' and 'EXIT GAME' */
    font-family: 'Press Start 2P', monospace;
    font-size: 14px; /* Tiny, authentic scale */
    font-weight: normal;
    cursor: pointer;
    outline: none;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    padding: 2px 0;
    position: relative;
    transition: color 0.1s ease;
}

/* PREPEND SELECTOR PIXEL PAC-MAN INDICATOR */
.menu-button::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 15px;
    background-color: #ffde00; /* Yellow Pac-man cursor shape */
    clip-path: polygon(100% 0%, 100% 25%, 50% 50%, 100% 75%, 100% 100%, 0% 100%, 0% 0%); /* Left facing arcade Pac-man slice */
    border-radius: 50%;
    visibility: hidden; /* Hidden by default */
}

/* HOVER / ACTIVE SELECTION */
.menu-button:hover, 
.menu-button:focus,
.menu-button.active {
    color: #ffffff; /* Turns crisp arcade white */
}

.menu-button:hover::before,
.menu-button:focus::before,
.menu-button.active::before {
    visibility: visible; /* Show the yellow Pac-man character pointing to the selected option */
}