/* Reset and base styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fdfdfd;
  color: #111;
}

header {
  text-align: center;
  padding: 3rem 1rem 1rem;
}

h1 {
  font-size: 3rem;
  margin: 0;
}

header p {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: #555;
}

/* Portfolio container */
.portfolio {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background-color: #ffffff;
  border-radius: 8px;
}

/* Game section layout */
.game-section {
  margin-bottom: 1rem;
  border-radius: 8px;
}

.game-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.8rem;
}

.game-content.alt {
  flex-direction: row-reverse;
}

.game-image img {
  width: 350px;
  border-radius: 8px;
  display: block;
}

.game-text {
  flex: 1;
  max-width: 300px;
  display: block;
  
}

.game-text-alt {
  flex: 1;
  direction: rtl;
}

.game-text-alt h2 {
  margin-top: 0;
  font-size: 2rem;
  position: relative;
  top:25px;
}

.game-text-alt p {
  max-width: 300px;
}

.game-text h2 {
  margin-top: 0;
  font-size: 2rem;
  position: relative;
  top:25px;
}

.game-text p {
  font-size: 1rem;
  color: #333;
}

/* Alternate layout every second item */
.game-section.alt.game-content {
  flex-direction: row-reverse;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #999;
  font-size: 0.9rem;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .game-content {
    flex-direction: column;
    text-align: center;
  }

  .game-content.alt {
    flex-direction: column;
  }

  .game-image img {
    width: 100%;
    max-width: 100%;
  }
}
