:root {
    --c1_quiz: #7854cf;
    --c2_quiz: #35313b;
    --c3_quiz: #595463;
    --c4_quiz: #3daab3;
    --w: #fff;
    --brm: 10px;
    --br_editor: 20px;
    --brb: 40px;
    --bo: #ffffff12;
}
/* html {
    height: 100%;
}
body {
    background: var(--c2_quiz);
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}
main {
    display: flex;
    margin: 5rem 0;
    padding: 0 15px;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
} */
/* *, *:before, *:after {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
} */
#viewQuiz {
    background: #ffffff0f;
    position: sticky;
    top: 1rem;
    display: flex;
    max-width: 450px;
    min-width: 380px;
    padding: 10px;
    border: 1px dashed var(--bo);
    border-radius: var(--br_editor);
    flex-direction: column;
    align-items: center;
    z-index: 1;

    &:hover {
        background: var(--c1_quiz);
        border: 0;
    }
}
#viewQuiz h2 {
    width: 100%;
    margin: 7px 0 13px;
    padding: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    color: var(--w);
    border-bottom: 1px dashed #ffffff3b;
    text-align: center;
}
.quizEditor {
    display: inline-grid;
    width: 100%;
    max-width: 450px;
    gap: 15px;
}
.quizEditor h2 {
    position: relative;
    display: flex;
    width: 100%;
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 600;
    line-height: normal;
    color: var(--w);
    align-items: center;
}
.quizEditor h2 p {
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 300;
    color: #ffffff7d;
}
.quizEditor h2 i {
    display: inline-flex;
    width: 30px;
    height: 30px;
    margin-right: .5rem;
    border: 1px solid var(--bo);
    font-size: 14px;
    border-radius: var(--brb);
    align-items: center;
    justify-content: center;
}
.quiz-editor, .popup-editor, .download-section {
    background: #45434f;
    width: 100%;
    max-width: 500px;
    padding: 15px;
    border: 1px solid var(--bo);
    border-radius: var(--br_editor);
    break-inside: avoid;
    color: var(--w);

    &:hover {
        border: 1px solid var(--c1_quiz);
        box-shadow: 0 0 48px -15px var(--c1_quiz);
    }
}
.download-section {
    margin: 0 0 10rem;
}
.download-section div {
    display: flex;
}
.popup.hidden {
    display: none;
}
.popup.visible {
    display: block;
}
.quizEditor fieldset {
    display: flex;
    width: 100%;
    margin: 1rem 0 0;
    padding: 5px 10px;
    border: 1px solid var(--bo);
    border-radius: var(--brm);
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
}
.quizEditor fieldset legend {
    display: flex;
    padding: 0 10px;
    font-size: 17px;
    font-weight: 500;
    align-items: center;
}
.quizEditor fieldset label {
    margin-right: 10px;
}
.quizEditor fieldset span {
    display: flex;
    width: 100%;
    margin: 10px;
    padding: 0 0 0 5px;
    font-size: 14px;
    font-weight: 500;
    color: var(--c4_quiz);
    align-items: center;
    flex-wrap: wrap;
}
.quizEditor ::-webkit-color-swatch {
    border: 0;
    border-radius: var(--br_editor);
}
.quizEditor input[type="color"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    position: relative;
    width: 60px;
    height: 22px;
    padding: 0;
    border: none;
    cursor: pointer;
}
.quizEditor input[type="color" i]::-webkit-color-swatch-wrapper {
    padding: 0px;
}
.quizEditor input:focus-visible {
    outline: none;
    border: 1px solid var(--c1_quiz);
}
.quizEditor input[type=range] {
    background: transparent;
    margin: 0;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    border: 0;
    box-shadow: 0 0 0;
  }
  .quizEditor input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.5em;
    height: 1.5em;
    margin-top: 3px;
    background-color: var(--c1_quiz);
    border-radius: 1em;
    cursor: pointer;
  }
  .quizEditor input[type=range]::-webkit-slider-runnable-track {
    background: none;
    cursor: pointer;
    height: 1em;
    border-bottom: 2px solid #ffffff3d;
  }
  .quizEditor input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
  }
  input#QborderR {
    margin: -8px 0 0;
}
  .quizEditor input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-content: center;
    justify-content: center;
    font-size: 2rem;
    border: 1px solid var(--bo);
    border-radius: 4px;
    cursor: pointer;
} 
.quizEditor input[type="checkbox"]::before {
    content: "";
    width: 1.4rem;
    height: 1.4rem;
    clip-path: polygon(28% 38%, 41% 53%, 75% 24%, 86% 38%, 40% 78%, 15% 50%);
    transform: scale(0);
    background-color: var(--c1_quiz);
}
.quizEditor input[role=switch] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: inline-block;
    width: 2.4em;
    height: 1.4em;
    box-sizing: content-box;
    padding: 0;
    border: none;
    border-radius: .7em;
    background: rgba(160, 160, 160, 0.7);
    box-shadow: 0 .15em .25em rgba(0, 0, 0, 0.5) inset, 0 -.5px 0 rgba(255, 255, 255, 0.2) inset;
    transition: background-color 250ms ease, box-shadow 250ms ease;
    font-size: 100%;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    user-select: none;
    outline: none;
    cursor: pointer;
    border: 1px solid transparent;

    &:hover {
        border: 1px solid var(--bo);
      }
}
.quizEditor input[role=switch]:checked {
    background-color: var(--bg-checked, var(--bg, var(--c1_quiz)));
}
.quizEditor input[role=switch]::before {
    content: '';
    display: flex;
    align-content: center;
    justify-content: center;
    position: absolute;
    width: 1em;
    height: 1em;
    left: 0;
    top: 0;
    background: rgba(240,240,240,0.9);
    box-shadow: 0 1px 1px #fff inset, 0 .2em .5em rgba(255,255,255,0.7) inset, 0 -.2em .3em rgba(0,0,0,0.2) inset, 0 .05em .25em rgba(0,0,0,0.7);
    border-radius: 50%;
    transform: translate(20%, 20%);
    transition: transform 250ms ease;
    clip-path: none;
    color: rgba(0,0,0,0.3);
    line-height: 1;
  }
  .quizEditor input[role=switch]:focus::before {
    background: rgba(255,255,255,0.9);
  }
  .quizEditor input[role=switch]:checked {
    background-color: var(--bg-checked, var(--bg, var(--c1_quiz)));
  }
  .quizEditor input[role=switch]:focus-visible {
    box-shadow: 0 .15em .25em rgba(0,0,0,0.5) inset, 0 -.5px 0 rgba(255,255,255,0.2) inset, 0 0 0 2px rgba(255,255,255,0.8), 0 0 0 4px var(--bg-checked, var(--bg, rgb(60,130,250)));
  }
  .quizEditor input[role=switch]:checked::before {
    right: 5px;
    left: auto;
  }
  .quizEditor input[role=switch]:indeterminate::before {
    transform: translate(70%, 20%);
    content: '-';
  }
