.fcg-widget-wrapper {
  text-align: center;
  font-family: sans-serif;
  margin-bottom: 40px;
}

.game-board {
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  gap: 10px;
  padding: 10px;
}
    
.card {
  width: 150px;
  height: 150px;
  perspective: 1000px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  border-radius: 8px;
  cursor: pointer;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-front {
  background: #3498db;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

 .card-front small {
      display: none; /* "कार्ड" हा मजकूर लपवला */
}
    
.card-back {
  background: #ecf0f1;
  transform: rotateY(180deg);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 8px;
  overflow: hidden;
  color: #2c3e50;
  
  flex-direction: column;
}

.card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  flex-grow: 1;
}

.card small {
      background-color: RGB(0, 0, 0);
      color: white;
      text-align: center;
      padding: 6px 0;
      font-size: 14px;
      user-select: none;
}

/* Scoreboard */
.scoreboard {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 15px;
}

/* Navigation Buttons */
.fcg-navigation {
  display: flex;
  justify-content: space-between;
  max-width: 600px;
  margin: 20px auto 0;
  padding: 0 10px;
}

.fcg-navigation button {
  padding: 8px 16px;
  background: #2ecc71;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.fcg-navigation button:hover {
  background: #27ae60;
}

/* Popup */
.fcg-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-content {
  background: white;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Header */
.fcg-header {
  display: flex;
  flex-direction: column; /* एकाखाली एक घटक दिसतील */
  justify-content: space-between;
  align-items: center;	     /* सर्व घटक मध्यभागी येतील */
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 10px;
}

.reset-btn {
  background-color: #f14945;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.reset-btn:hover {
  background-color: #3ae17b;
}