/* ---------------------- */
/* Base Layout */
/* ---------------------- */
body {
  margin: 0;
  min-height: 100vh; /* ✅ Allow scrolling when needed */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  font-family: 'Inter', sans-serif; /* Elegant serif font */
  background-color: #111;
  color: #f1f1f1;
}

/* Only hide overflow on landing page - but allow scrolling on mobile */
body.landing-page {
  min-height: 100vh;
  overflow: auto;
}

/* Allow scrolling on mobile devices */
@media screen and (max-width: 768px) {
  /* Keep fight name and icon on a single row */
  .fight-name {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    font-size: 1.2em !important;
  }

  .fight-name span {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 85vw !important;
    display: inline-block !important;
  }

  .fight-icon {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 auto !important;
  }
  body.landing-page {
    overflow: auto !important;
    min-height: 100vh;
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
  }
  
  /* Ensure all mobile pages can scroll */
  body {
    overflow-x: hidden; /* Prevent horizontal scroll */
    overflow-y: auto;   /* Allow vertical scroll */
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
  }
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1000px;
}

/* Only constrain wrapper height on landing page */
body.landing-page .wrapper {
  min-height: 100vh;
  overflow: visible;
}

/* Allow wrapper scrolling on mobile */
@media screen and (max-width: 768px) {
  body.landing-page .wrapper {
    overflow: visible !important;
    min-height: 100vh;
  }
}

/* ---------------------- */
/* Containers */
/* ---------------------- */
.container {
  padding: 4rem;
  background: #1e1e1e;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0; /* Remove vertical gap between children */
}

.container.wide {
  max-width: 750px;
}


/* ---------------------- */
/* Typography */
/* ---------------------- */

/* Custom autocomplete styling */
.autocomplete-wrapper {
  position: relative;
  width: 100%;
}

.suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #2a2a2a;
  border: 1px solid #444;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.suggestion-item {
  padding: 12px 16px;
  color: #e6e6e6;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #333;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
  background: #3a3a3a;
  color: #fff;
}

.suggestion-item:active {
  background: #4a4a4a;
}

/* Smooth scrollbar for suggestions */
.suggestions-dropdown::-webkit-scrollbar {
  width: 6px;
}

.suggestions-dropdown::-webkit-scrollbar-track {
  background: #2a2a2a;
}

.suggestions-dropdown::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 3px;
}

.suggestions-dropdown::-webkit-scrollbar-thumb:hover {
  background: #666;
}
h1, h2, h3 {
  color: #fdfdfd;
  text-align: center;
  font-size: em;

}
h1 {
  color: #fdfdfd;
  font-size: 5em;
  font-weight: 700;
  text-align: center;
  margin: 0.2em 0; /* Further reduced from 0.5em */
  letter-spacing: 5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: -.05em
}

p {
  text-align: center;
}

.char-name {
  font-weight: bold;
  font-size: 5rem;
  margin-top: 0.3rem;
  text-align: center;
  color: white;
}


/* ---------------------- */
/* Code Blocks */
/* ---------------------- */
pre {
  background-color: #2a2a2a;
  padding: 1rem;
  border-radius: 0.5rem;
  white-space: pre-wrap;
  color: #e2e2e2;
}


/* ---------------------- */
/* Forms */
/* ---------------------- */
form {
  margin-top: 0;
}

form input,
form select {
  margin-bottom: 1rem;
  width: 100%;
  padding: 0.5rem;
  box-sizing: border-box;
  background-color: #2a2a2a;
  color: #f1f1f1;
  border: 1px solid #444;
  border-radius: 4px;
}

form input[type="submit"] {
  background-color: #3d9340;
  color: white;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease;
  width: auto;
  padding: 0.5rem 1.5rem;
  margin: 2em auto; /* Add margin-top of 2em */
  display: block;
  font-size: 0.9em;
}

form input[type="submit"]:hover {
  background-color: #3ba440;
}

