body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #dceaff;/*cornsilk;*/
}

header {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

main {
    text-align: center;
    padding: 1rem;
    margin-top: 4%;
}

#gameApp {
  background-color: cornsilk;
  min-height: 100vh;
}
#counter {
  font-size: bold;
  color: black;
  font-size: 20px;
  font-family: "Roboto Condensed", serif;
  font-weight: bold;
}

#score {
  font-size: bold;
  color: black;
  font-size: 30px;
  font-family: "Roboto Condensed", serif;
}

#totalQuestions {
  font-size: bold;
  color: black;
  font-size: 25px;
  font-family: "Roboto Condensed", serif;
}

.answer {
  box-shadow: 10px 10px 5px rgb(111, 134, 142);
  display: inline-grid;
  margin: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  font-size: 26px;/*30px;*/
  border-radius: 5px;
  cursor: pointer;
}


.answer:hover {
  box-shadow: 15px 15px 10px rgb(111, 134, 142);
}

#question {
  color: #000;
  font-size: 35px;
  font-family: "Roboto Condensed", serif;
  /*font-family: 'Courier New', Courier, monospace;*/
  font-weight: bold;
  /*margin-top: 5%;*/
  /*margin-bottom: 2%;*/
  /*margin-top: 1%;*/
  margin-bottom: 1%;
}

/* BLUE Button */
.blue {
  background-color: lightblue;
}
#blueButton {
  background-color: lightblue;
  margin-left: 2%;
  font-size: 20px;
  border-radius: 20%;
}

/* Green Button */
.green {
  background-color: lightgreen;
}

#greenButton {
  background-color: lightgreen;
  margin-left: 2%;
  font-size: 20px;
  border-radius: 20%;
}

 /* TIPS Button */
 #tipsButton {
  background-color: ghostwhite;
  margin-left: 1%;
  font-size: 20px;
  margin-top: 2%;
}
/* TIPS BUTTON */

.hidden {
  display: none !important;
}

/* RESERT RESTART Buttons */
#restartLevel {
  margin-left: 1%;
  font-size: 20px;
  margin-top: 1%;
}
#resetGame {
  margin-left: 1%;
  font-size: 20px;
  margin-top: 1%;
}
/* ACTIVE BUTTON */
.active-color {
  transform: translateY(3px);

  box-shadow:
    inset 0 4px 8px rgba(0,0,0,0.35),
    0 2px 4px rgba(0,0,0,0.2);

  border: 2px solid #222;

  opacity: 0.9;
}

/* HOME PAGE */
body {
  min-height: 100vh;
}
#authSection {
  width: 350px;
  margin: 80px auto;
  padding: 30px;

  display: flex;
  flex-direction: column;
  gap: 10px;

  background: white;

  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* INPUT */
#authSection input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

/* BUTTONS */
#authSection button {
  padding: 12px;
  border: none;
  border-radius: 8px;

  background: #333;
  color: white;

  cursor: pointer;
  transition: 0.3s;
}

#authSection button:hover {
  background: #555;
}

/* POPUP */
/* POPUP OVERLAY */
.popup {
  position: fixed;
  inset: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);

  z-index: 9999;
}

.popup.hidden {
  display: none;
}

/* POPUP CARD */
.popup-content {
  width: 320px;

  background: white;
  color: #111;

  border-radius: 20px;

  padding: 30px 25px;

  text-align: center;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.25);

  animation: popupAppear 0.25s ease;
}

/* TITLE */
.popup-content h2 {
  margin-top: 0;
  font-size: 28px;
  color: #333;
}

/* MESSAGE */
.popup-content p {
  font-size: 18px;
  margin: 20px 0;
  color: #555;
}

/* BUTTON */
.popup-content button {
  padding: 12px 25px;

  border: none;
  border-radius: 12px;

  background: #4a90e2;
  color: white;

  font-size: 16px;
  font-weight: bold;

  cursor: pointer;

  transition: 0.25s;
}

.popup-content button:hover {
  background: #357abd;
  transform: scale(1.05);
}

/* ANIMATION */
@keyframes popupAppear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* LEADER BOARD */
/* LEADER BOARD */

#leaderboardToggle {
  position: fixed;

  top: 140px;
  left: 20px;

  z-index: 100;

  padding: 10px 15px;

  border: none;
  border-radius: 10px;

  background: #333;
  color: white;

  cursor: pointer;
}

/* BOX */

#leaderboardSection {
  position: fixed;

  top: 190px;
  left: 20px;

  width: 260px;
  max-height: 400px;

  overflow-y: auto;

  z-index: 99;

  padding: 15px;

  background: white;

  border-radius: 15px;

  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* USER */

.leaderboard-user {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 8px;
  margin-bottom: 10px;

  background: #f5f5f5;

  border-radius: 10px;
}

/* AVATAR */

.leaderboard-avatar {
  width: 40px;
  height: 40px;

  border-radius: 50%;
  object-fit: cover;
}

/* TEXT */

.leaderboard-user p {
  margin: 0;

  font-size: 13px;
  line-height: 1.3;

  text-align: left;
}

/* MOBILE */

@media screen and (max-width: 768px) {

  #leaderboardToggle {
    left: 10px;
    top: 120px;
  }

  #leaderboardSection {
    width: 220px;
    left: 10px;
  }
}
/* TEST */
@media screen and (max-width: 1400px) {
  .answer {
    width: 220px;
    font-size: 18px;
  }
}
/* ============ */

/* SUCCESS */
.fireworks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
}

.firework {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffd700;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 8px #fff;
}

.firework::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 2px;
  background: inherit;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.success-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #1a1a2e, #16213e 70%, #0f0f23 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  color: white;
  text-align: center;
}

.success-screen.hidden {
  display: none;
}

.success-screen h2 {
  font-size: 3em;
  margin: 0 0 20px;
  background: linear-gradient(45deg, #ffd700, #ffed4e, #ff6b6b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 20px #ffd700; }
  to { text-shadow: 0 0 30px #ffed4e, 0 0 40px #ff6b6b; }
}

.trophy {
  font-size: 8em;
  margin: 30px 0;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(10deg); }
}

.success-screen button {
  padding: 15px 30px;
  font-size: 1.2rem;
  border: none;
  border-radius: 50px;
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #333;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
  transition: all 0.3s;
}

.success-screen button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6);
}

/* Titles and Texts */
h1 {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 50px;
  color: #8cd4e4fc;
}

h2 {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 25px;
  color: #000;

}

li {
  list-style-type: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: bold;
}

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1rem;
  position: fixed;
  bottom: 0;
  width: 100%;
}

/* Custom-goole-font */
.rubik-vinyl-regular {
  font-family: "Rubik Vinyl", serif;
  font-weight: 900;
  font-style: normal;
}
.roboto-condensed-question {
  font-family: "Roboto Condensed", serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
}


.hidden {
  display: none !important;
}