@font-face {
    font-family: "flama-regular";
    src:
        local("flama-regular"),
        url("./../fonts/Flama\ Regular.otf") format("opentype");
}

@font-face {
    font-family: "flama-bold-italic";
    src:
        local("flama-bold-italic"),
        url("./../fonts/Flama\ Bold\ Italic.otf") format("opentype");
}

* {
    box-sizing: border-box;
    font-family: "flama-regular", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button {
    font-family: "Be Vietnam Pro", sans-serif;
}

body {
    padding: 0 10vh;
    background-image: url(../img/Background.png);
    background-repeat: no-repeat;
    transition: 0.3s;
    background-size: cover;
    background-attachment: fixed;
    background-position: bottom center;
    font-family: "Be Vietnam Pro", sans-serif;
    width: 100%;
    height: 100vh;
    overflow: auto;/*hidden*/
    display: flex;
}

::-webkit-scrollbar {
    display: none;
}

@media (min-width: 821px){
    .intro-inner {
        min-width: 600px;
    }
}
@media (max-width: 767px){
    body {
        padding: 60px 20px;
        margin: 0;
        overflow: auto;
    }

    body.game-started {
        padding-top: 0px;
    }

    .intro .img-top, .endgame .img-top{
        width: 40vh;
    }

    #app .game{
        margin: 0;
    }
    .intro .intro-inner, .endgame .intro-inner  {
        padding: 0px;
    }

    .dv-mobile {
        width: 600px;
    }

    .intro .div-intro-title, .endgame .div-intro-title  {
        width: 100%;
    }

    body {
        background-position: left;
    }

    .intro .intro-title, .endgame .intro-title {
        font-size: 35px;
    }

    .intro .intro-button, .endgame .intro-button {
        font-size: 25px;
        width: 100%;
    }

    .game[data-game-started] .game-area {
        width: 100%;
        padding: 0px;
    }

    .question .div-questions-title {
        width: auto;
    }

    .game[data-game-started] .question .question-answers {
        display: block;
    }

    .game-area .question li {
        width: 100%;
        margin: 10px 0;
    }

    .question .logo-questions {
        width: 35vh;
    }

    .question .indicator {
        max-width: 100%;
    }

    .question .indicator-item {
        width: 11px;
        height: 11px;
        border-radius: 5px;
    }

    [data-game-finished] .result {
        margin-top: 40px;
    }

}

@media (min-width: 768px) and (max-width: 820px){
    .intro .img-top, .endgame .img-top{
        width: 40vh;
    }

    body {
        background-position: left;
        overflow: auto;
    }

    .dv-mobile {
        width: 600px;
    }

    .intro .div-intro-title, .endgame .div-intro-title {
        width: 100%;
    }

    .intro .intro-title, .endgame .intro-title {
        font-size: 40px;
    }

    .intro .intro-button, .endgame .intro-button {
        font-size: 30px;
    }

    .game[data-game-started] .game-area {
        width: 100%;
        padding: 0px;
    }

    .question .div-questions-title {
        width: auto;
    }

    .game[data-game-started] .question .question-answers {
        display: block;
    }

    .game-area .question li {
        width: 100%;
        margin: 10px 0;
    }

    .question .logo-questions {
        width: 35vh;
    }

    [data-game-finished] .result {
        margin-top: 40px;
    }
}

#app {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.game-started:after {
    transform: translateX(calc(-50% - 100px));
}

@media (max-width: 980px),
(max-height: 580px) {
    .game-started:after {
        transform: scale(1.2);
    }
}

.game {
    position: relative;
    max-width: 600px;
    width: 100%;
    /*height: 36vh;*/
    min-height: -webkit-max-content;
    min-height: -moz-max-content;
    min-height: max-content;
    /*margin: 32vh auto;*/
    margin: 5vh auto 32vh auto;

    /*box-shadow: 0 0 80px black, 0 0 0 16px rgba(152, 236, 255, 0.1);*/
    border-radius: 12px;
    overflow: hidden;
    scroll-behavior: smooth;
    display: flex;
    transition: 0.3s;
}

.intro, .endgame {
    width: 100%;
}

@media (max-width: 980px),
(max-height: 580px) {
    /*.game {
    margin: auto;
    height: 52vh;
    flex-direction: column;
    overflow: auto;
    align-items: flex-start;
  }*/
}

.game[data-game-started] {
    max-width: 1200px;
    /*margin: 15vh auto;
  height: 70vh;*/
}

