/*=============== GOOGLE FONTS ===============*/

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 4rem;

  /*========== Colors ==========*/
  --hue: 174;
  --sat: 63%;
  --first-color: hsl(var(--hue), var(--sat), 40%);
  --first-color-alt: hsl(var(--hue), var(--sat), 36%);
  --title-color: #fff;
  --logo-color: #ffcc00;
  --text-color: hsl(var(--hue), 8%, 35%);
  --body-color: hsl(var(--hue), 100%, 99%);
  --header-color: #090040;
  --container-color: #FFF;

  /*========== Font and typography ==========*/
  --body-font: 'Open Sans', sans-serif;
  --h1-font-size: 1.5rem;
  --normal-font-size: .938rem;
  --tiny-font-size: 0.75rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --h1-font-size: 2.25rem;
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*=============== LAYOUT ===============*/
.container {
  margin-left: 1rem;
  margin-right: 1rem;
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--header-color);
  z-index: var(--z-fixed);
  transition: .4s;
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__img {
  width: 32px;
  border-radius: 50%;
}

.nav__logo {
  color: var(--logo-color);
  font-weight: 600;
}

@media screen and (max-width: 770px) {
  .nav__menu {
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: var(--header-color);
    box-shadow: 0 -1px 12px hsla(var(--hue), var(--sat), 15%, 0.15);
    width: 100%;
    height: 4rem;
    padding: 0 1rem;
    display: grid;
    align-content: center;
    border-radius: 0.5rem 0.5rem 0 0;
    transition: .4s;
  }
}

.nav__list, 
.nav__link {
  display: flex;
}

.nav__link {
  flex-direction: column;
  align-items: center;
  row-gap: 4px;
  color: var(--title-color);
  font-weight: 600;
}

.nav__list {
  justify-content: space-around;
}

.nav__name {
  font-size: var(--tiny-font-size);
  /* display: none;*/ /* Minimalist design, hidden labels */
}

.nav__icon {
  font-size: 1.5rem;
}
.nav__logo{
    font-size: 2rem;
}

/*Active link*/
.active-link {
  position: relative;
  color: var(--first-color);
  transition: .3s;
}

/* Minimalist design, active link */
/* .active-link::before{
  content: '';
  position: absolute;
  bottom: -.5rem;
  width: 4px;
  height: 4px;
  background-color: var(--first-color);
  border-radius: 50%;
} */

/* Change background header */
.scroll-header {
  box-shadow: 0 1px 12px hsla(var(--hue), var(--sat), 15%, 0.15);
}

/*=============== MEDIA QUERIES ===============*/
/* For small devices */
/* Remove if you choose, the minimalist design */
@media screen and (max-width: 320px) {
  .nav__name {
    display: none;
  }
   .nav{
    padding: 0 0.1rem;
 }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .nav__list {
    justify-content: center;
    column-gap: 3rem;
  }
 .nav{
    padding: 0 2rem;
 }
}

@media screen and (min-width: 767px) {
  body {
    margin: 0;
  }
  .section {
    padding: 7rem 0 2rem;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem); /* 4.5rem */
  }
  .nav__img {
    display: none;
  }
  .nav__icon {
    display: none;
  }
  .nav__name {
    font-size: var(--normal-font-size);
    /* display: block; */ /* Minimalist design, visible labels */
  }
  .nav__link:hover {
    color: var(--first-color);
  }

  /* First design, remove if you choose the minimalist design */
  .active-link::before {
    content: '';
    position: absolute;
    bottom: -.75rem;
    width: 4px;
    height: 4px;
    background-color: var(--first-color);
    border-radius: 50%;
  }

 main{
margin-top:15vh;
}
  /* Minimalist design */
  /* .active-link::before{
      bottom: -.75rem;
  } */
}

@media screen and (min-width: 850px) {
 
 .nav__logo{
    font-size: 2rem;
 }
  .nav{
    padding: 1rem 4rem;
 }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  .nav__logo{
    font-size: 2.5rem;
  }
   .nav{
    padding: 1rem 6rem;
 }
}

/*========== Header section ends Here ============*/
.back-btn{
  margin-top: 6rem;
  margin-bottom: 0;
}
.back-btn a{
   display: block;
  background-color: #090040;
    padding: 5px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 1rem;
    width: 6rem;
    color: #ffcc00;
    border: none;
    box-shadow: 3px 3px 5px 1px #090040;
    margin: 1rem auto;
    text-align: center;
}
.back-btn a:hover{
background-color: #ffcc00;
color: #090040;
}


/*========== Test section starts here ============*/

main{
  display:flex;
  height:70vh;
  width:100%;
  padding:10px;
  justify-content: center;
  align-items: center;;
}
.start-btn{
  width:100%;
  text-align:center;
  transform:scale(1);
  overflow:hidden;
  
}
.start-btn button{
  padding:15px 20px;
  border:none;
  background:#ffcc00;
  border-radius:10px;
  color:#090040;
  font-size:1.5rem;
  font-weight:700;
  width:15rem;
  box-shadow: 0px 2px 10px #2F2F2F;
  
}
.start-btn button:hover{
  background-color: #090040;
  color: #ffcc00;
}
.start-btn button:active{
  transform:scale(0.9);
}


