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

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom right, #000040, #220044);
  font-family: 'Trebuchet MS', sans-serif;
  color: #fff;
  text-align: center;
}

header {
  background: linear-gradient(to right, #003366, #006699);
  padding: 0.8em;
  font-size: 2em;
  font-weight: bold;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  border-bottom: 4px solid #0099cc;
  box-shadow: inset 0 -4px 8px #001933;
}

/* ✅ LED Marquee Styles */
.marquee-container {
  background: #111;
  border-top: 4px solid #ff0000;
  border-bottom: 4px solid #ff0000;
  overflow: hidden;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 15px #ff0000, 0 0 8px #000;
}

.marquee {
  font-family: 'Press Start 2P', monospace;
  white-space: nowrap;
  display: inline-block;
  animation: scroll-left 20s linear infinite;
  color: #ff3300;
  text-shadow: 0 0 5px #ff3300, 0 0 10px #ff0000;
  font-size: 0.7em;
  padding-left: 100%;
}

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

main {
  padding: 2em;
}

.intro h2 {
  font-size: 1.8em;
  margin-bottom: 0.2em;
  color: #ffcc00;
  text-shadow: 2px 2px 0 #000;
}

.intro p {
  color: #ddd;
  font-size: 1.1em;
  text-shadow: 1px 1px 0 #000;
}

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-top: 2em;
  padding: 0 1em;
}

.category {
  background: linear-gradient(to bottom, #004080 0%, #001f4d 100%);
  border: 2px solid #66ccff;
  border-radius: 16px;
  padding: 1.5em 1em;
  color: #fff;
  font-size: 1.2em;
  font-weight: bold;
  text-shadow: 2px 2px 0 #000;
  box-shadow: inset 0 0 8px #000, 0 4px 8px rgba(0,0,0,0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.category:hover {
  transform: scale(1.05);
  border-color: #ffcc00;
  box-shadow: 0 0 15px #ffcc00, inset 0 0 8px #000;
}

.category::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 10px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  border-radius: 8px;
}

.category span {
  display: block;
  margin-top: 1em;
  font-size: 1.1em;
}

.category-page {
  display: flex;
  gap: 2em;
  padding: 2em;
  max-width: 1200px;
  margin: 0 auto;
  color: #fff;
}

.game-list {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}

.game-button {
  background: linear-gradient(to bottom, #004080 0%, #001f4d 100%);
  border: 2px solid #66ccff;
  border-radius: 16px;
  padding: 1.5em 1em;
  color: #fff;
  font-size: 1.3em;
  font-weight: bold;
  text-shadow: 2px 2px 0 #000;
  box-shadow: inset 0 0 8px #000, 0 4px 8px rgba(0,0,0,0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.game-button:hover {
  transform: scale(1.05);
  border-color: #ffcc00;
  box-shadow: 0 0 15px #ffcc00, inset 0 0 8px #000;
}

.game-details {
  flex: 1 1 60%;
  background: linear-gradient(to bottom, #001933 0%, #000814 100%);
  border: 2px solid #0099cc;
  border-radius: 16px;
  padding: 1.5em;
  box-shadow: inset 0 0 10px #003366;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.game-screenshot {
  width: 100%;
  max-width: 500px;
  height: 300px;
  background: #000;
  border: 2px solid #005599;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-style: italic;
  margin-bottom: 1em;
  overflow: hidden;
}

.game-screenshot img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

/* ✅ Retro-styled game buttons */
.game-btn {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.9em;
  padding: 0.6em 1.4em;
  border-radius: 12px;
  border: 2px solid #3399ff;
  background: linear-gradient(to bottom, #004080, #0066cc);
  color: white;
  cursor: pointer;
  box-shadow: 0 0 6px #3399ff;
  transition: background 0.3s ease;
  display: inline-block;
  user-select: none;
  text-align: center;
  margin: 0.25em;
}

.game-btn:hover:not(:disabled) {
  background: linear-gradient(to bottom, #3399ff, #0066cc);
}

.game-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* ✅ Back button style */
#back-button {
  position: fixed;
  top: 1em;
  left: 1em;
  background: linear-gradient(to bottom, #0066cc, #004080);
  color: #fff;
  border: 2px solid #3399ff;
  border-radius: 12px;
  padding: 0.5em 1em;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.8em;
  cursor: pointer;
  box-shadow: 0 0 8px #3399ff;
  transition: background 0.3s ease;
  z-index: 1000;
  user-select: none;
  text-decoration: none;
  display: inline-block;
}

#back-button:hover {
  background: linear-gradient(to bottom, #3399ff, #0066cc);
}
