@import url("ember-modal-dialog/ember-modal-structure.css");
@import url("ember-modal-dialog/ember-modal-appearance.css");
@import url("math-spinner.css");
@import url("global-message.css");

#footer {
  background-color: #f2f2f2;
  color: #777;
  padding: 20px;
}

#loading-box {
  height: 30em;
  min-height: 30em;
  min-height: 100vh;
  display: flex;
  align-items: top;
  margin-top: 7em;
  justify-content: center;
}

input:required {
  border-color: #ccc !important;
  box-shadow: none !important;
}

.eq-lhs {
  text-align: right;
}

.logo {
  width: 300px;
  max-width: 100%;
  height: auto;
}

.logo-icon {
  margin-top: 8px;
}

/*
 * Show a tick in a BS 4 dropdown
 * left of the entry
 */
.dropdown-icon {
  display: inline-block;
  position: fixed;
  margin-left: -1.2em;
}

.text-box-unread {
  border-left: 5px solid red;
}

/*
 * Navbar toggle mechanism
 */

#navbar-menu {
  max-height: 0;
  transition: max-height 500ms ease-in-out;
}

input[type="checkbox"]:checked ~ #navbar-menu {
  max-height: 500px;
}

input[type="checkbox"].toggle-navbar-menu {
  transition: all 0.3s;
  box-sizing: border-box;
  display: none;
}

.toggle-navbar-menu {
  cursor: pointer;
}

/* Needed to display the little
 *  crosses on tags
 */
button.no-border {
  background: none;
  border: none;
  padding: 0 0 0 6px;
  border-color: #fff;
  outline: 0;
}

.clickable {
  cursor: pointer;
}

/* Filter */
option.tag {
  height: 4ex;
}

/* Sortable exercise list
 */
ul.sortable {
  list-style-type: none;
  padding: 0;
}

.controls {
  visibility: hidden;
  opacity: 0.5;
  position: fixed;
  overflow: hidden;
  text-align: center;
  z-index: 99999999;
  background-color: #777;
  color: #eee;
  width: 50px;
  height: 48px;
  line-height: 48px;
  right: 30px;
  bottom: 30px;
  padding-top: 2px;
  border-radius: 10px;
  transition: all 0.5s ease-in-out;
}

.controls:hover {
  background-color: #888;
}

.controls.show {
  visibility:visible;
  cursor:pointer;
}

.controls i.fa {
  line-height: inherit;
}

/* color-picker css */
div.color-box {
  display: inline-block;
  vertical-align: middle;
  margin-left: 5px;
  margin-right: 5px;
  outline: 0;
}

button.color-selection {
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  width: 26px;
  height: 34px;
  border: 1px solid #ccc;
  margin-left: 2px;
  margin-right: 2px;
  border-radius: 4px;
}

#user-list {
  min-height: 100px;
  max-height: 400px;
  overflow-y: scroll;
}

/* Class to show disabled links as text */
a.disabled {
  text-decoration: none;
  cursor: text;
}

.label a.disabled {
  color: #eee;
}

.label a {
  color: #bbf;
}

/* Listgroup border colors are broken
   in Bootstrap. The second item doesn't have
   a top border. So we need our own red list
   group item border
*/
.mtrx-red-border {
  border: 1px solid red !important;
}

/* Animation to replace spinner */
@keyframes pulse {
  0% {
    transform: scale(1, 1);
  }

  50% {
    transform: scale(1.5, 1.5);
  }

  100% {
    transform: scale(1, 1);
  }
}

#working {
  background: red;
  width: 20px;
  animation: pulse 1s linear infinite;
}

button.overlay {
  display: none;
}

div.editable-text-content {
  display: inline-block;
  position: relative;
}

div.editable-text-content:hover {
  border-style: dashed;
  border-color: #ccc;
  border-width: 3px;
}

/* Replace hover border with margin */
div.editableTextContent:not(:hover) {
  margin: 3px;
}

div.editableTextContent:hover button.overlay {
  //display: block;
  display: inline;
  top: 0;
  left: 0;
  position: absolute;
  background: rgba(255, 255, 255, 1);
}

div.scoreDisplay {
  display: inline-block;
  position: relative;
}

span.scoreSelection {
  display: none;
}

div.scoreDisplay:hover span.scoreSelection {
  display: inline;
  top: 100%;
  left: 0; 
  width: fit-content;
  block-size: fit-content;
  position: absolute;
  z-index: 500 !important;
}

@import "ember-power-select";

/* Class to collapse an element */
.collapsed {
  display: none;
}
