.testy-loading {
    text-align: center;
}
.testy-loading-anim {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    border: 4px solid;
    border-color: #444 transparent #444 #444;
    box-sizing: border-box;
    animation: testyLoadingRotation 1s linear infinite;
}
.testy-loading-anim::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border: 4px solid;
    border-color: #444 #444 #444 transparent;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    animation: testyLoadingRotationBack 0.5s linear infinite;
    transform-origin: center center;
}

@keyframes testyLoadingRotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 
      
@keyframes testyLoadingRotationBack {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}
.testy-loading-text {
    color: #444;
	display: block;
}

.test-form img.test-empty {
    width: 15px;
    margin-left: 8px;
    margin-right: 8px;
    margin-top: -4px;
}
.test-form img.test-empty + input {
    display: none;
}
.test-form fieldset label {
    border-radius: 3px;
    padding: 3px 5px;
    line-height: 1.9em;
    padding-left: 30px;
}
.test-form fieldset > div:not(.sortable-answers):not(.sortable-questions) {
    background-color: #F8F8F8;
    color: black;
    margin-top: 2px;
    margin-bottom: 2px;
    border-radius: 5px;
}
.test-body fieldset label { 
    overflow: hidden; 
}

.test-form legend {
    color: inherit;
    font-size: inherit;
    padding-bottom: 4px;
    padding-bottom: 5px;
    padding-top: 10px;
    border-bottom: none;
    overflow: hidden;
}
/* pretoze editor vygeneruje text do <p> a bez tohto to hodi na novy riadok
 teda pod cislovanie, ale lepsie to vypada vedla cislovania */
.test-body legend>*:first-child:not(figure)
{ 
    display: inline-block; 
}
.blue-text{
    color: #337AB7 !important;
}
.test-form fieldset > div.blue-text {
    color: #337AB7;
}
.test-form fieldset img.test-empty {
    margin-left: -23px;
    float: left;
    margin-top: 8px;
}
.test-form .btn-check,
.test-form .btn-reset {
    margin-top: 1.6em;
}
.test-form .btn-check, .test-form .btn-reset{
    margin-bottom: 1.6em;
}
.test-form .testy-html-content{
    border-radius: 5px;
    background-color: cornsilk;
    color: black;
    padding: 15px;
    margin-top: 10px;
}

.test-form label{
    display: block;
}
.test-body label>*:last-child { 
    margin-bottom: 0;
}

.test-form .btn-reset{
    /* margin-left: 10px; */
}

.test-form .btn-default {
    color: #337AB7;
    border: #337AB7 1px solid;
}
.test-form .btn-default:hover {
    background-color: #337AB7;
    color: white;
    border: #337AB7 1px solid;
}

.duration-index {
    /* background-color: pink; */
    position: fixed;
    top: 60px;
    right: 0;
    padding: 10px;
    border-radius: 5px;
    margin-right: 15px;
    z-index: 999;
    margin-top: 10px;
    /* marigin-right: 10px; */

    background-color: #FCEEEF;
    padding: 11px 18px 11px 50px;
    color: #8A343A;
    background-image: url(../images/icon-timer-red.png);
    background-size: 20px 24px;
    background-position: 16px 10px;
    background-repeat: no-repeat;
}

.duration-index span {
    font-weight: bold;
}

/*.test-form .duration{*/
    /*text-align: right;*/
    /*position: fixed;*/
    /*-webkit-backface-visibility: hidden;*/
    /*display: block;*/
    /*background-color: rgba(214, 242, 255, 0.9);*/
    /*padding: 10px;*/
    /*border-radius: 5px;*/
    /*z-index: 999;*/
    /*white-space: nowrap;*/
    /*!*width: min-content;*!*/
    /*display: block;*/
/*}*/

.test-form .test-alert-info {
    background-color: #EFF5F9;
    border-left: solid 4px #337AB7;
    border-radius: 4px;
    padding: 11px 10px 11px 50px;
    color: #337AB7;
    background-image: url(../images/alert-info.svg);
    background-size: 24px 24px;
    background-position: 16px 10px;
    background-repeat: no-repeat;
    margin-bottom: 10px;
}
.test-form .test-alert-info span {
    font-weight: bold;
}
.test-form .test-alert-warning {
    background-color: #FCEEEF;
    border-left: solid 4px #8A343A;
    border-radius: 4px;
    padding: 11px 10px 11px 50px;
    color: #8A343A;
    background-image: url(../images/alert-warning.svg);
    background-size: 24px 24px;
    background-position: 16px 10px;
    background-repeat: no-repeat;
    margin-bottom: 10px;
}
.test-form .test-alert-warning span {
    font-weight: bold;
}

