/* =========================
   Your Original imposter.css
   ========================= */

body {
  font-family: "Peralta", serif;
  font-weight: 400;
  font-style: normal;
  font-weight: bold;
  font-optical-sizing: auto;
  text-align: center;
  background-color: #fcfcec;
  
  background-size: 40px 40px;
  color: #000000;
  margin: 0;
  padding: 0;
}

.navbar {
  position: relative;
  display: flex;
  justify-content: left;
  align-items: left;
  background-color: #FFF;
  padding: 15px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
#first {
  font-size: 70px;
  font-weight: bold;
}

.nav-left {
  position: absolute;
  right: 20px;
}
.nav-title-link {
  text-decoration: none;
  color: inherit;
}
.nav-center h1 {
  font-family: "Boldonse", system-ui;
  font-style: normal;
  margin: 0;
  font-size: 28px;
  color: 000;
  letter-spacing: 1px'
}
#playnB {
  font-family: "Peralta", "sans-serif";
}

.grid {
  margin-bottom: 40px;
}

#daily-question {
  font-size: 24px;
  margin-top: 20px;
  color: #000;
  text-shadow: 1px 1px 0 #fff;
}
#question, #score-display {
  color: #000;
text-shadow: 1px 1px 0 #fff;
} 

#daily-prompt {
  font-size: 18px;
  font-style: italic;
  margin-top: -10px;
  margin-bottom: 20px;
  color: #000;
  text-shadow:
    1px 1px 0 #ccc,
    2px 2px 0 #bbb,
    3px 3px 0 #aaa;
}

.game-container {
  color: #FFF;
  padding: 30px;
  color: rgba(255, 255, 255, 0.944);
  text-shadow:
    -1px -1px 0 black,
    1px -1px 0 black,
    -1px 1px 0 black,
    1px 1px 0 black,
    2px 2px 0 #444,
    3px 3px 0 #222;
}

.scoreboard {
  display: flex;
  justify-content: space-around;
  max-width: 500px;
  margin: 20px auto;
  font-size: 27px;
  font-weight: bold;
  font-family: "Peralta", "sans-serif"!important;
}

.grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.player-tile {
  background-color: #ffffff10;
  border: 2px solid white;
  border-radius: 12px;
  width: 150px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s, background 0.3s;
}

.player-tile img {
  width: 100%;
  display: block;
  border-bottom: 2px solid white;
}

.player-tile p {
  background-color: #222;
  margin: 0;
  padding: 10px 0;
  font-weight: bold;
  font-size: 14px;
  color: white;
}

.player-tile:hover {
  background-color: #ffffff30;
  transform: scale(1.05);
}

#result-message {
  margin-top: 30px;
  font-size: 20px;
  font-weight: bold;
  text-shadow:
    -1px -1px 0 black,
    1px -1px 0 black,
    -1px 1px 0 black,
    1px 1px 0 black,
    2px 2px 0 #444,
    3px 3px 0 #222;
}

#start-btn {
  border-radius: 8px;
  font-size: 30px;
  background-color: #ffcc00;
  color: #FFF;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-family: "Teko", sans-serif;

  /* Cubed effect */
  text-shadow:
    1px 1px 0 #000,
    2px 2px 0 #000,
    3px 3px 0 #000;

  box-shadow:
    3px 3px 0 #444,
    4px 4px 0 #222;
}

#hint-btn, #home-btn, #retry-btn, #backhome-btn {
  border-radius: 8px;
  font-size: 10px;
  background-color: #ffcc00;
  color: #FFF;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-family: "Teko", sans-serif;

  /* Cubed effect */
  text-shadow:
    1px 1px 0 #000,
    2px 2px 0 #000,
    3px 3px 0 #000;

  box-shadow:
    3px 3px 0 #444,
    4px 4px 0 #222;
}

.footer {
  position: static; /* NOT fixed */
  width: 100%;
  color: #000;
  text-align: center;
  padding: 10px 0;
  font-family: "Teko", sans-serif;
  letter-spacing: 1px;
  margin-top: 40px;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: #fff;
  color: #000;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: relative;
  font-family: "Teko", sans-serif;
  text-align: center;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 30px;
  color: #000;
  cursor: pointer;
  font-weight: bold;
}

#twitter {
  font-size: 10px;
}

#retry-btn, #backhome-btn {
  font-size: 20px;
  box-align: center;
}

#hint-btn {
  margin-top: 20px;
  margin-bottom: 10px;
}

