
@keyframes glow-smooth {
  0% {
    box-shadow: 0 0 0px 0px rgba(0, 0, 0, 0);
  }
  50% {
    box-shadow: 0 0 15px 10px #ffc107;
  }
  100% {
    box-shadow: 0 0 20px 12px #ff7300;
  }
}
@keyframes flashOverlay {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes burstEffect {
  0% {
    box-shadow: 0 0 20px rgba(0, 128, 255, 0.4), 0 0 28px rgba(0, 128, 255, 0.4);
    background-color: rgba(0, 128, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 28px rgba(0, 128, 255, 0.8), 0 0 44px rgba(0, 128, 255, 0.8);
    background-color: rgba(0, 128, 255, 0.6);
  }
  100% {
    box-shadow: 0 0 20px rgba(0, 128, 255, 0.4);
    background-color: rgba(0, 0, 0, 0.6);
  }
}

@keyframes glowPulse {
  0% {
    filter: drop-shadow(0 0 5px rgba(255, 193, 7, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(255, 193, 7, 1));
  }
  100% {
    filter: drop-shadow(0 0 5px rgba(255, 193, 7, 0.2));
  }
}
@keyframes glowRedPulse {
  0% {
    filter: drop-shadow(0 0 5px rgba(228, 30, 0, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 15px rgb(197, 26, 0));
  }
  100% {
    filter: drop-shadow(0 0 5px rgba(228, 30, 0, 0.2));
  }
}
@keyframes glowSilverPulse {
  0% {
    filter: drop-shadow(0 0 5px rgba(192, 192, 192, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(192, 192, 192, 1));
  }
  100% {
    filter: drop-shadow(0 0 5px rgba(192, 192, 192, 0.2));
  }
}
.glow-amber {
  filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.8));
  animation: glowPulse 4s infinite ease-in-out;
}
.glow-red {
  filter: drop-shadow(0 0 10px rgba(228, 30, 0, 0.8));
  animation: glowRedPulse 4s infinite ease-in-out;
}

.glow-silver {
  filter: drop-shadow(0 0 10px rgba(192, 192, 192, 0.8));
  animation: glowSilverPulse 4s infinite ease-in-out;
}
.buff-tooltip-title {
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-size: 16px;
  margin-bottom: 5px;
  grid-column: 1 / -1;
  grid-row: 1;
  margin: auto 0;
  color: var(--amber);
}
.buff-tooltip-description {
  padding: 6px 0 0;
  font-size: 13px;
  grid-column: 1 / -1;
  grid-row: 2;
  color: var(--ivory-cream);
}
.buff-tooltip {
  grid-template-columns: 1fr 1fr 1fr;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px;
  border-radius: 5px;
  z-index: 1000;
  display: none;
  max-width: 200px;
  transition: opacity 0.3s ease;
}
.debuff-tooltip {
  grid-template-columns: 1fr 1fr 1fr;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px;
  border-radius: 5px;
  z-index: 1000;
  display: none;
  max-width: 200px; 
  transition: opacity 0.3s ease;
}
.debuff-tooltip-title {
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-size: 16px;
  margin-bottom: 5px;
  grid-column: 1 / -1;
  grid-row: 1;
  margin: auto 0;
  color: var(--amber);
}
.debuff-tooltip-description {
  padding: 6px 0 0;
  font-size: 13px;
  grid-column: 1 / -1;
  grid-row: 2;
  color: var(--ivory-cream);
}
.tooltip-stat-value {
  color: var(--steel-blue-hover);
  font-size: 11px;
  text-align: right;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "QuattrocentoSans-Semi-Bold", sans-serif;
  border-radius: 4px;
  padding: 2px 6px;
  background-color: rgba(255, 255, 255, 0.05);
  width: 30px;
}
.tooltip-stat-label {
  color: var(--golden-sand);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "QuattrocentoSans-Semi-Bold", sans-serif;
  align-self: center;
  grid-column: 2;
}
.tooltip-stat-value-white {
  font-size: 10px;
  text-align: right;
  font-weight: 600;
  text-transform: uppercase;
  justify-self: right;
  font-family: "QuattrocentoSans-Semi-Bold", sans-serif;
  border-radius: 4px; 
  padding: 2px 6px;
  width: 30px;
  background-color: rgba(255, 255, 255, 0.05);
  grid-column: 3;
}
.stat-display-tooltip {
  grid-column: 1 / -1;
  grid-row: 3;
  align-items: center;
  margin: 0;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.stat-change {
  display: flex;
  justify-content: space-between;
  padding: 5px;
}
.stat-change-tooltip {
  display: flex;
  justify-content: space-between;
  margin: 2px 0;
}
#equip-button,
#unequip-button {
  grid-row: 6;
  grid-column: 1 / -1;
  background: linear-gradient(to bottom, var(--maroon), #0e121a);
  border: 1px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #5b1818);
  border-image-slice: 1;
  color: var(--ivory-cream);
  text-transform: uppercase;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-size: 12px;
  letter-spacing: 1.4px;
  border-radius: 5px;
  padding: 8px;
  width: 100%;
  cursor: pointer;
  margin: 8px 0 0;
  /* box-shadow: 0px 0px 6px rgba(255, 87, 34, 0.4); */
  transition: transform 0.2s ease-in-out, background 0.3s ease-in-out;
}
#equip-button:active,
#unequip-button:active,
#close-menu-modal#active {
  background: linear-gradient(180deg, var(--deep-red), rgb(75, 0, 0));
  color: var(--amber);
  cursor: pointer;
}
.divider-line {
  height: 1px;
  background-color: rgba(
    192,
    192,
    192,
    0.2
  );
  margin: 8px 0;
  width: 100%;
}
.below-stats {
  grid-column: 1 / -1;
  grid-row: 4;
}
#flavor-text {
  grid-row: 5;
  grid-column: 1 / -1;
  color: var(--slate-gray);
  font-size: 13px;
  padding: 8px 12px 8px 8px;
  line-height: unset;
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  margin: 0 0 4px;
  overflow-y: auto;
  overflow-x: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}
#item-description {
  font-size: 9px;
  grid-column: 4 / span 3;
  grid-row: 2;
  background-color: rgba(50, 63, 72, 0.9);
  border: 0.5px solid #b0b0b0;
  color: #e0e6ed;
  padding: 4px 6px;
  border-radius: 4px;
  text-align: center;
  justify-self: end;
  align-self: center;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
}
.rpg-overlay {
  grid-row: unset;
  grid-column: unset;
  position: fixed;
  top: 0;
  right: 0;
  width: 0;
  height: 100vh !important;
  overflow: hidden !important;
  transition: width 0.5s ease-in-out;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 8;
  display: none;
  align-items: center;
  justify-content: center;
  will-change: width;
}
.rpg-profile {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  grid-column: 1 / span 2;
  grid-row: auto;
  padding: 0;
  max-width: 100%;
  margin: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  color: var(--antiflash-white);
}
.rpg-name h2 {
  grid-column: 1 / span 2;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-weight: 400;
  color: var(--ivory-cream);
  font-size: 14px;
  letter-spacing: 0.5px;
  margin: 4px auto 8px;
  text-align: center;
}
.attribute {
  width: 100%;
  grid-column: 1;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  text-transform: uppercase;
  text-align: right;
  font-size: 12px;
  color: var(--golden-sand);
  padding: 2px 0;
  margin: 2px 0;
}
.attribute-value {
  width: 100%;
  text-transform: capitalize;
  font-family: "QuattrocentoSans-Regular", sans-serif;
  grid-column: 2;
  font-size: 12px;
  color: var(--ivory-cream);
  text-align: left;
  padding: 2px 0;
  margin: 2px 0;
  background-color: rgba(210, 142, 64, 0.1);
  border-radius: 4px;
}
.health-bar,
.mana-bar {
  font-family: "QuattrocentoSans-Semi-Bold", sans-serif;
  grid-column: 1 / -1;
  width: 90%;
  height: 16px;
  background-color: rgba(
    100,
    100,
    100,
    0.2
  );
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 6px;
  position: relative;
  z-index: 10;
}
@keyframes health-bar-pulse {
  0% {
    background-color: #3f1d1d;
  }
  50% {
    background-color: #5a2a2a;
  }
  100% {
    background-color: #3f1d1d;
  }
}
@keyframes mana-bar-pulse {
  0% {
    background-color: #5e3b8c;
  }
  50% {
    background-color: #6f4da0;
  }
  100% {
    background-color: #5e3b8c;
  }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 50%; }
  50% { background-position: 50% 100%; }
  75% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.bar-text.projects-bar {
  animation: health-bar-pulse 16s ease-in-out infinite;
}

.bar-text.energy-bar {
  animation: mana-bar-pulse 8s ease-in-out infinite;
}
.rpg-picture img {
  border-radius: 50%;
  background: linear-gradient(to bottom right, #4682b4, #c0c0c0);
  padding: 6px;
  box-shadow: 0 0 10px rgba(70, 130, 180, 0.4), 0 0 8px rgba(192, 192, 192, 0.4);
  background-clip: padding-box;
}
.rpg-picture.gukar img,
#character-gukar img {
  border-radius: 50%;
  background: linear-gradient(to bottom right, #b00404, #2b1c0a);
  box-shadow: 0 0 10px rgba(139, 0, 0, 0.6), 0 0 8px rgba(46, 46, 46, 0.5);
  padding: 6px;
  background-clip: padding-box;
}
#top-modal.gukar img {
  border-radius: 50%;
  background: linear-gradient(to bottom right, #b00404, #2b1c0a);
  box-shadow: 0 0 10px rgba(139, 0, 0, 0.6), 0 0 8px rgba(46, 46, 46, 0.5);
  padding: 2px;
  background-clip: padding-box;
}
.rpg-picture.merlyn img,
#character-merlyn img {
  border-radius: 50%;
  background: linear-gradient(to bottom right, #ffa500, #8e4802);
  box-shadow: 0 0 12px rgba(139, 90, 43, 0.7), 0 0 10px rgba(255, 127, 0, 0.6);
  padding: 6px;
  background-clip: padding-box;
}
#top-modal.merlyn img {
  border-radius: 50%;
  background: linear-gradient(to bottom right, #ffa500, #8e4802);
  box-shadow: 0 0 12px rgba(139, 90, 43, 0.7), 0 0 10px rgba(255, 127, 0, 0.6);
  padding: 2px;
  background-clip: padding-box;
}
.character-option-inside {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.character-option img{
  width: auto;
}

#exit-world-button {
  grid-row: 6;
  grid-column: 1 / -1;
  background: linear-gradient(to bottom, #5b1818, #0e121a);
  color: var(--golden-sand);
  border: 2px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #5b1818);
  border-image-slice: 1;
  padding: 10px 16px;
  cursor: pointer;
  text-transform: uppercase;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-size: 17px;
  box-shadow: 0px 0px 15px rgba(229, 192, 123, 0.8);
  margin: 10px 0;
  width: 80%;
  justify-self: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.menu-button {
  background: linear-gradient(to bottom, #d17a00, #4a1c13);
  color: var(--ivory-cream);
  border: 1px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #4a1c13);
  border-image-slice: 1;
  text-transform: uppercase;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-size: 13px;
  letter-spacing: 1.4px;
  line-height: 0.8;
  padding: 8px 0;
  box-shadow: inset 0px -1px 3px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: box-shadow 0.1s ease-in-out, background 0.3s ease-in-out,
    border-image 0.3s ease-in-out;
}
.menu-button:hover {
  background: linear-gradient(to bottom, #b36800, #3b1710);
  box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.6);
}
.menu-button:active {
  background: linear-gradient(to bottom, #8a4b00, #2e120c);
  box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.6);
}
.rpg-label {
  padding: 0 4px 0 0;
  margin: 4px 0;
  font-weight: bold;
  font-size: 14px;
  color: var(--amber);
}
.rpg-value {
  padding: 0 4px 0 0;
  margin: 4px 0;
  font-size: 14px;
  color: var(--antiflash-white);
}
.rpg-details {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  padding: 0 0 20px;
  text-align: left;
  width: 100%;
  height: 100%;
  margin: 0;
  justify-content: center;
  color: var(--antiflash-white);
  background-color: var(--rich-black);
  border-radius: 0 0 16px 16px;
  grid-template-rows: auto;
  gap: 0;
}
.stat-grid {
  grid-column: 1 / span 2;
  display: grid;
  grid-template-columns: repeat(min-content, minmax(200px, 1fr));
  grid-auto-rows: auto;
  width: 100%;
  gap: 20px 12px;
  align-items: start;
  padding: 0 20px;
  margin: 16px 0 0;
  border-radius: 0;
  background: transparent;
}
.stat-item {
  display: grid;
  flex-direction: column;
}
.stat-divider {
  grid-row: 2;
  grid-column: 1 / span 2;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--grey);
}
.stat-label {
  font-size: 14px;
  font-weight: bold;
  color: var(--golden-sand);
  text-align: center;
  justify-self: right;
  margin: 0;
  grid-column: 1 / span 2;
  grid-row: 1;
  width: 100%;
}
.stat-value {
  font-size: 14px;
  text-align: left;
  color: var(--ivory-cream);
  padding: 8px 0 0 0;
  margin: 0;
  justify-self: left;
  width: 100%;
  align-self: center;
}
.stat-name {
  text-align: center;
  grid-column: 1 / span 2;
  align-self: center;
  font-size: 18px;
  text-transform: uppercase;
  justify-self: center;
  font-weight: 600;
  color: var(--amber);
}
.experience-needed {
  font-size: 12px;
  text-transform: none;
  padding: 8px 20px 0;
  margin: 0;
}
.dark-stat {
  background: rgba(0, 0, 0, 0.4);
}
.light-stat {
  background: rgba(0, 0, 0, 0.2);
}
.class-selections-box {
  grid-row: 1;
  grid-column: 3;
  align-content: center;
}
.class-selections-title {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--tangerine);
  padding: 0;
  font-weight: 600;
  margin: 8px 0;
  text-align: center;
}
.class-selections li {
  font-size: 11.5px !important;
  color: var(--antiflash-white);
  text-align: center;
  font-family: "OpenSans-Regular" !important;
}
.class-selections {
  margin: 0;
  padding: 0;
}
.level {
  color: #b0b0b0;
  font-family: "QuattrocentoSans-Regular", sans-serif;
  font-weight: 400;
  font-size: 16px;
  text-transform: none;
  margin: 4px 0 0;
}
.rpg-icon,
.rpg-icon-mobile {
  display: inline-block;
  will-change: transform;
  width: 48px;
  height: 48px;
  cursor: pointer;
  margin: 0;
  padding: 0;
  transform-origin: center;
  transition: transform 0.6s ease, fill 0.6s ease;
  fill: rgba(0, 0, 0, 0.9);
}
.rpg-row.active .rpg-icon,
.rpg-icon:hover,
.rpg-row-mobile.active .rpg-icon-mobile,
.rpg-icon-mobile:hover {
  transform: scale(1.3);
  fill: var(--amber);
}
.rpg-row svg,
.rpg-row img {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
#class-profile-icon.profile-icon {
  grid-column: 1 / span 2;
  width: 36px;
  height: 36px;
  background-size: cover;
  background-position: center;
  margin: auto 25px;
}
.menu-button {
  grid-column: 4;
  width: 56px;
  padding: 8px 0px;
  height: 32px;
  justify-self: right;
}
.profile-header {
  display: grid;
  grid-template-columns: 60px 60px 1fr 60px 60px;
  justify-content: space-between;
  align-items: center;
  font-family: "Cinzel-SemiBold", serif;
  color: var(--amber);
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  grid-column: 1;
  grid-row: 1;
  min-height: 48px;
  height: 48px;
  width: 100%;
  margin: 0;
  padding: 0;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
  background: linear-gradient(to bottom, #4b0e0e, #0e121a),
    url("/img/transparent-bg/subtle-carbon.png");
  border-bottom: 1px solid rgba(184, 135, 11, 0.5);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
  border-left: none;
  border-right: none;
  z-index: 1;
  overflow: hidden;
}
.profile-header p {
  grid-column: 3;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  letter-spacing: 1.5px;
  font-size: 24px;
  color: var(--golden-sand);
  text-shadow: 0 0 10px rgba(162, 132, 43, 0.5);
}
.rpg-row-mobile {
  grid-template-columns: none;
  height: 56px;
  width: 56px;
  border-radius: 50px;
  justify-content: center;
  align-items: center;
  align-content: center;
  justify-items: center;
  background: var(--grey);
  display: block;
  margin: auto;
  padding: 0;
}
.rpg-icon-description {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  margin: auto;
  clear: both;
  padding: 20px;
  font-size: 14px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  height: 100%;
  line-height: 1.5;
  text-align: center;
  justify-content: center;
  width: 100%;
  align-items: start;
}
.bar-container {
  /* border: 1px #333333 solid;
  border-radius: 10px; */
  border: 1px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #4a1c13);
  border-image-slice: 1;
  position: relative;
  overflow: hidden;
  z-index: 1;
  width: 95%;
  margin: auto;
}
.experience-bar-fill {
  background-color: rgba(14, 18, 26, 1);
  height: 100%;
  width: 0%;
  transition: width 0.5s ease;
  z-index: 2;
}
.months {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 100%;
}
.month {
  width: 8.33%;
  height: 30px;
  background-color: transparent;
  border-left: 1px solid var(--grey);
  transition: background-color 0.3s;
  position: relative;
  z-index: 5;
}
.month-fill {
  position: absolute;
  top: 0;
  left: 0;
  background-color: transparent;
  height: 100%;
  transition: width 0.3s ease;
  animation: flareUp 6s ease-in-out infinite;
  z-index: 99;
}

/* @keyframes flareUp {
  0% {
    background-color: #0e121a;
  }
  33% {
    background-color: #ffa500;
  }
  66% {
    background-color: #ff7300;
  }
  100% {
    background-color: #0e121a;
  }
} */

@keyframes flareUp {
  0% {
    background-color: #ffc107;
  }
  33% {
    background-color: #ff9f00;
  }
  66% {
    background-color: #ff7300;
  }
  100% {
    background-color: #ffc107;
  }
}

.month.completed .month-fill {
  width: 100%;
  z-index: 1;
}
.month:first-child {
  border-left: none;
}
hr.stat-divider {
  width: 100%;
  color: rgba(255, 255, 255, 0.3);
  border-bottom: none;
  border-right: none;
  border-left: none;
  margin: 0 auto 8px !important;
}
.above-talents {
  margin: 20px auto 0 !important;
}
#comingSoon {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 18px;
  font-family: "Quattrocentosans-Bold", sans-serif;
  text-transform: uppercase;
  color: var(--ivory-cream);
  margin: 0;
}
.rpg-left {
  display: grid;
  padding: 0;
  gap: 0px 8px;
  align-items: start;
  grid-column: 1;
  grid-row: 2;
  grid-template-rows: auto;
  background-image: url("/img/stone-wall-bg-grey.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: darken;
  background-color: rgba(16, 6, 0, 0.7);
}
.row-1 {
  grid-row: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  padding: 8px 12px;
}
.row-2-3-wrapper {
  position: relative;

  grid-column: 1 / -1;
  grid-row: 2;
}
/* row-2 */
.experience-bar {
  grid-row: 2;
  grid-column: 1 / -1;
  width: 100%;
  height: 60px;
  max-width: 600px;
  text-align: center;
  font-family: "QuattrocentoSans-Regular", sans-serif;
  color: #c0c0c0;
}
.row-3 {
  grid-row: 3;
  grid-column: 1 / -1;
  align-content: center;
  height: 50px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(184, 135, 11, 0.5);
}
.row-4 {
  display: grid;
  grid-template-columns: 1fr 0.75fr 1fr 1fr 0.75fr 1fr;
  grid-template-rows: repeat(6, 36px);
  background-image: linear-gradient(
      to left,
      rgba(19, 8, 1, 0.7) 15%,
      transparent,
      rgba(19, 8, 1, 0.4) 85%
    ),
    url("/img/rpg-profile-picture.webp");
  background-size: cover;
  grid-column: 1 / -1;
  grid-row: 3;
  gap: 4px 0;
  padding: 12px 0;
  margin: 0;
  align-items: center;
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;

}
.row-4 p {
  font-size: 12px;
  margin: 0;
  padding: 0;
  color: var(--ivory-cream);
}
.row-4 p:nth-of-type(odd) {
  text-align: right;
}

.row-4 p:nth-of-type(even) {
  text-align: left;
}
.row-5 {
  display: grid;
  grid-template-columns: 3fr 1fr 2fr;
  justify-content: center;
  align-items: center;
  grid-column: 1 / span 3;
  width: 100%;
  margin: 0;
  grid-row: 4;
  padding: 0 20px;
  height: 50px;
  border-top: 1px solid rgba(184, 135, 11, 0.5);
}
.row-5.equipment-active {
  grid-template-columns: 2fr auto auto;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
#character-vault,
#character-equipment,
#character-talents {
  grid-row: 5;
}
.common {
  color: #bdc3c7;
}
.uncommon {
  color: #2ecc71;
}
.rare {
  color: #3498db; 
}
.epic {
  color: #9b59b6;
}
.legendary {
  color: #e67e22;
}
#row1-talent1 {
  grid-column: 2;
}
#row1-talent2 {
  grid-column: 3;
}
#row1-talent3 {
  grid-column: 4;
}
#row1-talent4 {
  grid-column: 5;
}
#row2-talent1 {
  grid-column: 1;
}
#row2-talent2 {
  grid-column: 2;
}
#row2-talent3 {
  grid-column: 3;
}
#row2-talent4 {
  grid-column: 4;
}
#row3-talent1 {
  grid-column: 1;
}
#row3-talent2 {
  grid-column: 3;
}
#row3-talent3 {
  grid-column: 4;
}
#row3-talent4 {
  grid-column: 5;
}
#row4-talent1 {
  grid-column: 1;
}
#row4-talent2 {
  grid-column: 2;
}
#row4-talent3 {
  grid-column: 3;
}
#row4-talent4 {
  grid-column: 4;
}
#row4-talent5 {
  grid-column: 5;
}
#row5-talent1 {
  grid-column: 2;
}
#row5-talent2 {
  grid-column: 3;
}
#row5-talent3 {
  grid-column: 4;
}
#row6-talent1 {
  grid-column: 1;
}
#row6-talent2 {
  grid-column: 2;
}
#row6-talent3 {
  grid-column: 3;
}
#row7-talent1 {
  grid-column: 2;
}
#row7-talent2 {
  grid-column: 3;
}
#row7-talent3 {
  grid-column: 4;
}
#row7-talent4 {
  grid-column: 5;
}
#row8-talent1 {
  grid-column: 1;
}
#row8-talent2 {
  grid-column: 3;
}
#row8-talent3 {
  grid-column: 4;
}
#row8-talent4 {
  grid-column: 5;
}
#row9-talent1 {
  grid-column: 1;
}
#row9-talent2 {
  grid-column: 3;
}
#head,
#neck,
#shoulder,
#chest,
#ring,
#relic,
#gloves,
#legs,
#boots,
#mainHand,
#offHand,
#ranged {
  width: 36px;
}
#head,
#neck,
#shoulder,
#chest,
#ring,
#relic {
  justify-self: center;
}
#gloves,
#legs,
#boots,
#mainHand,
#offHand,
#ranged {
  justify-self: center;
}
#head {
  grid-column: 2;
  grid-row: 1;
}
#neck {
  grid-column: 2;
  grid-row: 2;
}
#shoulder {
  grid-column: 2;
  grid-row: 3;
}
#chest {
  grid-column: 2;
  grid-row: 4;
}
#ring {
  grid-column: 2;
  grid-row: 5;
}
#relic {
  grid-column: 2;
  grid-row: 6;
}
#gloves {
  grid-column: 5;
  grid-row: 1;
}
#legs {
  grid-column: 5;
  grid-row: 2;
}
#boots {
  grid-column: 5;
  grid-row: 3;
}
#mainHand {
  grid-column: 5;
  grid-row: 4;
}
#offHand {
  grid-column: 5;
  grid-row: 5;
}
#ranged {
  grid-column: 5;
  grid-row: 6;
}
.slot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  border: 1px solid #363636;
  background-color: rgba(0, 0, 0, 0.65);
}
.equipped-slot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  background: linear-gradient(
    to top left,
    rgba(255, 210, 29, 0.3),
    rgba(255, 141, 20, 0.3)
  );
}
.slot img,
.equipped-slot img {
  width: 100%; 
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 5px;
  background-color: #35251d;
}
.equipped-border {
  border: 1px solid #ffb300;
  border-radius: 4px;
}
.border-common {
  border-color: #bdc3c7 !important;
  box-shadow: 0px 0px 4px rgba(243, 244, 246, 0.3) !important;
}
.border-uncommon {
  border-color: #2ecc71 !important;
  box-shadow: 0px 0px 6px rgba(50, 168, 82, 0.4) !important;
}
.border-rare {
  border-color: #3498db !important;
  box-shadow: 0px 0px 6px rgba(59, 108, 169, 0.4) !important;
}
.border-epic {
  border-color: #9b59b6 !important;
  box-shadow: 0px 0px 6px rgba(125, 59, 170, 0.5) !important;
}
.border-legendary {
  border-color: #e67e22 !important;
  box-shadow: 0px 0px 6px rgba(255, 179, 0, 0.5) !important;
}
#toggle-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-items: center;
}
#toggle-buttons button {
  background: linear-gradient(180deg, #1b1b1b, #0e0e0e); 
  border: 1px solid transparent;
  border-image: linear-gradient(
    to bottom,
    #e5c07b,
    #2d2d2d
  );
  border-image-slice: 1;
  color: var(--golden-sand);
  text-transform: uppercase;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-size: 13px;
  letter-spacing: 1.4px;
  padding: 8px;
  width: 90%;
  box-shadow: inset 0px -1px 3px rgba(0, 0, 0, 0.4);
  text-shadow: 0px 2px 4px rgba(229, 192, 123, 0.3);
  transition: transform 0.2s ease-in-out, background 0.3s ease-in-out,
    border-image 0.3s ease-in-out, box-shadow 0.1s ease-in-out;
}
.active-section-button {
  background: linear-gradient(
    to bottom,
    #b34f00,
    #d17a00
  ) !important;
  color: #f0e6d2 !important;
  font-weight: 600;
  font-size: 13px !important;
  border: 1px solid transparent;
  border-image: linear-gradient(
    to bottom,
    #ffc107,
    #0e121a
  ) !important; 
  border-image-slice: 1;
  box-shadow: inset 0px -1px 3px rgba(0, 0, 0, 0.4);
  text-shadow: 0px 1px 3px rgba(60, 79, 118, 0.1);
  transform: scale(1.04);
  transition: transform 0.2s ease-in-out, background 0.3s ease-in-out,
    border-image 0.3s ease-in-out, box-shadow 0.1s ease-in-out;
}
.active-section-button:active {
  background: linear-gradient(
    to bottom,
    #a63c00,
    #b34f00
  );
  color: #f0e6d2;
  border-image: linear-gradient(
    to bottom,
    #ff7300,
    #6b4f00
  );
  transform: scale(1.03);
  box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.6);
  transition: transform 0.1s ease-in-out, background 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
}
#toggleVault {
  grid-column: 1;
}
#toggleEquipment {
  grid-column: 2;
}
#toggleTalents {
  grid-column: 3;
}
#the-unyielding-grunt,
#a-dream-of-eagles,
#loyal-cavalier {
  color: var(--amber);
}
#the-unyielding-grunt img {
  background-image: radial-gradient(circle, rgb(183, 104, 0), rgba(0, 0, 0, 1));
  background-size: cover;
}
#a-dream-of-eagles img {
  background-image: radial-gradient(
    circle,
    rgba(139, 0, 0, 1),
    rgba(0, 0, 0, 1)
  );
  background-size: cover;
}
#loyal-cavalier img {
  background-image: radial-gradient(
    circle,
    rgba(146, 146, 146, 0.4),
    rgba(0, 0, 0, 1)
  );
  background-size: cover;
}
.talent-slot.dull {
  border-color: rgba(70, 130, 180, 0.4);
}
.talent-slot.mid-bright {
  border-color: rgb(70, 130, 180);
}
.talent-slot.maxed-out {
  border-color: var(--amber);
}

