html{
    height: 100%;
}
body{
    background: var(--primary) !important;
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100%;
}

#login .questionmark{
    font-size: 60vmin;    
    text-align: center;
    vertical-align: middle;
    user-select: none;
    position: fixed;
    /* background-color: rgb(0, 0, 0); */
    transform: rotate(-30deg);
    opacity: 0.1;
    bottom: -15vmin;
    right: -15vmin;
    color: rgb(0, 0, 0);
    min-width: 60vmin;
    min-height: 60vmin;

}

#login .atom{
    font-size: 60vmin;    

    text-align: center;
    vertical-align: middle;
    color: black;
    position: fixed;
    /* border-radius: 50%; */
    /* background-color: rgb(0, 0, 0); */
    opacity: 0.1;
    min-width: 50vmin;
    min-height: 50vmin;
    top: -15vmin;
    left: -15vmin;
    animation: rotade 30s infinite linear;
}

#login form{
    background-color: rgb(255, 255, 255);
    padding: 16px;
    border-radius: 4px;
    display: none;
}
#login form.active{
    
    display: block;
}
#login input{
    font-weight: 700;
    font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
    border: 0.125rem solid rgb(204, 204, 204);
    background-color: rgb(255, 255, 255);
    padding: 0.25rem 0.375rem;

    min-height: 2.375rem;
    max-height: 48px;
    line-height: 2.375rem;
    text-align: center;
    max-width: 20rem;
    min-width: 6.25rem;
    color: rgb(51, 51, 51);
    outline: none;
    font-size: 16.1px;
    border-radius: 4px;
    box-sizing: border-box;
    display: none;
}
#login input.active{
    display: block;
}
#login input:hover{
    border: 2px solid #333;
}
#login input:focus{
    border: 2px solid #416fe4d0;
}
#login input[type="submit"]{
    border:none;
    background: #333;
    color: rgb(255, 255, 255);
    border-radius: 4px;
    font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    min-width: 48px;
    min-height: 48px;
    padding: 0px 16px 4px;
    line-height: 0.875rem;
    display: block;
    width: 100%;
    margin: 8px auto;
}

#login input[type="submit"]:hover{
    background: #404042;
}
#login  .inputcontainer.error input{
    border: 2px solid var(--err);
}
#login .inputcontainer{
    position: relative;
}
#login .inputcontainer.error::after{
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    height: 33px;
    top: calc(33px - 50%);
    
    right: 10px;
    content: '\f12a';
    color: var(--err);
    font-size: 30px;
    animation: lrm .3s linear;

}

#login .back{
    text-align: center;
    display: block;
}
#login h1{
    text-align: center;
    color: #333;
    
}
#login .container{
    width: 100vw;
    height: 100vh;
    position:fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* ------------------------------------------------------------- */
#playquiz{
    display: none;
    background: url('https://lh5.googleusercontent.com/proxy/Gg2Dh5gM4jL4w6jS8C4Nm8ZBcNU8TPKqkagahsLsW4QnRviXoaOIFeIAZ5-3rv7dP2DQFFyVXPVJyBgAMKK2HlTraGPTjW0_zTeGT80sqV_t=w3840-h2160-p-k-no-nd-mv') no-repeat;
    /* background: red; */
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    /* height: 100vh; */
    height: 100vh;  max-height: -webkit-fill-available;
    width: 100vw;
}
/* the header while playing */
#playquiz header{
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    height: 70px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
}
.darkmode #playquiz header{
    background: #000000;
}

#playquiz header .left{
    flex-grow: 4;
    display: flex;
}
#playquiz header .right{
    display: flex;
    /* flex-grow: 1; */
}

#playquiz header i.style{
    background: #e8e8e8;
    color: #000;
    padding: 7px;
    margin: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 25px;
    transition: background .2s, font-size .2s;
}

.darkmode #playquiz header i.style{
    background: #444;
    color: #fff;
}
#playquiz header i.style:hover{
    background: #d3d3d3;
    font-size: 29px;
    transition: background .2s, font-size .2s;
}
.darkmode #playquiz header i.style:hover{
    background: #5e5e5e;
  
}

