/* Import the pixel font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    background-color: #000;
    color: #00ff00; /* Neon green */
    font-family: 'Press Start 2P', cursive;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden; /* Hide scrollbars */
}

/* CRT scanline effect */
.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0) 50%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.4) 100%
    );
    background-size: 100% 4px;
    animation: scanline-anim 15s linear infinite;
    pointer-events: none;
}

@keyframes scanline-anim {
    from { background-position: 0 0; }
    to { background-position: 0 -100vh; }
}

.arcade-cabinet {
    width: 90%;
    max-width: 800px;
    background: #0a0a0a;
    border: 10px solid #333;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 
        inset 0 0 40px #000,
        0 0 30px #ff00ff, /* Magenta glow */
        0 0 50px #00ffff; /* Cyan glow */
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.arcade-header .flicker {
    font-size: 2rem;
    color: #00ffff;
    animation: flicker-anim 3s infinite;
}

.arcade-header .logo-text {
    font-size: 3rem;
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
    margin: 0;
}

@keyframes flicker-anim {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 20px #00ffff;
        opacity: 1;
    }
    20%, 24%, 55% {
        text-shadow: none;
        opacity: 0.6;
    }
}

.game-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.game-selector label {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 0 5px #00ff00;
}

.game-selector select, .game-selector button {
    font-family: 'Press Start 2P', cursive;
    background-color: #222;
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 15px;
    font-size: 1rem;
    width: 80%;
    max-width: 400px;
    text-align: center;
    appearance: none; /* Removes default OS styling */
    -webkit-appearance: none;
}

.game-selector select {
    cursor: pointer;
}

.game-selector button {
    cursor: pointer;
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 15px #00ff00;
    transition: all 0.2s ease-in-out;
}

.game-selector button:hover {
    background-color: #fff;
    color: #000;
    box-shadow: 0 0 25px #00ff00, 0 0 10px #fff;
}

.arcade-footer p {
    font-size: 0.8rem;
    color: #777;
}

/* Main Navigation Menu - Base Styles */
.main-nav {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* A semi-transparent black background */
  padding: 10px 0;
  text-align: center;
  border-bottom: 2px solid #333;
  margin-bottom: 20px;
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li {
  display: inline-block;
  margin: 0 15px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 5px 10px;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  text-decoration: underline;
}

/* Arcade Menu Theme */
.main-nav {
    background-color: #111;
    border-bottom-color: #00ff00;
    font-family: 'Press Start 2P', cursive;
}
.main-nav a {
    color: #ff00ff;
}
.main-nav a:hover {
    background-color: #00ff00;
    color: #000;
    text-decoration: none;
}