.talent-slot.parent-locked {
  border-color: var(--deep-maroon);
}
.talent-row[style*="brightness(0.6)"] .talent-slot {
  cursor: not-allowed;
  opacity: 0.7;
}
.talent-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  filter: brightness(0.9);
}
.talent-slot.dull img {
  filter: brightness(0.6);
}
.talent-slot img.locked {
  filter: brightness(0.3);
}

.talent-slot img.unlocked {
  filter: brightness(1);
}

.talent-slot.purple img {
  background-image: radial-gradient(
    circle,
    rgba(128, 0, 128, 1),
    rgba(0, 0, 0, 1)
  );
  background-size: cover;
}
.talent-slot.red img {
  background-image: radial-gradient(
    circle,
    rgba(139, 0, 0, 1),
    rgba(0, 0, 0, 1)
  );
  background-size: cover;
}
.talent-slot.green img {
  background-image: radial-gradient(
    circle,
    rgba(34, 139, 34, 1),
    rgba(0, 0, 0, 1)
  );
  background-size: cover;
}
.talent-slot.amber img {
  background-image: radial-gradient(
    circle,
    rgba(255, 140, 0, 1),
    rgba(0, 0, 0, 1)
  );
  background-size: cover;
}
.talent-slot.blue img {
  background-image: radial-gradient(
    circle,
    rgba(0, 0, 139, 1),
    rgba(0, 0, 0, 1)
  );
  background-size: cover;
}
.talent-slot.gold img {
  background-image: radial-gradient(
    circle,
    rgba(255, 215, 0, 1),
    rgba(0, 0, 0, 1)
  );
  background-size: cover;
}
.talent-slot.silver img {
  background-image: radial-gradient(
    circle,
    rgba(192, 192, 192, 1),
    rgba(0, 0, 0, 1)
  );
  background-size: cover;
}
.talent-slot.cyan img {
  background-image: radial-gradient(
    circle,
    rgba(0, 139, 139, 1),
    rgba(0, 0, 0, 1)
  );
  background-size: cover;
}
.talent-slot.magenta img {
  background-image: radial-gradient(
    circle,
    rgba(255, 0, 255, 1),
    rgba(0, 0, 0, 1)
  );
  background-size: cover;
}
.talent-slot.orange img {
  background-image: radial-gradient(
    circle,
    rgba(255, 69, 0, 1),
    rgba(0, 0, 0, 1)
  );
  background-size: cover;
}
.talent-slot.teal img {
  background-image: radial-gradient(
    circle,
    rgba(0, 128, 128, 1),
    rgba(0, 0, 0, 1)
  );
  background-size: cover;
}
.talent-slot.lavender img {
  background-image: radial-gradient(
    circle,
    rgba(230, 230, 250, 1),
    rgba(0, 0, 0, 1)
  );
  background-size: cover;
}
.talent-slot.pink img {
  background-image: radial-gradient(
    circle,
    rgba(255, 20, 147, 1),
    rgba(0, 0, 0, 1)
  );
  background-size: cover;
}
@media (min-width: 769px) and (max-width: 1200px) {
  .about-wrapper {
    width: 80%;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    gap: 20px;
  }
}
.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(
    0,
    0,
    0,
    0.3
  );
  z-index: 1;
}
.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.content {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: inherit;
  grid-template-columns: inherit;
  grid-template-rows: inherit;
}
.character-description {
  grid-row: 2;
  grid-column: 1 / -1;
  margin: 10px 0 0;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 10px;
  color: white;
  font-size: 0.9rem;
  line-height: 1.4;
}
#class1-button,
#class2-button,
#class3-button,
#select-button-ian,
#select-button-gukar,
#select-button-merlyn {
  grid-row: 4;
  grid-column: 1 / -1;
  font-size: 16px;
  margin: 20px 0;
  width: 100%;
  height: 45px;
  align-self: end;
}
.class-1-grid,
.class-2-grid,
.class-3-grid {
  padding: 20px 20px 0;
  /* gap: 8px 20px; */
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  margin: 10px 12px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}
.class-2-grid {
  grid-row: 1;
  grid-column: 2;
}
.class-3-grid {
  grid-row: 1;
  grid-column: 3;
}
.class-grid-row-1 {
  display: grid;
  grid-row: 1;
  grid-column: 1 / -1;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 20px 12px;
  border-radius: 4px;
}
.class-grid-row-2 {
  padding: 20px 2px;
  height: auto;
}
#class-1-grid-icon,
#class-2-grid-icon,
#class-3-grid-icon,
#class-1-grid-name,
#class-2-grid-name,
#class-3-grid-name {
  grid-row: 1;
  grid-column: 1 / -1;
  margin: 0;
}
#class-1-grid-icon,
#class-2-grid-icon,
#class-3-grid-icon {
  width: 44px;
  height: 44px;
  justify-self: left;
}
#class-1-grid-name,
#class-2-grid-name,
#class-3-grid-name {
  justify-content: center;
  display: flex !important;
  align-content: center;
  flex-wrap: wrap;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--tangerine);
  font-size: 26px;
  margin: 0;
}
.class-1-description,
.class-2-description,
.class-3-description {
  grid-row: 3;
  grid-column: 1 / -1;
  padding: 10px;
  margin-top: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  color: white;
  font-size: 0.9rem;
  line-height: 1.4;
}


