@media(min-height: 970px) {
    .card_test {
        height: calc(100vh - 100px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

/************************ Progress ***************************/
.progress {
    position: relative;
    margin: 50px auto 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress h4 {
    color: var(--dark-blue);
    font-size: 18px;
    margin: -5px 0;
}

.progress_bar {
    flex-grow: 1;
    height: 18px;
    margin: 0 35px;
    background-color: var(--grey);
    border-radius: 18px;
}

.progression {
    height: 18px;
    background-color: var(--yellow);
    border-radius: 18px;
    transition: 0.3s all ease-in-out;
}

.emotion {
    text-align: center;
    margin: 35px auto;
}

.emotion h2, .emotion p {
    margin: 0;
}

@media (max-width: 1000px) {
    .progress h4 {
        position: absolute;
        top: 0;
        left: 0;
    }

    .progress h4:last-of-type {
        right: 0;
        text-align: right;
    }

    .progress_bar {
        margin: 30px 0 0;
    }
}

@media (max-width: 700px) {
    .progress {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .emotion h2 {
        font-size: 22px;
    }
}

/************************ Test Card ***************************/
.flip-card {
    background-color: transparent;
    width: 290px;
    height: 470px;
    perspective: 1000px !important;
    margin: 0 auto;
    transform-style: preserve-3d;
}

.card {
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    width: 290px;
    height: 470px;
    border-radius: 30px;
    background: transparent linear-gradient(148deg, #F9CF09 0%, #6192D2 100%) 0% 0% no-repeat padding-box;
    /* background: #F9CF09; */
    border: 12px solid var(--white);
    box-shadow: 0px 5px 15px #00000014;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transform: rotateY(0deg);
}

.negative {
    background: transparent linear-gradient(148deg, #16066B 0%, #F9CF09 100%) 0% 0% no-repeat padding-box;
    /* background: #16066B; */
}

.tab:nth-of-type(2n) .card {
    transform: rotateY(180deg) rotateZ(180deg);
}

.tab:nth-of-type(3n) .card {
    transform: rotateZ(180deg);
}

.tab:nth-of-type(4n) .card {
    transform: rotateY(180deg);
}

.shift1 {
    transform: rotateY(180deg) rotateZ(180deg);
}

.shift2 {
    transform: rotateZ(180deg);
}

.shift3 {
    transform: rotateY(180deg);
}

.rotated {
    transform: rotateZ(180deg);
}

.card h2, .card h3 {
    color: var(--white);
    text-align: center;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.card h2 {
    opacity: 0.4;
    font-size: 80px;
    margin: 0;
}

.card h3 {
    font-size: 30px;
    margin: 10px auto;
    cursor: pointer;
    z-index: 10;
    padding: 5px 35px;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    border: 3px solid transparent;
}

input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0;
}

.card h3:hover,
.card h3:focus,
.card h3:active {
    border: 3px dashed rgba(255,255,255,0.3);
    box-sizing: border-box;
}
input[type="radio"]:checked + label h3 {
    border-radius: 10px;
    -webkit-border-radius: 10px;
    box-sizing: border-box;
    border: 3px solid var(--white);
    background-color: rgba(255, 255, 255, 0.2);
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotateY(0deg);
}

.back {
    transform: rotateY(180deg);
}

@media (max-height: 900px) {
    .progress {
        margin-top: 30px;
        margin-bottom: 0;
    }

    .emotion h2 {
        font-size: 28px;
    }

    .emotion {
        margin: 25px auto;
    }

    .flip-card,
    .card {
        width: 240px;
        height: 390px;
    }

    .card h2 {
        font-size: 66px;
        margin: -8px 0;
    }

    .card h3 {
        padding: 5px 25px;
        font-size: 26px;
    }
}

@media(max-width: 750px) {
    .progress {
        margin-top: 30px;
        margin-bottom: 0;
    }

    .emotion {
        margin: 25px auto;
    }

    .flip-card,
    .card {
        width: 240px;
        height: 390px;
    }

    .flip-card {
        margin-bottom: 130px;
    }

    .card h2 {
        font-size: 66px;
        margin: -8px 0;
    }

    .card h3 {
        padding: 5px 25px;
        font-size: 26px;
    }
}

@media (max-height: 790px) {
    .flip-card,
    .card {
        width: 200px;
        height: 325px;
    }

    .card h2 {
        font-size: 58px;
        margin: -8px 0;
    }

    .card h3 {
        padding: 5px 18px;
        font-size: 22px;
    }
}

@media(max-width: 250px) {
    .flip-card,
    .card {
        width: 100%;
    }
}

/************************ Test Buttons ***************************/
.card_test .buttons_container,
.card_demo .buttons_container {
    justify-content: center;
    margin: 50px auto;
}

.card_test .buttons_container .button,
.card_demo .buttons_container .button {
    margin-right: 25px;
}

.card_test .buttons_container .button:last-child,
.card_demo .buttons_container .button:last-child {
    margin-right: 0;
}

@media(max-width: 750px) {
    .card_test .buttons_container {
        position: fixed;
        bottom: 0;
        left: 0;
        margin: 0;
        padding: 20px 0;
        width: 100%;
        z-index: 20;
        background-color: var(--light-grey);
        box-sizing: border-box;
        border-top: 2px solid rgb(192, 199, 215, 0.5);
    }

    .card_test .buttons_container .button span {
        display: none;
    }

    .card_test .buttons_container .button {
        width: 46px;
        padding: 0;
    }

    .card_test .buttons_container .button i {
        margin: 0;
    }
}

.tooltip, .include_tooltip {
    position: relative;
}

.include_tooltip button {
    margin-right: 0 !important;
}

.include_tooltip .tooltip .tooltiptext {
    visibility: hidden;
    width: 160px;
    background-color: rgba(22, 6, 107, 0.7);
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 7px 5px;

    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    top: -90px;
    margin-left: -17px;
    opacity: 0;
    transition: opacity 0.3s;
}

@media (max-width: 750px) {
    .include_tooltip .tooltip .tooltiptext {
        margin-left: -60px;
        top: -95px;
    }
}