@media (max-width: 980px),
(max-height: 580px) {
    /*.game[data-game-started] {
    height: auto;
    overflow: auto;
    margin: auto;
    max-height: 100%;
  }*/
}

.game[data-game-started] .intro {
    /*width: calc(50% - 100px);
  transition: 0.3s;*/
    display: none;
}

.game[data-game-started] .game-area {
    flex-shrink: 0;
    width: calc(50% + 100px);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    transition: 0.3s;
    flex-grow: 1;
}

.game-area {
    /*background-color: #fff;*/
    overflow: hidden;
    padding: 0 100px;
}

@media (max-width: 980px),
(max-height: 580px) {
    /*.game-area {
    padding: 0;
  }*/
}

/*.intro {
  background-size: cover;
  height: 100%;
  width: 100%;
  flex-shrink: 0;
  color: #fff;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(251deg, #00b8ff52 -53%, rgba(255, 255, 255, 0) 65%);
  justify-content: center;
  -webkit-backdrop-filter: blur(30px);
          backdrop-filter: blur(30px);
}*/
.intro-inner {
    text-align: center;
    padding: 0px 60px;
    width: 100%;
}

.intro-title {
    margin: 0;
    font-size: 21px;
    font-weight: 100;
    text-align: center;
}

.intro-desc {
    opacity: 0.8;
    font-weight: 300;
}

.intro-button {
    background-color: #fff;
    border: 0;
    padding: 12px 26px;
    color: black;
    border-radius: 4px;
    font-size: 18px;
    transform: translateY(20px);
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.indicator {
    display: flex;
    justify-content: center;
    position: relative;
    max-width: 80%;
    margin: 20px auto 0;
}

.indicator-item {
    width: 18px;
    height: 18px;
    border-radius: 2em;
}

.indicator-item+.indicator-item {
    margin-left: 30px;
}

.indicator-item:last-child:before {
    background: #fff;
    content: "";
    width: 12px;
    height: 4px;
    position: absolute;
    border-radius: 6px;
    left: 0;
    top: 0;
    opacity: 0;
}

.indicator-item:last-child:after {
    content: "COMPLETED";
    position: absolute;
    width: 100%;
    left: 0;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 600;
    top: 0;
    opacity: 0;
}

.indicator-item:last-child[style*="255, 255)"]:before {
    -webkit-animation: indicator 1s both;
    animation: indicator 1s both;
}

.indicator-item:last-child[style*="255, 255)"]:after {
    -webkit-animation: indicator-completed 0.4s 0.8s both;
    animation: indicator-completed 0.4s 0.8s both;
}

@-webkit-keyframes indicator {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        height: 6px;
    }

    100% {
        height: 40px;
        top: -2px;
        left: -2px;
        background-color: #1f8197;
    }

    80% {
        background-color: #fff;
    }

    50%,
    100% {
        width: calc(100% + 1px);
    }
}

@keyframes indicator {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        height: 6px;
    }

    100% {
        height: 40px;
        top: -2px;
        left: -2px;
        background-color: #1f8197;
    }

    80% {
        background-color: #fff;
    }

    50%,
    100% {
        width: calc(100% + 1px);
    }
}

@-webkit-keyframes indicator-completed {

    70%,
    100% {
        opacity: 1;
    }

    100% {
        transform: translatey(10px);
    }
}

@keyframes indicator-completed {

    70%,
    100% {
        opacity: 1;
    }

    100% {
        transform: translatey(10px);
    }
}

.question {
    display: flex;
    height: 100%;
    flex-direction: column;
    width: 100%;
}

.question-inner {
    margin: auto 0;
    text-align: center;
}

.question-answers {
    padding: 0;
    list-style: none;
}

.game[data-game-started] .question-answers {
    display: flex;
}

.question li,
.question-text {
    opacity: 0;
}

.question li {
    width: 25%;
    margin: 10px;
    text-align: center;
}

.question-button {
    background-color: #fff;
    border: 0;
    padding: 12px 26px;
    color: black;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

.question-text {
    color: #333;
    margin: 20px 0;
}

.question input {
    display: none;
}

.question label {
    display: block;
    padding: 12px 24px 12px 16px;
    font-size: 15px;
    border-radius: 1em;
    overflow: hidden;
    align-items: center;
    border: 2px solid #dde7eb;
    background: #2B2828;
    color: #fff;
    cursor: pointer;
    position: relative;
    border: 2px solid #000;
}

.question label:before {
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' stroke='%23333' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round' class='css-i6dzq1'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    content: "";
    background-size: cover;
    opacity: 0.5;
    transition: 0.3s;
    flex-shrink: 0;
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translatey(-50%);
    width: 16px;
}

.question li+li {
    margin-top: 10px;
}

.question input:checked+label {
    background-color: #00ff77;
    color: #000;
}

.question input:checked+label:before {
    transform: translatex(-24px) translatey(-50%);
}

.is-true label {
    border-color: #0ca50c;
    background-color: #a3ebab;
}

.is-true label:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' stroke='%231f8197' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round' class='css-i6dzq1'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    opacity: 1;
    transform: translatex(-24px) translatey(-50%);
}

