@font-face {
  font-family: GameFont;
  src: url(assets/font.woff2);
}

body {
  font-family: sans-serif;
  background-color: #030414;
  color: #ddd;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
}

canvas#worker,
canvas#oregen,
canvas#oregen2 {
  display: none;
}

canvas#main {
  letter-spacing: 3px;
  font-family: GameFont;
  font-size: 28px;
}

#joystick {
  position: absolute;
}

#joy-div {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 120px;
  height: 120px;
}

.gui {
  cursor: default;
  user-select: none;
  position: fixed;
  top: 16px;
  right: 16px;
  border: 1px solid #333;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 8px 16px;
  border-radius: 8px;
  /* display: none; */
}

.main-title {
  font-size: 26px;
  font-weight: bold;
}

.upgrade-tabs {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.upgrade-tabs .title {
  padding: 2px 8px;
  border: 1px solid #333;
}

.upgrade-tabs .title:hover {
  border: 1px solid #555;
}

.upgrade-tabs .title.active {
  padding: 2px 8px;
  border: 1px solid #555;
  background-color: rgba(255, 255, 255, 0.2);
}

.upgrade {
  display: none;
}

.desc {
  margin: 16px 0;
}

.upgrade.active {
  display: block;
}

.property {
  padding: 8px 0;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.prop-title {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
  width: 120px;
}

.options {
  flex-grow: 1;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
}

.option {
  min-width: 120px;
  width: 120px;
  padding: 16px 32px;
  display: flex;
  white-space: nowrap;
  align-items: center;
  border: 2px solid rgba(0, 32, 64, 1);
  background-color: rgba(0, 96, 128, 0.1);
}

.option:hover {
  border: 2px solid rgb(0, 96, 128);
  background-color: rgba(0, 96, 128, 0.2);
}

.option.expensive {
  border: 2px solid rgba(64, 32, 0, 1);
  background-color: rgba(128, 96, 0, 0.1);
}

.option.disabled {
  border: 2px solid transparent;
  background-color: rgba(96, 96, 96, 0.2);
}

.option.n_a {
  opacity: 0.5;
}

.box {
  border: 1px solid hsla(185, 100%, 50%, 0.99);
  background-color: hsla(215, 75%, 10%, 0.5);
}

.hidden {
  display: none;
}
