/* === GLOBAL === */
body {
  margin: 0;
  background: #1b1b1b;
  color: #fff;
  font-family: "Tahoma", Tahoma, sans-serif;
}

a {
  transition: 0.0s;
}

/* === HEADER === */
#site-header {
  width: 960px;
  margin: 0 auto;
  color: #fff;
  background: #000;

  position: sticky;   /* makes header sticky */
  top: 0;             /* stick to top of viewport */
  z-index: 999;       /* stays above content */
}

/* Recently PPLLAAYYed bar */
.recent-bar {
  background: #000000;
  border-bottom: 1px solid #222;
  padding: 6px 10px;
  font-size: 17px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
}

.recent-bar .recent-label {
  color: #fff;
  font-weight: normal;
  margin-right: 18px;
}

.recent-wrapper {
  position: relative;
  overflow-x: auto;
  white-space: nowrap;
  padding-right: 20px; /* space for fade */
  scrollbar-width: none; /* Firefox */
}

.recent-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.recent-links a {
  color: #f0ff99;
  text-decoration: none;
  margin-right: 1px;
}

.recent-links a:hover {
  text-decoration: underline;
}

.recent-fade {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 30px;
  background: url('images/20x30_fade.png') no-repeat right center;
  pointer-events: none;
}

/* Logo */
.logo {
  background: #121212;
  text-align: left;
  padding: 0;
  margin: 0;
  line-height: 0;   /* fixes extra bottom spacing */
}

.logo img {
  width: auto;
  height: auto;
  display: block;   /* prevents inline baseline gap */
}

/* Main menu */
.main-menu {
  background: #e3e1d5;
  border-top: 0px solid #ccc;
  border-bottom: 0px solid #ccc;
  padding: 7px 0;
}

.main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
}

.main-menu li {
  display: flex;
  align-items: center;
}

.main-menu a {
  color: #1b1b1b;
  text-decoration: none;
  font-weight: normal;
  font-size: 16px;
}

.main-menu a:hover {
  text-decoration: underline;
}

.main-menu a.top100 {
  color: red;
}

.main-menu a.featured {
  color: #025aff;
}

/* Inline Search */
.search-inline form {
  display: flex;
  align-items: center;
  margin-left: 5px;
}

.search-inline input[type="text"] {
  border: 1px solid #999;
  padding: 3px 4px;
  font-size: 13px;
  width: 200px;
}

.search-inline button {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 3px;
}

.search-inline img {
  width: 16px;
  height: 16px;
}

/* === MAIN CONTENT === */
#content {
  width: 960px;
  margin: 20px auto;
  text-align: center;
}

.game-grid {
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 40px;
}

/* === CLASSIC FOOTER === */
.classic-footer {
  width: 960px;
  margin: 30px auto;
  color: #e3e1d5;
  font-size: 18px;
  text-align: center;
}

.footer-links {
  text-align: left;
  margin-bottom: 5px;
}

.footer-links a {
  color: #000;
  text-decoration: none;
  font-weight: normal;
  margin-right: 18px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-box {
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  text-align: left;
  color: #000;
  line-height: 1.5;
}

.footer-box p {
  margin: 6px 0;
}

.footer-box a {
  color: #e3e1d5;
  text-decoration: none;
}

.footer-box a:hover {
  text-decoration: underline;
}

/* === RESPONSIVE === */
@media (max-width: 980px) {
  #site-header,
  #content,
  .classic-footer {
    width: 100%;
  }

  .main-menu ul {
    flex-wrap: wrap;
  }

  .search-inline input[type="text"] {
    width: 100px;
  }

  .footer-box {
    border-radius: 0;
  }
}
