form.check {
  width: 300px;
  margin-top: -1px;
  padding-top: 5px;
  padding-bottom: 5px;
  border: 1px solid #009be3;
  text-align: center;
}

p.content {
  font-family: arial;
  font-size: 20px;
  text-align: justify;
}

.content a:link, .content a:visited, .content a:hover, .content a:active{
  text-decoration:none;
  color: #666;
  padding: 0 1px;
}

ul#spacebar-ul {list-style-type: none; margin: 0 auto;}
li.spacebar {display: table; margin: 0px auto 0px auto;}

.key{
  display: block;
  color: #aaa;
  font: bold 9pt arial;
  text-decoration: none;
  text-align: center;
  width: 44px;
  height: 41px;
  margin: 5px;
  background: #eff0f2;
  -moz-border-radius: 4px;
  border-radius: 4px;
  border-top: 1px solid #f5f5f5;
  -webkit-box-shadow:
    inset 0 0 25px #e8e8e8,
    0 1px 0 #c3c3c3,
    0 2px 0 #c9c9c9,
    0 2px 3px #333;
  -moz-box-shadow:
    inset 0 0 25px #e8e8e8,
    0 1px 0 #c3c3c3,
    0 2px 0 #c9c9c9,
    0 2px 3px #333;
  box-shadow:
    inset 0 0 25px #e8e8e8,
    0 1px 0 #c3c3c3,
    0 2px 0 #c9c9c9,
    0 2px 3px #333;
  text-shadow: 0px 1px 0px #f5f5f5;
  cursor: auto;}

a.c32:link, a.c32:visited, a.c32:hover, a.c32:active{
  text-decoration: none;
}

a span {
  display: block;
  text-align: center;
  margin: 31px 0 0 8px;
  font-size: 9.5pt;
}

a span.fa, a span.current-font{
  display: inline;
  margin: 0px 0 0 0px !important;
}

div.textarea.wysihtml5-sandbox {
  min-height: 200px;
  border: 1px solid black;
  background-color: #FFF;
}

.key:active, .keydown {
  color: #888;
  background: #ebeced;
  margin: 7px 5px 3px;
  -webkit-box-shadow:
    inset 0 0 25px #ddd,
    0 0 3px #333;
  -moz-box-shadow:
    inset 0 0 25px #ddd,
    0 0 3px #333;
  box-shadow:
    inset 0 0 25px #ddd,
    0 0 3px #333;
  border-top: 1px solid #eee;}

#spacebar {height: 49px;}
#spacebar {width: 226px;}

.hover {
  cursor: pointer;
}

.bright {
  background-color: rgba(204, 204, 0, .2);
}

.textbook-row {
  margin: 5px;
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid #0d88c1;
  background-color: #c0c0c0;
  cursor: pointer;
  user-select: none;
  font-weight: bold;
}

.textbook-row:hover {
  background-color: #001c20;
  color: #fff;
}

.textbook-row a.btn-delete {
  color: #ff5156;
}

.textbook-row a.btn-edit {
  color: #08771e;
}

.textbook-row a.btn-duplicate {
  color: #9046b8;
}

.template-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55px;
  background-color: #f0f1ff;
  border-top: 2px solid #000;
  padding: 8px;
}

table.exercise-book-list-modal {
  width: 100%;
}

table.exercise-book-list-modal tbody tr:nth-child(even) {
  background-color: #eef2ff;
}

table.exercise-book-list-modal thead th {
  height: 20px;
  padding: 8px;

}

table.exercise-book-list-modal td {
  height: 20px;
  padding: 3px 8px;
  border-bottom: 1px solid rgb(162, 162, 163);
}

table.element-list {
  width: 100%;
}

table.element-list td {
  padding: 2px 6px;
}

table.element-list tr {
  border-bottom: 1px solid #c0c0c0;
  cursor: pointer;
  background-color: #faf4ff;
}

table.element-list tr:nth-child(even) {
  background-color: #e4eaff;
}

