/* src/index.css */
:root {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: ApexMk2, monospace;
  font-weight: 400;
  line-height: 1.5;
}

html, body {
  color: #fff;
  display: flex;
  background: #000;
  justify-content: space-around;
  align-items:  center;
  width: 100%;
  height: 100%;
  margin: 0;
}

@font-face {
  font-family: ApexMk2;
  src: url("data:font/otf;base64,dmVyc2lvbiBodHRwczovL2dpdC1sZnMuZ2l0aHViLmNvbS9zcGVjL3YxCm9pZCBzaGEyNTY6ZDc5OTM4MTA3OTQ4NGE1Y2E4ZjI0YTY3NzcwNmRkZmJiZDczYTIwMmNmODRmMGJiYTEyNmViNDY5Nzc1Mjk1ZgpzaXplIDc5MzIK") format(opentype);
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: ApexMk2;
  src: url("data:font/otf;base64,dmVyc2lvbiBodHRwczovL2dpdC1sZnMuZ2l0aHViLmNvbS9zcGVjL3YxCm9pZCBzaGEyNTY6NTg2ZWI3NjZkYWExMDMxNjcxY2NhNjk0MGQ1MjNkYWI1ZDU4MjJhMGM1MTI1OGFlMThiYjcwMTc3YzNiYzA0MApzaXplIDcxMDQK") format(opentype);
  font-weight: bold;
  font-style: normal;
}

a {
  color: #646cff;
  text-decoration: inherit;
  font-weight: 500;
}

a:hover {
  color: #535bf2;
}

h1, h2 {
  margin: 0;
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
}

button {
  cursor: pointer;
  background-color: #1a1a1a;
  border: 1px solid #0000;
  border-radius: 8px;
  padding: .6em 1.2em;
  transition: border-color .25s;
  font-family: inherit;
  font-size: 1em;
  font-weight: 500;
}

button:hover {
  border-color: #646cff;
}

button:focus {
  outline: 4px auto -webkit-focus-ring-color;
}

button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@font-face {
  font-family: ApexMk2;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("data:font/otf;base64,dmVyc2lvbiBodHRwczovL2dpdC1sZnMuZ2l0aHViLmNvbS9zcGVjL3YxCm9pZCBzaGEyNTY6ZDc5OTM4MTA3OTQ4NGE1Y2E4ZjI0YTY3NzcwNmRkZmJiZDczYTIwMmNmODRmMGJiYTEyNmViNDY5Nzc1Mjk1ZgpzaXplIDc5MzIK") format(opentype);
}

#admin-password {
  position: absolute;
  outline: none;
  color: #0000;
  background-color: #0000;
  border: none;
  margin: 0;
  font-size: 1.5rem;
  top: 0;
  right: 0;
}

#admin {
  display: none;
  position: absolute;
  color: #fff;
  z-index: 3;
  background: #000;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

#admin #machines-scroll {
  overflow-x: auto;
}

#admin #machines-scroll::-webkit-scrollbar {
  display: none;
}

#admin #machines {
  display: flex;
  justify-content: center;
  gap: 1rem;
  min-width: min-content;
  margin: 1rem;
}

#admin .machine {
  text-align: center;
  cursor: pointer;
  border: 1px solid #fff;
  border-radius: 10px;
  width: 75px;
}

#admin .machine.disabled {
  color: #555;
  cursor: not-allowed;
  border-color: #555;
}

#admin .error {
  color: #ff6b6b;
  text-align: center;
  background: #ff6b6b1a;
  border: 1px solid #ff6b6b;
  border-radius: 8px;
  margin: 2rem;
  padding: 1rem;
  font-size: 1.2rem;
}

#admin .loading {
  color: #ffd93d;
  text-align: center;
  margin: 2rem;
  padding: 1rem;
  font-size: 1.2rem;
}

#admin h2 {
  text-align: center;
}

#admin .graph-section {
  display: flex;
  justify-content: space-around;
  align-items:  center;
}

#admin .legend {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

#admin .legend-item {
  display: flex;
  align-items:  center;
  gap: 1rem;
}

#admin .legend-item div {
  width: 32px;
  height: 32px;
}

#admin .legend-item p {
  margin: 0;
}

@media (max-width: 840px) {
  #admin .graph-section {
    flex-direction: column;
  }

  #admin .legend {
    flex-direction: row;
    gap: 1rem;
  }
}
