/* ===== BASE ===== */
html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f8f9fa;
  color: #333;
  display: flex;
  flex-direction: column;
}

header {
  background: #0C111E;
  color: #fff;
  text-align: center;
  padding: 15px 0;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.quiz-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  width: 95%;
  max-width: 900px;  
  height: 100%;
  max-height: 650px; 
  min-height: 500px;
  box-sizing: border-box;
  padding: 40px 30px;
  justify-content: space-between;
}

.question-section {
  flex: 1;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.question-title {
  font-size: 2em;
  font-weight: bold;
  line-height: 1.4;
}

.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 20px;
  justify-content: center;
  width: 100%;
}

.answer-btn {
  width: 100%;
  max-width: 400px;
  padding: 15px;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg,#3a7bd5,#00d2ff);
  color: #fff;
  cursor: pointer;
  text-align: center;
  transition: transform 0.1s, background 0.2s;
}

.answer-btn:hover {
  background: linear-gradient(135deg,#1e3c72,#00aaff);
  transform: scale(1.03);
}

.feedback {
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

footer {
  background: #0C111E;
  color: #fff;
  text-align: center;
  padding: 20px;
  flex-shrink: 0;
}

/* MOBILE */
@media(max-width:768px){
  .quiz-card{
    width: 95%;
    max-width: 95%;
    min-height: 450px;
    max-height: 80%;
    padding: 30px 20px;
  }
  .question-title{
    font-size:1.7em;
  }
  .answer-btn{
    font-size:1em;
    padding:12px;
  }
  .answers{
    gap: 15px;
  }
}

@media(max-width:480px){
  .quiz-card{
    width: 100%;
    max-width: 100%;
    min-height: 400px;
    max-height: 75%;
    padding:20px;
  }
  .question-title{
    font-size:1.5em;
  }
  .answers{
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .answer-btn{
    font-size:0.95em;
    padding:10px;
    width: 90%;
  }
}