body {
  font-family: "Cinzel", serif;
  background: linear-gradient(to bottom, #1b1b2f, #162447);
  color: #f0e6d2;
  text-align: center;
  padding: 2rem;
}

h1 {
  font-size: 3rem;
  color: #caa93d;
  margin-bottom: 0.5rem;
}

p {
  font-family: "Verdana", sans-serif;
  font-size: 1.1rem;
}

#click-btn {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  background-color: #4f46e5;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

#click-btn:active {
  background-color: #4338ca; /* slight press effect only */
}

#click-btn:hover {
  background: #764ba2;
  transform: scale(1.05);
}

#golem-sidebar {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 220px;
  background: rgba(255, 255, 255, 0.9);
  color: #222;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 100;
  text-align: center;
}

#golem-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

@keyframes golem-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.golem-img {
  width: 100px;
  height: 100px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
  animation: golem-pop 0.6s ease-out;
}

.golem-img:hover {
  transform: scale(1.4);
  box-shadow: 0 0 12px 4px #7b61ff;
  cursor: pointer;
}

#instructions-toggle {
  position: fixed;
  top: 15px;
  right: 20px;
  background: #6b4c9a;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  z-index: 2000;
}

#instructions-box {
  position: fixed;
  top: 60px;
  right: 20px;
  width: 250px;
  background: white;
  color: #333;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-size: 0.95rem;
  z-index: 1500;
}

#instructions-box h3 {
  margin-top: 0;
  font-size: 1rem;
  color: #6b4c9a;
}

#instructions-box ul {
  padding-left: 1rem;
  list-style: disc;
  margin: 0;
}
#instructions-box li {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.3;
  list-style: none;
}

.hidden {
  display: none !important;
}

@media (max-width: 600px) {
  #instructions-box {
    display: none;
  }
}

.mana-surge-msg {
  position: fixed;
  top: 20%;
  right: 20px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem 2rem;
  border-radius: 8px;
  color: #4b0082;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 0 12px 4px #ff00ff;
  z-index: 999;
  animation: fadeInOut 15s ease-in-out forwards;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes manaEffect {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

#stats {
  margin-top: 2rem;
  font-size: 1.2rem;
}

button,
.upgrade {
  background-color: #6b4c9a;
  color: #fff;
  font-weight: bold;
  border: none;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: inline-block;
}

button:hover,
.upgrade:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px 8px #ff00ff;
}

@keyframes glowing {
  0% {
    box-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 15px #ff00ff;
  }
  50% {
    box-shadow: 0 0 20px #ff00ff, 0 0 30px #ff00ff, 0 0 40px #ff00ff;
  }
  100% {
    box-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 15px #ff00ff;
  }
}

#golem-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.golem-img {
  width: 50px;
  height: 50px;
  margin: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.golem-img:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

progress {
  width: 100%;
  height: 25px;
  background-color: #ccc;
  border-radius: 12px;
  appearance: none;
  margin-bottom: 16px;
}

progress::-webkit-progress-bar {
  background: #f3f3f3;
}

progress::-webkit-progress-value {
  background: #6a0dad; /* Purple for golem theme */
}

.victory-msg {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  background: #1b1b2f;
  color: #f0e6d2;
  padding: 2rem;
  border: 2px solid #caa93d;
  border-radius: 12px;
  z-index: 999;
  text-align: center;
  box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.3);
}
.victory-msg button {
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  background-color: #6b4c9a;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
