/* pi3.css - Updated styling for Pi3 game */

/* Container for the game */
.game-container {
  padding: 2rem;
}

/* Title styling */
.game-title {
  text-align: center;
  margin-bottom: 1rem;
  color: #333;
}

/* Tab container spacing */
.tab-container {
  margin-bottom: 2rem;
}

/* Main game area styling */
.game-area {
  text-align: center;
  margin: 2rem 0;
}

/* Pi display area: vertical stacking of the completed digits string and current group */
.pi-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  min-height: 3rem;
}

/* Completed pi digits as a continuous text string that wraps if too long */
.pi-completed {
  font-size: 2rem;
  font-weight: bold;
  max-height: 150px;
  overflow-y: auto;
  white-space: normal; /* Allow wrapping */
  word-break: break-all; /* Break continuous string if needed */
  text-align: center;
}

/* Current group container (not used anymore since we display only the continuous string) */
.pi-current {
  display: none;
}

/* Each digit cell (if needed elsewhere) */
.digit-cell {
  width: 50px;
  height: 60px;
  border: 2px dashed #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  border-radius: 8px; /* Rounded corners */
  box-sizing: border-box;
}

/* Decimal point styling */
.decimal-point {
  font-size: 3rem;
  display: inline-flex;
  align-items: center;
  margin: 0 5px;
  line-height: 60px; /* Match this to the height of your .digit-cell */
}

/* Cards container for the clickable number cards */
.cards-container {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 1rem;
}

/* Style for each card button on desktop */
.card {
  background-color: #ff0000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.card:hover {
  background-color: #cc0000;
  transform: scale(1.05);
}

/* Restart button styling */
.button {
  background-color: #ff0000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  margin: 0.5rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  background-color: #cc0000;
  transform: scale(1.03);
}

/* Responsive adjustments for mobile devices */
@media (max-width: 600px) {
  .pi-completed {
    font-size: 1.5rem;
  }

  .digit-cell {
    width: 40px;
    height: 50px;
    font-size: 1.5rem;
  }

  /* Triple the size of the cards on mobile */
.card {
    /* Increase the desktop padding (1rem 1.5rem) by 1.5× */
    padding: 1.5rem 2.25rem !important;
    /* Increase the desktop font-size (1.5rem) by 1.5× */
    font-size: 2.25rem !important;
  }
  }
}
