html {
  height: 100%;
  width: 100%;
  text-size-adjust: auto;
  overflow: hidden;
}

p {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

@keyframes shake {

  0%,
  100% {
    transform: translate(2px, 0px);
  }

  25% {
    transform: translate(.5px, -5px);
  }

  50% {
    transform: translate(-2px, 5px);
  }

  75% {
    transform: translate(.5px, -5px);
  }
}

[tag="Shake"] {
  display: inline-block;
  animation: shake .5s infinite;
}

.upgrades {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  z-index: 3
}

.container .mainUpg {
  position: absolute;
  background-color: #242424;
  border-radius: 10px;
  height: 90%;
  transform: translate(5%, 5%);
  width: 90%;
  z-index: 2;
}

.container .mainUpg .top {
  z-index: 2;
  background-color: #343434;
  border-top-left-radius: 10px;
  top: 0;
  position: absolute;
  width: 100%;
  height: 10%;
  border-top-right-radius: 10px;
}

.mainUpg p {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.mainUpg .top p {
  display: inline-block;
  transform-origin: center;
  transform: translate(100%, 0%);
  font-family: cursive;
  font-weight: bold;
  color: #fff;
  font-size: 25px;
}

.container .mainUpg .bottom {
  background-color: #1a1a1a;
  border-bottom-left-radius: 10px;
  position: absolute;
  bottom: 0%;
  width: 100%;
  height: 90%;
  border-bottom-right-radius: 10px;
}

.container {
  display: flex;
  height: 100vh;
  flex-wrap: wrap;
}

.Stone {
  position: relative;
  background-color: #141414;
  border-radius: 10px;
  height: 25%;
  aspect-ratio: 1.4/1;
  display: flex;
}

.Stone .upper {
  position: absolute;
  top: 0;
  width: 100%;
  background-color: #222;
  color: white;
  padding: 10px;
  box-sizing: border-box;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.Stone p {
  font-family: Arial, Helvetica, sans-serif;
  transform: translate(2.5%, -75%);
}

.Stone .bottom {
  position: absolute;
  bottom: 0;
  /* Stick to the bottom */
  width: 100%;
  background-color: #444;
  color: white;
  padding: 10px;
  height: 60%;
  box-sizing: border-box;
  text-align: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.Stone .bottom .anim {
  height: 100%;
  aspect-ratio: 1/1;
  right: -21.5%;
  transform: translate(-50%, -3.75%);
  position: absolute;
}

.Coal {
  transform: translate(10%, 0%);
  position: relative;
  background-color: #141414;
  border-radius: 10px;
  height: 25%;
  aspect-ratio: 1.4/1;
  display: flex;
}

.Coal .upper {
  position: absolute;
  top: 0;
  width: 100%;
  background-color: #222;
  color: white;
  padding: 10px;
  box-sizing: border-box;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.Coal p {
  font-family: Arial, Helvetica, sans-serif;
  transform: translate(2.5%, -75%);
}

.Coal .bottom {
  position: absolute;
  bottom: 0;
  /* Stick to the bottom */
  width: 100%;
  background-color: #444;
  color: white;
  padding: 10px;
  height: 60%;
  box-sizing: border-box;
  text-align: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.Coal .bottom .anim {
  height: 100%;
  aspect-ratio: 1/1;
  bottom: 0%;
  position: inline-block;
  transform-origin: center;
}

.Copper {
  position: relative;
  background-color: #141414;
  border-radius: 10px;
  height: 25%;
  aspect-ratio: 1.4/1;
  display: flex;
}

.Copper .upper {
  position: absolute;
  top: 0;
  width: 100%;
  background-color: #222;
  color: white;
  padding: 10px;
  box-sizing: border-box;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.Copper p {
  font-family: Arial, Helvetica, sans-serif;
  transform: translate(2.5%, -75%);
}

.Copper .bottom {
  position: absolute;
  bottom: 0;
  /* Stick to the bottom */
  width: 100%;
  background-color: #444;
  color: white;
  padding: 10px;
  height: 60%;
  box-sizing: border-box;
  text-align: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.Copper .bottom .anim {
  height: 100%;
  aspect-ratio: 1/1;
  right: -21.5%;
  transform: translate(-50%, -3.75%);
  position: absolute;
}

.Iron {
  position: relative;
  background-color: #141414;
  border-radius: 10px;
  height: 25%;
  aspect-ratio: 1.4/1;
  display: flex;
}

.Iron .upper {
  position: absolute;
  top: 0;
  width: 100%;
  background-color: #222;
  color: white;
  padding: 10px;
  box-sizing: border-box;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.Iron p {
  font-family: Arial, Helvetica, sans-serif;
  transform: translate(2.5%, -75%);
}

.Iron .bottom {
  position: absolute;
  bottom: 0;
  /* Stick to the bottom */
  width: 100%;
  background-color: #444;
  color: white;
  padding: 10px;
  height: 60%;
  box-sizing: border-box;
  text-align: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.Iron .bottom .anim {
  height: 50%;
  aspect-ratio: 1/1;
  left: 50%;
  bottom: 0%;
  position: absolute;
}

.Wood {
  position: relative;
  background-color: #141414;
  border-radius: 10px;
  height: 25%;
  aspect-ratio: 1.4/1;
  display: flex;
}

.Wood .upper {
  position: absolute;
  top: 0;
  width: 100%;
  background-color: #222;
  color: white;
  padding: 10px;
  box-sizing: border-box;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.Wood p {
  font-family: Arial, Helvetica, sans-serif;
  transform: translate(2.5%, -75%);
}

.Wood .bottom {
  position: absolute;
  bottom: 0;
  /* Stick to the bottom */
  width: 100%;
  background-color: #444;
  color: white;
  padding: 10px;
  height: 60%;
  box-sizing: border-box;
  text-align: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.Wood .bottom .anim {
  height: 100%;
  aspect-ratio: 1/1;
  right: -21.5%;
  transform: translate(-50%, -3.75%);
  position: absolute;
}

.Void {
  position: relative;
  background-color: #141414;
  border-radius: 10px;
  height: 25%;
  aspect-ratio: 1.4/1;
  display: flex;
}

.Void .upper {
  position: absolute;
  top: 0;
  width: 100%;
  background-color: #222;
  color: white;
  padding: 10px;
  box-sizing: border-box;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.Void p {
  font-family: Arial, Helvetica, sans-serif;
  transform: translate(2.5%, -75%);
}

.Void .bottom {
  position: absolute;
  bottom: 0;
  /* Stick to the bottom */
  width: 100%;
  background-color: #444;
  color: white;
  padding: 10px;
  height: 60%;
  box-sizing: border-box;
  text-align: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.Void .bottom .anim {
  height: 100%;
  aspect-ratio: 1/1;
  right: -21.5%;
  transform: translate(-50%, -3.75%);
  position: absolute;
}

.basicUPG {
  width: 100%;
  height: 100%;
  position: relative;
}

.PawnShop {
  width: 100%;
  height: 100%;
  position: relative;
}

.voidUPG {
  background-color: #000000;
  background-image: url("https://cdn.glitch.global/e376003f-b6fa-4745-b9df-1991ee03c997/Void.png?v=1746304979005");
  background-size: 12.5%;
  color: #000000;
  width: 100%;
  height: 100%;
  position: relative;
}

.existenceUPG {
  width: 100%;
  height: 100%;
  position: relative;
  background-image: url("https://cdn.glitch.global/e376003f-b6fa-4745-b9df-1991ee03c997/Flesh.png?v=1746304971553");
  background-size: 12.5%;
}

.UPG {
  height: 40%;
  aspect-ratio: 1/1;
  position: absolute;
}

.basicUPG, .voidUPG, .existenceUPG, .PawnShop {
  position: absolute;
  overflow: auto;
  ::-webkit-scrollbar {
    display: none;
  }
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.upgINFOTAG {
  right: 20px;
  position: absolute;
  font-size: 12px;
  color: gray;
  
}

[id="HOV_"]:hover {
  cursor: pointer;
}

[id="HOV_UPG"]:hover {
  cursor: pointer;
}

.SSS {
  height: 20px;
  border: none;
  border-radius: 5000px;
  background-color: #ffffff;
}

.SSS:hover {
  cursor: pointer;
}

.AutoSlider {
  height: 20px;
}