/* Games section styles */

/* Levels */
#c-games-home{
  margin: auto;
  width: 90%;
  padding: 10px;
  text-align: center;
}

#c-games-home .games-actions{
  margin: 10px 0px;
}

.c-games-section h1{
  text-transform: uppercase;
  text-align: center;
}

.c-games-section h2{
  text-align: center;
}

#c-games-home .games-filters-selects{
  display: flex;
  flex-direction: column;
}

#c-games-home .games-filters-selects .c-filtered-levels{
  display: flex;
  justify-content: center;
  border-top: 1px solid #cccccc;
  border-bottom: 1px solid #cccccc;
  margin: 15px 0px;
  padding: 0px 0px 20px 0px;
}

#c-games-home .levels-list-actions,
#c-games-home .subject-actions{
  width: 50%;
}

#c-games-home .section-actions{
  width: 20%;
}

#c-games-home .active-actions{
  width: 16%;
}

#c-games-home .levels-list-actions select,
#c-games-home .subject-actions select,
#c-games-home .section-actions select,
.c-games-manage .subject-actions select,
#c-games-home .active-actions select{
  cursor: pointer;
  padding: 10px 20px;
  margin: 10px 0px;
  border-radius: 5px;
  font-size: 16px;
}

#c-games-home .subject-actions select,
#c-games-home .levels-list-actions select,
#c-games-home .section-actions select,
#c-games-home .active-actions select{
  width: 90%;
  margin: 20px 0px 0px 0px;
}

#c-games-home .subject-actions select,
.c-games-manage .subject-actions select{
  text-transform: uppercase;
  font-weight: bold;
}

#c-games-home .levels-actions{
  width: 20%;
  margin-top: 20px;
}

/* Search at home */
#c-games-home .games-search{
  border-bottom: 1px solid #cccccc;
}

#c-games-home .games-search input#search{
  width: 30%;
  height: 45px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  padding: 10px;
  font-size: 16px;
}

.btn-games, .btn-levels,
#c-games-home .c-school-games a{
  font-size: 18px;
  letter-spacing: 2px;
}

.form-game-actions{
  display: flex;
  flex-direction: column;
}

.form-game-actions a,
.form-game-actions button{
  font-weight: 500;
  width: 100%;
}

.form-game-actions a{
  margin: 10px 0px 0px 0px;
}

.form-game-actions .active-game{
  display: flex;
  justify-content: center;
  padding: 0px 0px 10px 10px;
}

.form-game-actions .active-game label{
  font-size: 16px;
  font-weight: 500;
}

.form-game-actions .active-game input[type="checkbox"]{
  cursor: pointer;
  position: absolute;
  margin-top: 4px;
  margin-left: -25px;
  -ms-transform: scale(1.5);
  -moz-transform: scale(1.5);
  -webkit-transform: scale(1.5);
  -o-transform: scale(1.5);
  transform: scale(1.5);
  padding: 10px;
}

#c-games-home .levels-list-actions a{
  margin: 0px 15px;
}


#c-manage-g-levels .btn.btn-default{
  font-size: 16px;
}

#c-manage-g-levels .btn.btn-primary{
  font-size: 16px;
}

#c-manage-g-levels .subject-actions{
  margin-top: 20px
}

#c-manage-g-levels .c-level-list{
  margin: auto;
  width: 80%;
  padding: 10px;
  text-align: center;
}

#c-manage-g-levels .c-level-list table,
.c-games-list table{
  width: 100%;
  margin: 20px 0px;
}

#c-manage-g-levels .c-level-list table thead tr,
.c-games-list table thead tr{
  border-bottom: 1px solid #cccccc;
}

#c-manage-g-levels .c-level-list table thead tr th,
.c-games-list table thead tr th{
  text-align: left;
  font-size: 16px;
  padding: 10px 0px;
}

.c-games-list table thead tr th:first-child{
  width: 300px;
}

.c-games-list table thead tr th:last-child{
  width: 150px;
}

