/*V1.0.0.0*/

/* === GLOBAL STYLES === */

body {
  margin: 0;
  padding: 0;
  font-family: "Raleway", sans-serif;
  color: #e6ecf0;
  text-align: center;
  background: transparent;
  overflow-x: hidden;
}

/* === PARTICLES BACKGROUND === */

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at center, #0d1117 60%, #010409 100%);
  opacity: 0.9;
}

/* === HEADER === */

.heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 60px;
  font-size: 2rem;
  color: #f0f6fc;
  letter-spacing: 1px;
}

.logo {
  height: 40px;
  width: auto;
  vertical-align: middle;
}

/* === GAME LAYOUT === */

.game-area {
  background-color: rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
  width: 90%;
  max-width: 500px;
  margin: 40px auto;
  padding: 25px 20px 35px;
  border-radius: 18px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.controls-area {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  justify-items: center;
  margin-bottom: 25px;
}

.question-area {
  font-size: 1.8rem;
  color: #ffffff;
  margin: 10px auto 15px;
}

.question-area span {
  padding: 0 10px;
}

.answer-message {
  display: none;
  font-size: 1rem;
  color: #c9d1d9;
  margin-top: 10px;
}

#answer-box {
  border: none;
  border-radius: 8px;
  height: 45px;
  width: 120px;
  font-size: 1.2rem;
  text-align: center;
  color: #0d1117;
  background: #ffffff;
  font-weight: 600;
  transition: box-shadow 0.3s ease;
}

#answer-box:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(88, 166, 255, 0.7);
}

/* === SCORE AREA === */

.score-area {
  margin-top: 25px;
  color: #ffffff;
  font-size: 1rem;
}

#score {
  color: #2ecc71;
  font-weight: bold;
}

#incorrect {
  color: #e74c3c;
  font-weight: bold;
}

.scores {
  display: inline-block;
  margin: 0 10px;
}

/* === BUTTONS === */

.btn {
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
  color: white;
  border: none;
  cursor: pointer;
  background: none;
}

.btn:focus {
  outline: none;
}

/* --- Large circular buttons --- */
.btn--big {
  border-radius: 50%;
  background-color: white;
  border: 8px solid;
  width: 80px;
  height: 80px;
  font-size: 2rem;
  margin: 10px;
  transition: all 0.3s ease;
}

.btn--big::after {
    content: none;
}

.btn--big:hover {
  transform: scale(1.1);
}

/* --- Button Colors --- */
.btn--green {
  border-color: #2ecc71;
  color: #2ecc71;
}
.btn--green:hover {
  background-color: #2ecc71;
  color: #fff;
}

.btn--blue {
  border-color: #3498db;
  color: #3498db;
}
.btn--blue:hover {
  background-color: #3498db;
  color: #fff;
}

.btn--orange {
  border-color: #f39c12;
  color: #f39c12;
}
.btn--orange:hover {
  background-color: #f39c12;
  color: #fff;
}

.btn--red {
  border-color: #e74c3c;
  color: #e74c3c;
}
.btn--red:hover {
  background-color: #e74c3c;
  color: #fff;
}

/* --- Submit Button --- */
.btn--gray {
  margin-top: 18px;
  background-color: #238636;
  border-radius: 10px;
  padding: 10px 24px;
  color: #ffffff;
  font-weight: bold;
  letter-spacing: 0.5px;
  border: none;
  transition: background 0.3s ease;
}

.btn--gray:hover {
  background-color: #2ea043;
}

/* === RESPONSIVE DESIGN === */

/* --- Mobile --- */
@media (max-width: 480px) {
  .heading {
    font-size: 1.6rem;
    margin-top: 50px;
  }

  .game-area {
    width: 92%;
    padding: 20px 15px 25px;
  }

  .controls-area {
    gap: 15px;
  }

  .btn--big {
    width: 65px;
    height: 65px;
    font-size: 1.6rem;
    border: 6px solid;
  }

  .btn--big::after {
    font-size: 0.7rem;
  }

  .question-area {
    font-size: 1.4rem;
  }

  #answer-box {
    width: 100px;
  }

  .btn--gray {
    margin-top: 10px;
    padding: 8px 20px;
  }

  .score-area {
    font-size: 0.9rem;
  }
}

/* --- Tablet --- */
@media (min-width: 768px) {
  .heading {
    font-size: 2.4rem;
  }

  .btn--big {
    width: 100px;
    height: 100px;
    font-size: 2.6rem;
  }

  .game-area {
    max-width: 600px;
  }

  .question-area {
    font-size: 2rem;
  }
}