.input_text {
  position: relative;
  width: 200px;
  height: 36px;
  padding: 6px;
  color: var(--grey-dark);
  background: var(--white);
  border: none;
  box-shadow: inset 0 -0.2px 0.8px rgba(0, 0, 0, 0.6);
  font-size: 12pt;
}
.input_text.first {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
.input_text.last {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}
.input_text.small {
  width: 64px;
  height: 24px;
  text-align: right;
}
.input_text.large {
  width: 400px;
  height: 78px;
}
.input_text.transparent {
  background: none;
  box-shadow: none;
}

.error {
  height: 32px;
  position: relative;
  color: var(--red);
  font-size: 10pt;
  font-weight: bold;
}
.error.success {
  color: var(--green);
}

.tabs {
  display: grid;
  justify-items: center;
  text-align: center;
}

.tabs-content {
  width: 100%;
}
.tabs-content > div {
  padding: 8px;
  border-radius: 4px;
}
.tabs-content .hidden {
  display: none !important;
}

.tab-button {
  float: left;
  color: black;
  padding: 8px 12px;
  border: 0px;
  background: var(--primary-color);
  box-shadow: 0 0.4px 2px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: background-color 0.3s;
}
.tab-button:hover {
  background-color: var(--primary-color-dark);
}
.tab-button:active {
  background-color: var(--primary-color-light);
}
.tab-button.selected {
  background-color: var(--back-color-active);
  box-shadow: inset 0 0.4px 2px rgba(0, 0, 0, 0.6);
  cursor: auto;
}
.tab-button.first {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.tab-button.last {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}
.tab-button .material-icons {
  font-size: 16px;
  font-weight: bold;
  vertical-align: text-bottom;
}

.stepper-container {
  margin: auto;
  display: flex;
}
.stepper-container.h {
  flex-direction: row;
}
.stepper-container.h .stepper {
  flex-direction: column;
  width: 200px;
}
.stepper-container.h .stepper .line {
  top: 8px;
  left: 18px;
  border-top: 3px solid gray;
}
.stepper-container.h .s-stepper {
  width: 100%;
  left: 50%;
}
.stepper-container.h .content {
  text-align: center;
  margin: auto;
}
.stepper-container.v {
  flex-direction: column;
}
.stepper-container.v .stepper {
  flex-direction: row;
}
.stepper-container.v .stepper .line {
  top: 18px;
  left: 8px;
  border-left: 3px solid gray;
}
.stepper-container.v .s-stepper {
  height: 100%;
}
.stepper-container.v .content {
  margin-left: 20px;
}
.stepper-container .s-stepper {
  position: relative;
}
.stepper-container .stepper {
  padding: 10px;
  display: flex;
  justify-items: flex-start;
  align-items: flex-start;
}
.stepper-container .stepper .circle {
  background-color: white;
  border: 2px solid gray;
  border-radius: 100%;
  width: 14px;
  height: 14px;
  display: inline-block;
  font-size: 12px;
  text-align: center;
  line-height: 14px;
  font-weight: bold;
  color: black;
}
.stepper-container .stepper .line {
  height: 100%;
  width: 100%;
  position: absolute;
}
.stepper-container .stepper .content {
  display: inline-block;
}
.stepper-container .stepper.active .circle {
  border-color: var(--primary-color-dark);
}
.stepper-container .stepper.active .line {
  border-color: var(--primary-color-dark);
}
.stepper-container .stepper.completed .circle {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}
.stepper-container .stepper.completed .line {
  border-color: var(--primary-color);
}
.stepper-container .stepper:last-child .line {
  border: none;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}
form button {
  margin-top: 6px;
}
form .line {
  display: flex;
  align-items: center;
}
form .line button {
  margin: 0px 6px;
}

.header {
  position: relative;
  width: 100%;
  margin: 6px 0px 8px 0px;
}
.header::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: -4px;
  border-bottom: 1.8px solid var(--primary-color);
}

.input_button {
  color: white;
  padding: 12px 24px;
  background: var(--primary-color);
  border-radius: 2px;
  border: 0px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s;
}
.input_button:hover {
  background-color: var(--primary-color-dark);
}
.input_button:active {
  background-color: var(--primary-color-light);
}
.input_button.small {
  padding: 6px 12px;
}
.input_button.transparent {
  color: var(--primary-color);
  background: var(--white-transparent);
  border: 2px solid var(--primary-color);
  border-radius: 4px;
}
.input_button.transparent.small {
  padding: 4px 10px;
}
.input_button.transparent:hover {
  border: 2px solid var(--primary-color-dark);
  background-color: var(--primary-color-dark);
}
.input_button.icon {
  padding: 4px;
  border-radius: 12px;
  background: none;
  box-shadow: none;
}
.input_button.icon:hover {
  padding: 2px;
}
.input_button.icon:hover img {
  height: 24px;
  width: 24px;
}
.input_button.icon img {
  height: 20px;
  width: 20px;
}
.input_button.fixed {
  position: fixed;
}
.input_button.fixed.right {
  right: 60px;
}
.input_button.fixed.left {
  left: 60px;
}
.input_button.fixed.top {
  top: 40px;
}
.input_button.fixed.bottom {
  bottom: 40px;
}

.tooltip {
  visibility: hidden;
  width: 120px;
  background-color: var(--white);
  color: var(--grey-dark);
  text-align: center;
  white-space: normal;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: calc(100% + 10px);
  left: 50%;
  margin-left: -60px;
  box-shadow: 0px 1px 1.6px var(--grey-dark-transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip.small {
  font-size: 10pt;
}

.tooltip.dark {
  background-color: var(--grey-dark);
  color: var(--white);
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--white) transparent transparent transparent;
}

.tooltip.dark::after {
  border-color: var(--grey-dark) transparent transparent transparent;
}

.element:hover .tooltip, td:hover .tooltip, a:hover .tooltip, .canvas-parent:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.element .tooltip:hover, td .tooltip:hover, a .tooltip:hover, .element.hidden .tooltip {
  visibility: hidden;
  opacity: 0;
}

.material-icons {
  font-family: "Material Icons";
  vertical-align: text-bottom;
  text-decoration: none;
  font-size: inherit !important;
  cursor: pointer;
}
.material-icons:hover {
  text-shadow: 0 0.2px 1.4px rgba(0, 0, 0, 0.6);
}
.material-icons.button {
  color: var(--primary-color);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  user-select: none;
  transition: color 0.3s;
}
.material-icons.button:hover {
  color: var(--primary-color-dark);
}
.material-icons.button:active {
  color: var(--primary-color-light);
}
.material-icons.md-14 {
  font-size: 14px !important;
}
.material-icons.md-18 {
  font-size: 18px !important;
}
.material-icons.md-24 {
  font-size: 24px !important;
}
.material-icons.md-36 {
  font-size: 36px !important;
}
.material-icons.md-48 {
  font-size: 48px !important;
}
.material-icons.disabled {
  color: #bdbdbd;
  cursor: default;
}
.material-icons.disabled:hover {
  text-shadow: none;
}

.card {
  width: 260px;
  margin: auto;
  padding: 4px;
  border-radius: 2px;
  font-weight: bold;
  box-shadow: 0px 1.8px 3px var(--grey-dark-transparent);
  font-size: 15pt;
  text-align: center;
  background: var(--white);
  color: var(--primary-color);
}
.card.color {
  background: var(--primary-color);
  color: var(--white);
}

pre {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 400px;
  padding: 4px;
  background: var(--grey-dark);
  border-radius: 4px;
  box-shadow: 0px 1.8px 3px var(--grey-dark-transparent);
}
pre .success {
  color: var(--green);
}
pre .failure {
  color: var(--red);
}

.message {
  width: 360px;
  margin: 100px auto 0px;
  padding: 32px 24px 16px;
  border-radius: 4px;
  background: var(--back-color-dark);
  box-shadow: 0px 3px 9px var(--back-color-dark);
}
.message h2 {
  color: var(--orange);
  font-weight: bold;
  font-size: 16px;
  margin: 0 0 8px;
}
.message h1 {
  font-size: 22px;
}
.message p {
  line-height: 140%;
  margin: 16px 0;
  font-size: 14px;
}

@font-face {
  font-family: "CaviarDreams";
  src: url("../font/CaviarDreams.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
.login {
  position: fixed;
  display: flex;
  flex-direction: column;
  width: 840px;
  height: 500px;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}
.login .input_text {
  width: 400px;
  height: 80px;
  font-size: 44pt;
}
.login .input_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 60px;
  background: center/contain no-repeat url(../img/option-bg.png);
}
.login .input_list .input_option {
  height: 190px;
  margin: 10px;
  padding: 4px;
  display: flex;
  flex-direction: column-reverse;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
.login .input_list .input_option:hover, .login .input_list .input_option.selected {
  height: 186px;
  border: 2px solid var(--white);
  box-shadow: inset 0px 0px 120px -60px var(--white);
}

#auth {
  position: fixed;
  top: 10px;
  left: 10px;
}
#auth #auth-content {
  background: var(--grey-dark-transparent);
  padding: 4px;
  border-radius: 4px;
  text-align: center;
}

#lang {
  position: fixed;
  top: 10px;
  right: 10px;
}

#lang-button {
  width: 36px;
  height: 36px;
  background: center/contain no-repeat url(../img/lang_en.svg);
  cursor: pointer;
  transition: background 0.5s, transform 0.15s;
}