form label {
  margin-top: 0;
  margin-bottom: 0.2em;
  display: block;
}

/* ---------------------- */
/* Links and Errors */
/* ---------------------- */
a {
  color: #4ea9ff;
}

a.report-link {
  display: block; /* Make the link a block element */
  text-align: center; /* Center the text */
  margin: 1rem auto; /* Center the link horizontally and add spacing */
  padding: 0.5rem 1rem; /* Add padding for better appearance */
}


.centered-link {
  width: 100%;
  text-align: center;
  margin-top: 1em;
}

.error {
  color: #ff6b6b;
  font-weight: bold;
  text-align: center;
}

.error-message {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
}

.summary-body{
  margin-top: 0em;
; /* Center all child elements */
}

/* ---------------------- */
/* Results Page Elements */
/* ---------------------- */
.summary-text {
  background-color: #1e1e1e;
  font-size: 1.15em; /* ⬅️ Increase size */
  line-height: 1.75;  /* ⬅️ More breathing room */
  font-family: 'Inter', sans-serif; /* Elegant serif font */
  padding: 0 1em 1rem 1rem;

  color: #e6e6e6;
}

.summary-body{
  margin-top: 0em;
  padding: .25em
}

.summary-body ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style-type: none;
  padding-left: 0;
  margin: 1rem 0;
}

.summary-body ul li {
  background: linear-gradient(135deg, #2f3542, #3c445c); /* Tab background */
  border: 1px solid #444;
  border-radius: 8px; /* Rounded like a tab */
  padding: 1rem 1.5rem;
  font-size: 1.3rem;
  color: #e6e6e6;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.3s ease;
  flex: 1 1 45%; /* Two tabs per row */
  min-width: 220px;
  cursor: default;
}




/* ---------------------- */
/* Icon + Info Layouts */
/* ---------------------- */
.icon-row {
  display: flex;
  justify-content: flex-start; /* Left-align */
  gap: 1rem;
  margin-top: 0.25rem;
  padding-left: 0.25rem;
  flex-direction: row; /* Keep spec and class on same line */
}

.spec-item, .class-item {
  display: flex;
  align-items: center; /* Vertically center text and icon */
  gap: 0.5rem; /* Space between text and icon */
}

.info-row {
  display: flex;
  justify-content: flex-start; /* Left-align */
  align-items: center;
  gap: 10px;
  margin-top: 0.5rem;
  padding-left: 0.25rem;
}

.icon-label {
  font-size: 1.8rem;
}


.title-image {
  width: 80px;
  height: auto;
}



/* ---------------------- */
/* Landing Page Centering */
/* ---------------------- */
.landingcenter {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;  /* Default to top alignment */
  align-items: center;
  padding: 2rem 0;              /* Default padding for content pages */
}

/* Full height centering only on landing page */
body.landing-page .landingcenter {
  min-height: 80vh;
  justify-content: space-between; /* Distribute space between form and footer */
  padding: 2rem 0 1rem 0;         /* Add some padding but leave room for footer */
  overflow: visible;              /* Allow footer to be visible */
}

/* Allow landingcenter scrolling on mobile */
@media screen and (max-width: 768px) {
  body.landing-page .landingcenter {
    height: auto !important;
    justify-content: flex-start !important;
    overflow: visible !important;
    padding: 1rem 0 !important;
    min-height: 100vh;
  }
}

.icon-row,
.title-section {
  margin-bottom: .5rem;
  background: 1e1e1e;
}

/* ---------------------- */
/* Toggle Switch Styles */
/* ---------------------- */
.toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
}

.toggle-option {
  flex: 1;
  text-align: center;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
}

.toggle-option.right {
  border-radius: 0 5px 5px 0;
}

input[type="radio"] {
  display: none;
}

input[type="radio"]:checked + .toggle-option {
  background-color: #196ab1;
  color: #fff;
  border-color: #145499;
}