.test-form legend > audio {
    margin-top: 5px;
}

.test-placeholder .final-score.final-score-defaultText {
    margin-top: 0.8em;
    font-size: 200%;
    margin-bottom: 20px;
}
.test-placeholder .final-score.final-score-defaultText span {
    font-weight: bold;
}

.test-placeholder .final-score.final-score-emoji {
    font-size: 550%;
    margin-top: 0;
    margin-bottom: 0;
}

.test-form .selected {
    background-color: #d6e4f1 !important
}

.test-form .incorrect,
.dragveta .incorrect {
    background-color: #f2dede !important;
    color: #a94442 !important;

    -webkit-text-fill-color: #a94442; /* to override default browser (safari) style */
}

.test-form .correct,
.dragveta .correct {
    background-color: #dff0d8 !important;
    color: #3c763d !important;

    -webkit-text-fill-color: #3c763d; /* to override default browser (safari) style */
}

.test-form .partialcorrect {
    background-color: #dff0d8 !important;
    color: #ff9a0a !important;
}

.test-form [disabled] {
    cursor: not-allowed;
    
    opacity: 1; /* to override default browser (safari) style */
}

/* .test-form .smaller-font{
    font-size: 90%;
} */
.test-form .task-score {
    margin-left: 0.3em
}
.test-form .task-score-default {
    font-size: 90%;
    font-style: italic;
}
.test-form .task-score-emoji {
    font-size: 150%;
    position: relative;
    top: 0.1em;
    line-height: 100%;
}

.test-form .start-button{
    display: block;
    margin-top: 1.6em;
    margin-bottom: 1.6em;
}

.test-form .short-answer-input{
    width: 100%;
    border-radius: 5px;
    border: 1px solid #dddddd;
    padding: 5px;
}

.test-form .numeric-answer-input{
    width: 100%;
    border-radius: 5px;
    border: 1px solid #dddddd;
    padding: 5px;
}

.test-form .long-answer-textarea{
    width: 100%;
    resize: none;
    border-radius: 5px;
    border: 1px solid #dddddd;
    padding: 5px;
    min-height: 80px;
    overflow: hidden;
}

.test-form input,
.test-form textarea,
.test-form select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: white;
    color: black;
}

.test-form select {
    padding-right: 23px !important;
    background-image: url(../images/select-arrows.svg);
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.test-form input:focus,
.test-form textarea:focus,
.test-form select:focus {
    outline: none;
    border: 1px solid #337AB7;
    /* margin: 0px; */
    box-shadow: 0 0 3px #81c5ff;
}

.test-form .short-inline,
.test-form .numeric-inline,
.test-form .combo-inline {
    border-radius: 5px;
    border: 1px solid #dddddd;
    padding: 5px;
    margin-bottom: 5px;
}

/* if showCheckbox:false, tak prisunut text k levemu okraju */
.test-form label > input[type="checkbox"]:first-child {
    margin: 0;
    margin-left: -18px;
    opacity: 0;
    width: 0;
    height: 0;
}
.test-body label > input[type="checkbox"]:focus {
    border: 0;
}

#test-modal .modal-header, #test-modal .modal-footer{
    border: none;
}

#test-modal .modal-body{
    padding-left: 40px;
}

#test-modal{
    z-index: 999999;
    position: absolute;
}
.test-placeholder .button-wrapper{
    position: relative;
}

#test-modal {
    position: fixed;
    top: 3%;
    right: 3%;
    left: 3%;
    width: auto;
    margin: 0;
}
#test-modal .modal-body {
    height: 60%;
}
#test-modal .modal-body {
    max-height: 350px;
    padding: 15px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.width-dynamic{
    min-width: 20px;
    max-width: 100%;
}


.misto-odpoved{
    background-color: yellow;
    width: 100%;
}
.dragveta{
    background-color: #F8F8F8;
    border-radius: 5px;
    padding: 5px 10px 5px 10px;
    margin: 5px;
    white-space: nowrap;
}

.dragveta:hover{
    cursor: pointer;
}

.dragveta.inline{
    display: inline-block;
}


.sortable-placeholder {
    width: 100%;
    display: inline-block;
    float: right;
    /* border: solid 2px #F8F8F8; */
    border: solid 2px #e0e0e0;
    border-radius: 5px;
    min-height: 56px;
    padding: 5px;
    margin-bottom: 10px;
    margin-top: 10px;
}


.sortable-answers {
    border: solid 2px #d6e4f1;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 10px;
    margin-top: 20px;
    min-height: 56px;
    /*background-image: url(../images/swiper.gif);*/
    /*background-repeat: no-repeat;*/
    /*background-size: 32px 25px;*/
    /*background-position: center left;*/
    /*padding-left: 35px;*/
}