#lang-button:hover {
  transform: scale(1.1);
}

#lang-button:active {
  transform: scale(0.9);
}

.copyright {
  position: fixed;
  left: 0;
  bottom: 0;
  margin: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.copyright :first-child {
  height: 90px;
}

.copyright :last-child {
  max-width: 500px;
  margin-left: 20px;
  font-size: 11pt;
  font-weight: bold;
}

#admin-view {
  margin: 32px;
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  gap: 20px;
}
#admin-view > div:nth-child(2) {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
#admin-view #gameID {
  grid-column: 2/4;
  grid-row: 1;
}
#admin-view #cost {
  color: var(--grey-dark);
  grid-column: 2/4;
  grid-row: 3;
}

.ui {
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tabs-container {
  width: 360px;
  margin: auto;
  padding: 8px;
  border-radius: 4px;
  background: var(--back-color-dark);
  box-shadow: 0px 3px 9px var(--back-color-dark);
  transition: height;
  transition-delay: 0ms;
  transition-duration: 540ms;
  overflow: hidden;
}

#board {
  position: fixed;
  top: 100px;
  bottom: 0;
  right: 0;
  left: 0;
  width: 1228px;
  height: 520px;
  margin: auto;
  display: grid;
  grid-template-columns: 240px 204px 50px 240px 50px 204px 240px;
  grid-template-rows: 260px 260px;
  transition: filter 0.4s;
}