table.element-list tr:hover {
  background-color: #c6ffd2;
}

table.element-list a.delete-exercise-from-list {
  color: #ff7f5d;
}

table.sortable-units-sections {
  width: 100%;
}

table.sortable-units-sections td {
  padding: 5px 10px;
}

table.sortable-units-sections tr {
  border: 1px solid #c0c0c0;
  cursor: pointer;
  background-color: #faf4ff;
}

table.sortable-units-sections tr:nth-child(even){
  background-color: #e4eaff;
}

table.sortable-units-sections tr:hover {
  background-color: #c6ffd2;
}

table.search-results {
  width: 100%;
}

table.search-results td {
  padding: 8px;
}

table.search-results tbody tr {
  background-color: #d7d7d7;
  border-bottom: 1px solid #f4f4f4;
}

table.search-results tbody tr:nth-child(even) {
  background-color: #e6e6e6;
}


table.trainer-exercises-table thead tr th:nth-child(7),
table.trainer-exercises-table thead tr th:nth-child(8),
table.trainer-exercises-table thead tr th:nth-child(9),
table.trainer-exercises-table thead tr th:nth-child(10),
table.trainer-exercises-table tbody tr td:nth-child(7),
table.trainer-exercises-table tbody tr td:nth-child(8),
table.trainer-exercises-table tbody tr td:nth-child(9),
table.trainer-exercises-table tbody tr td:nth-child(10){
  text-align: center;
}

input.exercise-code {
  height: 100%;
  width: 25px;
  font-size: 10px;
}

.ui-helper-hidden-accessible {
  display: none;
}
div.edit-category select {
  text-transform: capitalize;
}
div.edit-category select option {
  text-transform: capitalize;
}
form#create_quiz div#answer-list div.form-group div.form-inline input[type="text"]{
        width: 80%;
}

form#create_quiz a[data-action="third"],
form#create_quiz a[data-action="remove-third"]{
  color: purple;
  font-weight: 500;
}

div#book-related-exercises, div#exercise-related-books {
  min-height: 80px;
  width: 100%;
  border: 1px solid #000;
  padding: 5px;
  background-color: #e4dae6;
}

div#book-related-exercises:focus, div#exercise-related-books:focus {
  background-color: #fff;
}

.unit-color-selector {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  padding: 0px;
  margin: 0px;
  height: 34px;
  width: 42px;
  border: 1px solid #c0c0c0;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.unit-color-selector:not(:root:root) {  display: none; }

tr.element-disabled {
  background-color: lightcoral !important;
}

tr.element-disabled a {
  color: #6b666c;
}

tr.element-disabled a.delete-exercise-from-list {
  color: yellow;
}

#hide-clone-section table {
  width: 100%;
  background-color: rgb(212, 224, 222);
}

.hide-textbook-table td {
  padding: 5px 10px;
  border: 1px solid #000;
  height: 20px;
  text-align: center;
}

.hide-textbook-table input,
.hide-textbook-table select {
  width: 100%;
}

.hide-unit-table {
  margin: 15px 0;
}

.hide-unit-table td {
  border: none !important;
  background-color: rgb(206, 191, 209);
}

.hide-unit-table tr:nth-child(odd) td {
  background-color:rgb(236, 216, 216);
}

#hide-clone-section span.t-active {
  color: green;
}

#hide-clone-section span.t-disabled {
  color: red;
}

.c-search-filtered-options.grid-theme{
  display: grid;
  grid-template-columns: 80% 20%;
}

.c-search-filtered-options.grid-theme  div.filter-by-trainer{
  padding: 1px 0px;
}

.c-search-filtered-options.grid-theme select#exercises-section{
  cursor: pointer;
  width: 100%;
  height: 40px;
  padding: 0px 4px;
  border-radius: 4px;
  color: #797777;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

@media (max-width: 768px){
  .c-search-filtered-options.grid-theme{
    grid-template-columns: 100%;
  }
}

