
.display-menu {
    padding: 0px 0;
    width: 100%;
    z-index: 9;
    margin: 1.2rem 0;
    border-radius: .2rem;
    overflow: hidden;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.17));
    height: 1.8rem;
}

.examen {
    opacity: 0;
    transition: opacity 1s;
}


.display-menu + .questions {
    margin-top: 1.2rem;
}

.display-menu .menu-item {
    display: inline-block;
    width: 2.2rem;
    height: 1.8rem;
    background-color: #ffffff;
    text-align: center;
    line-height: 1.8rem;
    color: #727272;
    /* border: 1px solid #98c1dd; */
    cursor: pointer;
    font-size: .8rem;
}

.display-menu .menu-item.selected {
    background-color: #7abbef;
    color: #fff;
}

body[data-result="hide"] .menu-item.link-active, 
body[data-result="show"] .menu-item.link-active {
    position: relative;
    background-color: #4b9bdb;
    border-color: #000000;
    color: #fff;
}

body[data-result="show"] .menu-item.fail {
    color: #ffffff;
    background-color: #ff4544;
}
body[data-result="show"] .menu-item.success {
    color: #ffffff;
    background-color: #31af31;
}

body[data-result="show"] .menu-item.success.link-active, 
body[data-result="show"] .menu-item.fail.link-active {
    
}

.questions-item {
    width: 100%;
}

.question-image img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top;
}

.question-title {
    padding: .7rem 0;
    color: #000;
    font-size: 1.1rem;
    line-height: 130%;
    margin-bottom: .7rem;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 0px;
    background-color: #fff;
    width: 100%;
    filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.17));
    border-radius: .7rem;
    overflow: hidden;
    margin: 1.2rem 0 1.5rem 0;
}

.answers-item {
    padding: .8rem .5rem;
    display: block;
    position: relative;
    padding-left: 2.5rem;
    cursor: pointer;
    background-color: #fff;
    font-size: 1rem;
    line-height: 120%;
    color: #474747;
    border-bottom: 1px solid #e9e9e9;
}

.answers-item:last-child {
    border-bottom: unset; 
}

.answers-item:hover {
    opacity: .8;
    background-color: #f7f8ff;
}

.answers-item::before {
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    border: 1px solid #bdbdbd;
    content: '';
    position: absolute;
    left: .8rem;
    border-radius: .3rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: .7rem;
    top: .8rem;
}


.selected .answers-item[data-selected="1"]::before {
    border-color: #7abbef;
    background-image: url(../svg/checked.svg);
    background-color: #7abbef;
}

body[data-result="show"] .selected.fail .answers-item[data-correct="true"]::before,
body[data-result="show"] .selected.success .answers-item[data-selected="1"]::before {
    border-color: #32af32;
    background-image: url(../svg/checked.svg);
    background-color: #32af32;
}

body[data-result="show"] .selected.fail .answers-item[data-selected="1"]::before {
    border-color: red;
    background-image: url(../svg/close.svg);
    background-color: red;
}


.question-tip {
    padding: 1rem;
    background-color: #f5f0ff;
    margin: 1rem 0;
    color: black;
    display: none;
    border-radius: .7rem;
}
.question-tip-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin: 1rem 0;
}
.question-tip-text {
    margin-top: .3rem;
    font-size: 1rem;
    line-height: 120%;
    color: #484848;
}


/*
body[data-result="show"] .selected.fail .question-tip {
    display: block;
}
*/

.question-tip-button {
    width: 1.7rem;
    height: 1.7rem;
    text-align: center;
    border: 1px solid #4b9bdb;
    border-radius: 2rem;
    padding: 0;
    color: #4b9bdb;
    line-height: 1.7rem;
    float: right;
    margin-top: -.3rem;
    display: none;
    cursor: pointer;
}

body[data-result="show"] .selected.fail .question-tip-button {
    display: inline-block;
}

.btn {
    background-color: #747474;
    color: #fff;
    padding: .9rem 1.3rem;
    display: block;
    margin: .7rem auto;
    border: unset;
    border-radius: .5rem;
    font-size: 1rem;
    cursor: pointer;
}
.btn:hover {
    opacity: .8;
}
.btn-primary {
    background-color: #4b9bdb;
}
.btn-danger {
    background-color: #FF8A8A;
}

.btn-quest-next {
    margin: 0 auto; 
}