#stock tbody tr td:last-child {
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 44px;
}

#couts tbody tr td:last-child {
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 74px;
}

#board #main {
  grid-column: 3/6;
  grid-row: 1/3;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: url(../img/warehouse_main.svg);
  padding-top: 140px;
  padding-bottom: 140px;
  text-transform: uppercase;
  -webkit-filter: drop-shadow(0px 12px 8px var(--grey-dark-transparent));
  filter: drop-shadow(0px 12px 8px var(--grey-dark-transparent));
}

.flux {
  position: relative;
  height: 128px;
  filter: saturate(0.4) brightness(0.4);
}
.flux.left {
  grid-column: 1/4;
  margin-left: 174px;
}
.flux.right {
  grid-column: 5/8;
  margin-right: 174px;
}
.flux.top {
  grid-row: 1;
  align-self: start;
  margin-top: 40px;
}
.flux.bottom {
  grid-row: 2;
  align-self: end;
  margin-bottom: 0px;
}
.flux.selected {
  filter: none;
}
.flux.left.top {
  background: url(../img/left-top.svg);
}
.flux.left.bottom {
  background: url(../img/left-bottom.svg);
}
.flux.right.top {
  background: url(../img/right-top.svg);
}
.flux.right.bottom {
  background: url(../img/right-bottom.svg);
}

.warehouse {
  position: relative;
  grid-row: 1/3;
  height: 360px;
  width: 240px;
  align-self: end;
  margin-bottom: 64px;
  background: url(../img/warehouse.svg);
  filter: saturate(0.4) brightness(0.4);
}
.warehouse.left {
  grid-column: 1;
  justify-self: left;
}
.warehouse.right {
  grid-column: 7;
  justify-self: right;
}
.warehouse.selected {
  filter: none;
}
.warehouse .role {
  margin: 20px;
  margin-top: 120px;
  background: #0004;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
  font-size: 14pt;
  line-height: 28px;
  box-shadow: inset 0px 1px 2px var(--grey-dark-transparent);
}