.search-textbook-section{
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 30px;
}

.search-textbook-section input{
  height: 40px;
  border-radius: 10px;
  border: 2px solid #ccc;
  font-size: 18px;
}


/*  Exercise create / edit views */
#exercise .c-see-questions{
  display: flex;
  justify-content: center;
}

#exercise .c-see-questions a{
  background:#fff;
  color:rgba(255, 0, 0, 0.571);
  letter-spacing: 1px;
  font-size: 16px;
  font-weight: 400;
  border: 1px solid rgba(255, 0, 0, 0.571);
  border-radius: 20px;
}

#exercise .c-exercise-tags-skills{
  margin-bottom:50px;
  margin-top: 20px;
}

#exercise .c-exercise-tags-skills .c-exercise-skills h5{
  font-size: 16px;
  text-align: right;
}

#exercise .c-exercise-tags-skills #skills{
  width: 100%;
  min-height: 120px;
}

#exercise .match-alpha{
  display: flex;
  flex-direction: row-reverse;
  padding: 0;
  margin: 0px 0px 20px 0px;
}

select#examPart {
  width: 90%;
}

#exercise .c-teacher-notes{
  margin-bottom: 20px;
}

#exercise .c-exercise-tags-skills .c-exercise-tags{
  padding: 0;
}

#exercise .c-exercise-questions-options p{
  font-size: 12px;
  margin: 5px 0px;
}

#exercise .c-general-options{
  margin-left: 18%;
}

#exercise .c-general-options .form-group{
  padding: 0;
  margin-bottom: 20px;
}

#exercise .custom-ending-images{
  display: flex;
  flex-direction: column;
  align-items: normal;
}

#exercise .custom-ending-images .image-info{
  display: flex;
  align-items: center;
}

#exercise .custom-ending-images .image-info .image-actions{
  display: flex;
  flex-direction: column;
  width: 300px;
}

#exercise .custom-ending-images .image-info .image-actions #delete-custom-file{
  margin-top: 10px;
}

#exercise .custom-ending-images label,
#exercise .custom-ending label{
  text-align: left !important;
  margin: 4px 0px;
}

#exercise .custom-ending-images img{
  max-width: 200px;
  padding: 10px;
  margin: 0 auto;
}

#exercise .custom-video,
#exercise .custom-video-label{
  margin-top: 20px;
}

#custom-ending-update{
  padding: 15px;
}

#custom-ending-update label{
  margin-left: 10px;
  margin-bottom: 4px;
}

#fill-gap .check-options{
  margin-left: 17%;
}

#fill-gap .check-options div,
#select-fill-gap .check-options div{
  padding: 0;
  margin: 0;
}

#fill-gap .check-options div input,
#select-fill-gap .check-options div input{
  cursor: pointer;
}

#fill-gap .c-question-text-settings, #select-fill-gap .c-question-text-settings,
#select-word .c-question-text-settings, #writing .c-question-text-settings,
#speaking .c-question-text-settings, #flashcard .c-question-text-settings,
#groups .c-question-text-settings, #mapping .c-question-text-settings,
#matching .c-question-text-settings, #voice .c-question-text-settings{
  padding: 0;
}

#fill-gap .c-question-text-settings .c-question-alt-image,#select-fill-gap .c-question-text-settings .c-question-alt-image,
#select-word .c-question-text-settings .c-question-alt-image, #writing .c-question-text-settings .c-question-alt-image,
#speaking .c-question-text-settings .c-question-alt-image, #matching .c-question-text-settings .c-question-alt-image,
#voice .c-question-text-settings .c-question-alt-image {
  margin: 10px 0px 40px 0px;
}

#flashcard .c-question-text-settings .c-question-alt-image, #groups .c-question-text-settings .c-question-alt-image,
#mapping .c-question-text-settings .c-question-alt-image, #matching .c-question-text-settings .c-question-alt-image{
  margin: 10px 0px 10px 0px;
}

