@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&display=swap');

   /* Avatar Edit Modal Custom Styles */
#avatarEditModal .modal-content.pixel-card {
  background-color: #0d1117; /* Dark background */
  border: 2px solid #00ffcc; /* Neon border */
  border-radius: 12px;
  box-shadow: 0 0 15px #00ffcc;
  font-family: 'Press Start 2P', monospace;
  color: #00ffcc;
}

/* Modal Header */
#avatarEditModal .modal-header {
  border-bottom: 1.5px solid #00ffcc;
  padding: 1rem 1.5rem;
}

#avatarEditModal .modal-title {
  font-weight: bold;
  font-size: 1.2rem;
  color: #00ffcc;
}

/* Modal Footer */
#avatarEditModal .modal-footer {
  border-top: 1.5px solid #00ffcc;
  padding: 1rem 1.5rem;
}

/* Form Labels */
#avatarEditModal label.form-label {
  font-weight: bold;
  color: #00ffcc;
  font-size: 1rem;
  margin-top: 1rem;
  display: block;
  text-shadow: 0 0 6px #00ffcc;
}

/* Select2 Single Select Container */
.select2-container--default .select2-selection--single {
  background-color: #0d1117 !important;
  border: 1.5px solid #00ffcc !important;
  border-radius: 8px !important;
  height: 38px !important;
  padding: 6px 10px !important;
  color: #00ffcc !important;
  font-family: 'Press Start 2P', monospace !important;
  font-size: 0.9rem !important;
  box-shadow: none !important;
  text-shadow: 0 0 5px #00ffcc;
}

/* Placeholder Text */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #007f7f !important;
}

/* Dropdown Arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #00ffcc transparent transparent transparent !important;
}

/* Dropdown Menu */
.select2-dropdown {
  background-color: #0d1117 !important;
  border: 1.5px solid #00ffcc !important;
  border-radius: 8px !important;
  box-shadow: 0 0 12px #00ffcc !important;
  color: #00ffcc !important;
  font-family: 'Press Start 2P', monospace !important;
  font-size: 0.85rem !important;
  max-height: 200px !important;
  overflow-y: auto !important;
}

/* Dropdown Options */
.select2-results__option {
  padding: 8px 15px !important;
  color: #00ffcc !important;
  cursor: pointer;
  text-shadow: 0 0 4px #00ffcc;
}

/* Highlighted Option */
.select2-results__option--highlighted[aria-selected] {
  background-color: #00ffcc !important;
  color: #000 !important;
  text-shadow: none;
}

/* Disabled Options */
.select2-results__option[aria-disabled=true] {
  color: #555 !important;
  cursor: not-allowed !important;
  opacity: 0.5 !important;
  text-shadow: none;
}

/* Adjust z-index so dropdown stays above modal backdrop */
.select2-container {
  z-index: 1051 !important; /* Bootstrap modal backdrop is 1050 */
}

/* Scrollbar styling for dropdown */
.select2-dropdown::-webkit-scrollbar {
  width: 6px;
}
.select2-dropdown::-webkit-scrollbar-thumb {
  background-color: #00ffcc;
  border-radius: 3px;
}
.select2-dropdown::-webkit-scrollbar-track {
  background-color: #0d1117;
}

/* Button Save Styling */
#avatarEditModal .btn-success {
  background-color: #00ffcc;
  border-color: #00ffcc;
  color: #000;
  font-family: 'Press Start 2P', monospace;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 0 10px #00ffcc;
  transition: background-color 0.3s ease;
}

#avatarEditModal .btn-success:hover,
#avatarEditModal .btn-success:focus {
  background-color: #00b399;
  border-color: #00b399;
  color: #fff;
  box-shadow: 0 0 15px #00b399;
}

/* Remove default focus outline on button but keep accessibility */
#avatarEditModal .btn-success:focus {
  outline: 2px solid #00ffcc;
  outline-offset: 2px;
}

/* Modal Close Button */
#avatarEditModal .btn-close {
  filter: invert(75%) sepia(100%) saturate(500%) hue-rotate(120deg) brightness(130%);
}

/* Scrollbar for modal body if overflow */
#avatarEditModal .modal-body {
  max-height: 400px;
  overflow-y: auto;
}

/* Adjust modal dialog width for extra large */
.modal-xl {
  max-width: 700px;
}
/* ----------------------------------------- */
/* SHARPER TEXT FIX for Avatar Dropdown Lists */
/* ----------------------------------------- */

/* Turn off the big glowing text-shadow on each option, and add crisp smoothing */
.select2-results__option {
  /* keep your padding, color, etc… */
  padding: 8px 15px !important;
  color: #00ffcc !important;

  /* remove glow shadow (makes text fuzzy) */
  text-shadow: none !important;

  /* force sharp, subpixel rendering */
  -webkit-font-smoothing: subpixel-antialiased !important;
  -moz-osx-font-smoothing: auto !important;
  text-rendering: optimizeLegibility !important;
}

