html {
  overflow-y: auto;
  overflow-x: hidden;/**/
}
.translate-left {
  transform: translateX(-100vw) !important;
}
.translate-right {
  transform: translateX(100vw) !important;
}















#underline {
  background-color: rgb(0, 200, 230);
  height: 0px;
  display: block;
  position: absolute;
  left: 0;
  height: 2px;
  display: block;
}
#toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  z-index: 50;
  width: 100%;
}
#toggle {
  position: relative;
}
#toggle div {
  display: inline;
}
.trashed-case .td {
  background-color: rgb(255, 80, 80);
}








@media screen and (min-width: 900px) {
  .intro {
    text-align: center;
    width: 100%;
  }
  .intro h1 {
    padding: 0;
    margin: 0;
    font-size: 2em;
  }
  .intro p {
    margin: 0 10% 1em 10%;
  }
}
@media screen and (max-width: 900px) {
  .intro {
    text-align: center;
    width: 100%;
  }
  .intro h1 {
    padding: 0;
    margin: 0;
    font-size: 1.5em;
  }
  .intro p {
    margin: 0 0.5em;
  }
}

a, a:link, a:visited {
  text-decoration: none;
  color: rgb(0, 121, 190);
}
a:hover {
  color: rgb(0, 161, 220);
}

#organizer ul, #trainer ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.timerReady {
  color: rgb(0, 240, 0);
}
.timerRunning {
  color: rgb(0, 0, 0);
}
#toggle {
  font-size: 1.2em;
}























#organizer-trainer-container {
  display: flex;
  width: 200%;
  justify-content: flex-start;
}
#organizer, #trainer {
  text-align: center;
  width: 100%;
  flex: 1 0 50%;
}
#trainer {
  height: calc(100vh - 54px - 40px - 2px);
}
#organizer-trainer-container, #organizer, #trainer {
  transition: all 200ms ease;
}
.dashButtons {
  transition: all 200ms ease;)
}
#organizer-trainer-container.show-trainer {
  transform: translateX(-50%);
}
#organizer.show-trainer > * {
  display: none;
}













.editButton-container {
  position: absolute;
  top: 0;
  left: 0;
}
.editButton {
  height: 30px;
  width: 30px;
}
.sortArrow {
  height: 13px;
  width: 13px;
  margin-left: 0.2em;
}


@media screen and (max-width: 900px) {
  .main-algTable-container {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-shrink: 0;
  }
  .main-algTable {
    text-align: center;
    width: 100%;
    max-width: 800px;
  }
  .thead {
    display: none;
  }
  .tr .desktop {
    display: none;
  }
  .tbody {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    box-sizing: border-box;
    padding: 0 4px;
    align-items: center;
    min-width: 280px;
  }
  .tr {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 2px solid black;
    border-radius: 6px;
    margin: 10px 0;
  }
  .tdgroup-top {
    display: flex;
    width: 100%;
  }
  .tdgroup-left {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: stretch;
  }
  .tdgroup-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .tdgroup-bottom {
    display: flex;
    flex-direction: row;
  }
  .td.group .mobile-heading, .td.alg .mobile-heading {
    display: block;
    width: 100%;
    margin-bottom: 0.2em;
    font-weight: bold;
  }
  .td.best .mobile-heading, .td.avg .mobile-heading {
    font-weight: bold;
  }
  .td.img .mobile-heading {
    display: none;
  }
  .td {
    border: 1px solid black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    padding: 0.2em 0.5em;
    position: relative;
  }
  .td-text {
    font-size: 0.85em;
    display: flex;
    align-content: center;
    justify-content: center;
    flex-direction: column;
  }
  .img .td-text {
    width: 100%;
    height: 100%;
  }
  .td-text .img-container {
    width: 100%;
    height: 100%;
  }
  .mobile-heading {
    display: block;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.85em;
  }
  .td.best, .td.avg {
    flex-direction: row;
    justify-content: space-evenly;
  }
  .td.name {
    height: 50px;
    width: 100px;
  }
  .td.group {
    height: 50px;
  }
  .td.group .td-text {
    font-size: 0.9em;
    height: 50px;
  }
  .td.alg {
    height: 100px;
    width: 100%;
  }
  .td.alg .td-text {
    font-size: 1em;
  }
  .td.avg, .td.best {
    flex-grow: 1;
  }
  .td.img {
    width: 100px;
    height: 100px;
    padding: 0;
  }
  .td.img img {
    width: 100%;
    height: 100%;
  }
  .twoImages .td.img, .twoImages .td.alg {
    height: 200px;
  }
  .twoImages .td.img img {
    width: 100%;
    height: 50%;
  }
}

