.tableFixHead {
  overflow-y: auto;
  height: 20px;
}
.tableFixHead thead th {
  position: sticky;
  top: 0;
}

.time-button:hover {
  background-color: rgb(241, 241, 241);
}

.time-button-x {
  color: rgb(240, 20, 20);
}

.time-button-x:hover {
  background-color: rgb(240, 20, 20);
  color: rgb(255, 255, 255);
}

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

.panel {
  box-sizing: border-box;
  margin-bottom: 0.5%;
  border: 1px solid #ccc;
}

.dropdownTitle {
  cursor: pointer;
  box-sizing: border-box;
  text-align: left;
  padding: 15px;
  width: 100%;
}

.panel-container {
  display: block;
  overflow: auto;
  height: 100%;
}

/* main panels */

#scramblePanel {
  display: none;
  position: absolute;
  bottom: 5px;
  right: 5px;
}

#optionsPanel * {
  max-height: 30px;
}

#displayPanel {
  height: 545px;
}

#times-container {
  height: 438px;
  overflow: auto;
}

#record-container {
  overflow: auto;
}

.table-sm td,
.table-sm table th,
.table-sm thead {
  padding: 0.2rem;
  font-size: 14px;
}

/* display panel */
#scramble {
  text-align: center;
  font-size: 32px;
}

#timerDisplay {
  text-align: center;
  font-size: 200px;
}

#timerInfo {
  text-align: center;
}

.times-label {
  cursor: pointer;
  box-sizing: border-box;
  text-align: left;
  padding: 15px;
  float: left;
  padding-bottom: 0px;
}

/* options panel ---------------------------------------------------------------------------------- */
#optionsWindow {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 2; /* Sit on top */
  width: 80%;
  height: 70%;
  margin-left: 0%;
  margin-top: 0px;

  background-color: #fbffff;
  border-radius: 5px;
}

#optionsDisplay {
  float: left;
  width: 100%;
  height: 100%;
  padding: 20px;

  overflow: auto; /* Enable scroll if needed */
}

#optionElements {
  width: 40%;
}

#buttonNewSession {
  min-width: 150px;

  line-height: 15px;
}

#cube_type_select {
  width: calc(100% - 200px);
}

.cube_selection {
  width: calc(100% - 60px);
  float: left;
  padding: 10px;
}

.options-row {
  float: left;
  width: 100%;
  padding-top: 10px;
  line-height: 30px;
}

.options-description {
  float: left;
  width: 200px;
  text-align: left;
}

.options-attr {
  float: left;
  width: calc(100% - 200px);
  text-align: left;
}

.options1 {
  float: left;
  width: 100%;
  height: 30px;
}

#checkboxScramblePreview {
  float: left;
  width: 30px;
}

.checkboxText {
  float: left;
  height: 30px;
  line-height: 30px;
}

.options4 {
  float: left;
  width: 25%;
  height: 30px;
}

.optionsRadio {
  float: left;
  height: 30px;
  line-height: 30px;
}

.optionsRadioText {
  float: left;
  width: calc(100% - 80px);
  height: 30px;
  line-height: 30px;
}

/* mobile timer ---------------------------------------------------------------------------------------- */
.timer-nav {
  display: none;
  width: 100%;
  height: auto;
  position: fixed;
  bottom: 0px;
  padding: 0px;

  font-size: 16px;
  color: white;
  box-shadow: 0 4px 0 5px rgba(0, 0, 0, 0.2), 0 4px 0 5px rgba(0, 0, 0, 0.2);
  background-color: #151d28;
}

.timer-nav-element {
  float: left;
  width: 33.33%;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border: 1px #151d2f solid;
}

.timer-nav-element:hover {
  background-color: #4db8ff;
}

.timer-mobile-annotation {
  display: none;
  position: fixed;
  right: 0px;
  font-size: 14px;
}

/* quick ----- */
#timer-quick-buttons {
  display: none;
  position: fixed;
  bottom: 60px;
  left: calc(100% / 2 - 67.5px);
}

.quick-button {
  float: left;
  width: 45px;

  text-align: center;

  padding: 5px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
}

.quick-button:hover {
  cursor: pointer;
  background-color: #123;
}

#quick-delete {
  color: #ff471a;
}

#quick-delete:hover {
  cursor: pointer;
  color: white;
  background-color: #ff471a;
}

#stackmat-img {
  display: none;
  position: relative;
  top: -30px;
  left: 75px;
  width: 64px;
}

#timerDisplayType {
  display: none;
  width: 100%;
  text-align: center;
}

#buttonOptions {
  float: right;
  width: 30px !important;
  height: 30px !important;
  padding: 0px;
}

#buttonOptions img {
  width: 20px !important;
  height: 20px !important;
  margin: 2px !important;
  padding: 0px !important;
}

/* mobile ---------------------------------------------------------------------------------------- */
@media only screen and (max-width: 992px) {
  #recordsPanel {
    width: 100%;
    padding-right: 20px;
    padding-left: 10px;
  }

  #record_times_container {
    width: 100%;
  }

  #timesPanel {
    width: 100%;
    padding-right: 40px;
    padding-left: 10px;
    padding-top: 20px !important;
  }

  .main-content {
    width: 100%;
    margin-top: 80px;
  }

  .warning {
    position: fixed;
    top: 105px;
    height: 30px;
    width: calc(100% - 20px);
    margin-left: 10px;
    margin-right: 10px;
    line-height: 30px;
  }

  #footer {
    display: none;
  }

  #scramble {
    font-size: 12px;
  }

  #timerDisplay {
    font-size: 90px;
  }

  #displayPanel {
    width: calc(100% - 30px);
    position: fixed;
    top: 140px;
    left: 15px;
    height: calc(100vh - 160px);
    border: none;
  }

  #timesPanel {
    display: none;
    position: fixed;
    top: 60px;
    bottom: 50px;
    width: 100%;

    border: none;
    padding-top: 0px;
    margin-top: 0px;
  }

  #times-container {
    height: calc(100vh - 205px);
    font-size: 12px;
    overflow: auto;
  }

  #timerPanelTitle {
    display: none;
  }

  #optionsWindow {
    display: none;
    width: 90%;
    margin-left: 5%;
  }

  .options-description {
    width: 100%;
  }

  .options-attr {
    width: 100%;
  }

  .timer-nav {
    display: block;
  }

  .timer-mobile-annotation {
    display: block;
  }

  #timer-quick-buttons {
    display: block;
  }

  #timerInfo {
    display: none;
  }

  #scrambleWindow {
    width: 90%;
    margin-left: 5%;
  }

  #optionElements {
    width: 100%;
  }

  #optionsPanel {
    border: none;
    margin-left: 20px;
    margin-right: 20px;
  }

  #optionsTitle {
    display: none;
  }
}
