/* --- Global Styles to Match Theme --- */

:root {
    --bg-color: #282c34; /* Dark slate/charcoal background */
    --text-color: #abb2bf; /* Light gray text */
    --link-color: #61afef; /* Blue for primary accents (like the arrow) */
    --hover-bg: #323842; /* Slightly lighter background on hover */
    --accent-green: #98c379; /* Green for the "folder" icon */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Consolas', 'Monaco', monospace; /* Code font */
    margin: 0;
    padding: 0;
    text-align: center; /* Center the main content like your homepage */
}

/* --- Header Styling --- */

header {
    padding: 40px 20px;
}

header h1 {
    font-size: 3em;
    font-weight: normal;
    margin-bottom: 0.1em;
}

header p a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2em;
    opacity: 0.7;
    transition: opacity 0.2s;
}

header p a:hover {
    opacity: 1;
}

/* --- Menu Styling --- */

.games-menu {
    max-width: 600px; /* Limit menu width for focus */
    margin: 40px auto;
}

.games-menu ul {
    list-style: none; /* Remove bullet points */
    padding: 0;
}

.games-menu li {
    margin-bottom: 8px;
    border-radius: 4px;
    text-align: left; /* Align text within the menu items */
}

.games-menu li a {
    display: flex; /* Use flex to align icon and name */
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--bg-color); /* Matches body, so it blends */
    border: 1px solid var(--hover-bg); /* Subtle border for separation */
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    font-size: 1.3em;
}

/* Hover and Focus State for Tab-Through Navigation */
.games-menu li a:hover,
.games-menu li a:focus {
    outline: none; /* Remove default focus outline */
    background-color: var(--hover-bg); /* Darker background on hover/focus */
    border-color: var(--link-color); /* Highlight border on focus/hover */
    color: var(--link-color); /* Blue text on focus/hover */
    box-shadow: 0 0 10px rgba(97, 175, 239, 0.3); /* Subtle glow on focus */
}

/* Folder/File Icon Styling */
.games-menu .folder-icon {
    color: var(--accent-green); /* Green color for the folder text */
    font-size: 0.8em;
    margin-right: 15px;
    opacity: 0.8;
}

.games-menu li a:hover .folder-icon,
.games-menu li a:focus .folder-icon {
    opacity: 1;
}

.games-menu .game-name {
    /* The name of the game */
    font-weight: bold;
}
