.quiz_overlay {
    position: fixed;
    top: 0;
    left: 0;
    background: rgb(255 255 255 / 70%);
    width: 100%;
    height: 100%;
    z-index: 100000;
}
.quiz_container {
    position: fixed;
    /*height: 85%;*/
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    background-image: url(../img/quiz_banner_mb_resize_2.png);
    background-size: cover;
    overflow: visible;
    z-index: 100000;
    /*aspect-ratio: 0.67/1;*/
    display: flex;
    align-items: center;
    justify-content: center;
}
.quiz_play_container {
    position: fixed;
    width: 98%;
    height: 80%;
    left: 50%;
    transform: translateX(-50%);
    top: 6%;
    border-radius: 10px;
    background-image: url(../img/Backdrop_mobile.png);
    background-size: 100% 100%;
    overflow: visible;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bold_weight {
    font-weight: bold;
}

.close_quiz_rules,
.close_quiz {
    position: absolute;
    width: 40px;
}
.input-error{
  outline: 1px solid red;
}
.quiz_answers textarea:focus-visible {
    outline: none;
}
.quiz_intro .close_quiz {
    top: 12%;
    right: 14%;
}

.quiz_result .close_quiz {
    top: 24%;
    right: 5%;
}

.quiz_intro {
    width: 67%;
    height: 76%;
    display: flex;
    overflow: visible;
    flex-direction: column;
    /*padding: 0px 30px;*/
}

.quiz_intro .quiz_mascot {
    position: relative;
    bottom: -5%;
    width: 100%;
    height: auto;
    align-self: center;
}

.quiz_header {
    width: 100%;
    height: 10%;
    display: flex;
    justify-content: flex-start;
}
.quiz_header h1 {
    font-size: 2vh;
    font-weight: 700;
    text-transform: uppercase;
}

.quiz_content {
    width: 100%;
    height: 54%;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.quiz_button {
    width: 100%;
    height: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8%;
    margin-top: 10px;
}

.quiz_button img {
    height: 100%;
    width: auto;
}

.quiz_main {
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: column;
    padding-top: 1vh;
    gap: 4px;
}
.quiz_play {
    width: 90%;
    height: 92%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
}
.quiz_play .close_quiz {
    top: 4%;
    right: 5.5%;
}
.quiz_main p {
    font-size: 1.5vh;
    margin: 0;
    padding: 0;
}
.quiz_main span {
    font-weight: 600;
    color: blue;
}

.quiz_details_rules {
    font-size: 90%;
    color: #0091ff;
    text-decoration: underline;
    cursor: pointer;
    margin: 2% 0;

}



.none {
    display: none;
}

.quiz_question {
    width: 90%;
    height: 16%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.quiz_question h1 {
    font-size: 4vw;
    font-weight: 600;
    font-family: 'Open Sans';
}

.quiz_timer {
    display: flex;
    align-self: center;
    justify-content: space-around;
    align-items: center;
    background-color: white;
    color: black;
    border-radius: 10px;
    outline: 2px solid orange;
    outline-offset: -5px;
    padding: 10px;
    height: 50px;
    width: 135px;

}

.quiz_timer h1 {
    font-family: 'Open Sans';
    font-size: 30px;
    margin-bottom: 0;
    font-weight: 600;
}
.animate-flashing {
   -webkit-animation: flashingAnimation 1s infinite;
   -moz-animation: flashingAnimation 1s infinite;
   -o-animation: flashingAnimation 1s infinite;
    animation: flashingAnimation 1s infinite;
}
@keyframes flashingAnimation {
  0%   { background-color: white; }
  50%  { background-color: red; }
  100% { background-color: white; }
}
@-o-keyframes flashingAnimation{
  0%   { background-color: white; }
  50%  { background-color: red; }
  100% { background-color: white; }
}
@-moz-keyframes flashingAnimation{
  0%   { background-color: white; }
  50%  { background-color: red; }
  100% { background-color: white; }
}
@-webkit-keyframes flashingAnimation{
  0%   { background-color: white; }
  50%  { background-color: red; }
  100% { background-color: white; }
}
.quiz_timer img {
    height: 90%;
    width: auto;
    margin-right: 10px;
}
.quiz_answers {
   width: 100%;
    height: 70%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    overflow: clip;
    padding-bottom: 10px;
}

.answer_item {
    width: 95%;
    /* min-height: 30%; */
    /* max-height: 100%; */
    height: 25%;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-radius: 10px;
    padding-bottom: 5px;
    border: 2px solid transparent;
    justify-content: center;
    box-sizing: content-box;
}
.answer_item input {
    width: 20px;
    height: 50px;
    align-self: center;
}
.quiz_answers .answer_item .answer_check {
    display: none;
    width: 25px;
    height: 25px;
    align-self: center;
}
.quiz_answers .answer_item.wrong input, .quiz_answers .answer_item.correct input {
    display: none;
}
.quiz_answers .image_item .answer_check {
    position: absolute;
    display: none;
    width: 7%;
    height: auto;
}
.quiz_answers .wrong #wrong {
    display: block;
}
.quiz_answers .correct #correct {
    display: block;
}
.answer_item.wrong {
    border: 3px solid red;
}
.answer_item.correct {
    border: 3px solid green;
}
.answer_text {
    width: 100%;
    height: 20%;
    min-height: 20px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-content: center;
    flex-direction: row;
    align-items: center;
}
.answer_text h1 {
    font-size: 15px;
    margin-bottom: 0px;
    width: fit-content;
    max-width: 70%;
    margin-left: 10px;
}
.answer_img {
    width: 100%;
    height: 75%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quiz_answers img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}



.image_item {
    width: 33%;
    height: 33%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid transparent;
    border-radius: 10px;
}

.image_item img {
    border-radius: 6px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image_item img:first-child{
    border: 3px solid #7da4ea;
}
.image_item.active img:first-child{
    border: 3px solid orange;
}
.image_item.correct img:first-child{
    border: 3px solid green;
}
.image_item.wrong img:first-child{
    border: 3px solid red;
}

.quiz_answers textarea {
    background: transparent;
    resize: none;
    border: none;
    width: 90%;
    height: 31px;
    background-image: linear-gradient(to right, transparent 10px, transparent 10px), linear-gradient(to left, transparent 10px, transparent 10px), repeating-linear-gradient(transparent, transparent 30px, #000 30px, #000 31px, transparent 31px);
    line-height: 31px;
    margin-left: 5%;
    /*transform: translateY(-100%);*/
}
.quiz_next {
    position: absolute;
    width: 120px;
    height: 45px;
    display: flex;
    bottom: -50px;
    right: 23px;
    justify-content: space-evenly;
    align-items: center;
    background-color: white;
    color: black;
    border-radius: 10px;
    outline: 2px solid orange;
    outline-offset: -5px;
    padding: 5px;
}
.quiz_next img {
    height: 80%;
    width: auto;


}
.quiz_result {
    position: fixed;
    /*height: 100%;*/
    /*aspect-ratio: 9/16;*/
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    border-radius: 10px;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
}
.bold_weight {
    font-size: bold;
}
.result_container {
    /*height: 90%;*/
    /*width: 100%;*/
    background-size: cover;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.lose_screen {
    background-image: url('../img/lose_mb_resize_2.png');
    /*aspect-ratio: 0.67/1;*/
}

.win_screen {
    background-image: url('../img/win_mb_resize_2.png');
    /*aspect-ratio: 0.67/1;*/
}
.result_text {
    width: 80%;
    height: 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*flex-wrap: wrap;*/
    align-content: center;
}

.result_text h1 {
    font-size: 17px;
    font-weight: 400;
    font-family: 'Open Sans';
}

.result_share {
    width: 30%;
    height: 6%;
    font-size: 3vw;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #ff0c1e;
    border-radius: 10px;
}

.result_button {
    width: 80%;
    height: 7%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8%;
}
.result_button.none {
    display: none;
}
.result_button img {
    height: 65%;
}

.win_button {
    width: 90%;
    height: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8%;
    margin-top: 10px;
}
.win_button button {
    height: 100%;
    width: 38%;
    color: white;
    background-color: red;
    border-radius: 40px;
    text-transform: uppercase;
    border: none;
    font-size: 2vw;
    font-weight: 600;
}
.quiz_submit_container {
    position: fixed;
    /*height: 100%;*/
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    /*aspect-ratio: 0.67/1;*/
    /*background-image: url(../img/quiz_submit_banner_2.png);*/
    background-size: 100% 100%;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
}
.quiz_submit.mobile {
    position: relative;
    height: 34%;
    width: 76%;
    overflow: visible;
    display: flex;
    justify-content: center;
    /* align-items: flex-end; */
    top: 20%;
    left: 0;
}
.quiz_submit.desktop {
    position: relative;
    height: 47%;
    width: 47%;
    overflow: visible;
    display: flex;
    justify-content: center;
    /* align-items: flex-end; */
    /* top: 20%; */
    left: 20%;
}
.quiz_form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10%;
}
.quiz_form input {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 100%;
    width: 60%;
    background-color: transparent;
    color: black;
    font-weight: 500;
    line-height: 25px;
}
.quiz_form input::placeholder {
    color: black;
    opacity: 1;
}
.quiz_form input::-ms-input-placeholder { /* Edge 12-18 */
  color: black;
}
.quiz_form input:focus-visible {
    outline: none;
}
.quiz_form input:focus-visible::-ms-input-placeholder {
    color: transparent;
}
.quiz_form input:focus-visible::placeholder {
    color: transparent;
}
.quiz_form img {
    /*margin: 20px 0px;*/
    width: 60%;
}
.quiz_form h1 {
    color: black;
    font-size: 80%;
    width: 70%;
    text-align: center;
    font-weight: 300;
}
.quiz_form a {
    color: #0d6efd !important;
    text-decoration: underline !important;
}
.quiz_submit_container .close_quiz {
    top: 7%;
    left: 11%;
    z-index: 1;
}
.quiz_icon_container {
    width: fit-content;
    height:fit-content;
    position:fixed;
    top: 130px;
    right: 10px;
}
.main_quiz_icon {
    display: block;
    width: 70px;
    height: auto;
}
.quiz_policy {
    position: fixed;
    display: flex;
    /*height: 100%;*/
    /*aspect-ratio: 2/3;*/
    /*background-image: url(../img/policy_banner.png);*/
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-size: 100% 100%;
    z-index: 100000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-top: 0px;
    overflow: hidden;
}
.quiz_policy > h1 {
    font-size: 11px;
    height: fit-content;
    width: 60%;
    height: 10%;
    text-align: center;
    /* margin-bottom: 10px; */
    font-weight: bold;
    display: flex;
    align-items: center;
}
.quiz_policy_container {
    display: flex;
    width: 80%;
    height: 70%;
    overflow-y: scroll;
    overflow-x: hidden;
    flex-direction: column;
    align-items: center;
}
.quiz_policy_container::-webkit-scrollbar {
  width: 8px;
}

/* Track */
.quiz_policy_container::-webkit-scrollbar-track {
  border-radius: 10px;
}
 
/* Handle */
.quiz_policy_container::-webkit-scrollbar-thumb {
  background: #ee8690; 
  border-radius: 10px;
}
.quiz_policy_container h1 {
    margin: 10px;
    width: 100%;
    height: 30px;
    font-size: 25px;
    text-align: center;
    font-weight: bold;
}
.quiz_policy_content {
    width: 95%;
    height: fit-content;
}

.quiz_policy_content img {
    width: 100%;
}

.quiz_policy_content p,
.quiz_policy_content span{
    font-size: 12px;
    margin-bottom: 4px;
}

.close_quiz_rules,
.quiz_policy .close_quiz {
    top: 8%;
    right: 10%;
    width: 35px;
}
@media screen and (min-aspect-ratio: 1) {
     .quiz_play_container {
        width: 60%;
        height: 80%;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        background-image: url('../img/Backdrop_pc.png');
    }
    .quiz_intro {
        width: 76%;
        height: 50%;
        flex-direction: row;
    }
    .quiz_content {
            width: 45%;
        height: 80%;
        margin-left: 30px;
    }
    .quiz_header h1 {
        font-size: 12px;
    }
    .quiz_intro .quiz_mascot {
        bottom: 0;
        width: 60%;
    }
    .quiz_answers {
        flex-direction: row;
        justify-content: center;
        align-content: flex-start;
    }
    .image_item {
        width: 33%;
        height: 33%;
    }
    .answer_img img {
        max-width: 90%;
        max-height: 70%;
    }
    .quiz_question h1 {
        font-size: 2.6vw;
        font-weight: 600;
    }
    .answer_text h1 {
        font-size: 1.5vw;
    }
    .quiz_play .close_quiz {
        top: 3%;
        right: 2%;
        width: 25px;
    }
    /*.quiz_container {*/
    /*    width: 85%;*/
    /*    height: auto;*/
    /*    aspect-ratio: 1.78/1;*/
    /*    background-image: url(../img/quiz_banner_pc_resize_2.png);*/
    /*}*/
    .lose_screen {
        background-image: url('../img/lose_pc_resize_2.png');
        aspect-ratio: 1.78/1;
    }
    .win_screen {
        background-image: url('../img/win_pc_resize_2.png');
        aspect-ratio: 1.78/1;

    }
    /*.quiz_result {*/
    /*    width: 85%;*/
    /*    aspect-ratio: 16/9;*/
    /*    height: auto;*/
    /*}*/
    .quiz_main {
        height: 75%;
    }
    .answer_item {
        height: 80%;
    }
    .result_button button {
        font-size: 2vw;
    }
    .quiz_button {
        height: 20%;
    }
    .quiz_button img {
        height: 70%;
        align-self: flex-end;
    }
    .quiz_intro .close_quiz {
        /*top: 80px;*/
        /*right: 150px;*/
    }
    .result_text {
        height: 35%;
        width: 55%;
        justify-content: flex-end;
    }
    .result_button {
        width: 50%;
        height: 15%;
    }
    .quiz_result .close_quiz {
        top: 25%;
        right: 23%;
    }
    .quiz_timer {
        width: 150px;
    }
}


@media screen and (min-width: 900px) {

    .quiz_play {
        padding: 0px 40px 10px 40px;
    }
    .quiz_question h1 {
        font-size: 2.5vw;
    }


    /*.main_quiz_icon {*/
    /*    top: 48px;*/
    /*}*/
    .quiz_icon_container {
        top: 48px;
    }
    .quiz_submit .quiz_mascot {
        height: 65%;
    }
    .quiz_play .close_quiz {
        top: 3.1vh;
        right: 3vw;
        width: 37px;
    }
}


  @media (max-width: 750px) {
    .quiz_intro .close_quiz {
        /*top: 70px;*/
        /*right: 50px;*/
    }
    /*.quiz_result {*/
    /*    width: 70%;*/
    /*    height: auto;*/
    /*}*/
    .result_text h1 {
        font-size: 4vw;
        font-weight: 400;
    }
    .quiz_result .close_quiz {
        /*top: 135px;*/
        /*right: 10px;*/
    }

    .close_quiz_rules,
    .quiz_policy .close_quiz {
        /*top: 45px;*/
        /*right: 40px;*/
        width: 30px;
    }
  }
@media (max-width: 300px) and  (max-height: 660px)  {
    .quiz_intro .close_quiz {
        top: 20px;
        right: 50px;
    }
    /*.quiz_result {*/
    /*    height: 80%;*/
    /*}*/
    .result_text h1 {
        font-size: 4vw;
    }
    .quiz_result .close_quiz {
        /*top: 75px;*/
        /*right: 20px;*/
    }

    .quiz_form input {
        font-size: 14px;
    }
    .quiz_form img {
        margin: 0px;
    }


  }
@media screen and (min-aspect-ratio: 3/2) {
    .quiz_intro .close_quiz {
        position: absolute;
        top: 23%;
        width: 40px;
        right: 18%;
    }
    .quiz_content {
         padding-top: 0px; 
    }

}

   @media (min-width: 750px) and (min-aspect-ratio: 1 / 1) {

    .quiz_policy_container {
        width: 95%;
    }
    
    .quiz_policy > h1 {
        font-size: 100%;
    }
    .close_quiz_rules,
    .quiz_policy .close_quiz {
        top: 4%;
        right: 3%;
    }
    .quiz_header h1 {
        font-size: 14px;
    }
    .quiz_main {
        padding-top: 10px;
    }
    .quiz_main p {
        font-size: 9px;
        margin-bottom: 10px;
    }
    .quiz_intro .close_quiz {
        top: 22%;
        right: 17%;
        width: 29px;
    }
    .result_share {
        width: 25%;
        height: 10%;
        font-size: 2vw;
    }
    
    
    
  }
@media screen and (min-width: 1100px) {
    .result_text h1 {
        font-size: 30px;
    }
    .quiz_question {
        padding-top: 0px;
        height: 25%;
        width: 95%;
    }
    .result_button img {
        height: 50%;
    }
    .quiz_result .close_quiz {
        top: 25%;
        right: 23%;
        width: 50px;
    }
}
@media screen and (min-width: 1200px) {
    .quiz_result .close_quiz {
        top: 25%;
        right: 23%;
    }

}
@media screen and (min-width: 1300px) {
    .quiz_main p {
        font-size: 16px; 
    }
    .quiz_header h1 {
        font-size: 24px;
    }
}
@media screen and (min-width: 1400px) {
    .quiz_main p {
        font-size: 18px; 
    }
    .quiz_result .close_quiz {
        top: 195px;
        right: 250px;
    }
}
@media screen and (min-width: 1700px) {
    .quiz_result .close_quiz {
        /*top: 240px;*/
        right: 295px;
        width: 60px;
    }
}
@media screen and (min-width: 600px) and (max-height:900px) {
    .quiz_form button {
        font-size: 1vw;
    }
    .quiz_question h1 {
        font-size: 23px;
    }
    .result_text h1 {
        font-size: 1.8vw;
        font-weight: 400;
    }
    .result_text {
        height: 28%;
    }
    
}

@media (max-aspect-ratio: 3 / 5) {


    .quiz_form h1 {
        font-size: 3vw;
    }
}

@media screen and (max-width: 600px) and (max-height:900px) {

    .quiz_policy {
        padding-top: 5%;
    }

    /* .quiz_result {*/
    /*    width: 100%;*/
    /*    height: auto;*/
    /*}*/
    .quiz_question {
        height: 15%;
    }
    .quiz_answers {
        justify-content: flex-start;
    }
    .image_item {
        height: 31%;
    }


}
@media (min-width: 1100px) and (min-aspect-ratio: 1 / 1) {
    .quiz_main p {
        font-size: 16px;
    }
    .quiz_header h1 {
        font-size: 16px;
    }
    
    .quiz_result .close_quiz {
        top: 34%;
        right: 21%;
        width: 50px;
    }
    .quiz_main {
        height: 80%;
    }
    .quiz_question {
        height: 25%;
    }

    .quiz_answers {
        height: 80%;
    }
    .result_container {
        height: 100%;
    }
    .result_text {
        height: 35%;
    }

}
@media (min-width: 1300px) and (min-aspect-ratio: 1 / 1) {
   .quiz_header h1 {
        font-size: 26px;
    }
    .quiz_main p {
        font-size: 18px;
    }

}
@media (max-width: 720px) and  (max-height: 670px) and (min-aspect-ratio: 1) {
    /*.quiz_container {*/
    /*    width: 100%;*/
    /*}*/
    .quiz_header h1 {
        font-size: 15px;
    }
    .quiz_content {
        height: 95%;
    }
    .quiz_content {
        width: 60%;
        height: 100%;
        padding-top: 0px;
    }
    .quiz_main {
        padding-top: 10px;
    }
    .quiz_main p {
        font-size: 1.5vw;
        margin-bottom: 10px;
    }
    .quiz_intro .close_quiz {
        top: 21%;
        right: 17%;
        width: 30px;
    }
    .quiz_play {
        padding: 0px 20px 0px 20px;
    }
    .quiz_question {
        height: 10%;
    }
    .result_container {
        padding-top: 0;
    }
    .quiz_result .close_quiz {
        /*top: 15%;*/
        /*right: 14%;*/
    }
    .win_screen {
        padding-top: 0%;
    }
    .result_button img {
        height: 58%;
    }
    .quiz_form img {
        margin: 0px;
        width: 70%;
    }
    .quiz_form input {
        font-size: 15px;
        line-height: 17px;
    }
    /*.quiz_form h1 {*/
    /*    font-size: 12px;*/
    /*    line-height: 14px;*/
    /*}*/



}
@media (min-width: 2000px) and (min-aspect-ratio: 3/2) {
    .close_quiz_rules,
    .quiz_policy .close_quiz {
        top: 92px;
        right: 72px;
    }

    .quiz_header h1 {
        font-size: 40px;
    }
    .quiz_main {
        height: 100%;
        padding-top: 35px;
    }
    .quiz_main p {
        font-size: 33px;
        margin-bottom: 15px;
    }
    .quiz_content {
        width: 50%;
    }
    .quiz_intro .close_quiz {
        top: 24%;
        right: 18%;
        width: 50px;
    }
    .result_text h1 {
        font-size: 50px;
    }
    .result_text {
        height: 30%;
    }
    .quiz_form input {
        font-size: 30px;
        line-height: 45px;
    }

    .quiz_form {
        height: 47%;
    }
}
