/* General Body Styles */
body {
  margin: 0;
  font-family: 'Press Start 2P', monospace;
  background: #111;
  color: #eee;
  transition: all 0.3s ease;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(34, 34, 34, 0.9);
  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 {
  font-size: 24px;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
}

.toggle-btn {
  background: #444;
  color: #eee;
  padding: 8px 12px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  margin-left: 10px;
}

/* =========================
   Header
   ========================= */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
}

.site-title {
  font-size: 24px;
  font-family: 'Press Start 2P', monospace;
  color: #ffd700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  margin-right: 24px;
  white-space: nowrap;
}
.light .site-title {
  color: #1976d2;
}

.site-title:hover {
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  position: relative;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color: inherit;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-links li a:hover {
  background: #222;
}

.toggle-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  background: #222;
  color: #ffd700;
  border: 2px solid #555;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.toggle-btn:hover {
  background: #ffd700;
  color: #222;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  margin-left: 10px;
}

.hamburger span {
  display: block;
  height: 4px;
  width: 28px;
  background: #eee;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Hamburger menu for small screens */
@media (max-width: 700px) {
  .header-content {
    padding: 12px 0;
  }
  .main-nav {
    justify-content: flex-end;
  }
  .hamburger {
    display: flex;
    position: relative;
    z-index: 20;
  }
  .nav-menu {
    position: absolute;
    top: 60px;
    right: 0;
    flex-direction: column;
    background: #222;
    width: 220px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    padding: 16px 0;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: right 0.3s, opacity 0.3s;
    align-items: flex-start;
  }
  .nav-menu.open {
    opacity: 1;
    pointer-events: auto;
    right: 0;
    z-index: 10;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  .nav-links li a {
    display: block;
    padding: 12px 24px;
    font-size: 16px;
  }
  .toggle-btns {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin-top: 12px;
    align-items: flex-start;
    padding-left: 24px;
  }
  #Top100,
  #RareItems,
  #TradeIns,
  #AboutUs {
    scroll-margin-top: 60px; /* Adjust for mobile header height */
  }
}

/* =========================
   Section Scroll Offset
   ========================= */
#Top100,
#RareItems,
#TradeIns,
#AboutUs {
  scroll-margin-top: 90px; /* Adjust to match your header height */
}

/* =========================
   Light Mode for Header & Hamburger
   ========================= */
.light header {
  background: #fff;
  color: #222;
}

.light .nav-menu {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.00) !important;
  border-color: #fff !important;
}

.light .nav-links li a {
  color: #222 !important;
  background: transparent !important;
}

.light .nav-links li a:hover {
  background: #eee !important;
  color: #1976d2 !important;
}

.light .toggle-btn {
  background: #eee !important;
  color: #1976d2 !important;
  border-color: #ddd !important;
}

.light .toggle-btn:hover {
  background: #1976d2 !important;
  color: #fff !important;
}

.light .hamburger span {
  background: #1976d2 !important;
}

/* Hero Image Section */
.image-hero {
  position: relative;
  background: url('/481512550_617996851200324_5009240736650112254_n.jpg') center/cover no-repeat;
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}

.image-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.image-hero h1,
.image-hero p {
  position: relative;
  z-index: 1;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.image-hero h1 {
  font-size: 32px;
  margin: 0 0 10px;
}

.image-hero p {
  font-size: 14px;
  max-width: 600px;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 40px 20px;
  background: #000;
  border-bottom: 2px solid #333;
}

.hero h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

/* Rare Items Grid */
.rare-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px;
}

.item {
  background: #222;
  padding: 20px;
  border: 2px solid #555;
  border-radius: 8px;
  text-align: center;
}

.item h3 {
  font-size: 14px;
  margin-bottom: 10px;
}

.item p {
  font-size: 12px;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* CRT Mode */
.crt {
  background: #000;
  color: #0f0;
  text-shadow: 0 0 5px #0f0;
}

.crt .hero {
  border-color: #0f0;
}

.crt .item {
  border-color: #0f0;
}
.crt .price {
  color: #0f0;
}
.crt::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0px,
    rgba(0, 0, 0, 0.2) 2px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 9999;
  animation: flicker 0.15s infinite;
}