#mapping .c-question-text-settings .c-question-alt-image input{
  display: flex;
  width: 100%;
}

#speaking .c-question-text-settings{
  margin: 0 15%;
}

#update_quiz .c-answer-alt-image{
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.disabled-link {
  pointer-events: none;
  text-decoration: none;
  opacity: 0.5;
}

/* Exercise tags custom styles */

.bootstrap-tagsinput{
  min-height: 100px;
  min-width: 100%;
}
.bootstrap-tagsinput .label-info{
  background-color: #a5abae;
}

.bootstrap-tagsinput .label{
  font-size: 12px;
}

/* Book group suggestions */

#create-book{
  margin-top: 1em;
}

.c-book-group #suggestions{
  width: 307px;
}

.c-book-group #suggestions ul{
  list-style: none;
  padding: 10px;
  border: 1px solid #ccc;
  background: white;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.c-book-group #suggestions ul li{
  cursor: pointer;
  padding: 5px 0px;
}

.c-book-group .ui-widget{
  display: flex;
  flex-direction: column;
}


@media (max-width: 768px){
  #exercise .c-exercise-tags-skills .c-exercise-skills h5{
    text-align: left;
  }
  #exercise .c-exercise-tags-skills #skills{
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 992px){
  #exercise .c-exercise-tags-skills .c-exercise-skills h5{
    text-align: left;
  }
  #exercise .c-exercise-tags-skills .c-exercise-tags{
    margin-top: 10px;
  }
  #exercise .c-exercise-tags-skills .c-exercise-tags .control-label{
    text-align: left !important;
  }
  #exercise .c-exercise-tags-skills #skills{
    width: 100%;
  }
}

/* Question styles */

/* Writting */

.editable-suggested .c-character-limit{
  float: right;
  margin-top: -15px;
  font-size: 16px;
}

.editable-suggested .c-character-limit .total-characters{
  font-weight: 500;
}


/* Page CYOA */

#page-edit-view h4{
  text-transform: uppercase;
  padding: 5px 0px;
}

#page-edit-view input{
  box-shadow: none;
}

#page-edit-view .page-options, #page-edit-view .preview-options{
  padding: 20px;
}

#page-edit-view .page-options{
  border-right: 2px solid #ccc;
}

#page-edit-view .page-options .image-preview{
  display: flex;
  align-items: center;
}

#page-edit-view .page-options .image-preview img{
  width: 50%;
  padding: 10px;
}

#page-edit-view .preview-options .jp-single-player{
  display: flex;
  justify-content: center;
}

#page-edit-view .preview-options .audio-options{
  text-align: center;
}

#page-edit-view .preview-options .audio-options .btn:first-child{
  margin: 10px 0px;
  font-size: 18px;
  height: 40px;
}

#page-edit-view .preview-options .audio-options .btn{
  width: 90%;
}

#page-edit-view .preview-options .audio-options button{
  margin: 0 auto;
}

#page-edit-view .preview-content{
  padding: 0;
}

#page-edit-view .cyoa-content{
  border-top: 2px solid #ccc;
  border-bottom: 2px solid #ccc;
  padding: 20px;
  margin: 10px 0px;
}

#page-edit-view .cyoa-decisions .decisions-actions{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#page-edit-view .cyoa-decisions .decisions-actions a{
  margin: 20px 0px;
  width: 250px;
  font-weight: 700;
  font-size: 16px;
}

#page-edit-view .decision-content{
  min-height: 60px;
}

#page-edit-view .decision-content label{
  width: 100%;
}

#page-edit-view .decision-content .image{
  display: flex;
}

#page-edit-view .decision-content .page{
  display: flex;
  align-items: center;
}

#page-edit-view .decision-content #edit-decision{
  height: 35px;
  margin: 40px 0px;
}

#page-edit-view .decision-content .page.warning-border{
  border: 2px solid #ff5156;
}

#page-edit-view .delete-content{
  margin-bottom: 20px;
}

