/* ====================================================================================================*/
/* General */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jet+Brains+Mono&display=swap');

html {
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Rubik', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 600%;
  /* Scaled x2 */
}

p {
  margin: 0;
  padding: 0;
  font-size: 250%;
  /* Scaled x2 */
}

/* ====================================================================================================*/
/* Tabs */
.tabs {
  display: flex;
  margin: 0;
  padding: 0;
  background-color: #ddd;
  position: fixed;
  bottom: 0;
  width: 100%;
}

.tab {
  cursor: pointer;
  padding: 20px;
  /* Scaled x2 */
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tab.active {
  background-color: #aaa;
}

.tab img {
  width: 120px;
  /* Scaled x2 */
  height: 120px;
  /* Scaled x2 */
}

/* Tab Header */
.tab-header {
  background-color: #ddd;
  padding: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1;
}

.tab-header .header-content {
  display: flex;
  align-items: center;
}

.tab-header img {
  width: 120px;
  /* Scaled x2 */
  height: 120px;
  /* Scaled x2 */
  margin: 0px 20px;
  /* Scaled x2 */
}

[data-tab-header] {
  display: none;
}

.active[data-tab-header] {
  display: flex;
}

/* Tab Content */
[data-tab-content] {
  margin: 120px 0px 160px 0px;
  /* Scaled x2 */
  display: none;
  flex: 1;
}

.active[data-tab-content] {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.reset-button {
  cursor: pointer;
  background-color: transparent;
  border: none;
  padding: 0px;
  margin-left: auto;
  display: flex;
  align-items: center;
  position: absolute;
  right: 0;
}

.reset-button img {
  width: 80px;
  height: 80px;
  margin: 0px 20px;
  /* Scaled x2 */
}

/* ====================================================================================================*/
/* Players */
#hiders,
#seekers {
  padding: 0px 40px 200px 40px;
  /* Scaled x2 */
  min-height: 120px;
  /* Scaled x2 */
  margin: 40px 0;
  /* Scaled x2 */
}

#hiders ul,
#seekers ul {
  padding: 0;
  margin: 0;
}

#hiders h2 img,
#seekers h2 img {
  width: 80px;
  /* Scaled x2 */
  height: 80px;
  /* Scaled x2 */
  margin-right: 40px;
  /* Scaled x2 */
}

.player {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  background-color: #eee;
  margin: 20px 0;
  /* Scaled x2 */
  color: white;
  padding: 10px;
  /* Scaled x2 */
  border-radius: 20px;
  text-transform: uppercase;
  font-size: 400%;
  /* Scaled x2 */
  font-weight: bold;
}

.player-left,
.player-right {
  display: flex;
  align-items: center;
}

#players-content {
  display: flex;
  flex-direction: column;
}

.player-icon {
  width: 80px;
  /* Scaled x2 */
  height: 80px;
  /* Scaled x2 */
  margin: 20px;
  /* Scaled x2 */
}

.time {
  font-family: 'Jet Brains Mono', monospace;
  font-size: 100%;
  /* Scaled x2 */
}

.add-time-button {
  cursor: pointer;
  background-color: transparent;
  border: none;
  width: 80px;
  /* Scaled x2 */
  height: 80px;
  /* Scaled x2 */
  padding: 0;
  margin: 20px;
  /* Scaled x2 */
}

.add-time-button img {
  width: 100%;
  height: 100%;
}

/* ====================================================================================================*/
/* Questions */
#questions-content {
  display: flex;
  flex-direction: column;
  padding: 0px 40px 200px 40px;
  /* Scaled x2 */
}

.question-category {
  display: flex;
  align-items: center;
  margin: 40px 0;
  /* Scaled x2 */
}

.question-category img {
  width: 80px;
  /* Scaled x2 */
  height: 80px;
  /* Scaled x2 */
  margin-right: 40px;
  /* Scaled x2 */
}

.question-cost {
  display: none;
  /* Hide the question cost */
}

.questions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  /* Scaled x2 */
}

.question-block {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  /* Scaled x2 */
  border-radius: 20px;
  text-align: center;
  color: white;
  font-size: 100%;
  /* Adjusted to match button text size */
}

