/* The main quiz container */

@media (min-width: 768px)
{
    .single-quiz .layout-content.boxed #primary {
        min-height: 800px;
        position: relative;
    }
    
}




@media (max-width: 767px) {
    
    .ifrs-quiz__navigation {
        position: relative !important;
        bottom: auto !important;
        width: 100% !important;
        margin-top: 40px;
    }
    
} /*767*/


.ifrs-quiz {
    margin-bottom: 40px;
}

/* Navigation*/
.ifrs-quiz__navigation {
    position: absolute;
    bottom: 0;
    width: 95%;
}


.ifrs-quiz__navigation__next { float: left; }

.ifrs-quiz__navigation__prev { float: right;  }




/* Ajax Loader */
.quiz-loader {
    display: none;
    background: rgba(255,255,255,0.95);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99999999999999;
}

.quiz-loader .loader-text,
.quiz-loader img {
    position: absolute;
    left: 50%;
    top: 44%;
    transform: translate(-50%,-50%);
}


.quiz-loader .loader-text {
    top: 51%;
    color:#3BBDC8;
    font-size: 19px;
}



/* Quiz form */
.question-view-form {
    margin-bottom: 60px;
}



/* Responsive */
@media (max-width: 767px) {


    #primary {
        padding: 15px;
        margin: 0 auto;
    }

} /*767*/


/* General radio buttons */
/* The radio */
.radio {

    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding-right: 30px !important;
}

/* Hide the browser's default radio button */
.radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom radio button */
.checkround {

    position: absolute;
    top: 6px;
    right: 0;
    height: 20px;
    width: 20px;
    background-color: #fff ;
    border-color: #3BBDC8;
    border-style:solid;
    border-width:2px;
    border-radius: 50%;
}


