/* ~*~ NES World Wide v1337 Styles ~*~ */

/* Body background: brown rock wall tiles */
body {
  background-color: #2a1a0a;
  color: #FFD700;
  font-family: "Comic Sans MS", "MS Sans Serif", Arial, sans-serif;
  margin: 0;
  padding: 10px;
  background-image: url('img/bg_rock_wall_4x.png');
  background-repeat: repeat;
  background-size: 640px 640px;
}

/* Marquee banners: snake wall decoration */
.top-banner {
  background-color: #0a1a0a;
  background-image: url('img/bg_snake_wall.png');
  background-repeat: repeat;
  background-size: 640px 192px;
  color: #00FF00;
  font-size: 18px;
  font-weight: bold;
  padding: 5px 0;
  border: 3px ridge #228B22;
  margin-bottom: 10px;
  text-shadow: 2px 2px #000;
}

.bottom-banner {
  background-color: #0a1a0a;
  background-image: url('img/bg_snake_wall.png');
  background-repeat: repeat;
  background-size: 640px 192px;
  color: #00FF00;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 0;
  border: 3px ridge #228B22;
  margin-top: 10px;
  text-shadow: 2px 2px #000;
}

/* Main layout table: solid black for readability */
.main-table {
  border: 4px ridge #3e2a1a;
  background-color: #0a0a0a;
  width: 95%;
  max-width: 950px;
}

/* Sidebar: snake wall decoration */
.logo-cell {
  width: 210px;
  vertical-align: top;
  padding: 15px;
  background-color: #0a1a0a;
  background-image: url('img/bg_snake_wall.png');
  background-repeat: repeat;
  background-size: 640px 192px;
  border-right: 3px ridge #228B22;
  text-align: center;
}

/* Content area: solid black for readability */
.content-cell {
  vertical-align: top;
  padding: 15px;
  background-color: #000000;
}

/* NES Logo */
.nes-logo {
  position: relative;
  margin: 0 auto;
  width: 180px;
}

.nes-arc {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 6px;
  color: #FF4500;
  text-shadow: 3px 3px #0a1a0a, -1px -1px #8B0000;
  text-align: center;
  padding: 8px 0;
  border: 3px solid #228B22;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  background: linear-gradient(to bottom, #0a2a0a, #0a1a0a);
}

