.game-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

.controls {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
}

#numClicks{    
    color: #08b0c2;
    font-size: 1.8em;
    font-weight: bold;            
}

#deckSelect{
    background-color: #08b0c2;
    color: #FFF;
    font-size: 1.2em;
    font-weight: bold;    
    border-radius: 5px;
    border-color: #08b0c2;
    height: 36px;
}

#deckSelect option {
    color: #FFF;
    font-size: 1.2em;
    font-weight: bold;
}

#newGameBtn{
   font-weight: bold;
   font-size: 1.1em;
}

#currentDeckMessage, #gameOverMessage{
    font-size: 1.8em;
    line-height: 1.4em;
}

#gameBoard div.card a{
    display: none;
}

#gameBoard div.card.matched a{
    display: block;   
}

#gameBoard div.card.matched div.card-face.card-back{
    background-color: rgba(255,255,255,0.3);
    background-blend-mode: lighten;
}

.game-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.card {
  position: relative;
  width: 100%;
  padding-top: 100%; /* square cards */
  cursor: pointer;
  perspective: 800px;
}

.card-inner {
  position: absolute;
  inset: 0;
  transition: transform 0.4s;
  transform-style: preserve-3d;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 8px;
}

.card-front {
  background: #0077cc;
}

.card-back {
  transform: rotateY(180deg);
  background-size: cover;
  background-position: center;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-info {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  background: #f5f5f5;
}

.hidden {
  display: none;
}
