@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');


*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: Titillium Web;
    background-color: var(--bg-color);
    opacity: 1;
    background-image:  linear-gradient(var(--bg-lines) 1px, transparent 1px), linear-gradient(to right, var(--bg-lines) 1px, var(--bg-color) 1px);
    background-size: 50px 50px;
    transition: all .4s ease-in-out;
}

.questionProgress{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 1em;
    /* padding: 1em 22em 1em 22em; */
    padding: 1em;
    background-color: var(--bg-color);
    margin: 1em;
    border-radius: 50px;
    flex-wrap: nowrap;
    height: max-content;
    /* max-width: 40%; */
    max-width: 95%;
    overflow: auto;
    transition: all 0.4s ease-in-out;
    box-shadow: var(--progress-box-shadow1) 0.755px 0.755px 0px, var(--progress-box-shadow2) -0.755px -0.755px 0px, var(--progress-box-shadow3) 0px 0px inset;
}
.questionProgress::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}
.questionProgress::-webkit-scrollbar {
  display: none;
}
.questionProgress {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
/* .questionProgress::before{
    content: "";
    position: fixed;
    background-color: red;
    left: 30%;
    width: 18%;
    height: 5em;
    background-color: var(--bg-color);
    border-radius: 100px 0 0 100px;
    mask-image: linear-gradient(to right, black calc(100% - 48px), transparent 100%);
    box-shadow: var(--progress-box-shadow1) 0.755px 0.755px 0px, var(--progress-box-shadow2) -0.755px -0.755px 0px, var(--progress-box-shadow3) 0px 0px inset;
    z-index: 15;
}
.questionProgress::after{
    content: "";
    position: fixed;
    background-color: red;
    right: 30%;
    width: 18%;
    height: 5em;
    background-color: var(--bg-color);
    border-radius: 0 100px 100px 0;
    mask-image: linear-gradient(to left, black calc(100% - 48px), transparent 100%);
    box-shadow: var(--progress-box-shadow1) 0.755px 0.755px 0px, var(--progress-box-shadow2) -0.755px -0.755px 0px, var(--progress-box-shadow3) 0px 0px inset;
    z-index: 15;
} */

.box{
    min-width: 3em;
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 50px;
    transition: .2s ease-in-out;
    cursor: pointer;
    color: var(--black);
    z-index: 5;
    background: var(--progressBox-bg);
    box-shadow: var(--progressBox-shadow1) 0px 1px 2px 0px, var(--progressBox-shadow2) 0px 1px 3px 1px;
}
.box:hover{
    color: limegreen;
}
.box-selected-bg{
    background-color: var(--white);
}

.questionCard{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2em 0 0 0;
    color: var(--black);
    background-color: var(--question-card-bg);
    margin-top: -4.75em;
    margin-bottom: 1em;
    border-radius: 20px;
    overflow: hidden;
    width: 40%;
    z-index: 2;
    padding: 1em;
    transition: all .2s ease-in-out;
    box-shadow: var(--question-card-box1) -0.0547455px 0.755px 0px, var(--question-card-box2) 0.0547455px -0.755px 0px, var(--question-card-box3) 0px 0px inset;
}
.question{
    width: 60%;
    aspect-ratio: 16/9;
    object-fit: contain;
    border-radius: 15px;
    background-color: black;
}
.questionWrapper{
    width: 57.75%;
    top: 2%;
    border-radius: 15px;
    opacity: 1;
    aspect-ratio: 16/9;
    position: absolute;
    background: var(--image-loader-bg);
    background: linear-gradient(110deg, var(--image-shine1) 8%, var(--image-shine2) 18%, var(--image-shine1) 33%);
    background-size: 200% 400%;
    -webkit-animation: 4.5s shine linear infinite;
            animation: 4.5s shine linear infinite;
    transition: all .2s ease-in-out;
}
.loaded {
    opacity: 0;
}
@-webkit-keyframes shine {
    to {
      background-position-x: -800%;
    }
  }
  
  @keyframes shine {
    to {
      background-position-x: -800%;
    }
  }

.answers{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 2em 2em 2em 2em;
    padding: 2em;
    gap: 1em;
    background-color: var(--white);
    border-radius: 10px;
    width: 85%;
}
.ans{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    width: 100%;
    padding: 1em;
    border: none;
    outline: none;
    font-size: 0.9em;
    font-family: Titillium Web;
    background-color: var(--question-card-bg);
    color: var(--black);
    border-radius: 5px;
    box-shadow: 1px 1px 3px var(--ans-box-shadow1),
             -1px -1px 3px var(--ans-box-shadow2);
    cursor: pointer;
    transition: all .1s ease-in-out;
}
.ans:active {
    box-shadow: inset 3px 3px 6px var(--ans-box-shadow1),
              inset -3px -3px 6px var(--ans-box-shadow2);
    transform: translateX(0.15em) translateY(0.15em);
}

.btnOptionText{
    transition: opacity .1s ease-in-out;
}

.ans::after {
    content: "✔";
    display: none;
    font-weight: bold;
    font-size: 1.5em;
    color: limegreen;
}

.show-after::after {
    display: block;
}

.progress{
    display: flex;
    align-items: end;
    justify-content: start;
    overflow: hidden;
    z-index: 2;
    transform: translateY(-6em);
    background-color: transparent;
    border-radius: 100px;
}
.bar{
    width: 2%;
    height: 0.25em;
    bottom: 0;
    border-radius: 10px;
    background-color: limegreen;
    animation: time 120s linear;
    align-self: flex-end;
    animation-play-state: paused;
}

@keyframes time {
    0%{
        width: 2%;
    }
    84%{
        width: 84%;
        background-color: limegreen;
    }
    85% {
        width: 85%;
        background-color: red
    }
    100%{
        background-color: red;
        width: 100%;
    }
}


.nextPrevBtns{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 85%;
    gap: 0.5em;
    margin-bottom: 0.5em;
    border-radius: 10px;
}
.next, .prev, .finish{
    width: 100%;
    padding: 0.5em 0 0.5em 0;
    border: none;
    outline: none;
    font-family: Titillium Web;
    font-size: 1.1em;
    border-radius: 5px;
    background-color: var(--btns-bg);
    color: var(--black);
    transition: .4s ease-in-out;
    cursor: pointer;
    z-index: 99;
}

.next::after{
    content: ">";
    position: absolute;
    margin-left: 0em;
    opacity: 0;
    margin-top: -0.1em;
    transition: .2s ease-in-out;
}
.next:hover::after{
    opacity: 1;
    margin-left: 0.25em;
}
.prev::before{
    content: "<";
    position: absolute;
    margin-left: -0.5em;
    opacity: 0;
    margin-top: -0.1em;
    transition: .2s ease-in-out;
}
.prev:hover::before{
    opacity: 1;
    margin-left: -0.85em;
}

.next:hover, .prev:hover{
    background-color: var(--btns-hover);
}
.finish:hover{
    background-color: limegreen;
    color: white;
}
.next:active, .prev:active, .finish:active{
    background-color: var(--btns-bg);
}

.finish{
    width: 85%;
    margin-bottom: 1em;
}

.result{
    padding: 0.5em 1em 0.5em 1em;
    color: var(--white);
    font-weight: bold;
    border-radius: 10px;
    margin-top: 2em;
    margin-bottom: 2em;
}

@media screen and (max-width: 1440px){
    .questionCard, .progress{
        width: 60%;
    }
}
@media screen and (max-width: 768px){
    .questionCard, .progress{
        width: 95%;
    }
}


.overlay{
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0, 0.9);
    font-size: 1.25em;
    position: fixed;
    top: 0;
    left: 0;
    overflow-x: hidden;
    transition: 0.4s ease-in-out;
    z-index: -2;
}
.divider{
    width: 100%;
    border: 1px solid var(--divider);
    border-radius: 15px;
}
.info{
    max-width: 600px;
    height: auto;
    color: var(--black);
    background-color: var(--progressBox-bg);
    border-radius: 15px;
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    row-gap: 1em;
    padding: 1.5em;
    margin: 1em;
}
.info h1{
    width: 100%;
    font-weight: bold;
    color: var(--black);
    font-size: 1.1em;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.info span{
    font-size: 0.85em;
    max-height: 545px;
    overflow: scroll;
}

::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}
.info span::-webkit-scrollbar {
  display: none;
}
.info span {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
@media screen and (max-width: 430px){
    .info{
        height: 95dvh;
        align-items: start;
    }
    .info span{
        padding: 0.75em 1em 0.75em 1em;
        border-radius: 10px;
        overflow-x: hidden;
        border: 1px solid var(--info-border);
    }
}

.startTest{
    font-size: 0.9em;
    background-color: var(--start-test-btn-bg);
    font-family: Titillium Web;
    padding: 0.45em 1em 0.45em 1em;
    border-radius: 8px;
    color: var(--white);
    border: none;
    outline: none;
    align-self: end;
    transition: .4s ease-in-out;
    cursor: pointer;
}
.startTest:hover{
    cursor: pointer;
    background-color: var(--start-test-btn-hover);
}

.dont{
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 0;
    margin-left: 1em;
    transition: .15s ease-in-out;
}

.cinephile, .cinephobe{
    border-radius: 15px;
    margin-bottom: 1em;
    width: 50%;
    aspect-ratio: 16/9;
}
.cinephobe{
    aspect-ratio: 1/1;
}
.cinephobeLoad{
    position: absolute;
    width: 48.25%;
    aspect-ratio: 1/1;
    bottom: 0;
    margin-bottom: 2em;
    border-radius: 15px;
    opacity: 1;
    justify-self: flex-end;
    background: var(--image-loader-bg);
    background: linear-gradient(110deg, var(--image-shine1) 8%, var(--image-shine2) 18%, var(--image-shine1) 33%);
    background-size: 200% 400%;
    -webkit-animation: 4.5s shine linear infinite;
            animation: 4.5s shine linear infinite;
    transition: all .4s ease-in-out;
    z-index: 5;
}
.cinephileLoad{
    position: absolute;
    width: 48.25%;
    aspect-ratio: 16/9;
    bottom: 0;
    margin-bottom: 2em;
    border-radius: 15px;
    opacity: 1;
    justify-self: flex-end;
    background: var(--image-loader-bg);
    background: linear-gradient(110deg, var(--image-shine1) 8%, var(--image-shine2) 18%, var(--image-shine1) 33%);
    background-size: 200% 400%;
    -webkit-animation: 4.5s shine linear infinite;
            animation: 4.5s shine linear infinite;
    transition: all .4s ease-in-out;
    z-index: 5;
}


.seeAllAnswers{
    display: none;
    border: none;
    padding: 0.75em 1em 0.75em 1em;
    font-family: Titillium Web;
    font-size: 1em;
    border-radius: 10px;
    margin-bottom: 0.75em;
    margin-top: 1em;
    cursor: pointer;
    color: var(--black);
    background-color: var(--answers-bg);  
    transition: all .2s ease-in-out;
}
.seeAllAnswers:hover{
    background-color: limegreen;
    color: var(--white);
}
.seeAllAnswers:active{
    opacity: 0.5;
}

.ansAll{
    display: none;
    opacity: 0;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1em;
    align-items: start;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    padding: 0 0.5em 0 0.5em;
    transition: .4s ease-in-out;
    border-radius: 20px;
    z-index: 2;
    overflow: hidden;
}
@media screen and (max-width: 400px) {
    .ansAll{
        overflow: scroll;
        border-radius: 15px;
        padding: 0.5em 1em 0.5em 1em;
        border: 1px solid var(--info-border);
    }
}

.allAnswers{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1em;
}
.allAnswers img{
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
    border-radius: 8px;
    background-color: black;
    margin-top: 0.5em;
}
.allAnswers span{
    font-weight: bold;
    font-size: 1em;
    margin-top: -0.75em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    cursor: context-menu;
}
.allAnsIMGLoad{
    position: absolute;
    width: 100%;
    margin-bottom: 1.25em;
    aspect-ratio: 16/9;
    border-radius: 5px;
    opacity: 1;
    justify-self: flex-end;
    background: var(--image-loader-bg);
    background: linear-gradient(110deg, var(--image-shine1) 8%, var(--image-shine2) 18%, var(--image-shine1) 33%);
    background-size: 200% 400%;
    -webkit-animation: 4.5s shine linear infinite;
            animation: 4.5s shine linear infinite;
    transition: all .4s ease-in-out;
    z-index: 5;
}


/* THEME-SWITCH */

:root {
    --bg-color: #e4e4e4;
    --bg-lines: #dbdbdb;
    --progress-box-shadow1: #bababa;
    --progress-box-shadow2: #ffffff;
    --progress-box-shadow3: #00000033;
    --progressBox-bg: #e0e0e0;
    --progressBox-shadow1: #3c40434d;
    --progressBox-shadow2: #3c404326;
    --question-card-bg: #f0f0f0;
    --question-card-box1: #979797;
    --question-card-box2: #ffffff;
    --question-card-box3: #00000033;
    --white: #ffffff;
    --ans-box-shadow1: #b5b5b5;
    --ans-box-shadow2: #ffffff; 
    --btns-bg: #dfdfdf;
    --black: #000000;
    --btns-hover: #bebebe;
    --divider: #0000006b;
    --start-test-btn-bg: #171717;
    --start-test-btn-hover: #303030;
    --answers-bg: #f1f1f1;
    --sun-moon-bg: linear-gradient(135deg, rgb(252, 206, 41) 50%, rgb(233, 122, 49) 100%);
    --sun-moon-shadow: 0px 0px 10px rgba(255, 212, 59, 0.5), 0px 0px 10px rgba(255, 102, 0, 0.5);
    --image-loader-bg: #eeeeee;
    --image-shine1: #d6d6d6;
    --image-shine2: #f5f5f5;
    --small-device-card-border: rgb(210, 210, 210);
    --info-border: #c2c2c2;
  }
  [data-theme="dark"] {
    --bg-color: #1b1b1b;
    --bg-lines: #242424;
    --progress-box-shadow1: #454545;
    --progress-box-shadow2: #000000;
    --progress-box-shadow3: #ffffff33;
    --progressBox-bg: #1f1f1f;
    --progressBox-shadow1: #c3bfbc4d;
    --progressBox-shadow2: #c3bfbc26;
    --question-card-bg: #0f0f0f;
    --question-card-box1: #686868;
    --question-card-box2: #000000;
    --question-card-box3: #ffffff33;
    --white: #000000;
    --ans-box-shadow1: #4a4a4a;
    --ans-box-shadow2: #000000; 
    --btns-bg: #202020;
    --black: #ffffff;
    --btns-hover: #414141;
    --divider: #ffffff6b;
    --start-test-btn-bg: #e8e8e8;
    --start-test-btn-hover: #cfcfcf;
    --answers-bg: #0e0e0e;
    --sun-moon-bg: linear-gradient(135deg, rgb(194, 194, 194) 50%, rgb(250, 250, 250) 100%);
    --sun-moon-shadow: 0px 0px 10px rgba(233, 233, 233, 0.5), 0px 0px 10px rgba(192, 192, 192, 0.5);
    --image-loader-bg: #111111;
    --image-shine1: #292929;
    --image-shine2: #0a0a0a;
    --small-device-card-border: #353535;
    --info-border: #3d3d3d;
  }


.up{
    position: absolute;
    width: 98%;
    top: 2.5em;
    height: max-content;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1em;
}
.up h1{
    position: relative;
    font-family: Bad Script;
}

.theme-switch-second {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 5%;
    right: 3%;
    padding: 0.75em 0.75em 0.75em 0;
    transition: all .4s ease-in-out;
    z-index: 99;
    background-color: var(--white);
    border-radius: 10px;
  }
  
  .theme-switch-second .checkboxsecond {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .slider-second {
    cursor: pointer;
    width: 2em;
    height: 2em;
    transition: all .4s ease-in-out;
    border-radius: 50%;
    /* background-color: #ccc;
    box-shadow: rgb(186, 186, 186) 1.25px 1.25px 0px, rgb(255, 255, 255) -1.25px -1.25px 0px, rgba(0, 0, 0, 0.2) 0px 0px inset; */
    background: var(--sun-moon-bg);
    box-shadow: var(--sun-moon-shadow);
  }
  
  .slider-second:before {
    position: absolute;
    content: "";
    height: 1.4em;
    width: 1.4em;
    border-radius: 2.5px;
    left: 0.3em;
    bottom: 0.3em;
    background-color: white;
    transition: all .4s ease-in-out;
    scale: 0;
  }

  .theme-switch-second input[type=checkbox] {
    visibility: hidden;
  }
  
  .checkbox:checked + .slider-second {
    background-color: limegreen;
    transform: scale(0.7);
    border-radius: 50%;
  }
  
  .checkbox:checked + .slider-second:before {
    transform: rotateZ(360deg);
    scale: 1;
    border-radius: 50%;
  }


@media screen and (max-width: 500px) {
    .answers, .nextPrevBtns, .finish{
        width: 95%;
    }
}
@media screen and (max-width: 400px) {
    .answers{
        padding: 1em;
    }
}


  /* SMALL-DEVICE */

.small_device{
    width: 100%;
    height: 100dvh;
    display: none;
    padding: 5px;
  }
  .small_device_card{
    width: 100%;
    padding: 5px;
    box-shadow: 12px 17px 51px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(1px);
    border-radius: 10px;
    border: 1px solid var(--small-device-card-border);
  }
  .small_device_text{
    font-weight: bold;
    font-size: clamp(0.1rem, 0.3043rem + 3.4783vw, 3rem);
    color: var(--black);
  }
  
  @media only screen and (max-width: 279px) {
    .overlay, .theme-switch-second, .questionProgress, .progress, .questionCard, .seeAllAnswers, .ansAll{
        display: none;
    }
    body{
      margin: 0;
      padding: 0;
      background-color: var(--bg-color);
    }
    .small_device{
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        color: var(--black);
    }
  }
  @media only screen and (max-width: 80px) {
    .small_device_card{
        border-radius: 5px;
    }
  }