/*This is where style is born*/
body {
  background-color: #001f3f; /* Deep space blue */
  color: #bbb;
  font-family: monospace;    /* Clean code font for ritual vibes */
  text-align: center;
  padding-top: 20vh;         /* Vertical offset for mobile spacing */
  margin: 0;                 /* Remove default spacing */
}

.title {
  font-size: 8vw;                 /* Responsive to screen size */
  font-weight: bold;              /* Make it thicc */
  color: #ffd700;                 /* Gold vibes */
  text-shadow: 2px 2px #000000;  /* Dark pop for contrast */
  letter-spacing: 1px;            /* A little breathing room */
  margin-bottom: 20px;            /* Space from what’s below */
  animation: titlePop 0.6s ease;  /* Optional entrance animation */
}

/* Button to enter Moxies Bones DO NOT REMOVE */
.btn-link {
  display: inline-block;
  background-color: #4da6ff;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 5vw;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

/* Result Text Styling */
#resultText {
  font-size: 5.5vw;
  font-family: monospace;
  margin-top: 20px;
  animation: rollFlash 0.3s ease-in-out;
}

/* 🎯 PRIMARY BUTTONS */
button {
  background-color: #4da6ff; /* Moxie Blue */
  color: white;
  padding: 14px 28px;
  font-size: 5vw;
  border: none;
  border-radius: 10px;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* 🌀 Button Interaction */
button:active,
button:focus {
  background-color: #4da6ff;
  outline: none;
}


/* Optional rarity colors */
.dusty    { color: #bbbbbb; }
.glimmer  { color: #4c9aff; }
.radiant  { color: #c57aff; }
.mythborn { color: #ffd700; }
.fated    { color: #ff0033; }
/* 🧹 FOOTER NAV */
footer {
  margin-top: 8rem;
}

/* 🔙 Main Footer Link */
.back-home {
  display: block;
  margin: 2rem auto 0; /* center + top spacing */
  text-decoration: none;
  color: #4da6ff;
  font-size: min(4.5vw, 1.5rem); /* responsive with upper limit */
  font-weight: bold;
  transition: color 0.2s ease;
  text-align: center; /* ensure it’s centered */
}

/* 💭 Subtext under Footer Link */
.back-sub {
  font-size: min(3.5vw, 1rem); /* responsive + capped */
  color: #bbbbbb;
  margin-top: 0.5rem;
  text-align: center;
  font-style: italic;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.reset-zone {
  margin-top: 3rem;  /* Push it away from result block */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;          /* Space between XP text and button */
}

.reset-btn {
  background-color: #888888;
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  opacity: 0.6; /* 0 = invisible, 1 = fully visible */
}

#xpTracker {
  font-size: 1.6rem;
  font-weight: 400;
  color: #bbbbbb;
  margin-bottom: 0.5em;
}
/* 📈 LEVEL BAR CONTAINER */
#level-bar-container {
  width: 80%;
  max-width: 400px;
  height: 24px;
  background-color: #222;
  border-radius: 12px;
  margin: 2rem auto;
  box-shadow: 0 0 6px #ffd70066;
  overflow: hidden;
}

/* 🌟 BAR FILL — GROWS WITH XP */
#level-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffd700, #ff8c00);
  box-shadow: 0 0 8px #ffd700cc;
  transition: width 0.5s ease-in-out;
  border-radius: 12px 0 0 12px;
}
