
html,body{
    /* height: 100%; */
    width: 100%;
    touch-action: manipulation;
}

.slider{
    /* display: flex; */
    overflow-x: auto;
    overflow-y: none;
    -webkit-overflow-scrolling: touch;
    flex: none;
    flex-flow: row nowrap;
    width: 100%;
    height: calc(100vh - 60px - env(safe-area-inset-bottom) );
    /* scroll-snap-type: x mandatory;
    -webkit-scroll-snap-type: mandatory;
    -webkit-scroll-snap-points-x: repeat(100%);
    scroll-snap-type: x mandatory;
    scroll-snap-points-x: repeat(100%); */

    /* background: red; */

    /* -webkit-scroll-snap-type: mandatory;
    scroll-snap-type: x mandatory; */
    /* -webkit-scroll-snap-points-x: repeat(100%);
    scroll-snap-points-x: repeat(100%); */
    /* scroll-snap-align: center; */

    /* scroll-snap-points-x: repeat(320px);
    scroll-snap-destination: 0 0;
    scroll-snap-type: y mandatory;
    scroll-snap-type: mandatory; */
}

.last.has_next_lesson .slider{ 
    /* For next lesson button */
    height: calc(100vh - 138px - env(safe-area-inset-bottom) );
}

.slider.loading{
    opacity: 0.001;
}

.page {
    width: 100vw;
    overflow-y: scroll;
    overflow-x: hidden;
    /* scroll-snap-align: center;
    scroll-snap-align: start; */
    /* -webkit-scroll-snap-align: center; */
    flex: none;
    -webkit-overflow-scrolling: touch;
    /* scroll-snap-align: start; */
    /* line-height: 80vh; */
    width: 100%;
    height: 100%;    
        /* scroll-snap-align: center; */

    scroll-snap-align: start;
}



.navigation{
    align-items: center;
    display: flex;
  align-items: center;
  justify-content: center;
}

.button{
    display: inline-block;
    padding:20px 15px;
    width: 60px;
    text-align: center;
    font-size: 17px;
    font-weight: 500;
    color:#283154;
    text-decoration: none;
}

.button.inactive{
    opacity: 0.5;
}

.button-back{
    float: left;
}

.button-next{
    float: right;
}

.button-done{
    float: right;
}

.button.disabled{
    opacity: 0.5;
    pointer-events: none;
}

.hidden{
     display: none;
}

.dots{
    text-align: center;
    margin:10px auto;
}
.dot{
    display: inline-block;
    width: 6px;
    height: 6px;
    line-height: 16px;
    margin: 3px;
    border-radius: 10px;
    background-color: #c5c8d6;
    margin-left:5px;
    margin-right:5px;
}
.dot.active{
    line-height: 16px;
    background-color: #2d388e;
    width: 10px;
    height: 10px;
    margin: 1px;
    border-radius: 10px;
    margin-left:3px;
    margin-right:3px;
}

.last .button-done{
    display: inline-block;
}

.last .button-next{
    display: none;
}

.first .button-back{
    opacity: 0.5;
}
/* next lesson button*/

.next_lesson_button{
    display: none;
    margin:5px 20px 3px;
    text-align: center;
    background-color: #61c9c3;
    color:white;
    border-radius: 8px;
    padding: 10px 10px;
    text-decoration: none;
    overflow: hidden;
    max-height: 3em;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5em;
}

  
.next_lesson_title{
    text-transform: uppercase;
}

.last.has_next_lesson .next_lesson_button{
    display: block;
}

.next_lesson_title{
    white-space: nowrap;
    padding:0px 5px;
    overflow: hidden;
}

/* Doc styles */
body{
    font-family: -apple-system, BlinkMacSystemFont, "HelveticaNeue";
    font-size: 20px;
    background-color: #f6f7ff;
    color: #283154;
}

h1 {
    font-size: 1.8em;
    font-weight: 600;
}
h2 {
    font-size: 1.2em;
}