.c-games-list table tbody tr td:first-child p{
  width: 250px;
  height: auto;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.c-games-list table tbody tr td:nth-child(2) p{
  width: 400px;
  height: auto;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

#c-manage-g-levels .c-level-list table tbody tr td,
.c-games-list table tbody tr td{
  font-size: 16px;
  border-top: 1px solid #cccccc;
  padding: 5px 0px 5px 0px;
  text-align: left;
}

#c-manage-g-levels .c-level-list table tbody tr td:nth-child(2),
.c-games-list table tbody tr td:first-child{
  font-weight: 500;
}

.c-games-list table tbody tr td .game-active .glyphicon-ok{
  color: green;
  padding-left: 16px;
}

.c-games-list table tbody tr td .game-active .glyphicon-remove{
  color: red;
  padding-left: 16px;
}
/* Breadcrumb */
#breadcrumb-games ul{
  border-bottom: 1px solid #ccc;
  padding: 10px 20px;
}

#breadcrumb-games ul li{
  display: inline-block;
  font-size: 18px;
}

#breadcrumb-games ul li::after{
  content: ' > ';
}

#breadcrumb-games ul li:last-child::after{
  content: '';
}

#breadcrumb-games ul li:last-child{
  font-weight: 500;
}

#c-edit-game .c-back-games{
  display: flex;
  justify-content: flex-end;
  margin-top: -70px;
  margin-right: 20px;
}

#c-edit-game .c-back-games a{
  font-size: 20px;
}

#c-edit-game .c-back-games span{
  font-size: 16px;
  font-weight: bold;
}

#c-create-game form div.c-description,
#c-edit-game form div.c-description{
  display: flex;
  flex-direction: column;
}

#c-edit-game .edit-game-options .game-options-nav{
  display: flex;
  justify-content: space-evenly;
  font-size: 18px;
  padding: 10px 0px 20px 0px;
}

#c-edit-game .clone-section{
  border-top: 2px solid #ccc;
  margin: 20px 0px;
}

#c-create-game form div.c-description textarea,
#c-edit-game form div.c-description textarea{
  font-size: 16px;
  padding: 10px;
}

#c-edit-game form .preview-cover-image img{
  margin: 20px 0px;
  width: 20%;
}

/* Game Questions */

#c-game-questions .game-questions-actions{
  text-align: center;
}

#c-game-questions .game-question{
  padding: 30px 20px 0px 30px;
}

#c-game-questions .game-question .c-question-files-up{
  display: flex;
  width: 100%;
}

#c-game-questions .game-question .c-question-files-up div:first-child,
#c-game-questions .game-question .c-question-files-up div:last-child{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 50%;
}

#c-game-questions .game-question .c-question-files-up .question-audio audio{
  margin: 75px 0px 20px 0px;
}

#c-game-questions .game-question .c-question-files-up img{
  margin-bottom: 10px;
  height: 150px;
}

#c-game-questions .game-question .c-question-files-up .question-audio{
  margin-bottom: 10px;
}

#c-game-questions .game-question .question-file-options{
  display: flex;
  flex-direction: row !important;
}

#c-game-questions .game-question .question-file-options a:first-child{
  margin: 0px 10px 0px 0px;
}

#c-game-questions .questions a.editing{
  color: #d9534f;
  font-weight: bold;
}

#c-game-questions #game-question-content,
#c-game-questions #game-question-content input{
  font-size: 16px;
}

#c-game-questions .game-questions-header{
  display: flex;
  align-items: center;
  justify-content: center;
}

#c-game-questions .game-questions-header a{
  margin-top: 10px;
  margin-left: 20px;
}

#c-game-questions .game-question .c-title-time{
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  padding: 0;
  margin: 0;
}

#c-game-questions .game-question .c-title-time .form-group:first-child{
  padding: 0;
}

#c-game-questions .c-question-answers{
  border-top: 2px solid #ccc;
  border-bottom: 2px solid #ccc;
  margin: 20px 0px;
  padding: 10px 0px;
}

#c-game-questions .c-question-answers img{
  height: 150px;
}


#c-game-questions .c-question-answers input[type='radio']{
  cursor: pointer;
}