.sortable-answers .ui-sortable-placeholder {
    display: inline;
    border: 2px solid #e7e7e7;
    border-radius: 5px;
    padding: 5px 20px 5px 20px;
    margin: 5px;
}

/*.dragveta.correct{*/
    /*background-color: green;*/
/*}*/

/*.dragveta.incorrect{*/
    /*background-color: red;*/
/*}*/


@media only screen and (max-width: 475px) {
    .test-placeholder .final-score{
        /* display: block;
        padding-top: 0px; */
        /* margin-top: -6em; */
        /* right: auto; */
    }
    .test-placeholder .button-wrapper{
        /* padding-top: 3em; */
    }
}

/* pretoze editor vygeneruje odpoved do <p> a bez tohto to hodi na novy riadok
 teda pod checkbox, ale lepsie to vypada vedla checkboxu */
.test-body label>.test-empty+input+*
{ 
    display: inline-block; 
}

.test-body label > .test-empty + input + *,
.test-body label > input + * {
    display: inline;
}

.test-body legend > *:first-child:not(figure) {
    display: inline;
}





.pb-sortable {
    margin: 5px;
    display: inline-block;
    padding-left: 0;
}

.pb-sortable li {
    font-size: 150%;
    background-color: white;
    border-radius: 3px;
    border: 1px solid lightgray;
}

.pb-sortable.pb-sortable-letters li {
    display: inline-block;
    width: 35px;
    height: 35px;
    text-align: center; 
}
.pb-sortable.pb-sortable-words li {
    display: inline-block;
    padding: 0 0.3em;
    padding: 0.1em 0.3em;
    font-size: 130%;
}
.pb-sortable.pb-sortable-lines li {
    display: block;
    padding: 0.25em 0.5em;
    font-size: 120%;
    line-height: 1.3;
}

.pb-sortable li:hover {
    cursor: grab;
}
/* .pb-sortable li[draggable="true"] { */
.pb-sortable .sortable-chosen {
    cursor: grabbing;
    background-color: rgb(237, 243, 243);
}
.pb-sortable .sortable-item-to-swap {
    background-color: rgb(237, 243, 243);
    opacity: 1 !important;
}

.pb-sortable .sortable-ghost,
.pb-sortable .sortable-item-to-swap {
    opacity: 0.1;
}

.no-break .pb-sortable {
    margin-right: 0;
}


.pb-sortable.correct > li {
    background-color: #dff0d8;
    color: #3c763d;
}
.pb-sortable.incorrect > li {
    background-color: #f2dede;
    color: #a94442;
}
.pb-sortable[disabled] li {
    cursor: not-allowed;
}



.pb-sortable-lines > .pb-sortable-fixed {
    opacity: 0.5;
    border: 0;
}
.pb-sortable-lines > .pb-sortable-fixed:hover {
    cursor: not-allowed;
}
.pb-sortable-lines > .correct {
    background-color: #dff0d8;
    color: #3c763d;
}
.pb-sortable-lines > .incorrect {
    background-color: #f2dede;
    color: #a94442;
}
.pb-sortable.ts-swipe-left-right-background {
    background-image: none;
}

.testy-task-type-sort-letters > legend > ol,
.testy-task-type-sort-words > legend > ol {
    padding-left: 0;
    list-style-position: inside;
}


.test-placeholder .ts-swipe-left-right-background {
    background-image: none;
    padding-top: 0;
    border: 0;
}

.testy-task-type-short .revealed-answers-all {
    padding: 5px 8px;
}
.testy-task-type-short .revealed-answers-title {
    font-weight: bold;
}
.testy-task-type-short .revealed-answer {
    display: inline-block;
    font-style: italic;
}





.testy-task-type-mixed .width-dynamic {
    min-width: 0;
}

.testy-task-type-mixed .short-inline,
.testy-task-type-mixed .numeric-inline,
.testy-task-type-mixed .combo-inline {
    border: 1px solid transparent;
    border-bottom: 1px solid black;
    border-radius: 0;
    padding: 0;
    text-align: center;
}
.testy-task-type-mixed .short-inline:focus,
.testy-task-type-mixed .numeric-inline:focus,
.testy-task-type-mixed .combo-inline:focus {
    border-radius: 5px;
    /* padding: 0 2px 0 2px; */
}
.testy-task-type-mixed .short-inline:hover,
.testy-task-type-mixed .numeric-inline:hover,
.testy-task-type-mixed .combo-inline:hover {
    background-color: rgba(129, 197, 255, 0.3);
}