h3 {
    font-weight: 500;
    font-size: 1.05em;
}

.page-container{
    /* padding: 10px; */
    padding:20px;
}

.page-container img{
    width: calc(100% + 40px);
    margin:-10px -20px 0px -20px;
}

.page-container{
    padding-top: calc(env(safe-area-inset-top) + 10px);
}

/* QUIZ */

.quiz{

    touch-action: manipulation;
    margin-top:3em;
}

.quiz-card{
    
        border-radius: 7px;
        background-color: rgb(255, 255, 255);
        box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.1);
        margin:16px 25px;
        padding:23px 40px;
        /* line-height: 70px; */
        border: 1px solid rgba(255,255,255,0);
        padding-left:52px;
        background-repeat: no-repeat;
    background-position: 17px center;
    background-size: 19px auto;
}

@media only screen and (max-device-height : 680px)
{ 
    .quiz-card{
        padding: 17px 40px;
    }
    .quiz{
        touch-action: manipulation;
        margin-top:2em;
    }
    
}


.quiz-card.selected{
    background-color: #eff1ff;
    border: 1px solid #afb8ff;
    box-shadow: none;
    background-image: url("img/checkmark-black.png");
}

.quiz-card.correct{
    background-color: #effff2;
    background-image: url("img/checkmark-green.png");
}

.quiz-card.wrong{
    background-color: #ffefef;
    background-image: url("img/cross-red.png");
}

.quiz-submit{
    margin:40px auto;
    background-color: #2d388e;
    font-size: 15px;
    color: rgb(255, 255, 255);
    line-height: 50px;
    border-radius: 14px;
    padding: 0px 54px;
    display: none;
}

.quiz-card.selected ~ .quiz-submit {
    display: flex;
}
.quiz.submited .quiz-submit{
    display: none;
}

.quiz.submited .quiz-card.selected:not(.quiz-correct-answer){
    background-color: #ffefef;
    background-image: url("img/cross-red.png");
    border: 1px solid rgba(255,255,255,0);
    box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.1);
}

.quiz.submited .quiz-card.quiz-correct-answer:not(.selected){
    background-color: #effff2;
    background-image: none;
}


.quiz.submited .quiz-card.selected.quiz-correct-answer{
    background-color: #effff2;
    background-image: url("img/checkmark-green.png");
    border: 1px solid rgba(255,255,255,0);
    box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.1);

}

.spinner{
    position: fixed;
    top:0px;left:0px;
    z-index: 1000;
    width: 100%;
    height: 100%;
  
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.spinner.dark{
    background-color:rgba(0,0,0,0.2);
}

.spinner img{
    /* background-color:rgba(0,0,0,0.3); */
    border-radius: 10px;
    padding:40px;
}

.hidden{
    display: none;
}

/* Feedback form */
.feedback{
    margin-top:1.5em;
    margin-bottom: 2em;
}

.feedback textarea{
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    border-style: none;
    -webkit-appearance: none;
    display: none;
    width: calc(100% - 20px);
    border: 1px solid #e7e8f2;
    border-radius: 4px;
    margin-top: 1em;
    min-height: 4em;
    padding:10px;
    outline: none;
}


.feedback.has_selection textarea{
    display: block;
}

.ratings {
    margin-top: 28px;
    display: flex;
    justify-content:space-between;
}

.ratings a{
    width: 42px;
    display: inline-block;
    text-align: center;;
    text-decoration: none;
    font-size: 10px;
    color: rgb(39, 38, 38);
    white-space: nowrap;
    filter: invert(0.5) sepia(1) hue-rotate(200deg) saturate(400%) brightness(0.5);
    padding:2px;
}  

.ratings.has_selection a{
    filter:  brightness(2) saturate(0.0);  
}

.ratings img{
    width: 100%;
    margin-bottom: 7px;;
    
}

.ratings span {

}

.ratings a.selected{ 
    filter: invert(0.5) sepia(1) hue-rotate(200deg) saturate(400%) brightness(0.5);   
}