#playquiz header .left .menu{
    display: none;
}
#playquiz header .left .progressbar{
    flex-grow: 1;
    height: 40px;
    margin: 10px;
    border-radius: 4px;
    border:#ddd solid 2.5px;
    padding: 3px;
    max-width: 500px;
    display: flex;  
}
.darkmode #playquiz header .left .progressbar{
    border:#444444 solid 2.5px;
}
#playquiz header .left .progressbar .percentage{
    background:linear-gradient(to right,  #ffa22e,#ffc22f );
    height: 100%;
    width: 0%;
    transition: width .3s;
    border-radius: 4px;
    vertical-align: middle;
    text-shadow: 0 1px 2px rgb(0 0 0 / 33%);
    font-size: 20px;
    display: flex;
    align-items: center;
    color: black;
    /* font-weight: 600; */
    font-family: 'Quicksand', sans-serif;

}
.darkmode #playquiz header .left .progressbar .percentage{
    color: white;
    text-shadow: 0 1px 2px rgb(255 255 255 / 33%);
}
#playquiz header .left .progressbar .percentage.correct{
    background: var(--valid);
    border-bottom-right-radius: 0px;
    border-top-right-radius: 0px;
    /* width: 60%; */
    z-index: 4;

}
#playquiz header .left .progressbar .percentage.incorrect{
    background: var(--err);
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    /* width: 30%; */
    z-index: 3;
}
#playquiz header #expand,
#playquiz header #compress,
#playquiz header #soundOn,
#playquiz header #soundOff{
    display: none;
}

@media screen and (max-width: 533px) {
    #playquiz header #expand,
    #playquiz header #compress{
        display: none !important;
    }
}
#playquiz header .right .btn{
    font-size: 1.1em;
    background: #4a00ff;
    border: none;
}
#playquiz header .right .btn:hover{
    background: #430ed6;
}
#playquiz header .right .btn:hover i {
    transform: rotate(360deg);
    transition: transform .3s;
}
#playquiz header #expand.active,
#playquiz header #compress.active,
#playquiz header #soundOn.active,
#playquiz header #soundOff.active{
    display: flex;
}
#playquiz .body {
    width: 100vw;
    height: calc(100% - 70px);
    display: flex;
    justify-content: center;
    align-items: center;
}
#playquiz .body .player{
    background: #ffffffa1;
    border-radius: 8px;
    padding: 10px;
    height: 90%;
    width: 95%; 
    overflow-x: hidden;
    overflow-y: hidden;
}
#playquiz .body .player .question_total{
    display: none;
    height: 100%;
}
#playquiz .body .player .question_total.active{
    display: block;
}
#playquiz .body .player .question_total .question{
    height: 47%;
    /* overflow: auto; */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* @media screen and (min-width: 760px){
    #playquiz .body .player .question_total .question{
        
        flex-direction: row;
    }
} */
#playquiz .body .player .question_total .question .text{
    font-size: 2em;
    text-align: center;
    font-family: 'Balsamiq Sans', cursive;
    
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    /* min-width: 100px; */
}
#playquiz .body .player .question_total .question .data{
    width: 100%;
    height: 200px;
    cursor: pointer;
}  
#playquiz .body .player .question_total .question .data img{
    height: 100%;
    max-width: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}