.nes-bar {
  font-size: 9px;
  letter-spacing: 2px;
  color: #00FF00;
  text-align: center;
  padding: 4px 0;
  background: linear-gradient(to bottom, #0a1a0a, #050f05);
  border: 2px solid #228B22;
  border-top: none;
  border-radius: 0 0 4px 4px;
}

/* Construction text */
.construction-text {
  background-color: #1a1a00;
  color: #FF4500;
  font-size: 11px;
  font-weight: bold;
  padding: 5px;
  border: 2px dashed #228B22;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.3; }
}

/* Netscape badge */
.netscape-badge {
  border: 2px outset #3e2a1a;
  background-color: #0a0a0a;
  color: #00FF00;
  padding: 8px;
  font-size: 10px;
  margin-top: 15px;
  text-align: center;
}

/* Navigation box: black for readability */
.nav-box {
  border: 2px ridge #228B22;
  background-color: #000000;
  padding: 10px;
  margin-top: 15px;
  text-align: left;
  font-size: 12px;
  line-height: 2;
}

.nav-box a {
  color: #00FF00;
  text-decoration: underline;
  font-size: 12px;
}

.nav-box a:hover {
  color: #FF4500;
  background-color: #FFD700;
}

/* Headings */
h1 {
  color: #FF4500;
  font-size: 28px;
  text-align: center;
  text-shadow: 2px 2px #000;
  text-decoration: underline;
  letter-spacing: 2px;
}

h2 {
  color: #00FF00;
  font-size: 20px;
  text-decoration: underline;
  border-bottom: 2px dashed #228B22;
  padding-bottom: 5px;
}

/* Intro text */
.intro {
  font-size: 16px;
  line-height: 1.6;
  color: #FFD700;
}

/* Horizontal rules: snake pattern decoration */
hr {
  border: none;
  height: 32px;
  background-image: url('img/bg_snake_wall.png');
  background-repeat: repeat-x;
  background-size: 640px 192px;
  margin: 20px 0;
}

/* Star list */
.star-list {
  color: #FFD700;
  font-size: 15px;
  line-height: 1.8;
  padding-left: 20px;
}

.star-list li {
  margin-bottom: 12px;
  list-style-type: "⭐ ";
}

/* Hardware/History table: solid dark background */
.hardware-table {
  border: 3px ridge #3e2a1a;
  width: 100%;
  background-color: #1a1a0a;
  color: #FFD700;
  font-size: 14px;
  border-collapse: separate;
  border-spacing: 2px;
}

.hardware-table th {
  background-color: #3e2a1a;
  color: #FFD700;
  padding: 8px;
  font-size: 14px;
  border: 2px ridge #5a3a2a;
}

.hardware-table td {
  padding: 6px 8px;
  border: 1px solid #2a1a0a;
  text-align: center;
}

.hardware-table tr:nth-child(even) {
  background-color: #0a0a00;
}

/* Sprite gallery */
.sprite-gallery {
  text-align: center;
}

.sprite-card {
  display: inline-block;
  border: 3px ridge #3e2a1a;
  background-color: #0a0a0a;
  padding: 10px;
  margin: 8px;
  vertical-align: top;
  max-width: 45%;
}

.sprite-img {
  max-width: 100%;
  height: auto;
  border: 2px inset #2a1a0a;
  background-color: #000;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.sprite-caption {
  padding: 8px;
  color: #FFD700;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.sprite-note {
  color: #5a3a2a;
  font-size: 12px;
  text-align: center;
}

.sprite-note a {
  color: #00FF00;
}

/* Top 10 list */
.top10 {
  color: #FFD700;
  font-size: 15px;
  line-height: 1.8;
  padding-left: 30px;
}

.top10 li {
  margin-bottom: 10px;
}

.top10 li:nth-child(1) {
  color: #FFD700;
  font-size: 17px;
}

.top10 li:nth-child(2) {
  color: #DAA520;
}

.top10 li:nth-child(3) {
  color: #CD853F;
}

/* Comparison table: solid dark background */
.vs-table {
  border: 3px ridge #3e2a1a;
  width: 100%;
  background-color: #1a1a0a;
  color: #FFD700;
  font-size: 14px;
  border-collapse: separate;
  border-spacing: 2px;
}

.vs-table th {
  background-color: #3e2a1a;
  color: #FFD700;
  padding: 8px;
  border: 2px ridge #5a3a2a;
}

.vs-table td {
  padding: 6px 8px;
  border: 1px solid #2a1a0a;
  text-align: center;
}

.vs-table td:first-child {
  font-weight: bold;
  color: #FF4500;
}

/* FAQ */
.faq dt {
  color: #FF4500;
  font-size: 16px;
  margin-top: 15px;
}

.faq dd {
  color: #FFD700;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Link list */
.link-list {
  list-style-type: "🔗 ";
  color: #FFD700;
  font-size: 15px;
  line-height: 2;
}

.link-list a {
  color: #00FF00;
  text-decoration: underline;
}

.link-list a:visited {
  color: #FF6347;
}

.link-list a:hover {
  color: #FF4500;
  background-color: #FFD700;
}

/* Guestbook: solid dark background */
.guestbook {
  border: 3px ridge #3e2a1a;
  background-color: #0a0a0a;
  padding: 15px;
}

.guestbook a {
  color: #00FF00;
  font-size: 16px;
}

.guestbook-entry {
  border: 1px dashed #3e2a1a;
  background-color: #1a1a0a;
  padding: 8px 12px;
  margin: 8px 0;
  color: #FFD700;
  font-size: 14px;
}

/* Hit counter */
.hit-counter {
  display: inline-flex;
  gap: 2px;
  margin: 10px 0;
}

.digit {
  background-color: #000;
  color: #00FF00;
  font-family: "Courier New", monospace;
  font-size: 24px;
  font-weight: bold;
  padding: 4px 8px;
  border: 2px inset #2a1a0a;
}

/* Webring: snake wall decoration */
.webring {
  border: 3px double #228B22;
  background-color: #0a1a0a;
  background-image: url('img/bg_snake_wall.png');
  background-repeat: repeat;
  background-size: 640px 192px;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  color: #00FF00;
}

.webring a {
  color: #00FF00;
}

/* Badges */
.badges {
  text-align: center;
}

.badge {
  display: inline-block;
  border: 2px outset #3e2a1a;
  background: linear-gradient(to bottom, #2a1a0a, #0a0a00);
  color: #FFD700;
  font-size: 11px;
  font-weight: bold;
  padding: 5px 12px;
  margin: 4px;
  font-family: "MS Sans Serif", Arial, sans-serif;
}

/* Footer */
.footer {
  color: #3e2a1a;
  font-size: 12px;
  text-align: center;
  line-height: 1.8;
}

.footer a {
  color: #00FF00;
}

/* Default link colors */
a {
  color: #00FF00;
}

a:visited {
  color: #FF6347;
}

/* Code elements */
code {
  background-color: #0a0a0a;
  color: #00FF00;
  padding: 2px 6px;
  font-size: 13px;
}

/* List styling */
.content-cell ul:not(.star-list):not(.link-list) {
  color: #FFD700;
  font-size: 15px;
  line-height: 1.8;
}