#char-back,
#class-back {
  grid-row: 2;
  grid-column: 2;
  color: var(--golden-sand);
  border: 2px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #ff7300);
  border-image-slice: 1;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  text-transform: uppercase;
  margin: 10px 0;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-size: 17px;
  width: 85%;
  justify-self: center;
}
.character-selection,
.class-selection {
  display: grid;
  grid-row: 2;
  grid-column: 1 / -1;
  padding: 8px 20px;
  gap: 0 20px;
  grid-template-rows: min-content;
}
.character-selection img {
  width: 115px;
  height: 115px;
  border-radius: 50%;
  margin: 8px 0;
  background: linear-gradient(to bottom right, #4682b4, #c0c0c0);
  padding: 4px;
  box-shadow: 0 0 10px rgba(70, 130, 180, 0.4), 0 0 8px rgba(192, 192, 192, 0.4);
}
#character-select-header {
  grid-row: 1;
}
#character-ian,
#character-gukar,
#character-merlyn {
  /* display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 3fr 2fr 1fr;
  grid-template-rows: auto;
  padding: 20px;
  gap: 8px 20px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  margin: 8px 12px; */

  padding: 20px 20px 0;
    /* gap: 8px 20px; */
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    margin: 10px 12px;
    display: grid
;
    grid-template-rows: auto auto 1fr auto;
}