.summary-header {
  font-size: 1.75rem;
  font-weight: 600;
  color: #f0f0f0;
  margin-bottom: .5rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.summary-text-content {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #e6e6e6;
  font-family: 'Inter', sans-serif; /* Elegant serif font */
}

/* ---------------------- */
/* Landing Page Container */
/* ---------------------- */
.landing-container {
  padding: 0.75rem 2rem; /* Slightly reduced padding */
  background: linear-gradient(135deg, #1e1e1e, #2a2a2e);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  max-width: 460px; /* Slightly smaller max width */
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* Slightly reduced spacing between elements */
  text-align: left;
  color: #e6e6e6;
  min-height: auto;
  overflow: visible;
}


/* ---------------------- */
/* Landing Page Typography */
/* ---------------------- */
.landing-container h1 {
  font-size: 4.5rem;
  font-weight: 550;
  text-align: center;

  color: rgb(221, 230, 236);
  /* Add this: */
  letter-spacing: 0.15em; /* Adjust this value as needed */
}



.landing-container label {
  font-size: 1.1rem;
  font-weight: bold;
  color: #d0dee4; /* Light blue for labels */
  margin-bottom: 0.3rem;
}


.landing-container input,
.landing-container select {
  font-size: 1rem;
  padding: 0.6rem;
  border: 2px solid #444;
  border-radius: 6px;
  background: linear-gradient(90deg, #2f3542, #3c445c); /* Soft dark gradient */
  color: #f1f1f1;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}



.landing-container input:focus,
.landing-container select:focus {
  border-color: #4ea9ff; /* Highlight border on focus */
  box-shadow: 0 0 8px rgba(78, 169, 255, 0.5); /* Add glow effect */
  outline: none;
}

/* ---------------------- */
/* Submit Button */
/* ---------------------- */
.landing-container input[type="submit"] {
  background: #3e7f6b; /* Teal green */
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  padding: .7rem 1.2rem;
  border-radius: 6px; /* ⬅️ Small rounding instead of pill shape */
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.05em;
}
small {
  font-size: 1.1em;
}




.landing-container input[type="submit"]:hover {
  background: #4f9c82; /* Lighter green */
  transform: scale(1.05);
}



/* ---------------------- */
/* Toggle Switch Styles */
/* ---------------------- */
.toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
}

.toggle-option {
  flex: 1;
  text-align: center;
  padding: 0.6rem 1.2rem; /* Smaller toggle buttons */
  cursor: pointer;
  border: 2px solid #444; /* Thicker border */
  background-color: #2a2a2e; /* Dark background */
  color: #f1f1f1; /* Light text color */
  font-size: 0.95rem; /* Slightly smaller font for toggles */
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.toggle-option.left {
  border-radius: 8px 0 0 8px; /* Round left corners */
}

.toggle-option.right {
  border-radius: 0 8px 8px 0; /* Round right corners */
}

input[type="radio"]:checked + .toggle-option {
  background-color: #4a6a85; /* Blue background for selected option */
  color: #fff; /* White text for selected option */
  border-color: #145499; /* Darker border for selected option */
  transform: scale(1.05); /* Slightly enlarge selected option */
}

/* Disabled toggle option styling */
.toggle-option.disabled {
  background-color: #1a1a1a !important; /* Darker grayed out background */
  color: #666 !important; /* Grayed out text */
  border-color: #333 !important; /* Darker border */
  cursor: not-allowed !important; /* Show not-allowed cursor */
  opacity: 0.6; /* Make it look disabled */
  transform: none !important; /* No transform effects */
}

.toggle-option.disabled small {
  color: #555; /* Even more subtle for "Coming Soon" text */
  font-style: italic;
}

/* Prevent hover effects on disabled option */
.toggle-option.disabled:hover {
  background-color: #1a1a1a !important;
  color: #666 !important;
  transform: none !important;
}

/* ---------------------- */
/* Loading Bar Styles */
/* ---------------------- */
#loading {
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
  z-index: 1000; /* Ensure loading appears above other elements */
}

#loading .progress-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  margin: 0.5rem 0 0 0;
}

#progress-bar {
  max-width: 100%;
  box-sizing: border-box;
  display: block;
  height: 100%;
  min-height: 12px; /* Ensure visible height on Safari */
  transition: width 0.1s ease, background 0.4s ease;
  will-change: width;
  /* Use CSS variables so JS can update colors for Safari pseudo-element */
  --bar-c1: #4a6a85;
  --bar-c2: #145499;
  background: linear-gradient(90deg, var(--bar-c1), var(--bar-c2));
  border-radius: 10px;
  position: relative; /* Enable pseudo-element animations */
  overflow: hidden;
}

/* Indeterminate animation fallback for mobile Safari
   Shows motion even if JS timers are throttled during form submit */
#progress-bar.indeterminate {
  animation: loading-slide 1.2s ease-in-out infinite;
  -webkit-animation: loading-slide 1.2s ease-in-out infinite;
  will-change: transform;
  background: linear-gradient(90deg, var(--bar-c1), var(--bar-c2));
}