.data-popup{
    position: fixed;
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: #ffffff8e;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}
.darkmode .data-popup{
    background: #0000008e;
}
.data-popup .close{
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28pt;
    cursor: pointer;
    color: black;
    font-family: 'Balsamiq Sans', cursive;
    user-select: none;
    -moz-user-select: none;
}
.darkmode .data-popup .close{
    color: white;
}
.data-popup .content{
    width: 95%;
    height: 60%;
}
.data-popup .content img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    -o-object-fit: contain;
}
#playquiz .body .player .question_total .inputs{
    height: 50%;
    display: flex;
    /* align-items: center; */
    justify-content: center;
    flex-direction: column;
}
#playquiz .body .player .question_total.open .inputs input[type="text"]{
    width: 98%;
    max-width: 400px;
    margin: 10px auto;
    padding: 16px;
    font-size: 1.6em;
    background: #ffffff2f;
    border: 3px solid rgba(0, 0, 0, 0.342);
    border-radius: 10px;
    outline: none;
}
.darkmode #playquiz .body .player .question_total.open .inputs input[type="text"]{
    background: #0000002f;
    color: white;
    border: 3px solid #ffffff57;
}
#playquiz .body .player .question_total.open .inputs input[type="text"]:hover{
    background: #ffffff44;
    border: 3px solid rgb(0, 0, 0);
}
.darkmode #playquiz .body .player .question_total.open .inputs input[type="text"]:hover{
    background: #00000036;
    border: 3px solid #ececec;
}
#playquiz .body .player .question_total.open .inputs input[type="text"]:focus{
    border: 3px solid rgb(0, 102, 255);
    background: #ffffff48;
}
.darkmode #playquiz .body .player .question_total.open .inputs input[type="text"]:focus{
    border: 3px solid rgb(0, 102, 255);
    background: #00000048;
}
#playquiz .body .player .question_total .inputs .answers{
    display: flex;
    flex-wrap: wrap;
    width: 80%;
    max-width: 200px;
    justify-content: center;
    margin: 0 auto;
    color: black;
}
#playquiz .body .player .question_total .inputs .answers .answer{
    list-style-type: none;
    margin: 2px 5px;
    display: inline-block;
    padding: 2px 14px;
    box-shadow: #00000080 0 0 13px 1px;
    margin: 5px;
    border-radius: 10px;
    background: var(--valid);
}
.darkmode #playquiz .body .player .question_total .inputs .answers .answer{
    box-shadow: #ffffff80 0 0 13px 1px;
   
}
#playquiz .body .player .question_total .inputs .answers.goodExcept .answer{
    list-style-type: none;
    background: var(--err);
}

#playquiz .body .player .question_total.checkbox .inputs{
    
    overflow: hidden auto; 
    overflow-x: hidden;
    overflow-y: auto;
    flex-direction: row;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    
}
#playquiz .body .player .question_total.checkbox .inputs input{
    display: none;
    margin: none;
    opacity: 0;
}
#playquiz .body .player .question_total.checkbox .inputs label{
    
    height: calc(100% - 10px);
    flex-grow: 1;
    width: calc(25% - 10px);
    /* flex-shrink: 1; */
    margin: 5px;
    background: #387233;
    border-radius: 8px;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 34px;
    position: relative;
    
    /* overflow: auto; */
}

#playquiz .body .player .question_total.checkbox .inputs label:first-of-type:nth-last-of-type(n + 5),
#playquiz .body .player .question_total.checkbox .inputs label:first-of-type:nth-last-of-type(n + 5) ~ label {
    height: calc(50% - 10px);
}

@media screen and (max-width: 830px) {
    #playquiz .body .player .question_total.checkbox .inputs  label{
        /* grid-template-columns: 1fr 1fr 1fr;         */
        width: calc(50% - 10px);
        height:calc(100% - 10px);

    }
    #playquiz .body .player .question_total.checkbox .inputs label:first-of-type:nth-last-of-type(n + 3),
    #playquiz .body .player .question_total.checkbox .inputs label:first-of-type:nth-last-of-type(n + 3) ~ label {
        height: calc(50% - 10px);
    }
}
@media screen and (max-width: 670px) {
    #playquiz .body .player .question_total.checkbox .inputs label{
        width: calc(100% - 10px);
        height:calc(100% - 10px);
    }
    
    #playquiz .body .player .question_total.checkbox .inputs label:first-of-type:nth-last-of-type(n + 2),
    #playquiz .body .player .question_total.checkbox .inputs label:first-of-type:nth-last-of-type(n + 2) ~ label {
        height:calc(50% - 10px);
    }
    #playquiz .body .player .question_total.checkbox .inputs label:first-of-type:nth-last-of-type(n + 3),
    #playquiz .body .player .question_total.checkbox .inputs label:first-of-type:nth-last-of-type(n + 3) ~ label {
        height:calc(33.333333% - 10px);
    }
    #playquiz .body .player .question_total.checkbox .inputs label:first-of-type:nth-last-of-type(n + 4),
    #playquiz .body .player .question_total.checkbox .inputs label:first-of-type:nth-last-of-type(n + 4) ~ label {
        height:calc(25% - 10px);
    }
}



