/* *------Global Styles------ */
:root {
  --main-bg: #1f1147;
  --secondary-bg: #2d1b69;
  --main-btn-bg: #7b61ff;
  --btn-hover: #6344ff;
  --horizontal-bg: linear-gradient(90deg, #ff5f6d, #9b5dff);
  --correct-answer: #4ade80;
  --wrong-answer: rgb(240, 30, 30);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --card-bg: #381f79;
  --category-bg: #ff5f6d;
}
select option {
  background-color: var(--secondary-bg);
  color: white;
  cursor: pointer;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
.again{
  background-color: var(--main-btn-bg);
  color: white;
  transition: all 400ms;
}
.again:hover{
  background-color: var(--category-bg);
  color:#fff;
}
body {
  background-color: var(--main-bg);
  color: var(--text-primary);
}

/* Background animation */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 10% 20%,
      rgba(123, 97, 255, 0.15) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(255, 95, 109, 0.15) 0%,
      transparent 20%
    );
  z-index: -1;
}
.btn-start {
  background: var(--horizontal-bg);
  transition: transform 0.3s ease;
}
.btn-start:hover {
  transform: translateY(-2px);
}

/* Question container */
.question {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.question::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--horizontal-bg);
}

/* Header section */
.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.btn-category {
  background: var(--horizontal-bg);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-questions {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Question text */
.question-text {
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.5;
  padding: 0 1rem;
}

/* Choices/Answers */
.choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.choices li {
  background: var(--secondary-bg);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  word-break: break-word;
}

.choices li:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: rgba(123, 97, 255, 0.5);
  background: rgba(123, 97, 255, 0.1);
}

/* Score display */
.score-display {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-top: 1rem;
}

.score-color {
  color: #9b5dff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .choices {
    grid-template-columns: 1fr;
  }

  .question-text {
    font-size: 1.2rem;
  }

  .question-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .btn-category,
  .btn-questions {
    text-align: center;
  }
}

/* Add some 3D effect to the card */
.question {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.choices li {
  transform: translateZ(10px);
}

.app-footer p {
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(90deg, #e41728, #9b5dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 2rem 0 1rem;
}
