body {
  font-family: 'Inter', sans-serif;
  background-color: #f8f9fa;
}

.pyramid-container {
  position: relative;
  width: 40vw;
  height: 34vw;
  max-width: 500px;
  max-height: 420px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.level {
  position: absolute;
  width: 100%;
  height: 19.3%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.level:hover {
  transform: scale(1.03);
  z-index: 10;
}

.level.active {
  box-shadow: 0 0 1.5rem rgba(255, 255, 255, 0.8);
  transform: scale(1.03);
  z-index: 10;
}

.level-5 {
  top: 0;
  background-color: #6a0572;
}
.level-4 {
  top: 19.3%;
  background-color: #ab3a97;
}
.level-3 {
  top: 38.6%;
  background-color: #e55a8a;
}
.level-2 {
  top: 57.9%;
  background-color: #f89679;
}
.level-1 {
  top: 77.2%;
  background-color: #ffc47f;
}

.tooltip-inner {
  color: white;
  font-size: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
}

.desc-1 {
  background-color: #ffc47f;
}
.desc-2 {
  background-color: #f89679;
}
.desc-3 {
  background-color: #e55a8a;
}
.desc-4 {
  background-color: #ab3a97;
}
.desc-5 {
  background-color: #6a0572;
}

@media (max-width: 768px) {
  .pyramid-container {
    width: 70vw;
    height: 59.5vw;
  }
  .level {
    font-size: 1rem;
  }
}
