/* importing google fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    background: #fff url("https://images.unsplash.com/photo-1635070041409-e63e783ce3c1?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8NHx8bWF0aHxlbnwwfHwwfHw%3D&auto=format&fit=crop&w=500&q=60") center center/cover no-repeat;
    height: 100vh;
    width: 100vw;
    overflow-x: hidden;
}

/*initiating welc pattern*/
.welc{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    height: 120px;
    background-image: linear-gradient(to bottom, #2500ba, #4e37bc, #6c5abc, #867bb9, #a09cb4);
    transition: 0.8s ease-out;
    opacity: 0;
    position: fixed;
    top: 0;
    z-index: 2;
}
.outer{
    color: rgb(255, 35, 35);
    padding: 10px 5px;
}
.pvt{
    font-size:15px;
    font-family:Arial;
    cursor: pointer;
    width:140px;
    height:50px;
    border-width:1px;
    color:#fff;
    border-color:#599bb3;
    font-weight:bold;
    border-top-left-radius:8px;
    border-top-right-radius:8px;
    border-bottom-left-radius:8px;
    border-bottom-right-radius:8px;
    box-shadow: 0px 10px 14px -7px #276873;
    text-shadow: 0px 1px 0px #3d768a;
    background:linear-gradient(#599bb3, #408c99);
  }
  .welc h5{
      background: white;
      color: #000;
      padding: 0 25px;
  }
.welc h4{
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-weight: 100;
    font-style: oblique;
    color: rgb(255, 243, 16);
}
.welc input{
    caret-color: #2500ba;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    font-style: italic;
    width: 100%;
}

.perinfo{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    resize: vertical;
    width: 8%;
    background-color: #2e1d48;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='0 0 52 52'%3E%3Cpath fill='%239bac92' fill-opacity='0.4' d='M0 17.83V0h17.83a3 3 0 0 1-5.66 2H5.9A5 5 0 0 1 2 5.9v6.27a3 3 0 0 1-2 5.66zm0 18.34a3 3 0 0 1 2 5.66v6.27A5 5 0 0 1 5.9 52h6.27a3 3 0 0 1 5.66 0H0V36.17zM36.17 52a3 3 0 0 1 5.66 0h6.27a5 5 0 0 1 3.9-3.9v-6.27a3 3 0 0 1 0-5.66V52H36.17zM0 31.93v-9.78a5 5 0 0 1 3.8.72l4.43-4.43a3 3 0 1 1 1.42 1.41L5.2 24.28a5 5 0 0 1 0 5.52l4.44 4.43a3 3 0 1 1-1.42 1.42L3.8 31.2a5 5 0 0 1-3.8.72zm52-14.1a3 3 0 0 1 0-5.66V5.9A5 5 0 0 1 48.1 2h-6.27a3 3 0 0 1-5.66-2H52v17.83zm0 14.1a4.97 4.97 0 0 1-1.72-.72l-4.43 4.44a3 3 0 1 1-1.41-1.42l4.43-4.43a5 5 0 0 1 0-5.52l-4.43-4.43a3 3 0 1 1 1.41-1.41l4.43 4.43c.53-.35 1.12-.6 1.72-.72v9.78zM22.15 0h9.78a5 5 0 0 1-.72 3.8l4.44 4.43a3 3 0 1 1-1.42 1.42L29.8 5.2a5 5 0 0 1-5.52 0l-4.43 4.44a3 3 0 1 1-1.41-1.42l4.43-4.43a5 5 0 0 1-.72-3.8zm0 52c.13-.6.37-1.19.72-1.72l-4.43-4.43a3 3 0 1 1 1.41-1.41l4.43 4.43a5 5 0 0 1 5.52 0l4.43-4.43a3 3 0 1 1 1.42 1.41l-4.44 4.43c.36.53.6 1.12.72 1.72h-9.78zm9.75-24a5 5 0 0 1-3.9 3.9v6.27a3 3 0 1 1-2 0V31.9a5 5 0 0 1-3.9-3.9h-6.27a3 3 0 1 1 0-2h6.27a5 5 0 0 1 3.9-3.9v-6.27a3 3 0 1 1 2 0v6.27a5 5 0 0 1 3.9 3.9h6.27a3 3 0 1 1 0 2H31.9z'%3E%3C/path%3E%3C/svg%3E");
}
#pernam{
    width: 100%;
    background: #f1f1f1;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 4px 6px 5px;
    text-align: center;
    position: relative;
    bottom: 0.6em;
}
#perimg{
    padding: 4px 6px 5px;
    width: 100%;
    height: 120px;
}
@media only screen and (max-width: 600px){
    .perinfo{
        width: 26%;
    }
    #pernam{
        width: 98%;
    }
}
.welc.open{
    opacity: 1;
    height: 130px;
}