#playquiz .body .player .question_total.checkbox .inputs .text{
    max-height: 100%;
    /* word-wrap: break-word; */
    line-height: 100%;
    padding: 0 40px;
}
#playquiz .body .player .question_total.checkbox .inputs label .checkbox{
    position: absolute;
    top: 4px;
    right: 4px;
    width: 30px;
    height: 30px;
    color: #ffffff;
    border: 3px solid #ffffff6c;
    border-radius: 7%;
    display: flex;
    justify-content: center;
    align-items: center; 
    overflow-x:hidden;
    overflow-y:hidden;
    cursor: pointer;
}
.darkmode #playquiz .body .player .question_total.checkbox .inputs label .checkbox{
    border: 3px solid #0000006c;
}

#playquiz .body .player .question_total.checkbox .inputs label .checkbox .checked{
    display: none;
    background: var(--primary);
    /* border-radius: 7%; */
}
#playquiz .body .player .question_total.checkbox .inputs input:checked + label .checkbox .checked{
    display: initial;
}
/* #playquiz .body .player .question_total.checkbox .inputs label:nth-of-type(4n+1){ */
    /* background: #f01940; */
/* } */
/* #playquiz .body .player .question_total.checkbox .inputs label:nth-of-type(4n+2){ */
    /* background: #1d7fe0 ; */
/* } */
/* #playquiz .body .player .question_total.checkbox .inputs label:nth-of-type(4n+3){ */
    /* background: #dba605; */
/* } */
/* #playquiz .body .player .question_total.checkbox .inputs label:nth-of-type(4n+4){ */
    /* background: #30a10a; */
/* } */
#playquiz .body .player .question_total.multipleChoice .inputs label .checkbox{
    border-radius: 50%;
    transform: rotate(0deg) ;
}

#playquiz .body .player .question_total.multipleChoice .inputs input:checked + label .checkbox{
    transform: rotate(360deg);
    transition: transform .6s;
}
#playquiz .new-question-number{
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    /* display: none; */
    opacity: 0;
    background: #dba605;
    z-index: 1000;
    animation:  new-question-number-an  reverse .4s forwards;


    
    
}

#playquiz .new-question-number.active{
    display: flex;
    animation:  new-question-number-an  .4s forwards;
}

#playquiz .new-question-number .text{
    width: 100%;
    height: 200px;
    font-size: 100px;
    background: var(--primary);
    filter: hue-rotate(9deg) ;
    -webkit-filter: hue-rotate(-72deg) invert(1);
    color: initial;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    /* transform: scaleY(0); opacity: 0; */    
}
#playquiz .popup-incorrect,
#playquiz .popup-correct{
    width: 100vw;
    height: 70px;
    position: fixed;
    top: 0;
    /* bottom: 0; */
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: xx-large;
    z-index: 500;
    transform: translateY(-72px);
    transition: transform .3s;

}

#playquiz .popup-correct{
    background: var(--valid);
}
#playquiz .popup-incorrect{
    background: var(--err);
    
}
#playquiz .popup-incorrect.active,
#playquiz .popup-correct.active{
    transform: translateY(0px);

}