.wrapper{
  width:0;
  background:#fff;
  transform: scale(0);
  overflow: hidden;
  border-radius:5px;
}
.instruction{
  transform:scale(0);
  width:0;
  overflow:hidden;
  background:#fff;
  border-radius:8px;
  opacity:0;
}
.instruction header{
  padding:15px 12px;
  border-bottom:1px solid #9D9D9E;
}
.instruction header p{
  font-size:16px;
  font-weight:600;
  color:#414141;
}
.rules{
  display: flex;
  flex-direction: column;
  gap:5px;
  padding:10px 12px;
}
.rules p{
  font-size:13px;
  font-weight:450;
  color:#6B6B6B;
}
.rules p span{
  color:#5B80FF;
}
.instruction-btn{
  padding:10px 12px;
  display:flex;
  justify-content: right;
  width:100%;
  border-top:1px solid #9A9A9B;
  gap:10px;
}
.instruction-btn button{
  padding:7px 10px;
  border:none;
  font-size:14px;
  font-weight:500;
  border-radius:4px;
  background:none;
}
.instruction-btn button:first-child{
  border:1px solid #5B80FF;
  color:#5B80FF;
}
.instruction-btn button:last-child{
  background:#5B80FF;
  color:#fff;
}
.wrapper header{
  padding:5px 12px;
  display:flex;
  width:100%;
  align-items: center;
  justify-content:space-between;
  border-bottom:1px solid #9B9B9B;
  
}
.wrapper header .Timer{
  display: flex;
  gap:6px;
  padding:5px;
  background:#E7E7E9;
  border-radius:3px;
  align-items: center;
  font-size:15px;
  font-weight: 500;
}
.Timer p:last-child{
  background:black;
  color:#fff;
  padding:3px;
  font-weight:800;
}
.timer-progress{
  width:100%;
  height:4px;
  background:#fff;
  margin-bottom: 5px;
  
}
.inner{
  width:0;
  height:4px;
  background:#6184FA;
  transition: 0.7s all ease;
}
.question-container{
  padding:10px 12px;
  font-size:16px;
  font-weight:800;
  width:100%;
}
.option-container{
  padding:10px 12px;
  width:100%;
  display: flex;
  flex-direction: column;
  gap:8px;
}
.option-container option{
  padding:0 10px;
  font-size:15.5px;
  font-weight:450;
  width:100%;
  height:40px;
  border:1px solid #6184FA;
  background:#6184FA59;
  border-radius:4px;
  display:flex;
  align-items: center;
  font-size:14px;
  color:#606060;
}
.status{
  padding:8px 12px;
  display:flex;
  justify-content: space-between;
  align-items: center;
  border-top:1px solid #C5C5C5;
}
.status .question-num{
  display:flex;
  align-items: center;
  gap:4px;
  font-size:14px;
  font-weight:550;
}
.btn button{
  padding:8px 18px;
  background:#5F84FF;
  border:none;
  font-size:14px;
  color:#fff;
  font-weight:600;
  border-radius:4px;
}
.btn button:active{
  background:#3462FF;
}
.result-card{
  overflow:hidden;
  transform:scale(0);
  width:0%;
  display:flex;
  flex-direction: column;
  background: #fff;
  border-radius: 5px;
}
.image{
  padding:10px 12px;
  text-align: center;
}
.image img{
  width:100px;
}
.score{
  padding:10px 12px;
  display: grid;
  grid-template-columns: auto auto;
  font-weight: 500;
  gap:10px;
}
.score div{
  width:100%;
  text-align:center;
  border:1px solid blue;
  padding:20px 10px;
  font-size:13px;
  border-radius:5px;
}
.score .value{
  font-size:25px;
  font-weight:900;
}
.total-score{
 background:#6572FF57;
}
.total-score .value{
  color:#6572FF;
}
.attempted{
  background:#0E943F3D;
  border:1px solid #0E943F !important;
}
.attempted .value{
  color:#0E943F;
}
.wrong{
  background:#FF101047;
  border:1px solid #FF1010 !important;
}
.wrong .value{
  color:#FF1010;
}
.score span:first-child{
  color:#9754FF;
}
.score span:nth-child(3){
  color:#40B462;
}
.score span:last-child{
  color:#5060EC;
}
.user-score{
  width:100px;
  height:100px;
  margin:0 auto;
  background:#108FFF54;
  display:flex;
  justify-content:center;
  align-items:center;
  flex-direction: column;
  border-radius:50%;
  border:2px solid #108FFF;
}
.user-score .value{
  font-size:30px;
  font-weight:900;
  color:#108FFF;
}
.user-score p{
  font-size:13px;
  font-weight:700;
}
.score-btn{
  padding:10px 12px;
  display:flex;
  justify-content: right;
  width:100%;
  gap:10px;
  border-top: 1px solid #909090;
}
.result-card header{
  padding:10px 12px;
  border-bottom:1px solid #909090;
  font-weight:600;
}
.score-btn button{
  padding: 6px 12px;
  background: none;
  border: none;
  border-radius: 4px;
}
.score-btn button:first-child{
  border:1px solid #5E6CE7;
  color:#5E6CE7;
}
.score-btn button:last-child{
  background: #5E6CE7;
  color:#fff;
}
option:hover{
  background:#646FF0;
  color:#fff;
}
