html, body {
  height: 100%;
  min-height: 800px;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

#guest_mode {
  position: fixed;
  bottom: 0px;
  text-align: center;
  font-size: 1rem;
  background: white;
  border: 1px solid black;
  padding: 3px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.toolbox_icon {
  width: 36px;
  height: 36px;
  position: absolute;
  pointer-events: initial;
  top: 5px;
  left: 5px;
  opacity: 0.25;
  z-index: 10000;
}

.toolbox_icon:hover {
  opacity: 1.0;
  color: red;
  cursor: pointer;
  -webkit-animation: rotating 2s linear infinite;
  -moz-animation: rotating 2s linear infinite;
  -ms-animation: rotating 2s linear infinite;
  -o-animation: rotating 2s linear infinite;
  animation: rotating 2s linear infinite;
}

.toolbox {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(0%, -50%);
  width: 500px;
  height: auto;
  border: 3px solid black;
  border-radius: 8px;
  z-index: 10000;
  background-color: honeydew;
  box-shadow: 5px 5px 5px 5px rgba(0, 0, 0, 0.5);
  padding: 5px;
  padding-bottom: 2rem;
}

.toolbox .small {
  font-size: 0.7rem;
}

.toolbox #expand_more_options {
  text-align: left;
  padding-right: 5px;
  margin-bottom: 5px;
}

.toolbox #expand_more_options:after {
  content: "\25B6";
  margin-left: 10px;
}

.toolbox #expand_more_options.expanded:after {
  content: "\25BC";
  margin-left: 10px;
}

.toolbox #textarea_employeelist {
  width: 480px;
  height: 200px;
  overflow-y: scroll;
}

.toolbox button {
  cursor: pointer;
}

.toolbox button:hover {
  background-color: #c8ffdc;
}

.toolbox #btn_download_spreadsheet {
  float: right;
  margin-right: 17px;
}

.toolbox #btn_closetoolbox {
  position: absolute;
  right: 5px;
  top: 5px;
}

.toolbox .btn_employeeaction {
  width: 15rem;
}

.toolbox #btn_removeemployee {
  opacity: 0.5;
  pointer-events: none;
}

.toolbox #btn_resetall {
  position: absolute;
  bottom: 5px;
  right: 5px;
  display: inline-block;
  width: 250px;
  overflow: hidden;
  padding: 4px;
  border-radius: 4px;
  background-color: red;
  color: white;
  font-weight: bold;
  border: 2px solid black;
}

.toolbox #btn_resetall:hover {
  background-color: yellow;
  color: black;
}

.toolbox #btn_resetall:hover:before {
  display: inline;
  content: "\26A0 ";
  font-size: 1.5rem;
  position: absolute;
  color: red;
  top: -6px;
  left: 5px;
}

.toolbox #btn_resetall:hover:after {
  display: inline;
  content: "\26A0 ";
  font-size: 1.5rem;
  position: absolute;
  color: red;
  top: -6px;
  right: 5px;
}

.toolbox #toolbox_employeename {
  padding: 5px;
}

.toolbox #btn_logout {
  position: absolute;
  bottom: 5px;
  left: 5px;
  display: inline-block;
  width: auto;
  padding: 4px;
  border-radius: 4px;
}

.toolbox .btn_adjustwinnings {
  width: 20rem;
}

.toolbox .btn_movement {
  width: 7rem;
  position: relative;
}

.toolbox .btn_movement .btn_icon {
  display: inline-block;
  position: absolute;
  left: 5px;
}

.login {
  width: 300px;
  height: 100px;
  z-index: 10000;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #00c828;
  padding: 10px;
  border: 2px solid black;
  border-radius: 8px;
}

.main {
  display: flex;
  position: relative;
  width: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}

.main .cell-left {
  box-sizing: border-box;
  display: inline-block;
  width: 30%;
  border: 2px solid #7dcf47;
  height: 100%;
  vertical-align: top;
  text-align: center;
}

.main .cell-left table {
  display: block;
  width: 100%;
  border-spacing: 0px;
  border-collapse: separate;
  margin-left: 0.25rem;
  position: relative;
}

.main .cell-left table th {
  position: sticky;
  top: 0;
  background-color: #386b17;
  text-align: center;
  padding: 0.51rem;
  width: auto;
}

.main .cell-left table .highlight {
  background-color: yellow;
}

.main .cell-left table .tablecell {
  text-align: right;
  width: auto;
  padding: 3px;
  border-left: 1px solid #7dcf47;
  border-right: 1px solid #7dcf47;
  border-top: 1px solid darkgreen;
  border-bottom: 1px solid darkgreen;
  margin: 0px;
}

.main .cell-left table .header {
  color: white;
  background-color: #006414;
  text-align: center;
}

.main .cell-left table .header .employeename, .main .cell-left table .header .employeetotalvalue {
  color: white;
}

.main .cell-left table .employeename {
  width: auto;
  color: #146414;
  font-weight: bold;
  text-align: right;
  padding: 0.5rem 1rem 0.5rem 0;
}