/* Safari-specific: progressive fill without slide */
#progress-bar.safari-indeterminate {
  animation: none;
  -webkit-animation: none;
  background: linear-gradient(90deg, var(--bar-c1), var(--bar-c2));
}

/* Safari/iOS smooth fill using a pseudo-element to avoid JS timers */
#progress-bar.indeterminate::after,
#progress-bar.safari-indeterminate::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--bar-c1), var(--bar-c2));
  transform-origin: 0 50%;
  transform: scaleX(0.08);
  animation: indeterminate-fill 11s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
  border-radius: inherit;
}

@keyframes indeterminate-fill {
  0% { transform: scaleX(0.08); }
  85% { transform: scaleX(0.96); }
  100% { transform: scaleX(1); }
}

@keyframes loading-slide {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

@-webkit-keyframes loading-slide {
  0% { -webkit-transform: translateX(-100%); }
  50% { -webkit-transform: translateX(0%); }
  100% { -webkit-transform: translateX(100%); }
}

/* Safari color-cycle tick to sync JS color changes with CSS fill */
#progress-bar.safari-cycle {
  animation: safari-cycle-tick 11s linear infinite;
  -webkit-animation: safari-cycle-tick 11s linear infinite;
}

/* When both classes are present, keep the slide and add the 11s tick */
#progress-bar.indeterminate.safari-cycle {
  animation: loading-slide 1.2s ease-in-out infinite, safari-cycle-tick 11s linear infinite;
  -webkit-animation: loading-slide 1.2s ease-in-out infinite, safari-cycle-tick 11s linear infinite;
}

/* Safari variant: only tick (no slide) */
#progress-bar.safari-indeterminate.safari-cycle {
  animation: safari-cycle-tick 11s linear infinite;
  -webkit-animation: safari-cycle-tick 11s linear infinite;
}

@keyframes safari-cycle-tick {
  from { opacity: 1; }
  to { opacity: 1; }
}

@-webkit-keyframes safari-cycle-tick {
  from { opacity: 1; }
  to { opacity: 1; }
}

/* Ensure loading container fits within form container */
.landing-container #loading {
  width: 100%;
  max-width: calc(100% - 2rem); /* Account for container padding */
  margin-left: auto;
  margin-right: auto;
}

/* Ensure container expands when loading is shown */
.landing-container.loading-expanded {
  min-height: auto !important;
  overflow: visible !important;
  height: auto !important;
}

/* Ensure loading is always visible, especially when advanced options are expanded */
#loading {
  position: relative !important;
  z-index: 1000 !important;
  margin-top: 1rem !important;
  padding: 0.5rem 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