.correction {
    width: 100%;
}

.correction [data-selected=true].is-true label {
    border-color: #0ca50c;
    background-color: #a3ebab;
}

.correction [data-selected=true].is-true label:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' stroke='%230ca50c' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round' class='css-i6dzq1'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    opacity: 1;
    transform: translatex(-24px) translatey(-50%);
}

.correction [data-selected=true]:not(.is-true) label {
    background-color: #ffd5dc;
    border: 2px solid #ff6161;
}

.correction [data-selected=true]:not(.is-true) label:before {
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' stroke='%23ff6161' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round' class='css-i6dzq1'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

.correction input {
    pointer-events: none;
}

.result {
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 80%;
    margin: auto;
    height: 0;
    overflow: hidden;
}

.result-item {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    width: 100%;
    padding: 5px 10px;
}

.result-item+.result-item {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.result-count {
    font-size: 32px;
    font-weight: 600;
}

.result-text {
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0.8;
    display: flex;
    font-weight: 500;
    align-items: center;
    line-height: 1;
}

.result-text svg {
    margin-right: 8px;
    position: relative;
    top: -1px;
}

.result-item.is-correct {
    color: #42ff73;
}

.result-item.is-wrong {
    color: #ffa2a2;
}

.result-item.is-empty {
    color: #fff;
}

[data-game-finished] .result {
    opacity: 1;
    /*margin-top: 40px;*/
    /*padding-top: 20px;*/
    margin-bottom: 20px;
    display: flex;
    -webkit-animation: result 0.6s 0.5s both;
    animation: result 0.6s 0.5s both;
    background: #2b2828;
    border: 3px solid #000;
    border-radius: 2em;
}

[data-game-finished] .result-item {
    -webkit-animation: result-item 0.6s 1.3s both;
    animation: result-item 0.6s 1.3s both;
}

[data-game-finished] .result-item.is-correct {
    -webkit-animation-delay: 1s;
    animation-delay: 1s;
}

[data-game-finished] .result-item.is-wrong {
    -webkit-animation-delay: 1.15s;
    animation-delay: 1.15s;
}

[data-game-finished] .restart-button {
    display: block;
}

.correction .question+.question {
    margin-top: 30px;
}

@-webkit-keyframes result {
    0% {
        height: 0;
    }

    100% {
        height: 150px;
    }
}

@keyframes result {
    0% {
        height: 0;
    }

    100% {
        height: 150px;
    }
}

@-webkit-keyframes result-item {
    0% {
        opacity: 0;
        transform: translateY(10ox);
    }
}

@keyframes result-item {
    0% {
        opacity: 0;
        transform: translateY(10ox);
    }
}

.restart-button {
    height: 40px;
    margin: 30px auto;
    transition: 0.1s;
    animation: result-item 0.4s 0.4s both;
    background-color: #fff;
    border: 0;
    padding: 12px 26px;
    color: black;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.restart-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.div-intro-title,
.div-questions-title {
    padding: 15px;
    background: #00FF77;
    border-radius: 1em;
    margin: 0 auto;
    border: 3px solid #000;
}

.div-intro-title {
    width: 47vh;
}

.div-questions-title {
    margin-top: -47px;
    position: relative;
    width: 70vh;
}

.img-top {
    width: 50vh;
}

.logo-colombina {
    width: 50%;
    margin-top: 10px;
}

.logo-questions {
    width: 47vh;
}

.item-before {
    background-color: #0f7;
    ;
}

.item-after {
    background-color: rgba(255, 255, 255, .2);
}

.item-current {
    background-color: #2b2828;
    border: 2px solid #00ff77;
}

.question .mark-error input:checked+label{
    background-color: #ffd5dc !important;
    border: 2px solid #ff6161 !important;
}

.question .mark-error input:checked+label:before {
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' stroke='%23ff6161' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round' class='css-i6dzq1'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
}