/* result section */
#results{
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--primary);
    overflow-y: auto;
    display: none;
    /* z-index: 1000; */
}
#results .content{
    width: 95%;
    max-width: 480px;
    background: #ffffff88;
    margin: 10px auto;
    border-radius: 10px;
    padding: 7px;
}
#results .content .title{
    text-align: center;
    color: black;
    
}
#results .content .acc{
    background: #ffffff77;
    border-radius: 10px;
    padding: 10px;
    margin: 7px;
    color: black;

}
#results .content .bar{
    width: 95%;
    height: 20px;
    margin: 40px auto;
    background: #fff;
    border-radius: 10px;
    display: flex;
    /* overflow: hidden; */
    position: relative;
}
#results .content .bar .correct,
#results .content .bar .incorrect{
    width: 10%;
    height: 100%;
    background: var(--valid);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    
    /* border-radius: 10px; */
}
#results .content .bar .incorrect{
    background: var(--err);
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    width: 90%;
}
#results .content .bar .number{
    margin-left: 10%;
    position: absolute;
    left: 0;
    top: 0;
    margin-top: -20px;
    background: white;
    color: black;
    padding: 5px;
    border-radius: 3px;
    transform: translateY(-10px) translateX(-50%);
    

}
#results .content .bar .bottom{
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgb(255, 255, 255) transparent transparent transparent;
}
#results .content .btn{
    display: block;
    padding: 14px;
    font-family:  "Quicksand",Helvetica,Arial;
    font-size: 24px;

}
#results .stats {
    display: flex;
    justify-content: space-around;

}
#results .stats .stat-box{
    background: #ffffff77;
    border-radius: 10px;
    padding: 10px;
    width: 30%;
    height: 80px;
    position: relative;
    overflow-y: hidden;
    overflow-x: hidden;
}
#results .stats .stat-box .icon{
    /* width: 100%;
    height: 100%; */
    font-size: 70px;
    position: absolute;
    left: -10px;
    bottom: -20px;
    z-index: -0;
    transform: rotateZ(-30deg);
    color: #00f5148a;
    
}
#results .stats .stat-box .label{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.534);
    font-family:  "Quicksand",Helvetica,Arial;
    padding: 5px;
}
#results .stats .stat-box .value{
    position: absolute;
    width: 100%;
    left: 0;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: #000000;
    font-family: 'Quicksand', sans-serif;
    /* font-family: 'Balsamiq Sans', cursive; */

    white-space: nowrap ;
}
#results .questions {
    background: #ffffff77;
    border-radius: 10px;
    padding: 10px;
    margin: 7px;
}
#results .questions .question {
    background: #1a1b27;
    border-radius: 10px;
    padding: 6px;
    color: white;
    position: relative;
    overflow: hidden;
    border-left: 10px solid var(--err);
    margin: 5px 0;

}
#results .questions .question.correct {
    border-left: 10px solid var(--valid);
}
#results .questions .question .header {
    background: #2a2a31;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 7px;
}
#results .questions .question .header div {
    padding: 4px 8px;
    border-radius: 4px;
    margin: 0 2px;
}
#results .questions .question .header .time {
    background: #3f3f3f;
}
#results .questions .question .header .time::before {
    content: '\f017';
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900;
    margin: 0 5px;
}
#results .questions .question .question-question {
    margin-top: 33px;
    font-size: 24px;
}
#results .questions .question .options .option.correct .IscorrectQ {
    color: var(--valid);
    filter:brightness(.9);
}
#results .questions .question .options .option.incorrect .IscorrectQ {
    color: var(--err);
    filter:brightness(.9);
}
#results .questions .question .options .option .isSelected {
    color: #3f4044;
}
#results .questions .question .options .option.selected .isSelected {
    color: #4264fa;
}
#results .questions .question.open .ans-total .answers .ans {
    margin-left: 10px;
    list-style-type:disc;
}

@keyframes rotade {
    from{transform: rotate(0deg);}
    to{transform: rotate(360deg);}
}
@keyframes lrm {
    0%{transform: translateX(0);}
    20%{transform: translateX(-10px);}
    40%{transform: translateX(0px);}
    60%{transform: translateX(10px);}
    80%{transform: translateX(0px);}
}