@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

body {
  background-color: #2c2c2c;
  color: white;
  padding: 0;
  margin: 0;
  text-decoration: none;
  display: grid;
  place-items: center;
  height: 100vh;
  position: relative;
  font-family: 'Quicksand', sans-serif;
}

.main {
  display: flex;
  gap: 200px;
  margin-bottom: 100px;
}

.left {
  text-align: center;
  font-size: 25px;
}

.right-navbar {
  display: flex;
  font-weight: bold;
}

.right-navbar>div {
  width: 140px;
  height: 40px;
  background-color: red;
  text-align: center;
  padding-top: 15px;
}

.right-navbar>div:hover {
  opacity: 0.85;
  cursor: pointer;
}

.right-navbar>:first-child {
  background: blue;
}

.right-navbar>:nth-child(2) {
  background: rgb(109, 8, 149);
}

#upgrades-container {
  max-height: 400px;
  width: 500px;
  padding: 20px;
  overflow-y: scroll;
  border: 2px rgb(150, 150, 150) solid;
  border-radius: 4px;
  box-shadow: 2px 2px 4px rgb(140, 140, 140);
  position: relative;
}

.pink-text {
  font-size: 32px;
  color: rgb(202, 115, 243);
  font-weight: 700;
  text-shadow: 2px 2px 3px rgb(90, 90, 90)
}

.cost-text {
  font-size: 18px;
}

.gem-image {
  margin-top: 50px;
  width: 300px;
}

.gem-image:hover {
  opacity: 0.9;
  cursor: pointer;
}

.gem-image:active {
  opacity: 0.8;
  transform: scale(1.02);
}

.upgrade {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border: 3px solid white;
  border-radius: 5px;
  height: 60px;
  width: 330px;
  position: relative;
  margin-bottom: 20px;
}

.upgrade:hover {
  opacity: 0.85;
  cursor: pointer;
}

.type-skill {
  display: none;
}

.type-artifact {
  display: none;
}

.upgrade-img {
  width: 55px;
}

.gem-img-container {
  position: relative;
}

.gem-img {
  width: 26px;
  height: 25px;
}

.mid-section h4 {
  margin: 0;
  margin-bottom: 20px;
  font-size: 20px;
}

.mid-section p {
  margin: 0;
}

.cost-info {
  display: flex;
  align-items: center;
  gap: 5px;
}

.next-level-info {
  position: absolute;
  right: -105px;
  background-color: rgb(90, 89, 90);
  height: 87px;
  width: 100px;
  text-align: center;
  display: none;
  font-size: 15px;
  border-radius: 2px;
}

.upgrade:hover .next-level-info {
  display: block;
}

.statistics {
  position: absolute;
  bottom: 0;
  width: 450px;
  padding: 30px;
  border: 2px white solid;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
  left: 50%;
  transform: translate(-50%)
}

.texts {
  display: flex;
  gap: 100px;
  justify-content: center;
  font-weight: bold;
  font-size: 22px;
}

.util-buttons {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
}

.util-button {
  padding: 8px 15px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 6px;
}

.util-button:hover {
  opacity: 0.7;
  cursor: pointer;
}

.relic {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  font-weight: 600;
}

.fade-up {
  animation: fade-up 1s;
}

@keyframes fade-up {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  20% {
    transform: translateY(-5px);
    opacity: 0.9;
  }
  40% {
    transform: translateY(-13px);
    opacity: 0.75;
  }
  60% {
    transform: translateY(-25px);
    opacity: 0.55;
  }
  80% {
    transform: translateY(-42px);
    opacity: 0.3;
  }
  100% {
    transform: translateY(-65px);
    opacity: 0;
  }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
}

::-webkit-scrollbar-thumb:hover {
  background: #555
}