/* When loading is active, ensure it breaks out of any container constraints */
#loading[style*="display: block"] {
  position: relative !important;
  z-index: 1000 !important;
  margin-top: 1rem !important;
  padding: 0.5rem 0 !important;
  max-height: none !important;
  overflow: visible !important;
  transform: none !important;
}

/* Force container to expand when loading is active */
.landing-container:has(#loading[style*="display: block"]) {
  min-height: auto !important;
  overflow: visible !important;
  height: auto !important;
}

/* Additional rules to ensure loading is always visible */
#loading[style*="display: block"] {
  position: relative !important;
  z-index: 1000 !important;
  margin-top: 1rem !important;
  padding: 0.5rem 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Force the entire page to accommodate loading */
body:has(#loading[style*="display: block"]) {
  overflow: auto !important;
  min-height: auto !important;
}

.wrapper:has(#loading[style*="display: block"]) {
  overflow: visible !important;
  min-height: auto !important;
}

/* Mobile loading screen improvements */
@media screen and (max-width: 768px) {
  #loading {
    margin-top: 1rem !important;
    padding: 0.5rem !important;
    position: relative !important;
    z-index: 1001 !important;
  }
  
  #loading p {
    font-size: 0.9rem !important;
    margin-bottom: 0.8rem !important;
    color: #e6e6e6 !important;
    font-weight: 500 !important;
  }
  
  #loading .progress-container {
    margin: 0.8rem 0 0 0 !important;
    height: 16px !important; /* Slightly smaller on mobile */
    background: #444 !important;
    border: 1px solid #555 !important;
  }
  
  /* Ensure loading is visible on mobile */
  .landing-container #loading {
    max-width: 100% !important;
    margin: 1rem auto !important;
  }
  
  /* Prevent body scroll when loading is active */
  body.loading {
    overflow: hidden !important;
  }
}

/* ---------------------- */
/* Advanced Options Section */
/* ---------------------- */
.advanced-options {
  margin: 1rem 0 0.5rem 0;
  border-top: 1px solid #444;
  padding-top: 0.75rem;
}

.advanced-toggle {
  background: transparent;
  border: none;
  color: #999;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem 0;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.advanced-toggle:hover {
  color: #ccc;
}

.advanced-toggle span {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.advanced-content {
  margin-top: 0.5rem;
  padding: 0.5rem 0 0 1rem;
  border-left: 2px solid #333;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 100px;
  }
}

/* ---------------------- */
/* Compact Test Checkbox */
/* ---------------------- */
.test-checkbox-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0.25rem 0;
  padding: 0.2rem 0;
}

.test-checkbox-container input[type="checkbox"] {
  width: auto !important;
  margin: 0 0.5rem 0 0 !important;
  transform: scale(0.9);
  accent-color: #4a6a85;
}

.test-checkbox-label {
  font-size: 0.85rem !important;
  color: #999 !important;
  margin: 0 !important;
  font-weight: normal !important;
  cursor: pointer;
  user-select: none;
}

.test-checkbox-label:hover {
  color: #bbb !important;
}

/* ---------------------- */
/* Boss Selection Styles */
/* ---------------------- */
.boss-selection-container {
  margin: 1rem 0 0.5rem 0;
  padding: 0.5rem 0;
}

.boss-filter-label {
  font-size: 0.9rem !important;
  color: #d0dee4 !important;
  margin-bottom: 0.4rem !important;
  display: block;
  font-weight: 500;
}

#boss_filter {
  font-size: 0.9rem !important;
  padding: 0.6rem 0.8rem !important;
  border: 2px solid #444 !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #2a2a2e, #3c445c) !important;
  color: #f1f1f1 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#boss_filter:focus {
  border-color: #4ea9ff !important;
  box-shadow: 0 0 8px rgba(78, 169, 255, 0.5) !important;
  outline: none !important;
}

#boss_filter option {
  background: #2a2a2e;
  color: #f1f1f1;
  padding: 0.5rem;
}