#page-edit-view .save-options{
  display: flex;
  justify-content: center;
}

#page-edit-view .save-options .btn:first-child{
  width: 50%;
}

.decision-content .decision-image{
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.decision-content .decision-image img{
  width: 100px;
  margin: 10px;
}

.decision-content input[type="file"] {
  margin-bottom: 20px;
}


/* Switch button to checkboxes */
.switch-content{
  display: flex;
  align-items: center;
}

.switch-content p{
  font-weight: 500;
  padding-right: 10px;
  min-width: 200px;
}

.k-switch-button .k-switch-button__checkbox {
  display: none;
}

.k-switch-button .k-switch-button__label {
  cursor: pointer;
  background-color: #fe5e41;
  width: 5rem;
  height: 2.5rem;
  border-radius: 3rem;
  display: inline-block;
  position: relative;
}

.k-switch-button .k-switch-button__label:before {
  transition: .2s;
  display: block;
  position: absolute;
  width: 2.2rem;
  height: 2.2rem;
  background-color: #fdffff;
  content: '';
  top: 0.8px;
  left: 4px;
  border-radius: 50%;
  box-shadow: inset 0px 0px 0px 1px #000;
}

.k-switch-button .k-switch-button__checkbox:checked + .k-switch-button__label {
  background-color: #00a878;
}

.k-switch-button .k-switch-button__checkbox:checked + .k-switch-button__label:before {
  transform: translateX(2rem);
}

/*Book search*/
.search-input {
  width: 250px;
  margin: 0px auto;
}
.subjects {
  margin-bottom: 20px;
}

/* Trainer */

.content {
  width: 100%;
  padding-left: 5%;
  text-align: left;
}
.search {
  margin-bottom: 30px;
}
.result-table .subject{
  text-transform: capitalize;
}
.trainer-content > thead > tr > th{
  padding-bottom: 16px;
}
.trainer-content .result-table > tr > td {
  padding: 6px ;
}
#results > .modal-dialog{
  width: 800px;
}
.modal-content > .results{
  padding: 50px;
}
@media (max-width: 768px){
  #results > .modal-dialog{
    width: 600px;
  }
}
/* Order questions */

.t-questions-list .question-row{
  cursor: move;
}

.t-questions-list .groups, .t-questions-list .flashcard-game,
.t-questions-list .mapping-learn, .t-questions-list .mapping-game,
.t-questions-list .voice{
  cursor: initial;
}

/* Order questions modal */
#disable-random .modal-dialog {
  width: 520px;
}
#disable-random .modal-dialog .modal-content .modal-header, #disable-random .modal-dialog .modal-content .modal-footer {
  border: 0px;
}
#disable-random .modal-dialog .modal-content .modal-body {
  padding: 40px 15px 40px 15px;
}
#disable-random .modal-footer,
#disable-random .modal-body{
  text-align: center;
}
#disable-random .modal-footer button{
  padding: 8px 70px;
  margin: 0px 20px;
}

.t-questions-list>tbody>tr.moved>td,
.t-questions-list>tbody>tr.moved>th{
  background-color: #5cb85c42 !important;
}

/*  Edit exercise   */
.error {
  border-color: red !important;
  box-shadow: 1px 1px 10px 0.2px rgba(255, 0, 0, 0.571);
}

img.summer-image-book, img.summer-image-exercise{
  max-width: 400px;
  margin-top: 20px;
}

.summer-image-actions{
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-end;
  flex-wrap: wrap;
}

.summer-image-actions .exercise-icon-warning{
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: 10px;
}

.summer-image-actions a, .summer-image-label{
  margin-top: 20px;
}

.summer-image-actions label{
  margin-bottom: 10px !important;
  margin-bottom: 10px !important;
}

/* Book quiz answers */

#choose-correct .c-answer-file{
  display: flex;
  align-items: center;
}

#choose-correct .c-answer-file input[type="radio"]{
  margin-top: 40%;
}

#choose-correct .c-answer-file img{
  margin: 20px;
}