#c-game-questions .c-question-answers input[type='radio']:after {
  width: 20px;
  height: 20px;
  border-radius: 15px;
  top: -2px;
  left: -2px;
  position: relative;
  background-color: #cccccc;
  content: '';
  display: inline-block;
  visibility: visible;
  border: 1px solid white;
}

#c-game-questions .c-question-answers i.glyphicon-trash{
  color: #d9534f;
}

#c-game-questions .c-question-answers input[type='radio']:checked:after {
  width: 20px;
  height: 20px;
  border-radius: 15px;
  top: -2px;
  left: -2px;
  position: relative;
  background-color: #75D701;
  content: '';
  display: inline-block;
  visibility: visible;
  border: 1px solid white;
}

#c-game-questions .c-question-answers .question-answers{
  padding: 20px 0px;
}

#c-game-questions .c-question-answers .question-answers .answer .answer-info{
  display: flex;
  align-items: baseline;
}

#c-game-questions .c-question-answers .question-answers .answer .answer-info a{
  padding-left: 10px;
}

#c-game-questions .c-question-answers .question-answers .answer audio{
  margin-bottom: -20px;
  margin-left: 10px;
}

#c-game-questions input.question-time{
  width: 50px;
}

#c-game-questions .question-actions{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

#c-game-questions .question-actions a{
  padding: 8px 60px;
  width: 300px;
  margin-left: 20px;
}

/* Create/edit level */
#c-create-game-level .container, #c-edit-game-level .container{
  margin-top: 74px;
  padding: 0 38px 0 38px;
}

.level-name .alert, .edit-level-name .alert {
  margin-top: 20px;
}
.c-games-manage .subject-actions select{
  width: 35%;
  margin: 20px 0px 0px 0px;
}
.c-games-manage {
  text-align: center;
}
.games-level-table .order-level {
  background-color: #d9edf77d;
}

.games-level-table .order-level {
  cursor: move;
}

#c-manage-g-levels .c-level-list table tbody tr td {
  padding: 5px 0px 5px 10px;
}
.games-level-table tr.moved {
  background-color: #5cb85c42;
}

/* School games detail */

#school-game-school-detail{
  margin-top: 50px;
}

#schools-games-index table thead tr th,
#school-game-school-detail table thead tr th{
  text-transform: uppercase;
  color: #7f7c7c;
}

#schools-games-index table tr td:nth-child(2),
#school-game-school-detail table tr td{
  text-align: left;
}

#school-game-school-detail  table tbody tr td:nth-child(2),
#school-game-school-detail  table tbody tr td:nth-child(4){
  font-weight: 500;
  font-size: 16px;

}

#schools-games-index table tr td:nth-child(2),
#schools-games-index table tr td:nth-child(3){
  letter-spacing: 1.5px;
  font-size: 14px;
  font-weight: bold;
}

#school-game-school-detail table thead tr th:nth-child(4),
#school-game-school-detail  table tbody tr td:nth-child(4){
  text-align: center;
}

/* Clone game modal */
#clone-current-game .modal-body #clone-game-level{
  padding: 0px 0px 20px 10px
}

#clone-current-game .modal-body #clone-game-level{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 10px;
}

#clone-current-game .modal-body .c-game-level.selected-level{
  background-color:#75D701;
}

#clone-current-game .modal-body .c-game-level.selected-level span{
  font-weight: bold;
  color: #ffffff;
  border: 1px solid #73cd09;
}

#clone-current-game .modal-body .c-game-level{
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 5px 10px;
}

#clone-current-game .modal-body .c-game-level span{
  color: #333333;
  letter-spacing: 1px;
}

#clone-current-game .modal-body .c-game-level a:focus,
#clone-current-game .modal-body .c-game-level.selected-level a:focus,
#clone-current-game .modal-body .c-game-level a:hover,
#clone-current-game .modal-body .c-game-level.selected-level a:hover{
  text-decoration: none;
}

#clone-current-game .modal-body .game-clone-info{
  border: 2px solid #ccc;
  padding: 10px;
}

#clone-current-game .modal-body .game-clone-info p span{
  text-transform: capitalize;
}

/* Responsive */

@media (max-width: 1200px){
  #c-game-questions .game-question .c-question-files-up{
    flex-direction: column;
  }
}