/* ---------------------- */
/* Dungeon Selection Styles (Mythic+) */
/* Match spacing/appearance with boss selection */
/* ---------------------- */
.dungeon-selection-container {
  margin: 1rem 0 0.5rem 0;
  padding: 0.5rem 0;
}

#dungeon_filter {
  font-size: 0.9rem !important;
  padding: 0.6rem 0.8rem !important;
  border: 2px solid #444 !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #2a2a2e, #3c445c) !important;
  color: #f1f1f1 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#dungeon_filter:focus {
  border-color: #4ea9ff !important;
  box-shadow: 0 0 8px rgba(78, 169, 255, 0.5) !important;
  outline: none !important;
}

#dungeon_filter option {
  background: #2a2a2e;
  color: #f1f1f1;
  padding: 0.5rem;
}


.results-container h2.summary-header {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #d0dee4;

}
.summary-text-content {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #e6e6e6;
  font-family: 'Inter', sans-serif; /* Elegant serif font */
  font-weight: 500;
}


.report-link {
  display: inline-block;
  text-align: center;
  margin-top: 2rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: #629fe1;
  text-decoration: underline;
  cursor: pointer;
  
}

.summary-text img {
  width: 30px;   /* Increased size for better visibility */
  height: 30px;
  vertical-align: middle; /* aligns with text baseline */
  margin-right: 0.25rem;   /* small spacing between icon and text */
}




.fight-name {
  margin-top: .75rem;
  font-size: 1.5em;
  margin-bottom: -.25em;
  text-align: center;
  
}

/* ---------------------- */
/* Header Styles */
/* ---------------------- */
.header {
  display: flex;
  justify-content: flex-end; /* Align all links to the right */
  align-items: center;
  padding: 1rem 2rem;
  background-color: #111; /* Same as main page background */
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%; /* Ensure it spans the full width */
  margin-top: -1em;
  margin-right: 2em;
}

.header-link {
  font-size: 1.2rem; /* Smaller text for header links */
  font-weight: bold;
  color: white; /* Bright white for links */
  text-decoration: none;
  margin-left: 1rem; /* Add spacing between links */
  transition: color 0.3s ease;
}

.header-link:hover {
  color: #66a6ff; /* Lighter blue on hover */
}