.quizEditor input, .quizEditor textarea {
    background: none;
    margin: 3px;
    padding: 10px;
    color: white;
    border: 1px solid var(--bo);
    border-radius: var(--brm);
    box-shadow: 0 0 10px -5px #00000087 inset;
}
.quizEditor textarea {
    min-height: 118px;
}
.quizEditor ::placeholder {
    color: #c5c5c53d;
}
.quizEditor select {
    background: none;
    display: flex;
    margin: 0 0 0 10px;
    padding: 6px 0px 6px 10px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    border: 1px solid var(--bo);
    border-radius: var(--brb);
    align-items: center;
    -webkit-appearance: auto;
}
.quizEditor select option {
    color: black;
}
.quizEditor ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
.quizEditor ul li {
    background: var(--c3_quiz);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 5px 10px;
    font-size: 14px;
    border: 1px solid var(--bo);
    border-radius: var(--brb);
}
.quizEditor ul li svg {
    margin: 0 0 0 8px;
    cursor: pointer;
    font-size: 20px;
}
#qTestBtn {
    display: none;
    margin: 15px 0 0;
}
#qTestBtn p {
    margin: 10px 0 0;
    font-size: 14px;
    text-align: center;
}
.quizEditor button {
    background-color: var(--c1_quiz);
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    border: none;
    border-radius: var(--brb);
    cursor: pointer;

    &:hover {
       background: var(--c1_quiz);
       opacity: 0.8;
    }
}
.qBox {
    position: relative;
    display: flex;
    margin: 10px 0;
    flex-wrap: wrap;
    flex-direction: column;
}
.qBox label {
    margin: 9px 0 0;
    padding: 0 0 0 5px;
    font-size: 14px;
    font-weight: 500;
    color: var(--c4_quiz);
}
.qOption {
    display: grid;
    width: 100%;
}
.option-item input {
    width: 100%;
}
.option-item {
    position: relative;
    width: 100%;
    display: flex;
}
.qOptiomBtn, .qPopupBtn, .qPopupBtnInitial {
    display: flex;
    width: 100%;
    margin: 1rem 0 0;
    flex-wrap: wrap;
    justify-content: center;
}
.qOptiomBtn button, .qPopupBtn button, .qPopupBtnInitial button {
    margin: 5px;
    border: 2px solid transparent;
}
button#add-option {
    background: none;
    border: 2px solid var(--c1_quiz);
}
.quizCreate {
    display: block;
    margin: 24px 0 0;
    padding: 13px 0 0;
    border-top: 1px solid var(--bo);
}
.qsave {
    margin-top: 10px;
    font-size: 14px;
    color: var(--c4_quiz);
    text-align: center;
}
.quizEditor .remove-option  {
    background: none;
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    padding: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--bo);
    font-size: 13px;
    font-weight: 600;
    color: #696969;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;

    &:hover {
        background: red;
        color: white;
        border: 1px solid transparent;
    }
}
.priceQuiz {
    display: flex;
    margin: 0 0 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: #66cb85;
    align-items: center;
  }
  .priceQuiz svg {
    margin-right: 7px;
  }
  #priceCompare {
    display: flex;
    flex-direction: column;
  }
.alertWhell {
    margin: 1rem auto 0;
    font-size: 15px;
    font-weight: 300;
    color: #ffffff7d;
  }
  #videoQuiz {
    display: flex;
    width: 100%;
    padding: 0 15px;
    justify-content: center;
}
  #videoQuiz .video_section {
    background: none;
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 800px;
    margin: 5rem 0 0;
    border: 1px solid var(--c1);
    border-radius: var(--br);
    box-shadow: 0 0 25px -8px black;
  }
  #videoQuiz iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--br);
  }  
@media (max-width: 768px) {
main {
        display: flex;
        margin: 1rem 0;
        align-items: center;
        justify-content: center;
        flex-direction: column;
}
.quiz-editor, .popup-editor, .download-section {
    max-width: 100%;
}
.download-section {
        margin: 0 0 1rem;
}
#viewQuiz {
    position: relative;
    min-width: auto;
    margin: 0 0 1rem;
}
.quizEditor {
    display: flex;
    flex-wrap: wrap;
}
}