.main .cell-left table .employeelocation {
  text-align: center;
  width: auto;
}

.main .cell-left table .employeetickets {
  text-align: center;
  width: auto;
  min-width: 130px;
}

.main .cell-left table .employeemultiplier {
  text-align: center;
}

.main .cell-left table .employeespinvalue {
  text-align: center;
  width: auto;
}

.main .cell-left table .employeeprize {
  min-width: 140px;
}

.main .cell-left table .button-selectprize {
  display: inline-block;
  text-align: center;
  border: 1px solid darkblue;
  background-color: #c8e6ff;
  border-radius: 3px;
  padding: 4px;
  font-weight: bold;
  min-width: 100%;
  width: 100%;
  cursor: pointer;
}

.main .cell-left table .button-selectprize:hover {
  background-color: limegreen;
}

.main .cell-right {
  width: 70%;
  max-height: 90vh;
  height: 90vh;
}

.main .cell-right svg {
  max-height: 90%;
}

.main .footer {
  display: block;
  position: relative;
  z-index: 50;
  margin-top: -50px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 500px;
  text-align: center;
}

.main .footer .employeename {
  font-weight: bold;
  font-size: 1.5rem;
}

.main .footer .btn_spin {
  margin-left: auto;
  margin-right: auto;
  font-size: 1.5rem;
  cursor: pointer;
}

.prizes {
  height: 100px;
  width: 100vw;
  border: 1px solid black;
  box-sizing: border-box;
  position: absolute;
  bottom: 5px;
  left: 0px;
  vertical-align: top;
}

.prizes .prizebox {
  display: inline-block;
  width: 100px;
  height: 100px;
  margin-right: 5px;
  position: relative;
  top: -10px;
  text-align: center;
  font-size: 0.8rem;
}

.prizes .prizebox-number {
  text-align: center;
  width: 44px;
  background-color: #c1f398;
  border: 1px solid #146414;
  border-radius: 8px 8px 0 0;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.2rem;
}

.prizes .prizebox-image {
  height: 64px;
  width: 100px;
  background-repeat: no-repeat;
  background-size: contain;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #146414;
  background-color: #c1f398;
}

.prizes .prizebox-image img {
  height: 100%;
  width: auto;
  margin-left: auto;
  margin-right: auto;
}

.prizes .prizebox-name {
  height: 1rem;
  text-align: center;
  text-overflow: ellipsis;
  overflow: hidden;
  border: 1px solid #146414;
  background-color: #c1f398;
}

.hidden {
  display: none;
}

.prize {
  text-align: center;
  font-weight: bold;
  max-height: 2rem;
  overflow: hidden;
  background-color: #c8e6ff;
  padding: 5px;
}

/* ---- Begin BEM formatting CSS, stop being lazy, man! ---- */
.table__prizes {
  width: 600px;
  height: 98vh;
  overflow-y: scroll;
  border-collapse: collapse;
  /* Remove cell spacing */
}

.table__prizes--header {
  color: white;
}

.table__prizes__prizebox--name {
  width: 200px;
  min-width: 33%;
  border: 1px solid #c8c8c8;
}

.table__prizes__prizebox--image {
  border: 1px solid #c8c8c8;
  width: 200px;
  max-width: 200px;
  height: 100px;
  text-align: center;
  min-width: 33%;
}

.table__prizes__prizebox--image img {
  width: auto;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}

.table__prizes__prizebox--winner {
  min-width: 33%;
  width: 200px;
  border: 1px solid #c8c8c8;
}

/* Not BEM friendly since these are generated via javascript.  Perhaps later it can be cleaned up */
.table__employeenames {
  overflow-y: scroll;
  border-collapse: collapse;
  /* Remove cell spacing */
}

.table__employeenames .header {
  color: white;
  background-color: darkgreen;
}

.table__employeenames .table_row .tablecell {
  border: 1px solid black;
  padding: 3px;
}

.table__employeenames .table_row .employeename {
  width: 200px;
  min-width: 33%;
  text-align: right;
}

.table__employeenames .table_row .employeetickets {
  min-width: 33%;
  width: 80px;
  text-align: center;
}

.table__employeenames .table_row .employeeprize {
  display: none;
  min-width: 33%;
  width: 200px;
  text-align: center;
}

.buttons {
  border: 0px solid black;
  display: inline-block;
  min-width: 800px;
  padding: 4px;
  border-radius: 4px;
  position: absolute;
  bottom: 5px;
  right: 5px;
  background-color: rgba(0, 0, 0, 0.1);
  vertical-align: bottom;
}

.buttons button {
  vertical-align: bottom;
  height: 3rem;
  padding: 4px;
  margin-right: 15px;
}

.buttons button img {
  height: 100%;
  width: auto;
}

.prize-description {
  font-weight: bold;
  font-size: 1.2rem;
  background-color: black;
  padding: 5px;
  color: white;
  width: 100%;
}
