/* style.css */

body{
  margin:0;
  font-family:Arial,"Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
  background:#f3f4f6;
  color:#111827;
}

header{
  background:#111827;
  color:white;
  text-align:center;
  padding:30px 16px;
}

header h1{
  margin:0 0 10px;
  font-size:34px;
}

nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  padding:18px;
  background:white;
}

nav a{
  text-decoration:none;
  color:#111;
  background:#e5e7eb;
  padding:10px 14px;
  border-radius:999px;
  font-weight:bold;
}

nav a.active{
  background:#2563eb;
  color:white;
}

main{
  max-width:1100px;
  margin:30px auto;
  display:grid;
  grid-template-columns:1fr 300px;
  gap:24px;
  padding:0 16px;
}

.quiz-box{
  background:white;
  border-radius:20px;
  padding:28px;
  box-shadow:0 8px 24px rgba(0,0,0,0.08);
}

.status{
  display:flex;
  justify-content:space-between;
  font-weight:bold;
  margin-bottom:14px;
}

.progress{
  height:12px;
  background:#e5e7eb;
  border-radius:999px;
  overflow:hidden;
  margin-bottom:24px;
}

#progressBar{
  height:100%;
  width:0%;
  background:#22c55e;
  transition:0.3s;
}

#question{
  font-size:28px;
  margin-bottom:24px;
  line-height:1.5;
}

#choices{
  display:grid;
  gap:14px;
}

#choices button{
  padding:16px;
  border:none;
  border-radius:14px;
  font-size:18px;
  font-weight:bold;
  cursor:pointer;
  background:#f1f5f9;
}

#choices button:hover{
  background:#dbeafe;
}

.correct{
  background:#86efac !important;
}

.wrong{
  background:#fca5a5 !important;
}

#result{
  margin-top:20px;
  font-size:20px;
  font-weight:bold;
}

.finish{
  text-align:center;
}

.finish button{
  margin-top:20px;
  padding:14px 24px;
  border:none;
  border-radius:12px;
  background:#2563eb;
  color:white;
  font-size:18px;
  cursor:pointer;
}

.ad-box{
  background:white;
  border-radius:18px;
  padding:16px;
  text-align:center;
}

@media(max-width:800px){

  main{
    grid-template-columns:1fr;
  }

}