@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Forum&family=EB+Garamond:wght@400;500;700&display=swap');

/* Apply the fonts to different sections */
body {
  /* font-family: 'EB Garamond', serif; */
  /* Default font for readability */
  color: #ffffff;
  background-color: #072b4a;
  background-attachment: fixed;
  background-image:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.2) 0 80px, transparent 85px),
    radial-gradient(circle at 82% 18%, rgba(255, 245, 204, 0.16) 0 90px, transparent 95px),
    repeating-linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0 14px, rgba(255, 255, 255, 0) 14px 28px),
    linear-gradient(180deg, #0a436d 0%, #0b3057 42%, #07213f 100%);
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('./bg.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.container {
  position: relative;
  z-index: 1;
}

/* Additional Styling for an Ancient Look */
.title-text {
  text-shadow: 2px 2px 8px rgba(255, 215, 0, 0.8);
  /* Golden glow */
}

.fighter-name {
  text-shadow: 1px 1px 5px rgba(0, 255, 255, 0.7);
  /* Ethereal cyan glow */
}

.lore-text {
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.6);
  /* Slight mystical glow */
}

.choices__list {
  color: #111 !important;
  font-weight: bold;
}

.modal-header,
.modal-body {
  color: #121212;
}

.modal-title {
  text-transform: capitalize;
}

.battle-modal-dialog {
  max-width: min(980px, calc(100vw - 1.5rem));
}

.modal-faceoff {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.modal-faceoff-vs {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #b57f00;
}

.modal-fighter-card {
  position: relative;
  border: 2px solid #b8b8b8;
  border-radius: 12px;
  background: linear-gradient(180deg, #222, #171717);
  padding: 8px;
  transition: all 0.25s ease;
}

.modal-fighter-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  border-radius: 8px;
  transition: transform 0.25s ease, filter 0.25s ease;
  padding: 6px;
}

.modal-fighter-score {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.65);
  color: #fff4cf;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.modal-fighter-name {
  margin-top: 6px;
  font-weight: 700;
  color: #f7f1df;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.modal-fighter-card.winner {
  border-color: #e3b23c;
  box-shadow: 0 0 0 2px rgba(227, 178, 60, 0.45), 0 0 18px rgba(227, 178, 60, 0.45);
}

.modal-fighter-card.winner .modal-fighter-name {
  color: #ffe39a;
}

.modal-fighter-card.winner .modal-fighter-score {
  border-color: rgba(227, 178, 60, 0.7);
  background: rgba(94, 65, 8, 0.78);
}

.modal-fighter-card.loser {
  border-color: #6f6f6f;
  opacity: 0.9;
}

.modal-fighter-card.loser .modal-fighter-image {
  filter: grayscale(1) contrast(0.95);
  transform: scale(0.9);
}

.modal-fighter-card.loser .modal-fighter-score {
  border-color: rgba(160, 160, 160, 0.6);
  background: rgba(45, 45, 45, 0.75);
  color: #d5d5d5;
}

.battle-result-content {
  display: none;
  animation: revealResult 0.4s ease-out;
}

.battle-result-content.show {
  display: block;
}

.battle-details-panel {
  border: 1px solid #d6b16a;
  border-radius: 10px;
  padding: 10px;
  background: #faf6ea;
}

.battle-details-meta {
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.battle-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.battle-details-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.8rem;
  max-height: 220px;
  overflow-y: auto;
}

.progress-bar {
  transition: width 1s ease-out;
}