.element {
  position: absolute;
  color: var(--grey-dark);
  z-index: 2;
  -webkit-filter: drop-shadow(0px 6px 4px var(--grey-dark-transparent));
  filter: drop-shadow(0px 6px 4px var(--grey-dark-transparent));
}
.element .content {
  width: 64px;
  height: 64px;
  font-size: 20px;
  text-align: center;
  line-height: 64px;
  font-family: sans-serif;
  font-weight: bold;
}
.element .before {
  position: absolute;
  width: 64px;
  height: 64px;
  font-size: 20px;
  text-align: center;
  line-height: 64px;
  font-family: sans-serif;
  font-weight: bold;
  opacity: 0;
  visibility: hidden;
}
.element.slide .before {
  opacity: 1;
  visibility: visible;
}
.element.slide .content {
  opacity: 0;
}
.element.hidden .content {
  transform: scale(0);
  transition: transform 1.28s;
}

.top .before, .top .content, .warehouse #up-3 .before, .warehouse #up-3 .content {
  background: bottom center/contain no-repeat url(../img/ic_message.png);
}

.bottom .before, .bottom .content {
  background: bottom center/contain no-repeat url(../img/ic_truck.png);
  padding-right: 10px;
}

.warehouse .before, .warehouse .content {
  background: bottom center/contain no-repeat url(../img/ic_box.png);
}

#up-0 {
  top: 0;
  left: 0;
}

#up-00 {
  top: 0;
  left: 144px;
}

#up-000 {
  top: 64px;
  left: 256px;
}

#up-0 .before {
  margin-left: 144px;
  margin-top: 0px;
  transition: margin-left 1.28s ease-in-out, margin-top 0.64s ease-in-out;
}

#up-0.full .before {
  margin-left: 256px;
  margin-top: 64px;
  transition: margin-left 1.28s ease-in-out, margin-top 0.56s ease-in-out;
}

#up-00 .before {
  margin-left: 112px;
  margin-top: 64px;
  transition: margin-left 1.28s ease-in-out, margin-top 0.64s ease-in-out;
}

#up-0.slide .before, #up-00.slide .before {
  margin-left: 0px;
  margin-top: 0px;
}

#down-0 {
  bottom: 0;
  right: 0;
}

#down-00 {
  bottom: 0;
  right: 144px;
}

#down-000 {
  bottom: 64px;
  right: 246px;
}

#down-0 .before {
  margin-left: -144px;
  margin-top: 0px;
  transition: margin-left 1.28s ease-in-out, margin-top 0.64s ease-in-out;
}

#down-0.full .before {
  margin-left: -144px;
  margin-top: 0px;
  transition: margin-left 1.28s ease-in-out, margin-top 0.56s ease-in-out;
}

#down-00 .before {
  margin-left: -102px;
  margin-top: -64px;
  transition: margin-left 1.28s ease-in-out, margin-top 0.64s ease-in-out;
}

#down-0.slide .before, #down-00.slide .before {
  margin-left: 0px;
  margin-top: 0px;
}

#down-1 {
  bottom: 0;
  left: 0;
}

#down-2 {
  bottom: 32px;
  left: 128px;
}

#down-3, #down-2.full {
  bottom: 64px;
  left: 256px;
}

#down-2 .before, #down-3 .before {
  margin-left: -128px;
  margin-top: 32px;
  transition: margin-left 1.28s ease-in-out, margin-top 1.28s ease-in-out;
}

#down-2.full .before {
  margin-left: -256px;
  margin-top: 64px;
  transition: margin-left 1.28s ease-in-out, margin-top 1.28s ease-in-out;
}

#down-2.slide .before, #down-3.slide .before {
  margin-left: 0px;
  margin-top: 0px;
}

#up-1 {
  top: 0;
  right: 0;
}

#up-2 {
  top: 0px;
  right: 144px;
}

.flux #up-3 {
  top: 64px;
  right: 256px;
}

.warehouse #up-3 {
  top: 186px;
  left: 56px;
}

.warehouse #up-4 {
  top: 314px;
  left: 56px;
}

.warehouse #up-5 {
  top: 314px;
  right: 62px;
}

#up-2 .before {
  margin-left: 144px;
  margin-top: 0px;
  transition: margin-left 1.28s ease-in-out, margin-top 1.28s ease-in-out;
}

#up-3 .before {
  margin-left: 112px;
  margin-top: -64px;
  transition: margin-left 1.28s ease-in-out, margin-top 1.28s ease-in-out;
}

.warehouse #up-3 .before {
  margin-left: 158px;
  margin-top: 0px;
  transition: margin-left 1.28s ease-in-out, margin-top 1.28s ease-in-out;
}

.warehouse #up-4 .before {
  margin-left: 0px;
  margin-top: -128px;
  transition: margin-left 1.28s ease-in-out, margin-top 1.28s ease-in-out;
}

