/* =========================
   RESET & BASE STYLES
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Courier New", monospace;
  background: #f4c16e;
  color: #111;
  overflow-x: hidden;
  user-select: none;
  line-height: 1.5;
  position: relative;
}

/* =========================
   BACKGROUND IMAGES
========================= */
.background-images {
  position: absolute; /* stays in document flow */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* behind UI */
}
.background-images img {
  position: absolute;
  transform-origin: center center;
  cursor: pointer;
}

/* =========================
   HEADER
========================= */
header {
  position: relative;
  z-index: 10;
  background: #f4c16e;
  border: 3px solid black;
  margin: 30px auto 20px auto;
  padding: 20px 30px;
  width: 90%;
  max-width: 1000px;
  text-align: center;
  border-radius: 4px;
}
header h1 {
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================
   PLAY BUTTON
========================= */
.play-game {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 25px;
  background: black;
  color: #f4c16e;
  text-decoration: none;
  font-weight: bold;
  border: 3px solid black;
  border-radius: 3px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.play-game:hover {
  transform: translateY(-2px);
  background: #222;
}

/* =========================
   MAIN SECTION
========================= */
main {
  position: relative;
  z-index: 10;
  border: 3px solid black;
  background: #f4c16e;
  margin: 20px auto;
  padding: 25px 30px;
  width: 90%;
  max-width: 1000px;
  border-radius: 4px;
}

/* =========================
   ARTICLE GRID
========================= */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: #f4c16e;
  text-decoration: none;
  color: black;
  border: 3px solid black;
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.15s ease, background 0.15s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  background: #f7d18b;
}
.article-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-bottom: 1px solid black;
}
.article-card h3 {
  text-align: center;
  font-size: 16px;
  padding: 10px 5px;
  border-top: 1px solid black;
}

/* =========================
   SECTIONS
========================= */
section {
  margin-top: 40px;
}
section h2 {
  font-size: 20px;
  margin-bottom: 15px;
  text-transform: uppercase;
  border-bottom: 2px solid black;
  padding-bottom: 5px;
}

/* =========================
   FOOTER
========================= */
footer {
  position: relative;
  z-index: 10;
  text-align: center;
  font-size: 14px;
  border: 3px solid black;
  padding: 15px;
  margin: 30px auto 20px auto;
  width: 90%;
  max-width: 1000px;
  border-radius: 4px;
  background: #f4c16e;
}