body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #2c3e50;
  color: #ecf0f1;
}

#game-container {
  width: 90%;
  max-width: 800px;
  height: 90vh;
  background-color: #34495e;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

#opponent-hand, #player-hand {
  height: 100px;
  display: flex;
  justify-content: center;
  overflow-x: auto;
}

#table {
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  overflow-y: auto;
}

#deck {
  position: absolute;
  right: 20px;
  bottom: 120px;
  text-align: right;
}

.card {
  width: 60px;
  height: 90px;
  margin: 0 5px;
  display: inline-block;
  transition: transform 0.2s;
  border: none;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

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

.card-pair {
  display: inline-flex;
  flex-direction: column;
  margin: 0 10px;
}

#game-state {
  text-align: center;
  font-size: 1.2em;
  margin: 10px 0;
}

#controls {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

button {
  padding: 10px 20px;
  font-size: 1em;
  margin: 0 10px;
  cursor: pointer;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #2980b9;
}

button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  #game-container {
    width: 95%;
    height: 95vh;
    padding: 10px;
  }

  .card {
    width: 40px;
    height: 60px;
  }

  #opponent-hand, #player-hand {
    height: 70px;
  }

  #table {
    height: 150px;
  }

  button {
    padding: 8px 16px;
    font-size: 0.9em;
  }
}