
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

body {
  background-color: #121212;
  font-family: 'Roboto', Arial, sans-serif;
  height: 100vh;
  display: flex;
  background: url('quiz.png') no-repeat center center fixed;
  background-size: cover;
  justify-content: center;
  align-items: center;
  color: #fff;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* adjust 0.6 for transparency */
  z-index: -1;
}

/* Landing Page */
.landing-page {
  text-align: center;
}

.start-btn {
  padding: 12px 25px;
  font-family: 'Orbitron';
  font-size: 20px;
  background-color: #00ffff;
  color: #333;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.start-btn:hover {
  background-color: #00cccc;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

.start-container {
  background-color: rgba(28, 28, 28, 0.8);
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
  max-width: 800px;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(10px);
}

#category-selection {
  text-align: center;
}

h2 {
  color: #00ffff;
  margin-bottom: 20px;
  font-family: 'Orbitron', sans-serif;
}

.heading{
  color: #00ffff;
  margin-bottom: 20px;
  font-family: 'Orbitron', sans-serif;
  padding: 10px 100px;
}
.question-box {
  position: relative;
  padding: 20px;
}

#progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  background-color: #00ffff;
  transition: width 0.3s ease;
}

#question {
  font-size: 24px;
  margin-bottom: 20px;
  font-family: 'Orbitron', sans-serif;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.option {
  padding: 10px;
  background-color: #333;
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Orbitron';
}

.option:hover, .option.selected {
  background-color: #00ffff;
  color: #333;
}

.next-btn, .restart-btn {
  padding: 10px 20px;
  font-size: 18px;
  background-color: #00ffff;
  font-family: 'Orbitron'; 
  color: #333;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.next-btn:hover, .restart-btn:hover {
  background-color: #00cccc;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

.next-btn.disabled {
  background-color: #666;
  cursor: not-allowed;
}

@keyframes progress {
  0% {
    stroke-dasharray: 0 100;
  }
}

.percentage {
  fill: #fff;
  font-family: sans-serif;
  font-size: 0.5em;
  text-anchor: middle;
}

.reasoning-container {
  margin-top: 30px;
  max-height: 300px;
  overflow-y: auto;
  padding: 0 20px;
}

.reasoning-item {
  background-color: rgba(51, 51, 51, 0.7);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  transition: all 0.3s;
  text-align: left;
}

.reasoning-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

.reasoning-item h3 {
  color: #00ffff;
  margin-bottom: 10px;
}

.reasoning-item p {
  margin-bottom: 5px;
}

.reasoning-item.correct {
  border-left: 5px solid #28a745;
}

.reasoning-item.incorrect {
  border-left: 5px solid #dc3545;
}

.reasoning-container::-webkit-scrollbar {
  width: 8px;
}

.reasoning-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.reasoning-container::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 255, 0.5);
  border-radius: 10px;
}

.reasoning-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 255, 0.7);
}

.result-circle + .restart-btn {
  margin-top: 15px;
}
.restart-btn{
  padding: 12px 20px;
  font-family: 'Orbitron';
  font-size: 15px;
  background-color: #00ffff;
  color: #333;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 15px auto 30px auto;
  
}
.circular-chart {
  max-width: 130px;
  max-height: 130px;
  display: block;
  margin: 0 auto;
}

.circle-bg {
  fill: none;
  stroke: #e8dede; 
  stroke-width: 3.8;
}

.circle {
  fill: none;
  stroke-width: 3.9;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-out;
}

#results h2 {
    padding-top: 60px;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'Orbitron', sans-serif;
  color:  #24efef;
  text-align: center;
}
.end-btn {
  padding: 12px 20px;
  font-family: 'Orbitron';
  font-size: 15px;
  background-color: #00ffff;
  color: #333;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 15px auto 30px auto;
}

.end-btn:hover {
background-color: #00cccc;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

.footer {
  text-align: center;
  font-size: 14px;
  color: #ccc;
  margin-top: 40px;
  margin-bottom: 10px;
  font-family: 'Roboto', sans-serif;
}