/* ---------------------- */
/* Improved Text Input Styles */
/* ---------------------- */
.landing-container input[type="text"],
.landing-container input[list],
.landing-container select {
  font-size: 1rem; /* Reduced font size for more compact design */
  padding: 0.6rem 0.8rem; /* Reduced padding for smaller input fields */
  border: 2px solid #444; /* Slightly thicker border */
  border-radius: 8px; /* Rounder corners for a modern look */
  background: linear-gradient(135deg, #2a2a2e, #3c445c); /* Subtle gradient background */
  color: #f1f1f1; /* Light text color */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%; /* Ensure the input spans the full width of the container */
  box-sizing: border-box; /* Include padding and border in width calculation */
}

.landing-container input[type="text"]:focus,
.landing-container input[list]:focus,
.landing-container select:focus {
  border-color: #4ea9ff; /* Highlight border on focus */
  box-shadow: 0 0 8px rgba(78, 169, 255, 0.5); /* Add a glowing effect */
  outline: none; /* Remove default outline */
}

.landing-container input[type="text"]::placeholder {
  color: #888; /* Subtle placeholder color */
  font-style: italic; /* Make placeholder text italic */
}

/* ---------------------- */
/* Enhanced Test Mode Styles */
/* ---------------------- */
.test-indicator {
  color: #ff6b35;
  font-weight: bold;
  font-size: 0.9rem;
  margin-right: 1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.test-container {
  background: linear-gradient(135deg, #2a1810, #3d2418);
  border: 2px solid #ff6b35;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.2);
}

.test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.test-header h3 {
  color: #ff6b35;
  font-size: 1.3rem;
  margin: 0;
  font-weight: 600;
}

.test-toggle {
  background: linear-gradient(135deg, #ff6b35, #ff8a50);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.test-toggle:hover {
  background: linear-gradient(135deg, #ff8a50, #ff6b35);
  transform: translateY(-1px);
}

.test-characters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.test-char-button {
  background: linear-gradient(135deg, #3e2723, #5d4037);
  color: white;
  border: 1px solid #ff6b35;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.test-char-button:hover {
  background: linear-gradient(135deg, #5d4037, #6d4c41);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
  border-color: #ff8a50;
}

.test-char-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.char-name {
  font-size: 3.5rem;
  font-weight: 600;
  color: #ff6b35;
}

.char-details {
  font-size: 0.9rem;
  color: #ccc;
  font-weight: 400;
}

.test-char-button:active {
  transform: translateY(0);
}

.fight-icon {
  width: 50px !important;   /* Override inline attributes */
  height: 50px !important;
  vertical-align: middle;
}
footer {
  margin-top: 0.5rem;
  padding: 0.5rem;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 10;
  flex-shrink: 0; /* Prevent footer from shrinking */
}

/* ---------------------- */
/* Mobile Responsive Design */
/* ---------------------- */
@media screen and (max-width: 768px) {
  /* Mobile Typography Adjustments */
  h1 {
    font-size: 3rem !important; /* Increased from 2.5rem */
    letter-spacing: 0.08em !important; /* Reduced from 0.15em */
    margin: 0.3em 0 0.1em 0 !important;
  }
  
  
  .char-name {
    font-size: 3rem !important; /* Reduced from 5rem */
  }
  
  /* Mobile Container Adjustments */
  .landing-container {
    padding: 1rem 1.5rem 1rem 1.5rem !important; /* Reduced padding */
    margin: 1rem !important; /* Increased margin for better spacing */
    max-width: calc(100vw - 7rem) !important;
    gap: 0.8rem !important; /* Tighter spacing */
  }
  
  /* Ensure mobile has proper spacing around content */
  body {
    padding: 0 1rem !important;
  }
  
  .wrapper {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .container {
    padding: 2rem 1.5rem !important; /* Reduced from 4rem */
    margin: 1rem !important; /* Increased margin for better spacing */
  }
  
  .wrapper {
    padding: 0 1rem;
  }
  
  /* Mobile Header Optimization */
  .header {
    padding: 0.8rem 1rem !important; /* Reduced padding */
    margin-top: 0 !important;
    margin-right: 0 !important;
  }
  
  .header-link {
    font-size: 1rem !important; /* Reduced from 1.2rem */
    margin-left: 0.5rem !important;
  }
  
  /* Mobile Form Elements */
  .landing-container label {
    font-size: 1rem !important; /* Slightly smaller */
    margin-bottom: 0.4rem !important;
  }
  
  .landing-container input,
  .landing-container select {
    font-size: 16px !important; /* Prevents zoom on iOS */
    padding: 0.8rem !important; /* Larger touch targets */
    border-radius: 8px !important;
  }
  
  /* Mobile Toggle Switches */
  .toggle-container {
    margin: 0.8rem 0 !important;
  }
  
  .toggle-option {
    padding: 0.6rem 0.8rem !important; /* Smaller touch targets for mobile */
    font-size: 0.85rem !important; /* Smaller font size */
    min-height: 40px !important; /* Smaller minimum height */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Remove hover effects on mobile to prevent sticky hover states */
  .toggle-option:hover {
    transform: none !important;
  }
  
  .landing-container input[type="submit"]:hover {
    transform: none !important;
  }
  
  .header-link:hover {
    color: white !important; /* Keep original color on mobile */
  }
  
  /* Mobile Submit Button */
  .landing-container input[type="submit"] {
    font-size: 1.1rem !important;
    padding: 1rem 1.5rem !important; /* Larger touch target */
    margin-top: 1.2rem !important;
    min-height: 48px !important; /* Accessibility standards */
  }
  
    /* Mobile Advanced Options */
  .advanced-options {
    margin: 0.8rem 0 0.4rem 0 !important;
    padding-top: 0.5rem !important;
  }

  .advanced-toggle {
    font-size: 0.85rem !important;
    padding: 0.4rem 0 !important;
    min-height: 44px !important; /* Touch target size */
  }

  .advanced-content {
    padding: 0.4rem 0 0 0.8rem !important;
  }

  /* Mobile Test Section */
  .test-characters {
    margin: 1rem 0 !important;
  }

  .test-characters ul {
    gap: 0.5rem !important;
  }

  .test-characters li a {
    padding: 0.8rem !important;
    font-size: 0.9rem !important;
    display: block !important;
    min-height: 44px !important;
  }
  
  /* Mobile Progress Bar */
  #loading {
    margin-top: 1rem !important;
  }
  
  #loading p {
    font-size: 0.9rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  /* Mobile Landing Center */
  .landingcenter {
    padding: 1rem 0 !important; /* Consistent padding */
    min-height: auto !important;
    justify-content: flex-start !important;
  }
  
  /* Mobile Footer Positioning */
  footer {
    margin-top: 1rem !important;
    padding: 1rem !important;
    position: relative !important;
  }
  
  /* Mobile Error Messages */
  .error-message {
    padding: 0.8rem !important;
    margin-top: 0.8rem !important;
    border-radius: 6px !important;
  }
  
  /* Mobile Footer */
  footer {
    padding: 1.5rem 1rem !important;
    margin-top: 1rem !important;
  }
  
  footer small {
    font-size: 0.9rem !important;
  }
}

/* Mobile Small Screens (phones in portrait) */
@media screen and (max-width: 480px) {
  .landing-container {
    padding: 0.8rem 1rem !important;
    margin: 0.75rem !important; /* Increased margin for better spacing */
    max-width: calc(100vw - 1.5rem) !important;
  }
 
  
  .header {
    padding: 0.6rem 0.8rem !important;
  }
  
  .header-link {
    font-size: 0.9rem !important;
  }
  
  /* Ensure adequate touch targets on very small screens */
  .toggle-option {
    min-height: 36px !important; /* Smaller height on very small screens */
    padding: 0.5rem 0.6rem !important; /* Tighter padding */
    font-size: 0.8rem !important; /* Slightly smaller font */
  }
  
  .landing-container input[type="submit"] {
    padding: 1.2rem 1rem !important;
    font-size: 1rem !important;
  }
}

/* Tablet and larger mobile devices */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .landing-container {
    max-width: 600px !important;
    padding: 2rem !important;
  }
  

}

/* ---------------------- */
/* Heroic Fallback Pill */
/* ---------------------- */
.fallback-pill {
  display: inline-block;
  margin-left: 12px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #ffa500, #ff8c00);
  border-radius: 16px;
  border: 1px solid #ff7f00;
  box-shadow: 0 2px 6px rgba(255, 165, 0, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  color: #000;
  cursor: help;
  transition: all 0.2s ease;
}

.fallback-pill:hover {
  background: linear-gradient(135deg, #ffb347, #ffa500);
  box-shadow: 0 3px 8px rgba(255, 165, 0, 0.4);
  transform: translateY(-1px);
}

.fallback-text {
  white-space: nowrap;
}

/* Mobile responsiveness for the pill */
@media screen and (max-width: 768px) {
  .fallback-pill {
    font-size: 0.7rem;
    padding: 3px 8px;
    margin-left: 8px;
  }
  
  .fallback-text {
    font-size: 0.65rem;
  }
}

@media screen and (max-width: 480px) {
  .fallback-pill {
    display: block;
    margin-left: 0;
    margin-top: 8px;
    width: fit-content;
  }
}