@media screen and (min-width: 900px) {
  #organizer {
    padding: 0 47px 50px 47px;
    box-sizing: border-box;
  }
  .mobile-heading {
    display: none;
  }
  .main-algTable-container {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-shrink: 0;
  }
  .main-algTable {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .thead {
    font-weight: bold;
    display: flex;
    text-transform: uppercase;
  }
  .tbody {
    display: flex;
    justify-content: center;
    flex-direction: column;
  }
  .tr {
    display: flex;
  }
  .tdgroup {
    display: flex;

  }
  .td, .th {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-top: 2px solid black;
    border-right: 2px solid black;
  }
  .tbody .tr:last-of-type .td {
    border-bottom: 2px solid black;
  }
  .tr .mobile .name {
    display: none;
  }
  .name, .th.name {
    width: 80px;
    min-width: 80px;
    order: 1;
    border-left: 2px solid black;
  }
  .td-text {
    display: flex;
    align-content: center;
    justify-content: center;
    flex-direction: column;
  }
  .img .td-text {
    width: 100%;
    height: 100%;
  }
  .td-text .img-container {
    width: 100%;
    height: 100%;
  }
  .td.img, .th.img {
    width: 100px;
    order: 2;
  }
  .td.alg, .th.alg {
    width: 360px;
    min-width: 360px;
    order: 3;
  }
  .td.group, .th.group {
    width: 130px;
    min-width: 130px;
    order: 4;
  }
  .td.best, .th.best {
    width: 65px;
    min-width: 65px;
    order: 5;
  }
  .td.avg, .th.avg {
    width: 65px;
    min-width: 65px;
    order: 6;
  }

  .td.img {
    height: 100px;
    width: 100px;
  }
  .td.img img {
    width: 100%;
    height: 100%;
  }
  .twoImages .td.img, .twoImages .th.img {
    width: 200px;
  }
  .twoImages .td.img img {
    width: 50%;
    height: 100%;
  }
}




























#editalg {
  position: fixed;
  list-style-type: none;
  text-align: center;
  max-height: calc(100% - 4em);
  top: 2em;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  background-color: white;
  border: 2px solid black;
  overflow-y: auto;
  padding: 1.5em;
  box-sizing: border-box;
  width: 30em;
  max-width: calc(100% - 4em);
}
#editalg-image img {
  width: 100px;
  height: 100px;
}
#editalg-header {
  font-weight: bold;
  font-size: 1.8em;
}
#editalg-text {
  font-weight: bold;
  font-size: 1.5em;
  margin: 0 0 2% 0;
}
#editalg-list {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  list-style-type: none;
  padding: 0;
  width: 100%;
}
#editalg-list li {
  display: block;
  border: 2px solid black;
  text-align: center;
  background-color: white;
  margin: 2px;
  padding: 0.1em 1em 0.1em 1em;
}
#editalg-list li, #editalg-list li input {
  font-size: 1em;
  font-family: inherit;
  text-align: center;
}
#editalg-list li input {
  border: 0;
  background-color: inherit;
  height: calc(100% - 4px);
  width: calc(100% - 4px);
}
#editalg-list li input {
  color: rgb(100, 100, 100);
}
#editalg-list li input:focus {
  color: black;
}
#editalg-submit {
  text-decoration: underline;
  font-weight: bold;
}
#editalg-submit span {
  margin: 2em 0.5em 1.5em 0.5em;
}
#editalg-list input#custom {
  width: 100%;
  text-align: center;
  border: 0;
}


























.options {
  justify-content: center;
  display: flex;
  position: fixed;
  list-style: none;
  text-align: left;
  top: 40px;
  right: 25px;
  left: 25px;
  max-height: calc(100% - 80px);
  margin: 0;
  box-sizing: border-box;
}
.options-inner-wrapper {
  flex-shrink: 1;
  background-color: white;
  border: 2px solid black;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.options .youtube-video-wrapper {
  width: 400px;
  max-width: 100%;
  margin: 0;
}
.options h1 {
  margin: 0 0 5px 0;
  padding: 0;
  font-size: 1.5em;
}
.options h2 {
  margin: 0 0 5px 0;
  padding: 0;
  font-size: 1.3em;
}
.options p {
  margin: 5px 0;
  padding: 0;
  font-size: 0.9em;
}
.options p.small {
  font-size: 0.8em;
}
.submit-container {
  text-decoration: underline;
  font-weight: bold;
  margin: 0.2em;
  display: flex;
  justify-content: center;
}
.submit-container span {
  margin: 0 0.5em 0 0.5em;
}

#trashTable {
  text-align: center;
}
@media screen and (max-width: 900px) {
  #trashTable .td.name {
    width: 80px;
  }
  #trashTable .td.img {
    height: 80px;
    width: 80px;
  }
  #trashTable .td.alg {
    height: 80px;
  }
  .twoImages #trashTable .td.img {
    height: 160px;
    width: 80px;
  }
  .twoImages #trashTable .td.alg {
    height: 160px;
  }
  .options-inner-wrapper {
    padding: 10px;
  }
}
