/* For the highlighted (selected) option too */
.select2-results__option--highlighted[aria-selected] {
  background-color: #00ffcc !important;
  color: #000 !important;
  text-shadow: none !important;
  -webkit-font-smoothing: subpixel-antialiased !important;
  -moz-osx-font-smoothing: auto !important;
  text-rendering: optimizeLegibility !important;
}

/* Also apply sharp smoothing to the single-select display */
.select2-container--default .select2-selection--single {
  /* remove that neon glow from the select box text */
  text-shadow: none !important;

  /* sharp fonts */
  -webkit-font-smoothing: subpixel-antialiased !important;
  -moz-osx-font-smoothing: auto !important;
  text-rendering: optimizeLegibility !important;
}













/* Avatar/Power-Up Cards — Default Theme */
.theme-card {
  background: #1b1b1b;
  border: 3px solid #00ff99;
  border-radius: 14px;
  padding: 1.5rem;
  color: #eaffea;
  box-shadow: 0 0 20px rgba(0, 255, 153, 0.3);
  font-family: 'Press Start 2P', monospace;
  font-size: 0.85rem;
  text-align: center;
}

/* Title heading inside default card */
.theme-card h4,
.theme-card h5 {
  font-size: 1.1rem;
  color: #00ff99;
  margin-bottom: 1rem;
}

/* Badge-style labels (Buff Type / Effect etc.) */
.theme-card .perk-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: bold;
  border-radius: 8px;
  margin: 0 0.25rem 0.5rem;
  color: #000;
}

.theme-card .perk-badge.buff {
  background-color: #00ffee;
}

.theme-card .perk-badge.effect {
  background-color: #ffaa00;
}




/* Force mobile to NOT use sticky or fixed positioning */
@media (max-width: 768px) {
  #themeUnlocks,
  .dropdown-mobile-fix,
  #themeUnlocks .dropdown,
  #themeUnlocks .btn,
  #avatarSelector,
  #avatarSelector .dropdown,
  #avatarSelector .btn {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    z-index: auto !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
}

#themeUnlocks {
  position: relative;
  top: 10rem;
  z-index: 1050;
  font-family: 'Press Start 2P', monospace;
}

#avatarSelector {
  position: relative;
  z-index: 1051; /* ensure it’s above themeUnlocks */
  font-family: 'Press Start 2P', monospace;
}

.quiz-card {
  width: 100% !important;
  margin: 1.5rem auto !important;
  padding: 1.5rem !important;
  border-radius: 1rem !important;
  text-align: center !important;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.2) !important;
  font-size: 1.2rem !important;
}

/* Theme Dropdown Button */
#themeUnlocks .dropdown-toggle {
  background: #FFD700;
  color: #111;
  font-weight: bold;
  border-radius: 10px;
  box-shadow: 0 0 12px #FFD700;
  padding: 0.6rem 1.2rem;
  border: none;
  transition: background 0.3s ease;
}

#themeUnlocks .dropdown-toggle:hover {
  background: #ffcc00;
}

/* Theme Dropdown Menu */
#themeUnlocks .dropdown-menu {
  background-color: #1a1a1a;
  border: 2px solid #FFD700;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
  border-radius: 12px;
  font-size: 0.75rem;
  z-index: 1055 !important;
  position: absolute !important;
}

/* Theme Dropdown Items */
#themeUnlocks .dropdown-item {
  color: #f0f0f0;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

#themeUnlocks .dropdown-item:hover {
  background-color: #333;
  color: #FFD700;
}

#themeUnlocks .dropdown-item.active {
  background-color: #00c853;
  color: #000;
  font-weight: bold;
}

#themeUnlocks .dropdown-item[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Avatar Dropdown Menu */
#avatarSelector .dropdown-menu {
  background-color: #1c1c1c;
  border: 2px solid #444;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 0.75rem;
  z-index: 1056 !important;
  position: absolute !important;
}

/* Avatar Dropdown Button */
#avatarSelector .dropdown-toggle {
  background: #ffa500;
  color: #000;
  font-weight: bold;
  border-radius: 10px;
  box-shadow: 0 0 12px #ffa500;
  padding: 0.6rem 1.2rem;
  border: none;
}

#avatarSelector .dropdown-toggle:hover {
  background: #ff9400;
}

/* Avatar Items */
#avatarSelector .dropdown-item {
  color: #fff7cc;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

#avatarSelector .dropdown-item:hover {
  background-color: #2a2a2a;
  color: #ffa500;
}

#avatarSelector .dropdown-item.active {
  background-color: #00e676;
  color: #000;
  font-weight: bold;
}