@keyframes revealResult {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

select {
  color: black !important;
}

.card {
  background-color: #1e1e1e;
  border: 1px solid #333333;
  color: #ffffff;
}

.btn-primary {
  background-color: #5a5cfa;
  border: none;
}

.btn-primary:hover {
  background-color: #4a4ce0;
}

.matchup-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

.arcade-matchup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.arcade-vs {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffd978;
  text-shadow: 0 0 10px rgba(255, 140, 0, 0.7), 0 0 18px rgba(255, 0, 0, 0.55);
}

.fightButton {
  box-shadow: 0 0 0 1px rgba(255, 217, 120, 0.55), 0 8px 20px rgba(0, 0, 0, 0.35);
}

.matchup-row {
  position: relative;
}

.fight-radar-overlay {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  display: none;
  width: 560px;
  max-width: min(560px, calc(100vw - 24px));
  background: rgba(255, 255, 255, 0.96);
  border: 3px solid #ffffff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  z-index: 20;
  pointer-events: none;
  height: 400px;
}

.fight-radar-overlay.show {
  display: block;
}

.fight-radar-overlay canvas {
  width: 100%;
  height: auto;
}

.fighter-media {
  position: relative;
  width: 72%;
}

.fighter-image {
  width: 100%;
  height: 320px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  border-radius: 5px;
  border-radius: 18px;
  border: 9px solid #fff;
  padding: 8px;
}

.fighter-radar-panel {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  border: 4px solid #ffffff;
  box-shadow: inset 0 0 0 2px rgba(13, 57, 94, 0.15);
  pointer-events: none;
}

.fighter-radar-panel.show {
  display: flex;
}

.fighter-radar-canvas {
  width: min(94%, 310px);
  height: min(94%, 310px);
}

.form-select {
  background-color: #1e1e1e;
  color: #ffffff;
  border: 1px solid #333333;
}

.switch-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.form-check.form-switch {
  padding-top: 10px;
}

.selection-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.impact-info-icon {
  color: #f3bf4f;
  cursor: pointer;
  font-size: 0.95rem;
}

.impact-info-icon:hover {
  color: #ffd978;
}

.tooltip.impact-tooltip .tooltip-inner,
.impact-tooltip .tooltip-inner {
  width: max-content;
  min-width: 300px;
  max-width: min(820px, calc(100vw - 2rem)) !important;
  text-align: left;
  line-height: 1.45;
  white-space: nowrap !important;
  word-break: normal;
  overflow-wrap: normal;
  padding: 10px 12px;
  color: #f8f6f2;
  background: linear-gradient(180deg, #242424, #171717);
  border: 1px solid #ffb347;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
  .impact-tooltip .tooltip-inner {
    width: auto;
    min-width: 240px;
    white-space: normal;
  }

  .matchup-column {
    margin: 10px 0 16px;
  }

  .arcade-vs {
    font-size: 1.6rem;
  }

  .arcade-matchup {
    margin-top: 0;
  }

  .battle-details-grid {
    grid-template-columns: 1fr;
  }

  .modal-faceoff {
    grid-template-columns: 1fr;
  }

  .modal-faceoff-vs {
    display: none;
  }

  .modal-fighter-image {
    height: 180px;
  }

  .fighter-image {
    height: 250px;
  }

  .fighter-media {
    width: 100%;
  }

  .fight-radar-overlay {
    top: 10px;
    width: min(420px, calc(100vw - 24px));
  }
}

.tooltip.impact-tooltip .tooltip-arrow::before,
.impact-tooltip .tooltip-arrow::before {
  border-top-color: #ffb347;
  border-bottom-color: #ffb347;
  border-left-color: #ffb347;
  border-right-color: #ffb347;
}

.stats-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 5px;
}

.stat-item {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
  color: #333;
  padding: 3px;
  border: 1px solid #fff;
  border-radius: 26px;
  background-color: #fff;
}

.stat-item i {
  margin: 2px;
  font-size: 14px;
  color: #333;
}

.stat-item.corruption-boost {
  background-color: #ffe2b5;
  border-color: #ff9f1a;
  color: #7a3e00;
  font-weight: 900;
}

.stat-item.corruption-boost i {
  color: #b46300;
}

.stat-item.corruption-penalty {
  background-color: #ffd1d1;
  border-color: #e53935;
  color: #8a1111;
  font-weight: 900;
}

.stat-item.corruption-penalty i {
  color: #b71c1c;
}

#fighter2Bio,
#fighter1Bio {
  text-align: justify;
}

.element-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.element-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid #ffd978;
  border-radius: 999px;
  background: rgba(255, 217, 120, 0.18);
  color: #fff7da;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: capitalize;
}

.synergy-text {
  margin-top: 10px;
  color: #f4e8c8;
  font-size: 0.85rem;
  line-height: 1.35;
}

.logo {
  max-width: 100%;
  box-sizing: border-box;
  height: 50px;
  margin-bottom: -114px;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

@media screen and (max-width: 999px) {
  .logo {
    max-width: 100%;
    box-sizing: border-box;
    height: 33px;
    margin-bottom: -22px;
    position: relative;
    left: 40%;
  }
}