@media screen and (min-width: 900px) {
  .dashButtons {
    margin: 0;
    padding: 0;
    position: fixed;
    display: flex;
    flex-direction: column;
    z-index: 100;
    left: 0;
    top: 54px;
  }
  .dashButtons.organizer.show-trainer {
    left: -100%;
  }
  .dashButtons.trainer {
    left: 100%;
  }
  .dashButtons.trainer.show-trainer {
    left: 0;
  }
  .dashButtons div {
    background-size: cover;
    margin: 3px;
    margin-right: 0;
    width: 40px;
    height: 40px;
  }
  .dashButtons div:hover {
    opacity: 0.7;
  }
  .dashButtons div[name=settings] {
    background-image: url("/images/icons/gear_black.png");
  }
  .dashButtons div[name=trash] {
    background-image: url("/images/icons/trash_black.png");
  }
  .dashButtons div[name=help] {
    background-image: url("/images/icons/question_black.png");
  }
  .dashButtons div[name=hotkeys] {
    background-image: url("/images/icons/key_black.png");
  }
}



@media screen and (max-width: 900px) {
  .dashButtons {
    margin: 0;
    padding: 0;
    position: fixed;
    display: flex;
    z-index: 200;
    top: 0;
    left: 50%;
    height: 54px;
    align-items: center;
    transform: translateX(-50%);
  }
  .dashButtons.organizer.show-trainer {
    left: -50%;
  }
  .dashButtons.trainer {
    left: 150%;
  }
  .dashButtons.trainer.show-trainer {
    left: 50%;
  }
  .dashButtons div[name=settings] {
    background-image: url("/images/icons/gear_white.png");
  }
  .dashButtons div[name=trash] {
    background-image: url("/images/icons/trash_white.png");
  }
  .dashButtons div[name=help] {
    background-image: url("/images/icons/question_white.png");
  }
  .dashButtons div[name=hotkeys] {
    background-image: url("/images/icons/key_white.png");
  }
  .dashButtons div {
    background-size: cover;
    margin: 0 10px;
    margin-right: 0;
    width: 34px;
    height: 34px;
    opacity: 0.95;
  }
  .dashButtons div:hover {
    opacity: 1;
  }
}




















@media screen and (max-width: 900px) {
}























#timermisc {
  padding: 15px 5px;
  font-size: 1.1em;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
#timermisc > div {
  display: flex;
  justify-content: center;
}
#timermisc h1 {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0;
  padding: 0;
}
#timermisc h2 {
  margin: 0;
  padding: 0;
}
#timermisc h3 {
  font-size: 1em;
  font-weight: normal;
  margin: 0;
  padding: 0;
}
#timermisc h4 {
  font-size: 0.9em;
  font-weight: normal;
  margin: 0;
  padding: 0;
}
#timermisc h5 {
  font-size: 0.8em;
  font-weight: normal;
  margin: 0;
  padding: 0;
}
#resetTimesButton {
  width: 20px;
  height: 20px;
}
#deleteTimeButton {
  width: 30px;
  height: 30px;
}
#timermisc .misc-image img {
  width: 150px;
  height: 150px;
}
.twoImages #timermisc .misc-image img {
  width: 110px;
  height: 110px;
}

@media screen and (max-width: 900px) {
  #timermisc {
    flex-grow: 1;
    height: 0;
    overflow-y: auto;
  }
}
@media screen and (min-width: 900px) {
  #timermisc {
    width: 250px;
  }
}






















#timeslist .time.selected-time {
  background-color: rgb(0, 255, 0);
}