#avatarSelector .dropdown-item[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Make the top badge image bigger */
.badge-showcase-featured-img {
  max-height: 200px;
  margin-bottom: 0.75rem;
}

/* Featured badge card container */
.badge-showcase-featured {
  background: linear-gradient(135deg, #2a2a2d, #1f1f21);
  border: 2px solid #FFD700;
  box-shadow: 0 0 30px #FFD700CC;
  padding: 2.5rem;
  max-width: 360px;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge-showcase-featured:hover {
  transform: scale(1.08);
  box-shadow: 0 0 40px #FFD700EE;
}



.todaysBonusBox {
  top: 1rem;
  background: #222;
  border: 2px solid #00ffcc;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  color: #00ffcc;
  font-family: 'Orbitron', monospace;
  font-weight: bold;
  max-width: 300px;
  z-index: 10000;
  box-shadow: 0 0 15px #00ffcc;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.todaysBonusBox > div:first-child {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.todaysBonusBox > div:last-child {
  font-size: 0.95rem;
  line-height: 1.3;
}


.gauntlet-card {
  background: url('/Themes/assets/gauntlet/Gauntlet_card.png') center center no-repeat;
  background-size: 100% 100%; /* Ensures full image is shown */
  width: 90vw;
  max-width: 600px;
  height: 600px;
  margin: 3rem auto;
  padding: 3rem 2rem;
  border: 4px solid #ffcc00;
  border-radius: 16px;
  color: #fff;
  font-family: 'Cinzel', serif;
  overflow: hidden;
  box-shadow: 0 0 25px #ffcc00;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.gauntlet-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5); /* subtle overlay for readability */
  z-index: 0;
}

.gauntlet-card-title,
.gauntlet-card-desc,
.gauntlet-card-button {
  position: relative;
  z-index: 1;
}

/* Header at the top */
.gauntlet-card-title {
  font-size: 3rem;
  color: #ffee70;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px #000;
}

/* Centered description */
.gauntlet-card-desc {
  font-size: 1.5rem;
  color: #d0ffd0;
  padding: 1rem 0;
  line-height: 2.4rem;
  text-shadow: 0 0 5px #000;
}

.gauntlet-card-button a {
  display: inline-block;
  font-size: 2rem;
  padding: 1rem 2rem;
  border: 3px solid #00ffff;
  border-radius: 10px;
  text-decoration: none;
  color: #00ffff;
  background: rgba(0, 0, 0, 0.6);
  font-weight: bold;
  font-family: 'Cinzel', serif;
  text-shadow: 0 0 4px #000;
  transition: transform 0.2s ease, background 0.3s ease, color 0.3s ease;
}

.gauntlet-card-button a::before {
  content: "️⚔️ ";
  font-size: 2rem;
  margin-right: 0.5rem;
}

.gauntlet-card-button a:hover {
  background: #00ffff;
  color: #000;
  transform: scale(1.05);
  text-shadow: none;
}



body {
    background: #0e0e0e;
    font-family: 'Press Start 2P', cursive;
    color: #00ffcc;
}

/* Typography */
.section-title {
    font-size: 1.2rem;
    color: #ffaa00;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.alert {
    font-size: 0.75rem;
}

/* Cards & Layout */
.pixel-card {
    background: #2a2a2d;
    border: 3px solid #FFD700;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    font-size: 0.75rem;
    height: 100%;
}

.pixel-card:hover {
    transform: scale(1.04);
}

/* Main Profile Card */
.profile-card {
    background: #484848;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 0 10px #00ffcc55;
    color: white;
    text-align: center;
    border-left: 6px solid #00ccff; /* Blue left border */
}

/* Username */
.profile-card .username-highlight {
    color: #b266ff !important;
    font-size: 1rem;
    text-shadow: 0 0 4px #b266ff;
}

/* Role Label */
.profile-card .label-role {
    color: #dddddd;
    font-size: 0.75rem;
    margin-top: 0.4rem;
}

/* Program */
.profile-card .label-program {
    color: #00ff99 !important;
    font-size: 0.75rem;
}

.profile-card .program-value {
    color: #00ffaa !important;
    font-size: 0.75rem;
}

/* Achievement Block Styling */
.profile-card .achievement-block,
.profile-card .achievement-box {
    background: #3c3c3c;
    border-radius: 10px;
    margin: 1rem auto;
    padding: 1rem;
    box-shadow: inset 0 0 8px #000;
    color: white;
}

/* Trophy Icon */
.profile-card .achievement-icon {
    font-size: 1.4rem;
    color: #FFD700;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Achievement Text */
.profile-card .achievement-label {
    color: #cccccc !important;
    font-size: 0.9rem;
    display: inline-block;
}

.profile-card .achievement-value {
    color: #00ff00 !important;
    font-size: 1rem;
    margin-left: 0.5rem;
}

/* Current Level Text */
.profile-card .level-label {
    font-size: 0.75rem;
    color: #99ccff;
    margin-top: 0.3rem;
}

/* XP Bar */
.xp-bar {
    background: #1e1e1e;
    border: 2px solid #FFD700;
    margin: 1.5rem auto 0.5rem auto;
    padding: 0.3rem;
    border-radius: 10px;
    width: 90%;
}

.xp-fill {
    height: 20px;
    background: linear-gradient(90deg, #00ffcc, #00ff88);
    border-radius: 8px;
    transition: width 1s ease-in-out;
}

/* XP Label Text */
.xp-bar-label,
.xp-bar p {
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 10px;
    color: white;
    text-shadow: 0 0 2px #000;
}

/* Buttons */
.btn-pixel {
    background-color: #FFD700;
    color: #1e1e1e;
    font-weight: bold;
    border: none;
    padding: 5px 12px;
    margin-top: 8px;
    border-radius: 6px;
    font-size: 0.7rem;
}

/* Icons */
.icon {
    font-size: 2rem;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Make just the icons inside headings bigger */
.profile-card h2 .icon,
.section-title .icon,
.pixel-card h5 .icon,
.pixel-card h4 .icon {
    font-size: 1.6rem;
    vertical-align: middle;
    margin-right: 0.4rem;
}

/* Quiz Cards */
.quiz-card {
    background-color: #28a745;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    width: 100%;
    white-space: normal;
    min-height: 140px;
    margin-bottom: 1.5rem;
}

.quiz-card h4.quiz-title {
    font-size: 1rem;
    color: #00ffff;
    word-break: break-word;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 2.8em;
    margin-bottom: 0.75rem;
}

.quiz-card:hover {
    box-shadow: 0 0 10px #00ffcc55;
    transform: scale(1.02);
    transition: all 0.2s ease-in-out;
}

/* Quiz Status Labels */
.green,
.amber,
.red,
.not-attempted {
    padding: 0.7rem;
    border-radius: 8px;
    font-size: 0.7rem;
    color: #fff;
}
.form-select {
  background-color: #fff;
  color: #222;
  border: 2px solid #555;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-align: center;
  box-shadow: 2px 2px 0 #ccc;
  transition: all 0.2s ease;
}

.form-select:focus {
  outline: none;
  border-color: #FFD700;
  box-shadow: 0 0 5px #FFD700;
}


.green { background: #28a745; }
.amber { background: #ffc107; color: #000; }
.red { background: #dc3545; }
.not-attempted { background: #6c757d; }
/* 🎮 Default Theme — Achievements Section */
.achievement-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem; /* Increased spacing between badges */
  margin-top: 2rem;
  padding: 2rem;
  background: #1c1c1c;
  border: 3px solid #FFD700;
  border-radius: 16px;
  box-shadow: 0 0 14px #FFD70088;
}

.achievement-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #2a2a2d;
  border: 2px dashed #00ffcc;
  border-radius: 10px;
  padding: 1.2rem;
  width: 140px; /* Was 100px */
  text-align: center;
  box-shadow: inset 0 0 8px #00ffcc88;
  transition: transform 0.2s ease-in-out;
}

.achievement-item:hover {
  transform: scale(1.07);
  box-shadow: 0 0 16px #00ffccaa;
}

.achievement-item img.achievement-icon {
  width: 72px; /* Was 48px */
  height: 72px;
  margin-bottom: 0.8rem;
  image-rendering: pixelated;
}

.achievement-item p {
  font-size: 0.65rem; /* Was 0.55rem */
  color: #00ffcc;
  text-shadow: 0 0 3px #00ffcc;
  line-height: 1.3;
  word-break: break-word;
  max-width: 120px;
}


.badge-popup-wrapper {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  pointer-events: none;
}

.badge-popup {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: all 0.6s ease;
  background: linear-gradient(135deg, #1a1a1a, #333);
  border: 2px solid #ffaa00;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  box-shadow: 0 0 18px #ffaa00aa;
  color: #fff;
  min-width: 320px;
  max-width: 90vw;
}

.badge-popup.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.badge-popup img {
  width: 64px;
  height: 64px;
  margin-right: 1rem;
  border-radius: 8px;
  border: 2px solid #ffaa00;
  box-shadow: 0 0 10px #ffaa00;
}

.badge-info h4 {
  font-size: 1.1rem;
  margin: 0 0 0.3rem;
  color: #ffaa00;
  text-shadow: 0 0 5px #ffaa00aa;
}

.badge-info p {
  font-size: 0.75rem;
  margin: 0;
  color: #ccc;
}

/* Starting Point Assessment Styles */
.quiz-card .starting-point-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    background: #FFD700;
    color: #000;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: bold;
    z-index: 2;
}

.quiz-card .starting-point-label {
    background: #00ffcc;
    color: #000;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 5px;
}