.warehouse #up-5 .before {
  margin-left: -158px;
  margin-top: 0px;
  transition: margin-left 1.28s ease-in-out, margin-top 1.28s ease-in-out;
}

#up-2.slide .before, #up-3.slide .before, #up-4.slide .before, #up-5.slide .before {
  margin-left: 0px;
  margin-top: 0px;
}

#down-0.slide .content, #down-000 .content, #up-0.slide .content, #up-000 .content, #down-3.slide .content, #up-3.slide .content, #down-1 .content, #up-1 .content {
  transition: opacity 0.32s, transform 1.28s;
}

#down-0 .content, #up-0 .content, #down-3 .content, #up-3 .content {
  transition: opacity 0s, transform 1.28s;
}

#up-1.slide .before, #down-1.slide .before, #down-000.slide .before, #up-000.slide .before {
  opacity: 0;
}

@media screen and (max-width: 1228px) {
  #board, #ui {
    zoom: 0.8;
  }
}
@media screen and (max-width: 986px) {
  #board, #ui {
    zoom: 0.6;
  }
}
#results-parent {
  position: absolute;
  width: 96vw;
  top: 0;
  left: -100vw;
  padding: 80px 2vw;
  background: var(--back-color-active);
  transition: left 0.6s;
  overflow-y: hidden;
  overflow-x: visible;
  z-index: 2;
  scroll-snap-type: y mandatory;
}

#results {
  width: 96vw;
  display: grid;
  grid-template-columns: 47vw 47vw;
  row-gap: 40px;
  column-gap: 2vw;
  color: white;
}

#results-parent-button {
  position: fixed;
  height: 28px;
  left: -4px;
  bottom: 20px;
  padding: 4px;
  padding-left: 8px;
  font-size: 24px;
  background: var(--back-color-active);
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  box-shadow: 0px 7.2px 12px var(--grey-dark-transparent);
  cursor: pointer;
  z-index: 2;
  transition: left 0.6s, padding 0.6s, background 0.6s;
}

#results-parent-button svg {
  margin-left: 0px;
  transition: margin 0.6s;
}

#results-parent-button:hover {
  padding-left: 20px;
}

#results-parent-button:hover svg {
  margin-left: 20px;
}

#results-title {
  margin-bottom: 40px;
  grid-column: 1/3;
}

#results-table {
  width: 800px;
  margin: auto;
  table-layout: fixed;
  grid-column: 1/3;
}

#results-table:hover {
  box-shadow: 0px 7.2px 12px var(--grey-dark-transparent);
}

#results-table td, th {
  height: 30px;
  border-left: 1px solid #bebebe;
  border-bottom: 1px solid #bebebe;
}

#results-table td {
  width: 140px;
  text-align: right;
}

#results-table td:hover {
  border-right: 1px solid #bebebe;
  border-top: 1px solid #bebebe;
}

#results canvas {
  background: var(--white-transparent);
  border-radius: 4px;
  visibility: collapse;
  scroll-snap-align: center;
  transition: transform 1s, background 1s;
}

#results .canvas-parent {
  position: relative;
  cursor: pointer;
  box-shadow: 0px 7.2px 12px var(--grey-dark-transparent);
  display: none;
}

#results .canvas-parent:hover {
  box-shadow: 0px 3.6px 6px var(--grey-dark-transparent);
}

#results .canvas-parent:active {
  box-shadow: 0px 0px 0px var(--grey-dark-transparent);
}

#results .canvas-parent.selected {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: var(--grey-dark-transparent);
  z-index: 3;
}

#results .canvas-parent.selected canvas {
  background: var(--back-color-active);
  margin: auto;
  transition: all 1s;
}

* {
  margin: 0;
  padding: 0;
  font-weight: normal;
  font-family: CaviarDreams, sans-serif;
}

body {
  left: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: radial-gradient(var(--back-color-light) 50%, var(--back-color-dark));
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  position: absolute;
  color: white;
}

::-webkit-scrollbar {
  display: none;
}

a {
  color: var(--primary-color);
  font-weight: bold;
}

a:visited {
  color: var(--primary-color);
}

input, select, button, .input_list {
  margin: auto;
  font-weight: bold;
  text-align: center;
}

.keyboard {
  padding: 0.1em 0.4em;
  border-radius: 3px;
  background: var(--white);
  color: var(--grey-dark);
  box-shadow: 0px 0.8px 1.4px var(--grey-dark-transparent), inset 0 -1.2px 2.6px var(--grey-dark-transparent);
  border: 1px solid var(--grey-dark);
  font-size: 12px;
  font-weight: bold;
}