@media screen and (max-width: 900px) {
  #timer-container {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  #timer-container > * {
    border-left: 2px solid black;
    border-right: 2px solid black;
  }
  #timer-container > div:not(#timer-bottom-container), #timer-bottom-container > div {
    border-top: 2px solid black;
  }
  #timer-bottom-container {
    border-bottom: 2px solid black;
  }
  #scramble-container {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .scrambleButton {
    height: 60px;
    width: 30px;
    margin: 0 5px;
  }
  .scrambleButton-disabled {
    opacity: 0.3;
  }
  #scramble-text {
    flex-grow: 1;
    font-size: 1.2em;
  }

  #timer-bottom-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  #timer-bottom-left-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  #trainer-description {
    border-bottom: 2px solid black;
  }
  #trainer-description a {
    color: black;
    text-decoration: underline;
    display: block;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 35px;
  }
  #special-alg {
    display: flex;
    justify-content: center;
    flex-direction: column;
  }
  #special-alg:empty {
    display: none;
  }
  #time-container {
    font-size: 4em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-weight: bold;
    flex-grow: 1;
  }


  #timeslist-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  #timeslist {
    display: flex;
    justify-content: center;
    align-content: flex-start;
    flex-wrap: wrap;
    height: 0;
    flex-grow: 1;
    overflow-y: scroll;
  }
  #timeslist .time {
    width: 60px;
    height: 30px;
    margin: 3px;
    background: rgba(0, 0, 0, 0.1);
    font-size: 0.9em;
    border-radius: 6px;/**/
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  #quick-stats {
    display: flex;
    align-items: center;
    padding: 5px;
  }
  #quick-stats .stats-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
  }
  #quick-stats .stat {
    font-size: 0.8em;
    margin: 0 5px;
  }
  #quick-stats .stat:empty {
    display: none;
  }
  #quick-stats .stat .stat-title {
    font-weight: bold;
  }
  #mobile-shortcuts {
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
  #mobile-shortcuts img {
    width: 50px;
    height: 50px;
    margin: 5px;
  }
  #mobile-shortcuts img:hover {
    opacity: 0.7;
  }
}






@media screen and (min-width: 900px) {
  #trainer {
    padding: 50px;
    padding-top: 0;
    box-sizing: border-box;
  }
  #timer-container {
    height: 100%;
    min-height: 350px;
  }
  #timer-container {
    display: flex;
    flex-direction: column;
    border: 2px solid black;
  }
  #scramble-container {
    display: flex;
  }
  #scramble-text {
    font-size: 1.6em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
  }
  .scrambleButton {
    height: 46px;
    width: 23px;
    margin: 3px;
  }
  .scrambleButton-disabled {
    opacity: 0.3;
  }
  #timer-bottom-container {
    flex-grow: 1;
    display: flex;
    align-items: stretch;
    border-top: 2px solid black;
  }
  #timer-bottom-left-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-right: 2px solid black;
  }
  #time-container {
    font-size: 5.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-weight: bold;
    flex-grow: 1;
  }
  #trainer-description, #special-alg {
    height: 50px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    font-size: 1.1em;
  }
  #trainer-description {
    font-weight: bold;
  }
  #timeslist-container {
    width: 300px;
    height: auto;
    display: flex;
    flex-direction: column;
    border-right: 2px solid black;
  }
  #timeslist {
    display: flex;
    justify-content: center;
    align-content: flex-start;
    flex-wrap: wrap;
    flex-grow: 1;
    height: 0;
    overflow-y: scroll;
    padding-bottom: 5px;
  }
  #timeslist .time {
    width: 60px;
    height: 30px;
    margin: 3px;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 0.9em;
    border-radius: 6px;/**/
  }
}

















@media screen and (min-width: 900px) {
  #hotkeys-table {
    text-align: left;
    border-collapse: collapse;
    width: 30em;
  }
  #hotkeys-table td {
    text-align: left;
    border: 2px solid black;
    padding: 0.3em;
  }
  #hotkeys-table tr td:first-of-type {
    font-weight: bold;
  }
}

@media screen and (max-width: 900px) {
  #hotkeys-table {
    display: flex;
    flex-direction: column;
    text-align: left;
  }
  #hotkeys-table tr {
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
  }
  #hotkeys-table td {
    display: flex;
    text-align: left;
  }
  #hotkeys-table td.key {
    padding: 5px 5px 0 5px;
  }
  #hotkeys-table td.value {
    padding: 0 5px 5px 5px;
  }
  #hotkeys-table tr td:first-of-type {
    font-weight: bold;
  }
}






















#statsTable {
  border: 0;
  margin-top: 0.3em;
}
#statsTable td {
  border: 0;
  padding: 1px 0.5em 1px 0.5em;
}
#statsTable tr td:first-of-type {
  font-weight: bold;
}
#statsTable th {
  font-weight: bold;
}













































.select-cases-table {
  text-align: left;
  border-collapse: collapse;
  width: 30em;
}
.select-cases-table ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.select-cases-table td {
  text-align: left;
  vertical-align: top;
}
.select-cases-table td.left {
  border-right: 2px solid black;
  padding-right: 1em;
  box-sizing: border-box;
}
.select-cases-table td.right {
  padding-left: 1em;
  width: 15em;
}
.select-cases-table td.report {
  padding-left: 1em;
  vertical-align: bottom;
}
.select-cases-table td.right div {
  display: none;
}
.select-cases-table p {
  font-size: 0.8em;
  margin-top: 1em;
}
.select-cases-table p.allornone {
  font-weight: bold;
}
