*{
  padding:0;
  margin:0;
  box-sizing: border-box;
}
:root {
    --gray : #4b5563;
    --white : #f9fafb;
    --violet : #5b21b6;
    --kbc-blue : #34C6F6;
    --kbc-violet : radial-gradient(circle, rgba(111, 64, 236, 1) 0%, rgba(29, 15, 82, 1) 100%);
}

.section1{
  background-image: url('../assets/bg.jpg');
  background-position: center;
  background-size: cover;
  object-fit: cover;
  width:100%;
  height:100vh;
  color: var(--white);
}

.container{
  display:grid;
  grid-template-columns: 1.5fr 0.5fr;
}

.section2 {
  margin:0rem;
  padding:1rem;
  color:white;
  display:flex;
  flex-direction:column;
  gap:15px;
  /* justify-content: center;
  align-items: center; */
  background:var(--kbc-violet);
}
.details{
  margin:1rem auto;
  display:flex;
  flex-direction:column;
  gap:15px;
   justify-content: center;
  align-items: center;
}
.redirect-container, .details-container{
  width:250px;
  /* background:red; */
  display:flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.redirect-container a{
  text-decoration: none;
  background-color:rgb(90,47,120);
  padding:10px;
  color:white;
  border-radius: 8px;
  font-size:18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.details-container{
  margin-bottom:1.9rem;
}
.scoreValue{
  color:#0ff52a;
  font-weight:bolder;
  font-size:18px;
}
.nameValue{
  color:var(--kbc-blue);
  font-weight:bolder;
  font-size:18px;
}
.details-container p{
  font-weight:bold;
}
.price-container{
 /* margin:1rem auto; */
  display:flex;
  flex-direction:column-reverse;
  gap:10px;
  justify-content: center;
  align-items: center;
}

.price{
  background: rgb(90,47,120);
  color: var(--white);
  text-align: center;
  padding:10px;
  border-radius:5px;
  width:100%;
  font-weight:bold;
}

/* section1 styling */

.overlay{
  background:rgba(0,0,0,0.5);
  width:100%;
  height:100vh;
  position:relative;
}
.timer{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
}
.time{
  border:6px solid white;
  border-radius: 50%;
  padding:10px;
  font-size:26px;
  font-weight:bolder;
  aspect-ratio:1/1;
}
.quiz-container{
  position:absolute;
  left:50%;
  top:70%;
  transform:translate(-50%,-50%);
  /* background-color:red; */
  width:100%;
}
.quiz-layout{
  display:flex;
  flex-direction:column;
  gap:15px;
  justify-content: center;
  align-items: center;
}
.quiz-question, .quiz-answer{
  background-color:rgb(90,47,120);
  padding:10px;
  border-radius: 8px;
  font-size:18px;
  border:2px solid var(--white);
}
.quiz-question{
  width:50%;
}
.quiz-answersContainer{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:20px;
  /* background:red; */
  width:50%;
}
.quiz-answer{
  cursor:pointer;
}
.quiz-answer:hover{
  background:var(--kbc-violet);
}

.active{
  background:gold;
}
.score-details{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-80%);
  display:flex;
  flex-direction:column;
  gap:15px;
  justify-content: center;
  align-items: center;
  font-size:20px;
}
.score-details p{
  font-weight:bolder;
  font-size:22px;
  letter-spacing: 2px;
}
.score-details span{
  color:#0ff52a;
  font-weight:bolder;
  font-size:24px;
}
.score-details img{
  border-radius:10px;
}
.score-details a{
  text-decoration: none;
  background-color:rgb(90,47,120);
  padding:10px;
  color:white;
  border-radius: 8px;
  font-size:18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight:bolder;
}

/* responsive */

@media screen and (max-width:800px){
  .container{
    display:flex;
    flex-direction: column;
  }
  .quiz-question{
    width:90%;
  }
  .quiz-answersContainer{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:20px;
    width:90%;
  }
  .redirect-container, .details-container{
    width:100%;
    display:flex;
    /* flex-direction: column; */
    justify-content: space-between;
    align-items: center;
    gap:10px;
  }
}