/* When the radio button is checked, add a blue background */
.radio input:checked ~ .checkround {
    background-color: #fff;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkround:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
.radio input:checked ~ .checkround:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.radio .checkround:after {
    left: 2px;
    top: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3BBDC8;

}



.questions-list {
    list-style: none;
    padding-right: 0;
}


/* General Buttons */
.quizButton {
    width: 130px;
    height: 40px;
    background: linear-gradient(to bottom, #44D9E5 0%,#3BBDC8 100%);
    border: none;
    position: relative;
    color: #fbfbfb;
    font-weight: 600;
    padding: 5px 0 0 50px;
    font-size: 15px;
    text-align: center;
    text-indent: 5px;
    cursor: pointer;

    display: block;
    margin: 0 auto;
    margin-bottom: 20px;
}
.quizButton:active {
    box-shadow: 0px 2px 0px 0px rgba(0,0,0,.2);
    top: 1px;
}


.quizButton.back:after {
    content: "";
    width: 0;
    height: 0;
    display: block;
    border-top: 20px solid #fff;
    border-bottom: 20px solid #fff;
    border-left: 16px solid transparent;
    border-right: 20px solid #fff;
    position: absolute;
    top: 0;
    right: auto;
}

.quizButton:hover {
    color:#E5E5E5;
}


.quizButton.back:after {
    right: 0 !important;
    top: 0;
}


.quizButton.back {
    text-align: center;
    padding-right: 47px;
    box-sizing: border-box;
}
.quizButton:after {
    content: "";
    width: 0;
    height: 0;
    display: block;
    border-top: 20px solid #fff;
    border-bottom: 20px solid #fff;
    border-right: 16px solid transparent;
    border-left: 20px solid #fff;
    position: absolute;
    left: 0;
    top: 0;
}

/* Single buttons */

.quizButton.site {
    width: 40px;
    text-align: center;
    text-indent: 0;
}
.quizButton.site:after{
    display: none;
}


/* Popup */

@-webkit-keyframes popUpEntrada {
    0%{opacity: 0; margin-top: -20%;}
    75%{margin-top: 5%;}
    100%{opacity: 1;}
}
@keyframes popUpEntrada {
    0%{opacity: 0; margin-top: -20%;}
    75%{margin-top: 5%;}
    100%{opacity: 1;}
}
@-webkit-keyframes popUpSaida {
    0%{opacity: 1;}
    75%{opacity: 1; margin-top: -20%;}
    100%{opacity: 0;margin-top: 40%;}
}
@keyframes popUpSaida {
    0%{opacity: 1;}
    75%{opacity: 1; margin-top: -20%;}
    100%{opacity: 0;margin-top: 40%;}
}


.popUpFundo{
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color:#4879c3;
    opacity: 0.8;
    z-index: 50;
}
.popUp{
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    display: none;
    position: absolute;
    top: 34%;
    left: 34%;
    width: 33%;
    padding: 0;
    font-size: 14px;
    font-family: 'PT Sans', sans-serif;
    color: #fff;
    border-style:none;
    z-index: 999;
    overflow: hidden;
}
.popUp button:focus{
    outline-style: none;
}
.popUp>h1{
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    margin: 0;
    padding: 5px;
    min-height: 40px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    color: #fff;
    background-color: transparent;
    border-style: none;
    border-width: 5px;
    border-color: black;
}
.vermelha>h1{
    border-color: #fa5032;
}
.verde>h1{
    border-color: #42ad4f;
}
.azul>h1{
    border-color: #659cff;
}

.popUp>div{
    display: block;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    width: 100%;
    padding: 5%;
    text-align: center;
    vertical-align: middle;
    border-width: 1px;
    border-color: #ccc;
    border-style: none none solid none;
    overflow: auto;
}
.popUp>div>span{
    display: table-cell;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}
.popUp>button{
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    margin: 0;
    padding: 10px;
    width: 50%;
    border: 1px none #ccc;
    color: #fff;
    font-family: inherit;
    cursor: pointer;
}
.alert{
    width: 100% !important;
}
.popUp .puCancelar{
    float: left;
}

.popUp .puEnviar{
    float: right;
}

.p{
    margin: 0;
    width: 100%;
    max-width: 300px;
    height: 100%;
    max-height: 200px;
    transform: translate(-50%, -50%);
}

.p>div{
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    width: 100%;
    height: calc(100% - 108px);
    margin: 0;
    padding: 0;
    border-style: none;

}
.p>div>div, .p span{
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    width: 300px;
    height: 108px;
    margin: 0;
    padding: 0;
    border-style: none;

}

.p>button{
    height: 50px;

}
.puEnviar{
    margin: 5px 0;
}
.puCancelar{
    margin: 5px 0;
}


.m{
    margin: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    max-height: 300px;
    transform: translate(-50%, -50%);
}
.m>div{
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    width: 100%;
    height: calc(100% - 108px);
    margin: 0;
    padding: 0;
    border-style: none;
    border-color:#ccc;
}
.m>div>div, .m>span, .m>div>span{
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    width: 400px;
    height: 208px;
    margin: 0;
    padding: 0;
    border-style: none;
}

.m>button{
    height: 50px;
}

.g{
    margin: 0;
    width: 100%;
    max-width: 600px;
    height: 100%;
    max-height: 500px;
    transform: translate(-50%, -50%);
}
.g>div{
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    width: 100%;
    height: calc(100% - 108px);
    margin: 0;
    padding: 0;
    border-style: none;
    border-color: #ccc;
}
.g>div>div, .g span{
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    width: 600px;
    height: 408px;
    margin: 0;
    padding: 0;
    border-style: none;
}
.g>button{
    height: 60px;
}


.alert.puEnviar{
    display: none;
}

.popUpEntrada{
    display: block !important;
    animation: popUpEntrada 0.5s;
    -webkit-animation: popUpEntrada 0.5s;
}
.popUpSaida{
    display: block !important;
    animation: popUpSaida 0.5s;
    -webkit-animation: popUpSaida 0.5s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

.blue{
    background-color:#51b2d6;
}
.blue>button{
    background-color:#38a7d0;
}
.blue>button:hover{
    background-color:#72c1de;
}
.popUpFundo.blue{
    background-color:#134152;
}
.green{
    background-color: #43b649;
}
.green>button{
    background-color:#3da743;
}
.green>button:hover{
    background-color:#4fbe55;
}
.popUpFundo.green{
    background-color:#173f19;
}
.red{
    background-color: #d55c4b;
}
.red>button{
    background-color: #d04b38;
}
.red>button:hover{
    background-color: #d86959;
}
.popUpFundo.red{
    background-color:#4a1811;
}
.orange{
    background-color: #f9a025;
}
.orange>button{
    background-color: #f89710;
}
.orange>button:hover{
    background-color: #f9ac42;
}
.popUpFundo.orange{
    background-color: #8c5b02;
}
.purple{
    background-color: #ab4bd5;
}
.purple>button{
    background-color: #a238d0;
}
.purple>button:hover{
    background-color: #b159d8;
}
.popUpFundo.purple{
    background-color: #3f114a;
}
.white{
    background-color: #fff;
    color: #555;
}
.white>h1{
    color: #000;
}
.white>button{
    background-color: #f3f3f3;
    color: #555;
}
.white>button:hover{
    background-color: #e3e3e3;
}

.popUpFundo.white{
    background-color:#555;
}







/* Shortcode */

.categories-block.quiz-grid .grid-item.grid-three h4.grid-heading {
    margin: 0;
    padding: 14px 0 19px 0;
    font-weight: 800;
    color: #fff;
    text-align: center;
    font-size: 25px;
    background: #3bbdc8;
    background: -moz-linear-gradient(top, #3bbdc8 0%, #000000 100%);
    background: -webkit-linear-gradient(top, #3bbdc8 0%,#000000 100%);
    background: linear-gradient(to bottom, #3bbdc8 0%,#000000 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3bbdc8', endColorstr='#000000',GradientType=0 );
}


.quiz-grid .grid-item .item-inner {
    border: 1px solid darkgray;
}


.grayed-elem {
    -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
    filter: grayscale(100%);
}




/* Pages */
/* Welcome Page */

.welcome-view-form p {
    margin-bottom: 0;
}