*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  font-display: swap;
  margin: 0;
  background: #f8f8f8;
  color: #333;
}

header {
  background: #1a1a1a;
  color: #fff;
  padding: 15px 20px;
  text-align: center;
}

nav {
  background: #333;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  transition: background 0.3s ease;
}

nav a:hover {
  background: #444;
  border-radius: 5px;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #fff;
}

.games-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.game-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
  padding: 15px;
}

.game-box img {
  width: 200px;
  height: 200px;
  border-radius: 20%;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-box img:hover {
  transform: scale(1.05);
}

.game-name {
  font-size: 18px;
  font-weight: bold;
  margin-top: 10px;
  color: #1a1a1a;
}

.game-size {
  font-size: 14px;
  color: #666;
  margin: 5px 0;
}

.download-btn {
  background: #28a745;
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.download-btn:hover {
  background: #218838;
}

.descriptions {
  margin-top: 40px;
}

.descriptions h2 {
  text-align: center;
  margin-bottom: 15px;
}

.descriptions p {
  margin: 10px 0;
  line-height: 1.6;
}

footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

footer a {
  color: #fff;
  text-decoration: underline;
  margin: 0 10px;
}

/* ✅ Mobile Responsive Images */
@media (max-width: 600px) {
  .game-box img {
    width: 150px;
    height: 150px;
    border-radius: 20%;
  }
}

/* ✅ Article Section Styling */
.article-content {
  background-color: #fff;
  padding: 25px 20px;
  margin: 0 auto 50px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  max-width: 1200px;
  font-size: 1rem;
  color: #333;
  line-height: 1.7;
}

.article-content h2 {
  font-size: 2rem;
  color: #0f62fe;
  margin-bottom: 20px;
  font-weight: bold;
}

.article-content h3 {
  font-size: 1.4rem;
  color: #0f62fe;
  margin: 30px 0 15px;
  font-weight: 600;
}

.article-content p {
  margin-bottom: 16px;
  color: #444;
}

.article-content ul,
.article-content ol {
  margin-left: 20px;
  margin-bottom: 20px;
  padding-left: 15px;
}

.article-content ul li,
.article-content ol li {
  margin-bottom: 10px;
  padding-left: 5px;
}

.article-content strong {
  font-weight: 600;
  color: #111;
}

@media (max-width: 768px) {
  .article-content {
    padding: 20px 15px;
    font-size: 0.95rem;
  }

  .article-content h2 {
    font-size: 1.6rem;
  }

  .article-content h3 {
    font-size: 1.2rem;
  }
}
