 body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  text-align: center;
}
#share-btn {
  margin-top: 20px;
  font-size: 24px;
  background-color: #007bff;
  color: white;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
}

.screen {
  display: none;
  padding: 20px;
  min-height: 100vh;
  box-sizing: border-box;
}
.screen.active {
  display: block;
}

#tagline {
  font-size: 1.3rem;
  font-weight: 600;
  color: #3c3a3a;
  text-align: center;
  margin: 1rem 0;
  background: linear-gradient(90deg, #85a9c8, #84c6cf);
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(48, 47, 47, 0.1);
  animation: fadeInUp 1s ease;
}

#quiz-screen{
  padding: 28px 130px;
}
.home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#start-btn {
  font-size: 4vw;
  padding: 12px;
  margin: 36px;;
}

 .banner {
  width: 40%;
  max-width: 800px;
  margin: 10px auto 0;
}

.banner.small {
   width: 15%; 
   margin: 0;
  }
 #quiz-progress {
   text-align: right;
   font-size: 28px;
   font-weight: bold;
   padding: 8px;;
   background-color: #FEC33D;
   border-radius: 8px;
}

#attempt-qsn {
  text-align: right;
}
#question-text{
  font-family: 'Poppins', sans-serif;
  margin: 16px 0px 8px;
  padding: 20px;
  font-size: 24px;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 1px 0px 4px #d4d1d17c;
  background-color: white;
  text-align: left;
}
#timer-box {
  text-align: right;
  margin-top: 12px;
}
.options-container{
  border: 3px solid #d3d0d0;
  border-radius: 12px;
  background: white;
  box-shadow: 1px 0px 0px 2px #d4d1d17c;
  margin: 12px auto;
}
#options button {
  position: relative;
  display: block;
  margin: 0px 0px 20px 0px;
  width: 100%;
  border: 2px solid #D9D9D9;
  border-radius: 12px;
  background-color: rgba(223, 213, 213, 0.5);
  box-shadow: 1px 0px 0px 1px #F5F5F57C;
  cursor: pointer;
  padding: 12px;
   text-align:left;
   color: black;
   font-size: 24px;
   font-weight: 600;
}
#options button:last-child {
  margin-bottom: 0;
}
#options button:hover {
  background-color: #e2dcdc;
  border-color: #ddd2d2;
}
#next-btn{
  text-align: center;
}

#result-bar {
  height: 60px;
  width: 80%;
  margin: 100px auto;
  border-radius: 32px;
  overflow: hidden;
  max-width: 600px;
  background: #ddd;
  box-shadow: inset 0 2px 5px rgba(107, 101, 101, 0.4);
}

#bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #ee6f6f, #2721df);
  transition: width 1s ease-in-out;
}

button {
   position:relative; 
   padding:10px 20px; 
   font-size:24px;
   background:#28a745; 
   color:#fff; 
   border:none; 
   border-radius: 12px;
   cursor:pointer; 
   font-weight: 400;
  }
header{
   display: flex;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
  }
.btn-icon {
   width:16px;
    height:16px; 
    vertical-align:middle; 
    margin-right:5px; 
  }

.icon { 
  width: 36px; 
  height: 36px;
  cursor:pointer; 
  }
.result-text{
    font-size: 42px;
    font-weight: bold;
    margin: auto;
    color: #0b087a;
   text-transform: uppercase;
  }
.correct-qsns{
    font-size: 28px;
    font-weight: 700;
    margin-top: -90px;
    color: #e60b0b;
    margin-bottom: 60px;
}
#result-message{
  font-size: 36px;
  font-weight: bold;
  color: #222121;
  margin: 20px auto;
}
.status-bar { 
  display:flex; 
  justify-content: space-between; 
  margin: 10px; 
}
#timer { 
  font-size: 28px; 
  font-weight:600; 
  padding:5px 10px; 
  background-color:#02A4096E; 
  border-radius:5px; 
  color:white; 
  text-align: right;
  margin: 8px auto;
}
.correct::after { 
  content:url('../assets/icons/check.svg'); 
  position:absolute; 
  right:25px; 
  top:50%; 
  transform:translateY(-45%); 
}
.incorrect::after { 
  content:url('../assets/icons/cross.svg'); 
  position:absolute; 
  right:25px; 
  top:50%; 
  transform:translateY(-45%); 
}
.correct {
  border: 3px solid #28a745 !important; 
  background-color: #d4edda !important; 
  color: #155724 !important;
}


.incorrect {
  border: 3px solid #dc3545 !important;
  background-color: #f8d7da !important; 
  color: #721c24 !important;
}

.correct, .incorrect {
  transition: all 0.3s ease;
}

.hidden, #high-score {
  display: none;
}

#high-score {
  display: none; 
  margin-top: 20px;
  padding: 12px 20px;
  font-size: 24px;
  font-weight: bold;
  color: #322f3a; 
  background-color: #cbeace; 
  border: 2px solid #71c2ea;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0px 2px 8px rgba(46, 44, 44, 0.1);
}

#timeout-message {
  font-size: 22px;
  font-weight: bold;
  color: #dc3545; 
  margin: 12px 0;
  animation: fadeInOut 1s ease;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: scale(0.95); }
  20% { opacity: 1; transform: scale(1.05); }
  80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.95); }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  } to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 600px) {
  .banner{
    margin: 8px;
  }
  #tagline {
    padding: 10px;
  }
  #start-btn {
    font-size: 20px;
  }
  #options button {
    font-size: 16px;
    margin: 16px auto;
    padding:16px;
  }
  .status-bar {
    flex-direction: column;
    align-items: center;
  }
  #timer {
    margin-top: 10px;
    font-size: 24px;
  }
  #question-text{
    padding: 18px;
    font-size: 18px;;
  }
  #quiz-progress{
     font-size: 18px;
     padding: 8px;
  }
  #options button:first-child {
  margin-top: 0;
}
.correct::after { 
  right: 10px; 
}
.incorrect::after { 
  right: 10px; 
}

}
@media (max-width: 1100px) {
  #quiz-screen{
  padding: 16px 36px;
  padding-top: 8px;
}
.banner.small {
    width: 40%;
  }
}