#hint {
  margin-top: 10px;
  font-style: italic;
  font-size: 16px;
}

#how-to-play-toggle {
  background-color: #ff00ae;
  color: #fff;
  border: none;
  padding: 2px 10px;
  font-family: "Peralta", sans-serif;
  font-size: 20px;
  border-radius: 8px;
  cursor: pointer;
  

  /* Cubed effect like start button */
  text-shadow:
    1px 1px 0 #000,
    2px 2px 0 #000,
    3px 3px 0 #000;

  box-shadow:
    3px 3px 0 #444,
    4px 4px 0 #222;
}

#how-to-play-toggle:hover {
  opacity: 0.9;
}



#hardcore-toggle {
  margin: 15px;
  padding: 10px;
  font-weight: bold;
  background: red;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-family: "Teko", sans-serif;
  text-shadow:
    1px 1px 0 #000,
    2px 2px 0 #000,
    3px 3px 0 #000;

  box-shadow:
    3px 3px 0 #444,
    4px 4px 0 #222;
}

.hardcore-button-wrapper {
  text-align: center;
  margin-bottom: 10px;
  margin-top: 40px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: #fff;
  color: #000;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: relative;
  font-family: "Teko", sans-serif;
  text-align: center;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 30px;
  color: #000;
  cursor: pointer;
  font-weight: bold;
}

.privacy-link {
  color: black;
  text-decoration: none;
  font-weight: bold;
}

#daily-btn {
  border-radius: 8px;
  font-size: 30px;
  background-color: #00bfff; /* Light blue color for differentiation */
  color: #FFF;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-family: "Teko", sans-serif;
  margin-top: 10px;

  /* Cubed effect */
  text-shadow:
    1px 1px 0 #000,
    2px 2px 0 #000,
    3px 3px 0 #000;

  box-shadow:
    3px 3px 0 #444,
    4px 4px 0 #222;
}
.mode-selector-container h1,
.mode-selector-container p
, #question
button {
  font-family: "Peralta", sans-serif;
}

@media (max-width: 600px) {
  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 20px;
    justify-items: center;
  }

  .player-tile {
    width: 150px; /* full width on mobile */
  }

  #hint-btn, #start-btn, #home-btn {
    width: 90%;
    font-size: 18px;
    margin-bottom: 12px;
  }

  #daily-btn {
    font-size: 18px;
    width: 40%;
  }

  #score-display, #round-display {
    font-size: 16px;
  }

  .navbar h1, #first {
    font-size: 30px;
  }
  

  .game-container, #game-over {
    padding: 20px;
  }
}

#game-area {
  padding-bottom: 60px;;
}

/* =========================
   New: Three‐Card Mode Selector
   ========================= */

/* Container around the new three‐card selector */
.mode-selector-container {
  max-width: 960px;
  margin: 40px auto;
  text-align: center;
  font-family: 'Teko', sans-serif;
}

.mode-selector-container h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.mode-selector-container p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #333;
}

/* The flex container holding all three cards */
.mode-container {
  display: flex;
  justify-content: center;
  gap: 20px;       /* space between cards */
  flex-wrap: wrap; /* allow wrapping on narrow viewports */
}

/* Base styling for each individual “mode-card” */
.mode-card {
  flex: 1 1 250px;   /* at least 250px wide, grow if extra space */
  max-width: 300px;  /* don’t exceed 300px */
  background-color: #ddd; /* fallback background */
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Card header text */
.mode-card h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-family: 'Boldonse', sans-serif;
}

/* Card description text */
.mode-card p {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 20px;
}

/* “Play Now” button inside each card */
.mode-card button {
  background-color: #ffffff;
  color: inherit;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease-in-out;
}

.mode-card button:hover {
  background-color: rgba(255,255,255,0.85);
}

/* Mode‐specific background colors */
.normal-mode {
  background-color: #007bff; /* blue */
}

.hardcore-mode {
  background-color: #c82333; /* red */
}

.daily-mode {
  background-color: #28a745; /* green */
}

/* Responsive adjustments for very small screens */
@media (max-width: 500px) {
  .mode-selector-container h1 {
    font-size: 2rem;
  }
  .mode-selector-container p {
    font-size: 1rem;
  }
  .mode-card h2 {
    font-size: 1.3rem;
  }
  .mode-card p {
    font-size: 0.95rem;
  }
  .mode-card {
    padding: 16px;
  }
}