#character-ian {
  grid-row: 1;
  grid-column: 1;
}
#character-gukar {
  grid-row: 1;
  grid-column: 2;
}
#character-merlyn {
  grid-row: 1;
  grid-column: 3;
}
#character-ian img,
#character-gukar img,
#character-merlyn img {
  grid-column: 1;
  grid-row: 1;
}
#character-ian .character-name,
#character-gukar .character-name,
#character-merlyn .character-name {
  grid-column: 1;
  grid-row: 1;
  text-transform: uppercase;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  color: var(--golden-sand);
  padding: 4px 0 0;
  margin: 0;
}

.character-stats {
  padding: 12px 8px;
  border-radius: 8px;
  text-align: right;
  display: grid;
  grid-template-columns: auto;
}

.character-stats-char {
  padding: 12px 0;
  text-align-last: justify;
  margin: 0;
}
.character-stats ul {
  margin: 0;
}
.character-stats li {
  text-align: right;
  margin: 0;
}
.class-selection-str,
.class-selection-agi,
.class-selection-sta,
.class-selection-int,
.class-selection-spi,
.class-selection-value {
  font-size: 11px !important;
}
#resetButton {
  background: linear-gradient(to bottom, var(--maroon), #0e121a);
  border: 1px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #5b1818);
  border-image-slice: 1;
  color: var(--ivory-cream);
  text-transform: uppercase;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-size: 13px;
  letter-spacing: 1.4px;
  border-radius: 5px;
  padding: 8px;
  margin: 0;
  width: 100%;
  grid-column: 1;
  grid-row: 1;
}
.health-bar-fill.health-bar-high {
  background: linear-gradient(
    to right,
    #3f1d1d,
    #b8860b
  );
}
.health-bar-fill.health-bar-medium {
  background: linear-gradient(to right, #ffeb3b, #fbc02d);
}
.health-bar-fill.health-bar-low {
  background: linear-gradient(to right, #f44336, #b71c1c);
}
.mana-bar-fill.mana-bar-high {
  background: linear-gradient(to left, #5e3b8c, #0e121a);
}
.mana-bar-fill.mana-bar-medium {
  background: linear-gradient(to right, #6a5acd, #4b0082);
}
.mana-bar-fill.mana-bar-low {
  background: linear-gradient(
    to right,
    #9c27b0,
    #6a1b9a
  );
}
#character-talents,
#inventory,
#character-equipment,
#character-vault {
  background: linear-gradient(
      to top,
      rgba(31, 12, 2, 0.65),
      rgba(44, 21, 21, 0.45)
    ),
    url("/img/stone-wall-bg-red.webp");
  background-color: rgb(38 37 36 / 44%);
  background-blend-mode: hard-light;
  width: 100%;
}
#bag1-button:disabled,
#bag2-button:disabled {
  background: linear-gradient(to bottom, #8b5b3e, #a68a6d);
  color: var(--amber);
  box-shadow: inset 0px -1px 4px rgba(0, 0, 0, 0.4),
    /* Inner shadow */ 0px 0px 6px rgba(229, 192, 123, 0.5);
  border: 1px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #3b2418);
  border-image-slice: 1;
  transform: scale(0.92);
  filter: brightness(1.1);
}
#bag1-button {
  grid-row: 1;
  grid-column: 3;
  background: linear-gradient(to bottom, #3b2418, #5a4735);
  border: 1px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #3b2418);
  border-image-slice: 1;
  color: var(--ivory-cream);
  text-transform: uppercase;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-size: 13px;
  letter-spacing: 1.4px;
  margin: 0 2px 4px auto;
  padding: 8px;
  box-shadow: inset 0px -1px 3px rgba(0, 0, 0, 0.3);
  text-shadow: 0px 0px 4px rgba(255, 193, 7, 0.5);
  transition: box-shadow 0.1s ease-in-out;
}
#bag2-button {
  grid-row: 1;
  grid-column: 4;
  background: linear-gradient(to bottom, #3b2418, #5a4735);
  color: var(--ivory-cream);
  border: 1px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #3b2418);
  border-image-slice: 1;
  text-transform: uppercase;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-size: 13px;
  letter-spacing: 1.4px;
  margin: 0 0 4px 2px;
  padding: 8px;
  box-shadow: inset 0px -1px 3px rgba(0, 0, 0, 0.3);
  text-shadow: 0px 0px 4px rgba(255, 193, 7, 0.5);
  transition: box-shadow 0.1s ease-in-out;
}
#remaining-points {
  background-color: rgba(210, 142, 64, 0.1);
  padding: 2px 4px;
  border-radius: 4px;
}
#confirmYes:hover,
#talentResetConfirmYes:hover,
#confirmNo:hover,
#talentResetConfirmNo:hover {
  filter: brightness(1.2);
}
#confirmYes:active,
#talentResetConfirmYes:active,
#confirmNo:active,
#talentResetConfirmNo:active {
  transform: scale(0.97);
}
.menu-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 80%;
 
  background: radial-gradient(circle, rgba(0, 0, 0, 0.5) 30%, transparent),
  linear-gradient(
    to top,
    #2c3f5b, #1b2c42, #4b9b8a, #0e121a
  );
  background-size: 400% 400%;
  animation: gradient-shift 16s ease infinite;
  border: 2px solid var(--amber);
  border-radius: 10px;
  padding: 20px;
  z-index: 100;
  width: 90%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.menu-modal.hidden {
  display: none;
}
.menu-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0;
}
.menu-option-button {
  background: linear-gradient(to bottom, var(--amber), var(--tangerine));
  color: var(--rich-black);
  border: 1px solid var(--amber);
  padding: 10px 20px;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  border-radius: 4px;
  text-shadow: 0px 2px 4px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  height: 50px;
  transition: transform 0.2s ease-in-out, background 0.3s ease-in-out;
}
.menu-option-button:hover {
  background: linear-gradient(to bottom, var(--tangerine), var(--amber));
  transform: translateY(-2px);
}
#close-menu-modal {
  transition: transform 0.2s ease-in-out, background 0.3s ease-in-out;
  background: linear-gradient(to bottom, var(--maroon), #0e121a);
  border: 1px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #5b1818);
  border-image-slice: 1;
  color: var(--ivory-cream);
  text-transform: uppercase;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-size: 1rem;
  letter-spacing: 1.4px;
  border-radius: 4px;
  cursor: pointer;
  padding: 10px 40px;
  height: 50px;
}
#menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(14, 18, 26, 0.8);
  z-index: 7;
  display: none;
}
#menu-overlay.visible {
  display: block;
}
#menu-overlay.hidden {
  display: none;
}
#menu-modal h2{
  padding: 8px 0 0;
  margin: 0;
  font-size: 1.6rem;
}
#menu-modal ul {
  margin: 0;
  background: radial-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
  padding: 20px;
  border-radius: 4px;
}
#menu-modal ul li:nth-child(even){
  font-size: 13px;
  padding: 2px 0 8px;
}
#menu-modal ul li:nth-child(odd) {
  font-size: 14px;
  padding: 6px 0 2px;
  color: var(--golden-sand);
}