.question-block img {
  width: 250px;
  /* Scaled x2 */
  height: 250px;
  /* Scaled x2 */
  margin-bottom: 0;
}

/* ====================================================================================================*/
/* Cards */
#cards-content {
  display: flex;
  flex-direction: column;
  padding: 0px 40px 200px 40px;
  /* Scaled x2 */
}

.card-category {
  display: flex;
  align-items: center;
  margin: 40px 0;
  /* Scaled x2 */
}

.card-category img {
  width: 80px;
  /* Scaled x2 */
  height: 80px;
  /* Scaled x2 */
  margin-right: 40px;
  /* Scaled x2 */
}

.hand-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hand-section img {
  width: 80px;
  /* Scaled x2 */
  height: 80px;
  /* Scaled x2 */
  margin-right: 40px;
  /* Scaled x2 */
}

.draw-cards-button {
  cursor: pointer;
  background-color: transparent;
  border: none;
  width: 80px;
  /* Scaled x2 */
  height: 80px;
  /* Scaled x2 */
  padding: 0;
}

.draw-cards-button img {
  width: 100%;
  height: 100%;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  /* Scaled x2 */
}

.card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 40px;
  /* Scaled x2 */
  border-radius: 20px;
  text-align: center;
  color: white;
  background-color: #aaa;
  font-size: 300%;
  /* Adjusted to match button text size */
}

.card-name {
  font-weight: bold;
  color: black;
  text-transform: uppercase;
  /* Make card names uppercase */
}

/* =====================================================================================================*/
/* Map */
#map-content {
  display: flex;
  flex-direction: column;
}

/* ====================================================================================================*/
/* Pop-up */
.popup-common {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background-color: white;
  padding: 40px;
  /* Scaled x2 */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border-radius: 40px;
  /* Scaled x2 */
  align-items: center;
  text-align: center;
  /* Ensure consistent alignment */
  font-size: 150%;
  /* Unified font size for all pop-ups */
  width: 80%;
}

.popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.popup-content p {
  font-size: 200%;
  /* Unified paragraph size for all pop-ups */
  text-align: center;
  margin: 20px 0;
  /* Consistent spacing */
}

.popup-content input {
  padding: 40px;
  /* Scaled x2 */
  text-align: center;
  margin: 20px 20px;
  /* Scaled x2 */
  border: 8px solid black;
  /* Scaled x2 */
  border-radius: 20px;
  /* Scaled x2 */
  font-family: 'Jet Brains Mono', monospace;
  font-size: 250%;
  /* Scaled x2 */
}

.popup-content .button-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

.popup-content button {
  cursor: pointer;
  background-color: #aaa;
  border: none;
  padding: 40px 80px;
  /* Scaled x2 */
  margin: 0 20px;
  /* Scaled x2 */
  border-radius: 20px;
  /* Scaled x2 */
  flex: 1;
  width: 200px;
  text-align: center;
  font-family: 'Rubik', sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 300%;
  /* Scaled x2 */
}

.popup-content h2 {
  text-align: center;
  width: 100%;
  font-size: 300%;
  /* Unified header size */
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
  /* Consistent spacing */
}

.popup-content input {
  font-size: 200%;
  /* Unified input font size */
  font-family: 'Jet Brains Mono', monospace;
  padding: 20px;
  /* Consistent padding */
  text-align: center;
  margin: 20px 0;
  /* Consistent spacing */
  border: 4px solid black;
  /* Unified border size */
  border-radius: 10px;
  /* Unified border radius */
}

.popup-content button {
  font-size: 200%;
  /* Unified button font size */
  font-family: 'Rubik', sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  padding: 20px 40px;
  /* Consistent padding */
  margin: 0 10px;
  /* Consistent spacing */
  border-radius: 10px;
  /* Unified border radius */
  cursor: pointer;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* ====================================================================================================*/
/* Splash Screen */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

#splash-screen img {
  width: 800px;
  /* Scaled x2 */
  height: auto;
}

#splash-screen h1 {
  margin-top: 40px;
  /* Scaled x2 */
  font-size: 600%;
  /* Scaled x2 */
  font-weight: bold;
  text-transform: uppercase;
}