#ic-loading {
  width: 14px;
  height: 14px;
  margin: auto;
  animation: rotating 2s linear infinite;
}

@keyframes rotating {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
#ui {
  position: fixed;
  display: grid;
  grid-template-columns: 284px 1fr;
  align-items: center;
  min-height: 120px;
}
#ui #role {
  grid-column: 1;
  grid-row: 1;
}
#ui #period {
  font-size: 26pt;
  grid-column: 1;
  grid-row: 2;
}
#ui #steps {
  display: grid;
  grid-template-columns: repeat(7, 120px);
  grid-column-gap: 16px;
  margin: 8px;
  grid-row: 1/3;
}
#ui #steps .step {
  display: flex;
  padding: 4px;
  text-align: center;
  font-size: 12pt;
  border-radius: 2px;
  background: var(--white);
  color: var(--grey-dark);
  box-shadow: 0px 1.8px 3px var(--grey-dark-transparent);
  opacity: 0.4;
}
#ui #steps .step.selected {
  opacity: 1;
}
#ui #steps .step span {
  margin: auto;
}

#steps-infos {
  position: fixed;
  bottom: 12px;
  right: 16px;
  padding: 4px 8px;
  border-radius: 32px;
  background: var(--back-color-active);
  color: var(--white);
  box-shadow: 0px 1.8px 3px var(--grey-dark-transparent);
  cursor: pointer;
}

table {
  width: 268px;
  margin: auto;
  border-radius: 2px;
  border-spacing: 0px 2px;
  font-weight: bold;
  background: var(--white);
  color: var(--grey-dark);
  box-shadow: 0px 1.8px 3px var(--grey-dark-transparent);
}

thead {
  background: var(--grey-dark);
  color: var(--white);
}

tr {
  padding: 4px;
}
tr:nth-child(even) {
  background-color: #efefef;
}

th, td {
  position: relative;
  padding: 2px;
  border-radius: 2px;
  font-weight: bold;
  white-space: nowrap;
}

th {
  font-size: 12pt;
}

td {
  font-size: 10pt;
}

#order {
  position: absolute;
  z-index: 2;
  width: 246px;
  padding: 8px;
  margin-top: 110px;
  margin-left: -79px;
  border-radius: 2px;
  background: var(--grey-dark);
  color: var(--white);
  font-size: 16pt;
  font-weight: bold;
  text-align: center;
  border: 4px solid var(--primary-color);
  box-shadow: 0px 16px 12px var(--grey-dark-transparent);
  visibility: visible;
  transition: margin-top 0.6s, visibility 0.6s, opacity 0.6s;
}

#order.hidden {
  visibility: collapse;
  opacity: 0;
  margin-top: 60px;
}

#order input {
  background: var(--grey-dark);
  color: var(--white);
  width: 100px;
  height: 40px;
  margin: 0;
  border: none;
}

#order button {
  height: 40px;
  margin: 0;
  filter: none;
  cursor: pointer;
}

#lang {
  position: fixed;
  top: 10px;
  right: 10px;
}

#lang-button {
  width: 36px;
  height: 36px;
  background: center/contain no-repeat url(../img/lang_en.svg);
  cursor: pointer;
  transition: transform 0.15s;
}
#lang-button:hover {
  transform: scale(1.1);
}
#lang-button:active {
  transform: scale(0.9);
}

@font-face {
  font-family: "BEER";
  src: url("../font/BEER.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
:root {
  --primary-color: #96023c;
  --primary-color-dark: #821729;
  --primary-color-light: #cc334d;
  --back-color-dark: #274853;
  --back-color-light: #548b97;
  --back-color-active: #547797;
  --old-primary-color: #e74c3c;
  --old-primary-color-dark: #d35400;
  --old-primary-color-light: #e94e3e;
  --old-back-color-dark: #000058;
  --old-back-color-light: #000092;
  --old-back-color-active: #00468B;
  --white: #fff;
  --white-transparent: #fff4;
  --grey-dark: #333;
  --grey-dark-transparent: #3338;
  --grey-dark-transparent2: #333e;
  --red: #bA2d0b;
  --green: #359766;
  --yellow: #ffcd56;
  --orange: #ffa100;
  --graph-green: #4bc9a6;
  --graph-blue: #36a2eb;
}

/*# sourceMappingURL=main.css.map */
