* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #121212;
  color: white;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px 0;
  border-bottom: 1px solid #333;
}

header h1 {
  font-size: 3rem;
  color: #ff4081;
  margin-bottom: 10px;
}

header p {
  color: #aaa;
  font-size: 1.2rem;
}

.games-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.game-card {
  background-color: #222;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.game-card.coming-soon {
  opacity: 0.7;
  cursor: not-allowed;
}

.game-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.game-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to top, #222, transparent);
}

.rhythm-image {
  background-image: url('img/thumb_rhythmtap.png');
}

.lg-image {
  background-image: url('img/thumb_lemonga.png');
}

.lg-jump-img {
  background-image: url('img/thumb_lemonjump.png');
}

.numberpop-img {
  background-image: url('img/thumb_numberpop.png');
}

.puzzle-image {
  background-image: url('https://images.unsplash.com/photo-1529480384838-c1681c84aca5?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=180&ixid=MnwxfDB8MXxyYW5kb218MHx8cHV6emxlfHx8fHx8MTY4OTAyMjQyOA&ixlib=rb-4.0.3&q=80&w=320');
}

.arcade-image {
  background-image: url('https://images.unsplash.com/photo-1511882150382-421056c89033?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=180&ixid=MnwxfDB8MXxyYW5kb218MHx8YXJjYWRlLGdhbWV8fHx8fHwxNjg5MDIyNDY3&ixlib=rb-4.0.3&q=80&w=320');
}

.zoopick-image {
  background-image: url('img/thumb_zoopick3.png');
}

.numbermath-image {
  background-image: url('img/thumb_numbermath.png');
}

.targettap-image {
  background-image: url('img/thumb_targettap.png');
}

.game-info {
  padding: 20px;
}

.game-info h2 {
  margin-bottom: 10px;
  color: #f8f8f8;
}

.game-info p {
  color: #aaa;
  margin-bottom: 15px;
  font-size: 0.9rem;
  height: 40px;
}

.game-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.8rem;
}

.difficulty {
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: bold;
}

.easy {
  background-color: #4CAF50;
  color: white;
}

.medium {
  background-color: #FFC107;
  color: #333;
}

.hard {
  background-color: #F44336;
  color: white;
}

.category {
  color: #aaa;
}

.play-button {
  width: 100%;
  background-color: #ff4081;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.play-button:hover:not([disabled]) {
  background-color: #f50057;
}

.play-button[disabled] {
  background-color: #555;
  cursor: not-allowed;
}

footer {
  text-align: center;
  color: #666;
  padding: 20px 0;
  border-top: 1px solid #333;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .games-container {
    grid-template-columns: 1fr;
  }

  header h1 {
    font-size: 2.5rem;
  }
}