/* Global Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f5f5f7; /* Light gray background common in Apple design */
  color: #1d1d1f; /* Dark text for readability */
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

header {
  background-color: #fff;
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #ccc;
}

header h1 {
  color: #007AFF; /* Apple blue */
  margin: 0;
  font-size: 2.2em;
}

nav {
  background-color: #333;
  padding: 10px 0;
  text-align: center;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline;
  margin-right: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.1em;
}

nav ul li a:hover {
  text-decoration: underline;
}

.content {
  max-width: 900px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.content h2 {
    margin-top: 0;
    color: #5856D6; /* A complementary Apple-style purple */
}

/* Game Gallery Styles (for index.html) */
.game-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 10px;
  gap: 20px;
}

.game-card {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  width: 300px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-in-out;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card h3 {
  margin-top: 0;
  color: #007AFF; /* Apple blue */
}

.game-card p {
  font-size: 0.9em;
  color: #555;
  min-height: 50px; /* Adjust as needed for content */
  margin-bottom: 15px;
}

.play-button {
  display: inline-block;
  background-color: #007AFF; /* Apple blue */
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.play-button:hover {
  background-color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8em;
  }
  .game-card {
    width: calc(50% - 20px); /* Two cards per row on smaller screens */
  }
}

@media (max-width: 480px) {
  nav ul li {
    display: block;
    margin-bottom: 10px;
  }
  .game-card {
    width: 100%; /* One card per row on very small screens */
  }
}

/* Styles for iframe container (used in game pages) */
.iframe-container {
    position: relative;
    width: 100%;
    max-width: 840px; /* Reduced from 1200px to shrink horizontally by ~30% */
    padding-bottom: 75%; /* Adjust aspect ratio if needed, e.g., 4:3 */
    height: 0;
    overflow: hidden;
    margin: 20px auto; /* Center the iframe container */
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}