* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: Tahoma;
}
#conveyor {
  width: 100vw;
  height: 20vmin;
  background: linear-gradient(rgb(112, 112, 112), rgb(145, 145, 145), rgb(46, 46, 46));
  position: absolute;
  top: 40vh;
}
body {
  overflow: hidden;
  background: rgb(32, 31, 31);
}
#conveyor::before {
  content: '';
  display: block;
  width: 10vmin;
  height: 10vmin;
  background: rgb(71, 24, 24);
  border-radius: 5px 10px 0 0;
  position: relative;
  top: -10vmin;
  left: 100%;
  animation: conveyor 6s linear infinite;
}
#conveyor::after {
  content: '';
  display: block;
  width: 13vmin;
  height: 7vmin;
  background: rgb(142, 163, 82);
  border-radius: 10px 10px 5px 0;
  position: relative;
  top: Calc(-100% + 3vmin);
  left: 190%;
  animation: conveyor 6s linear infinite;
}
@keyframes conveyor {
  0% {
    transform: none;
  }
  100% {
    transform: translateX(-200vw);
  }
}
#titleScreen {
  width: 100vw;
  opacity: 0.6;
  height: 100vh;
  background: radial-gradient(black, rgb(82, 47, 47));
}
#light {
  border-bottom: 110vh solid rgba(249, 250, 198, 0.027);
  border-left: 50vw solid rgba(0, 0, 0, 0.493);
  border-right: 50vw solid rgba(0, 0, 0, 0.493);
  width: 1px;
  height: 0px;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -5vmin);
}
#overlay {
  width: 100vw;
  height: 100vh;
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}
#overlay button {
  width: 50vw;
  height: 8vw;
  font-size: 6vmin;
  background: linear-gradient(to right, transparent, rgb(146, 146, 170), transparent);
  border: none;
}
#overlay button:hover {
  background: linear-gradient(to right, transparent, rgb(224, 224, 241), transparent);
  border: none;
}
#logo {
  font-size: 20vmin;
  width: 60vmin;
  padding: 3vmin;
  color: white;
  position: absolute;
  transform: translateY(-50%);
  top: 50%;
  text-align: right;
  left: Calc(100vw - 70vmin);
  text-shadow: 1px 1px 1px black, -1px -1px 1px black, 1px -1px 1px black, -1px 1px 1px black;
  font-family:'Teko', sans-serif;
  line-height: 65%;
  background: radial-gradient(rgba(255, 255, 255, 0.568), transparent,  transparent);
}
#logo .creator {
  font-size: 5vmin;
}
#progressBar {
  width: 90vw;
  height: 3.4vw;
  border: 1px solid black;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.507);
  box-shadow: inset 0px 0px 5px black;
}
#progress {
  height: 3.4vw;
  width: 101%;
  border: 1px solid black;
  background: linear-gradient(red, rgb(216, 99, 99), rgb(156, 7, 7));
  border-radius: 20px;
  position: relative;
  top: -1px;
  left: -1px;
}
#pb {
  display: flex;
  padding-top: 2vw;
  padding-bottom: 2vw;
  flex-direction: column;
  justify-content: center;
  width: 100vw;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid black;
}
#pb p {
  font-size: 6vmin;
  color: white;
}
#currencyHolder {
  display: flex;
  width: fit-content;
  border: 2px solid black;
  border-radius: 20px;
}
#currencyIcon {
  border-right: 2px solid black;
  border-radius: 20px 0 0 20px;
  background: rgb(103, 103, 189);
  overflow: hidden;
}
#currency {
  min-width: 10vmin;
  width: fit-content;
  padding: 1vmin;
  font-size: 5vmin;
  line-height: 5vmin;
  border-radius: 0 20px 20px 0;
  background: rgba(255, 255, 255, 0.4);
}
path {
  stroke: black;
  stroke-width: 1;
  fill: gray;
}
#bolts {
  margin: 1vmin;
}
#daysLeft {
  color: white;
  font-size: 6vmin;
}
#topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5vmin;
  border-bottom: 1px solid black;
}
#gear1 {
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  width: 30vmin;
  height: 30vmin;
  animation-duration: 3s;
}
#gear2 {
  top: 0;
  left: Calc(100vw - 30vmin);
  transform: translate(50%, -50%);
  width: 60vmin;
  height: 60vmin;
  animation-duration: 5s;
}
#gear3 {
  top: 46vmin;
  left: Calc(100vw - 30vmin);
  transform: translate(50%, -50%);
  width: 40vmin;
  height: 40vmin;
  animation-duration: 5s;
  animation-direction: reverse;
  animation-delay: 1s;
}
#gears {
  z-index: -5;
  width: 100vw;
  height: 100vh;
}
.gear {
  position: absolute;
  opacity: 0.5;
  animation: rotate linear infinite;
}
@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.rust {
  filter: brightness(70%) sepia(100%) hue-rotate(30deg);
  font-family:'Teko', sans-serif;
}
.rust2 {
  filter: brightness(60%) sepia(100%) hue-rotate(350deg);
  font-family:'Teko', sans-serif;
}
#about {
  width: 90vw;
  height: 90vh;
  background: rgba(255, 255, 255, 0.575);
  position: absolute;
  margin-top: 5vh;
  margin-left: 5vw;
  opacity: 1;
  font-size: 5vmin;
  padding: 1vmin;
  z-index: 999;
  backdrop-filter: blur(2px);
  display: none;
  box-shadow: 0px 0px 100px 1000px rgba(0, 0, 0, 0.548);
}
#grid {
  width: 60vw;
  height: 50vh;
  margin: 2vmin;
  display: flex;
  flex-wrap: wrap;
}
#cell {
  border: 1px solid white;
  width: 6vw;
  height: 6vw;
}
#upgrades {
  height: 50vh;
  width: 35vw;
  border: 1px solid white;
  background: rgba(255, 255, 255, 0.4);
  margin-right: 1vmin;
}
#lower {
  display: flex;
  justify-content: space-between;
}
.upgrade {
  font-size: 4vmin;
  border: 1px solid white;
  padding: 1vmin;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  user-select: none;
  margin-top: 1vmin;
}
.upgrade:hover {
  background: rgba(0, 0, 0, 0.774);
}
#winScreen {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  background: radial-gradient(rgb(161, 191, 235), rgb(55, 77, 172));
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
#winScreen p {
  font-size: 6vmin;
}
#winScreen h1 {
  font-size: 8vmin;
}
#winScreen .small {
  font-size: 4vmin;
  opacity: 0.4;
}
#winScreen div {
  height: 5vmin;
}
#winScreen button {
  padding: 2vmin;
  font-size: 5vmin;
}
#upgrades p {
  text-align: center;
  padding: 1vmin;
  font-size: 6vmin;
}
#loseScreen {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  background: radial-gradient(rgb(119, 47, 47), rgb(214, 35, 22));
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
}
#loseScreen p {
  font-size: 6vmin;
}
#loseScreen h1 {
  font-size: 8vmin;
}
#loseScreen .small {
  font-size: 4vmin;
  opacity: 0.4;
}
#loseScreen div {
  height: 5vmin;
}
#loseScreen button {
  padding: 2vmin;
  font-size: 5vmin;
}
#tutorial {
  padding: 2vmin;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.885);
  display: none;
}
#tuttext {
  font-size: 6vmin;
}
#tutorial button {
  padding: 2vmin;
  font-size: 5vmin;
}