#clicker-container {
  display: flex;
  flex-direction: column;
  align-items: center;         /* Center horizontally */
  justify-content: flex-start; /* Align to top */
  background: linear-gradient(0deg, transparent 0%, #00629B 50%, transparent 100%);
  min-height: 100vh
}

#clicker-comp {
  border-radius: 50%;
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  width: 35vh;
  aspect-ratio: 1 / 1;     
  transform: scale(1);
  transform-origin: center;
  overflow: visible;
  max-width: 400px;
  min-width: 10vh;
  height: auto;
  -webkit-user-select: none; /* Disable text selection */
  user-select: none;
}

#clicker-comp-wrapper {
  border-radius: 50%;
  position: relative;
  width: 35vh;
  aspect-ratio: 1 / 1;
  margin-top: 28vh;
  transform: scale(1);
  max-width: 400px;
  min-width: 10vh;
  overflow: hidden;
  transition: transform 0.2s ease;
  -webkit-user-select: none; /* Disable text selection */
  user-select: none;
}

#clicker-comp-wrapper #clicker-comp {
  margin-top: 0;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

#clicker-comp-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 45%,
    rgba(255, 215, 0, 0.3) 50%,
    rgba(255, 255, 255, 0.4) 55%,
    transparent 100%
  );
  transform: skewX(-25deg);
  animation: coin-shine 3s ease-in-out infinite;
  animation-delay: 1s;
  z-index: 2;
  pointer-events: none;
}

@keyframes coin-shine {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

#clicker-comp-wrapper:hover::before {
  animation-duration: 3s;
}

#points_display {
  font-size: 2rem;
  /*This error is ignored because this clamp is valid CSS*/
  /* eslint-disable */
  font-size: clamp(1.5rem, 5vw, 3rem); 
  font-weight: bold;
  text-align: center;
  margin-top: 20px;
  width: 90vw;
  max-width: 400px;
  overflow-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
}

.tooltip-container {
  align-items: center;
  justify-self: center;
  cursor: pointer;
  margin-top: 1rem;
  margin-bottom: 0;
}

.tooltip-icon {
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 50%;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
  border: 2px solid #FFD700;
  color: #FFD700;
  margin-left: .5rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  transform: translateY(-150%);
  margin-bottom: 0;
}

.tooltip-icon:hover {
  transform: translateY(-150%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4), 0 0 15px rgba(255,215,0,0.3);
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: max-content;
  background-color: #333;
  color: #fff;
  border-radius: 0.2rem;
  padding: 1rem 1rem;
  position: absolute;
  z-index: 1;
  transform: translateX(-42%);
  transition: opacity 0.3s;
  white-space: nowrap;
  font-family: Tahoma, sans-serif;
  text-align: center;
  margin: 0;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.bonus-popup {
  position: absolute;
  padding: 15px 25px;
  background-color: gold;
  color: black;
  font-size: 1.5rem;
  font-weight: bold;
  border: 2px solid orange;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 200, 0, 0.8);
  z-index: 1000;
  animation: popup-fadein 0.2s ease-out;
}

.frenzy-popup {
  position: fixed;
  left: 50%;
  top:  20vh;
  transform: translateX(-50%) !important;
  padding: 15px 25px;
  background-color: gold;
  color: black;
  font-size: 1.5rem;
  font-weight: bold;
  border: 2px solid orange;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 200, 0, 0.8);
  z-index: 1000;
  opacity: 0;
  animation: popup-fadein 0.2s ease-out forwards;
  text-align: center;
}

@keyframes popup-fadein {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .frenzy-popup {
    top:  10vh;

  }
}

