@keyframes in {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0%);
    }
}

.quiz__container {
    max-width: 75rem;  /*1200px */
    width: 100%;
    margin: 4rem auto 0;
    text-align: center;
}

.quiz {
    position: relative;
    width: 100%;
    min-height: 52rem;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1rem;
    text-align: center;
}

@media (min-width: 728px) {
    .quiz {
        min-height: 30rem;
    }
}

.quiz__slide {
    position: relative;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all .3s ease-in-out;
}

.quiz__question {
    position: relative;
    width: 100%;
}

@media (min-width: 728px) {
    .quiz__question {
        width: 50%;
    }
}

.quiz__img {
    width: 100%;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

.quiz__slide.is-showing {
    display: flex;
    flex-direction: column;
}

@media (min-width: 728px) {
    .quiz__slide.is-showing {
        flex-direction: row;
        align-items: unset;
    }
}

.quiz__next.is-showing {
    display: block;
    opacity: 1;
}

.quiz__text {
    position: absolute;
    display: flex;
    align-items: center;
    top: 80%;
    left: 50%;
    width: 100%;
    padding: 2rem;
    margin-top: 3.2rem;
    background: #FFF;
    color: #414141;
    font-size: 1rem;
    line-height: 1.3rem;
    border-radius: 1.3rem;
    border: 1px solid #C3D1C0;
    transform: translate(-50%, -50%);
}

@media (min-width: 800px) {
    .quiz__text {
        top: 65%;
        font-size: 1.1rem;
        line-height: 1.5rem;
        text-align: left;
    }
}

.quiz__text img {
    margin-right: .8rem;
}

.quiz__answers {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95%;
    margin: 5rem auto 0;
    border-radius: 5rem;
}

@media (min-width: 728px) {
    .quiz__answers {
        width: 50%;
        margin: 0 2rem;
    }
}

.quiz__answers button {
    text-transform: none;
}

.quiz__answers button span {
    margin-right: 1rem;
    color: #C3D1C0;
    font-size: 2rem;
}

@media (min-width: 728px) {
    .quiz__answers button span {
        font-size: 3rem;
    }
}

.answer {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    padding: 1rem 3rem;
    margin: 1rem auto;

    border-radius: 1.3rem;
    background: #fff;

    color: #414141;
    font-size: 1rem;
    font-weight: normal;

    outline: none;
    cursor: pointer;
}

@media (min-width: 728px) {
    .answer {
        padding: 1.8rem 3rem;
        margin: .9rem 0.6rem;
        text-align: left;
    }
}

.answer:hover {
    background: #C3D1C0;
    color: #FFF;
}

.quiz__next {
    position: absolute;
    display: none;
    top: 40rem;
    right: 0;
    bottom: 0.44rem;
    left: 0;
    padding: 1rem 2rem;
    margin: 0 auto;

    opacity: 0;
    transition: all .3s linear;
}

@media (min-width: 728px) {
    .quiz__next {
        top: 23rem;
    }
}

.next {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem 2.2rem;
    margin: 1rem 0;
    background: #F7CE8C;

    color: #FFF;
    font-size: 1rem;
    font-weight: bold;
    font-style: normal;
    line-height: 1;
    text-align: center;

    border-radius: 1.3rem;
    border: none;

    outline: none;
    cursor: pointer;

    opacity: 0;
    transition: all .3s linear;
}

@media (min-width: 561px) {
    .next {
        margin: 1rem auto 0 auto;
    }
}

.quiz__reply {
    width: 100%;
    padding: 1rem 1.5rem;
    margin-top: -2rem;

    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 2rem;

    border-radius: 1rem;
    background: #54808C;
    color: #FFF;
}

@media (min-width: 561px) {
    .quiz__reply {
        width: 50%;
        padding: 0.8rem;
        margin: 0 auto;
        font-size: 1.3rem;
    }
}

.next.is-showing {
    opacity: 1;
}

.next img {
    padding-left: .3rem;
}

.animate-out {
    opacity: 0;
    transform: translateX(-100%);
  }

.animate-in {
    display: block;
    animation: in 300ms ease-in-out forwards;
}