#choose-correct .c-answer-file .file-actions{
  margin-left: 20px;
}

#choose-correct .c-answer-file .file-actions a,
.c-trainer-quiz-correct #choose-correct .file-actions a{
  font-size: 18px;
  letter-spacing: 1px;
}

.c-trainer-quiz-correct #choose-correct .file-actions{
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Custom sweet alert */
.sweet-overlay{
  opacity: 0 !important;
}

.sweet-alert{
  border: 1px solid #ccc;
}


/* ===== Custom Scrollbar===== */
* {
  scrollbar-width: auto;
  scrollbar-color: #bababa #ffffff;
}

*::-webkit-scrollbar {
  width: 12px;
}

*::-webkit-scrollbar-track {
  background: #ffffff;
}

*::-webkit-scrollbar-thumb {
  background-color: #bababa;
  border-radius: 4px;
  border: 3px solid #ffffff;
}

#section-exercise-book-list tr td p{
  margin: 0;
}

#section-exercise-book-list tr td i{
  font-style:normal !important;
}

/* TEXTBOOK GAMIFICATION */

span.item-needs-info {
  font-size: 40px;
  color: red;
  position: absolute;
  left: 20px;
  top: 20px;
}

p.lead.small-text {
  margin-left: 5px;
  margin-top: 5px;
  font-size: 16px;
}

.margin-left {
  margin-left: 15px;
}

.btn-edit-gamification{
  border: 1px solid #337ab7;
  padding: 10px;
  background: #fff;
  border-radius: 5px;
  font-weight: 500;
  letter-spacing: 1px;
}

.note-group-image-url,
.note-group-select-from-files label{
  display: none;
}

/* Edit book */
#edit-book .book-preview span{
  display: block;
}
#edit-book .book-preview span:nth-child(odd){
  display: block;
  font-weight: bold;
}
#edit-book .book-preview span#ebook_url{
  margin-bottom: 5px;
}

#edit-book .c-info, #create-book .c-info{
  padding: 10px 0px;
}

#edit-book .summer-icon-action{
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 20px;
  justify-content: flex-start;
}

#edit-book .summer-icon-action .alert{
  margin-top: 20px;
  margin-left: auto;
  width: 700px;
}

#edit-book .book-preview #book_type_img.little-writters{
  width: 135px;
  position: absolute;
  top: 445px;
}

#edit-book .book-preview #book_type_img.milton-classics,
#edit-book .book-preview #book_type_img.milton-articles{
  width: 150px;
  position: absolute;
  top: 437px;
  left: 6px;
}

/* Textbook gamification */
#edit-textbook-gamification .badges-list.ui-sortable .item img,
#edit-textbook-gamification .objects-list.ui-sortable .item img{
  cursor: move !important;
}

#edit-textbook-gamification .badges-list,
#edit-textbook-gamification .objects-list{
  display: grid;
  grid-template-columns: repeat(auto-fill, 300px);
  margin-top: 20px;
}

#edit-textbook-gamification .badges-list .item,
#edit-textbook-gamification .objects-list .item{
  display: flex;
  justify-content: center;
  padding: 0px 0px 15px 0px;
}

#edit-textbook-gamification .badges-list .item img,
#edit-textbook-gamification .objects-list .item img{
  width: auto;
  height: 200px;
}

.c-question-selector ul li:nth-child(4){
  display: grid;
  grid-template-columns: repeat(3, 33%);
  gap: 5px;
  width: 70%;
  margin: 0 auto;
  padding: 10px 0px;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 12px;
}

/* TEXTBOOK DETAIL */
#delete-template-image,
#delete-template-banner-lg,
#delete-template-banner-sm {
  display: none;
}

.btn-success + #delete-template-image,
.btn-success + #delete-template-banner-lg,
.btn-success + #delete-template-banner-sm {
  display: block;
}

.c-textbook-img-actions{
  display: flex;
  flex-direction: column;
  gap: 5px;
}