/*position holders*/
.bggo{
    background: radial-gradient(ellipse farthest-corner at right bottom, #FEDB37 0%, #FDB931 8%, #9f7928 30%, #8A6E2F 40%, transparent 80%),
    radial-gradient(ellipse farthest-corner at left top, #FFFFFF 0%, #FFFFAC 8%, #D1B464 25%, #5d4a1f 62.5%, #5d4a1f 100%);
    box-shadow: 0 10px 20px rgba(255, 239, 12, 0.968);
  
  }
  .bgsi{
    background: radial-gradient(ellipse farthest-corner at right bottom, #adadad 0%, #626261 8%, #818181 30%, #b2b2b2 40%, transparent 80%),
    radial-gradient(ellipse farthest-corner at left top, #FFFFFF 0%, #d8d8d6 8%, #868686 25%, #aeaeae 62.5%, #aaa9a8 100%);
    box-shadow: 0 10px 20px rgba(116, 116, 116, 0.968);
  
  }
  .bgbz{
    background: radial-gradient(ellipse farthest-corner at right bottom, #f94343 0%, #fb4747 8%, #ff5454 30%, #f53838 40%, transparent 80%),
    radial-gradient(ellipse farthest-corner at left top, #fe3c3c 0%, #ff3939 8%, #fd3333 25%, #f53939 62.5%, #f94b4b 100%);
    box-shadow: 0 10px 20px rgba(255, 54, 54, 0.968);
  }
  .phdo{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 50%;
    height: 20rem;
    flex-wrap: wrap;    
    background: #000;
  }
  .toppers{
    position: relative;
    top: 0;
    width: 100%;
    background: yellow;
    padding:0 25px;
  }
  .wnhvr {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 350px;
    margin-left: 20px;
    position: relative;
    border: 1px solid #000;
    animation: swing 2s ease-in-out infinite alternate;
    transform-origin: center -80px;
    flex-wrap: wrap;
    border-radius: 20px;
  }
  
  .rnk{
    position: relative;
    bottom: 2em;
    background: royalblue;
    color: #fff;
    font-size: 1rem;
    font-family: tahoma;
    border-radius: 5px;
    padding: 0 15px;
    z-index: -1;
  }
  ul{
    position: relative;
    left: 0;
    color: #f1f1f1;
  }
  ul li{
    font-family: Georgia, 'Times New Roman', Times, serif;
    list-style-type: none;
    font-weight: 600;
  }
  .topr{
    max-width: 50%;
    height: 150px;
    border-radius: 60px;
  }
  
  @keyframes swing {
    from { transform: rotate(-6deg); }
  
    to { transform: rotate(6deg); }
  }
  
  
  .wnhvr::before,
  .wnhvr::after{
    content: "";
    position: absolute;
    left: 50%; top: -15%;
    transform: translateX(-50%);
    border: 1px solid #272727;
  }
  
  .wnhvr::before {
  width: 10px; height: 10px;
  border-radius: 50%;
  background-color: #ff7a00;
  box-shadow: 0 0 10px rgba(255, 122, 0, 0.8);
  }
  
  .wnhvr::after {
  width: 8px; height: 80px;
  border-radius: 10px;
  z-index: -1;
  }
  @media only screen and (max-width: 600px){
    .phdo{
        position: relative;
        top: 50%;
        left: 1px;
        height: 40em;
    }
 
    .toppers{
        position: relative;
        top: 0;
        width: 100%;
        text-align: center;
    }
  }

/*got the upper hand*/

/*it ends here*/
#anslist{
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
/*end timers*/
.end{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 7em;
    background: #f1f1f1;
    z-index: 6;
    visibility: visible;
  }


  .adhr-samay {
    position: relative;
    width: 300px;
    height: 300px;
  }
  
  .adhr-samay__svg {
    transform: scaleX(-1);
  }
  
  .adhr-samay__circle {
    fill: none;
    stroke: none;
  }
  
  .adhr-samay__path-elapsed {
    stroke-width: 7px;
    stroke: grey;
  }
  
  .adhr-samay__path-remaining {
    stroke-width: 7px;
    stroke-linecap: round;
    transform: rotate(90deg);
    transform-origin: center;
    transition: 1s linear all;
    fill-rule: nonzero;
    stroke: currentColor;
  }
  
  .adhr-samay__path-remaining.green {
    color: rgb(65, 184, 131);
  }
  
  .adhr-samay__path-remaining.orange {
    color: orange;
  }
  
  .adhr-samay__path-remaining.red {
    color: red;
  }
  
  .adhr-samay__label {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
  }


/*it ends here*/
.start_btn,
.info_box,
.quiz_box,
.result_box{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 
                0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.start_btn.animate{
    animation: mymove 2s infinite;
}

@keyframes mymove {
  50% {box-shadow: 2px 4px 8px 12px rgb(244, 248, 0);}
}


.info_box.activeInfo,
.quiz_box.activeQuiz,
.result_box.activeResult{
    opacity: 1;
    z-index: 5;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.start_btn button{
    font-size: 25px;
    font-weight: 500;
    color: #007bff;
    padding: 15px 30px;
    outline: none;
    border: none;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}

.info_box{
    width: 540px;
    background: #fff;
    border-radius: 5px;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.info_box .info-title{
    height: 60px;
    width: 100%;
    border-bottom: 1px solid lightgrey;
    display: flex;
    align-items: center;
    padding: 0 30px;
    border-radius: 5px 5px 0 0;
    font-size: 20px;
    font-weight: 600;
}

.info_box .info-list{
    padding: 15px 30px;
}

.info_box .info-list .info{
    margin: 5px 0;
    font-size: 17px;
}

.info_box .info-list .info span{
    font-weight: 600;
    color: #007bff;
}
.info_box .buttons{
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 30px;
    border-top: 1px solid lightgrey;
}

.info_box .buttons button{
    margin: 0 5px;
    height: 40px;
    width: 100px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    outline: none;
    border-radius: 5px;
    border: 1px solid #007bff;
    transition: all 0.3s ease;
}

.quiz_box{
    width: 550px;
    background: #fff;
    border-radius: 5px;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.quiz_box header{
    position: relative;
    z-index: 2;
    height: 70px;
    padding: 0 30px;
    background: #fff;
    border-radius: 5px 5px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 3px 5px 1px rgba(0,0,0,0.1);
}

.quiz_box header .title{
    font-size: 20px;
    font-weight: 600;
}

.quiz_box header .timer{
    color: #004085;
    background: #cce5ff;
    border: 1px solid #b8daff;
    height: 45px;
    padding: 0 8px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 145px;
}

.quiz_box header .timer .time_left_txt{
    font-weight: 400;
    font-size: 17px;
    user-select: none;
}

.quiz_box header .timer .timer_sec{
    font-size: 18px;
    font-weight: 500;
    height: 30px;
    width: 45px;
    color: #fff;
    border-radius: 5px;
    line-height: 30px;
    text-align: center;
    background: #343a40;
    border: 1px solid #343a40;
    user-select: none;
}

.quiz_box header .time_line{
    position: absolute;
    bottom: 0px;
    left: 0px;
    height: 3px;
    background: #007bff;
}

section{
    padding: 25px 30px 20px 30px;
    background: #fff;
}

section .que_text{
    font-size: 25px;
    font-weight: 600;
}

section .option_list{
    padding: 20px 0px;
    display: block;   
}

section .option_list .option{
    background: aliceblue;
    border: 1px solid #84c5fe;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 17px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

section .option_list .option:last-child{
    margin-bottom: 0px;
}

section .option_list .option:hover{
    color: #004085;
    background: #cce5ff;
    border: 1px solid #b8daff;
}

section .option_list .option.correct{
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

section .option_list .option.incorrect{
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

section .option_list .option.disabled{
    pointer-events: none;
}

section .option_list .option .icon{
    height: 26px;
    width: 26px;
    border: 2px solid transparent;
    border-radius: 50%;
    text-align: center;
    font-size: 13px;
    pointer-events: none;
    transition: all 0.3s ease;
    line-height: 24px;
}
.option_list .option .icon.tick{
    color: #23903c;
    border-color: #23903c;
    background: #d4edda;
}

.option_list .option .icon.cross{
    color: #a42834;
    background: #f8d7da;
    border-color: #a42834;
}

footer{
    height: 60px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid lightgrey;
}

footer .total_que span{
    display: flex;
    user-select: none;
}

footer .total_que span p{
    font-weight: 500;
    padding: 0 5px;
}

footer .total_que span p:first-child{
    padding-left: 0px;
}

footer button{
    height: 40px;
    padding: 0 13px;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    border: none;
    outline: none;
    color: #fff;
    border-radius: 5px;
    background: #007bff;
    border: 1px solid #007bff;
    line-height: 10px;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

footer button:hover{
    background: #0263ca;
}

footer button.show{
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.result_box{
    background: #fff;
    border-radius: 5px;
    display: flex;
    padding: 25px 30px;
    width: 450px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.result_box .icon{
    font-size: 100px;
    color: #007bff;
    margin-bottom: 10px;
}

.result_box .complete_text{
    font-size: 20px;
    font-weight: 500;
}

.result_box .score_text span{
    display: flex;
    margin: 10px 0;
    font-size: 18px;
    font-weight: 500;
}

.result_box .score_text span p{
    padding: 0 4px;
    font-weight: 600;
}

.result_box .buttons{
    display: flex;
    margin: 20px 0;
}

.result_box .buttons button{
    margin: 0 10px;
    height: 45px;
    padding: 0 20px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    outline: none;
    border-radius: 5px;
    border: 1px solid #007bff;
    transition: all 0.3s ease;
}

.buttons button.restart{
    color: #fff;
    background: #007bff;
}

.buttons button.restart:hover{
    background: #0263ca;
}

.buttons button.quit{
    color: #007bff;
    background: #fff;
}

.buttons button.quit:hover{
    color: #fff;
    background: #007bff;
}
@media only screen and (max-width: 600px){
    html{
        height: 75em;
    }
    body{
        width: 100vw;
        height: 100vh;
    }
    .info_box{
        width: 100%;
    }
    .quiz_box{
        width: 100%;
    }
}