/* Scanline overlay just for hero in CRT mode */
.crt .image-hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0px,
    rgba(0, 0, 0, 0.3) 1px,
    transparent 1px,
    transparent 3px
  );
  animation: scanlines 2s linear infinite;
  z-index: 2;
  pointer-events: none;
}
	.top100-section {
		padding: 2rem 0;
		max-width: 1200px;
		margin: 0 auto;
	}

	.top100-section h2 {
		text-align: center;
		margin-bottom: 2rem;
		font-size: 2rem;
		letter-spacing: 1px;
	}

	.games-grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
		gap: 1.2rem;
	}

	.game-card {
		background: #222;
		border-radius: 8px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
		padding: 1.2rem;
		text-align: center;
		transition: box-shadow 0.2s;
    font-family: 'Press Start 2P', monospace;
	}

	.game-card:hover {
		box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	}

	.game-card h3 {
		margin: 0 0 0.5rem 0;
		font-size: 1.1rem;
		color: #fff;
	}

	.console {
		font-size: 0.95rem;
		color: white;
		margin-bottom: 0.5rem;
    font-family: 'Press Start 2P', monospace;
	}

	.price {
		font-weight: bold;
		color: #1976d2;
		font-size: 1rem;
	}

/* Trade-In Section Styles */
.tradein-section {
  padding: 40px 0;
  max-width: 900px;
  margin: 0 auto;
  background: transparent;
}

.tradein-section h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 30px;
  font-family: 'Press Start 2P', monospace;
  letter-spacing: 1px;
  color: #eee;
  text-shadow: 0 0 10px #222;
}

.tradein-card {
  background: #222;
  padding: 28px 24px;
  border: 2px solid #555;
  border-radius: 8px;
  color: #eee;
  font-family: 'Press Start 2P', monospace;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  text-align: left;
}

.tradein-card ul {
  margin: 18px 0;
  padding-left: 22px;
}

.tradein-card li {
  font-size: 12px;
  margin-bottom: 10px;
  color: #ffd700;
  text-shadow: 0 0 5px #333;
}

.tradein-card p {
  font-size: 13px;
  margin-bottom: 10px;
}

/* Light mode styles for Trade-In Section */
.light .tradein-section {
  background: #fff;
}

.light .tradein-section h2 {
  color: #222;
  text-shadow: none;
}

.light .tradein-card {
  background: #fff;
  border-color: #ddd;
  color: #222;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.light .tradein-card li {
  color: #1976d2;
  text-shadow: none;
}

@media (max-width: 600px) {
  .tradein-section {
    padding: 20px 0;
  }
  .tradein-card {
    padding: 16px 8px;
  }
}

/* About Us Section Styles */
.aboutus-section {
  padding: 40px 0;
  max-width: 900px;
  margin: 0 auto;
}

.aboutus-section h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 30px;
  font-family: 'Press Start 2P', monospace;
  letter-spacing: 1px;
  color: #eee;
  text-shadow: 0 0 10px #222;
}

.aboutus-card {
  background: #222;
  padding: 28px 24px;
  border: 2px solid #555;
  border-radius: 8px;
  color: #eee;
  font-family: 'Press Start 2P', monospace;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  text-align: left;
}

.aboutus-card ul {
  margin: 18px 0;
  padding-left: 22px;
}

.aboutus-card li {
  font-size: 12px;
  margin-bottom: 10px;
  color: #ffd700;
  text-shadow: 0 0 5px #333;
}

.aboutus-card a {
  color: #00e676;
  text-decoration: underline;
}

.aboutus-card p {
  font-size: 13px;
  margin-bottom: 10px;
}

/* Light mode styles for About Us Section */
.light .aboutus-section h2 {
  color: #222;
  text-shadow: none;
}

.light .aboutus-card {
  background: #fff;
  border-color: #ddd;
  color: #222;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.light .aboutus-card li {
  color: #1976d2;
  text-shadow: none;
}

.light .aboutus-card a {
  color: #1976d2;
}

@media (max-width: 600px) {
  .aboutus-section {
    padding: 20px 0;
  }
  .aboutus-card {
    padding: 16px 8px;
  }
}

/* Animations */
@keyframes scanlines {
  0% { background-position: 0 0; }
  100% { background-position: 0 4px; }
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 24%, 55% {
    opacity: 0.8;
  }
}

/* Light Mode */
.light {
  background: #fafafa;
  color: #222;
}

.light header {
  background: #fff;
  color: #222;
}

.light .hero {
  background: #f0f0f0;
  border-color: #ccc;
}

.light .item {
  background: #fff;
  border-color: #ddd;
}

.light .game-card {
  background: #fff;
  border-color: #ddd;
}
.light .game-card h3 {
  color: #222;
}
.light .console {
  color: #777;
}

/* Light mode styles for hamburger menu */
.light .nav-menu {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-color: #ddd;
}

.light .nav-links li a {
  color: #222;
  background: transparent;
}

.light .nav-links li a:hover {
  background: #eee;
}

.light .toggle-btn {
  background: #eee;
  color: #1976d2;
  border-color: #ddd;
}

.light .toggle-btn:hover {
  background: #1976d2;
  color: #fff;
}

.top100-description {
  text-align: center;
  margin-bottom: 1.5rem;
}