/* Import WAR Font */
@import url("https://fonts.googleapis.com/css2?family=Russo+One&display=swap"); /* Example WAR-style font */
@import url("https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap");

/* General Styles */
.chapter1body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #121212; /* Default dark background */
  color: #e0e0e0; /* Light text for dark mode */
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode {
  background-color: #ffffff; /* Light background */
  color: #000000; /* Dark text */
}

.chapter-title {
  color: #ffff;
}

p {
  font-family: "PT Serif", sans-serif;
}

.com {
  color: #ff0000; /* Crimson */
}

/* WAR-specific font */
.war-font {
  font-family: "blackletter", sans-serif;
  text-transform: uppercase;
}

.chapter {
  text-decoration: underline;
}

/* Story Section */
.story-section {
  background-color: #1e1e1e; /* Default dark section */
  color: #e0e0e0; /* Light text */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.chapter-content {
  background-color: #1e1e1e; /* Default dark mode */
  color: #e0e0e0; /* Light text */
  padding: 20px;
  border-radius: 10px;
  box-shadow: none; /* Flat appearance in dark mode */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.final {
  color: #e60000;
  text-decoration: underline;
}

h1,
.war-font {
  color: #e60000;
  font-size: 2.5em;
  text-align: center;
}

h2 {
  font-size: 1.8em;
  color: #333;
  margin-bottom: 20px;
}

.chapter-content p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #ffffff;
}

/* Team Introduction Styles */
.team-introduction {
  margin: 30px auto;
  text-align: center;
  max-width: 600px; /* Center the column and limit its width */
  padding: 20px;
  background-color: #333;
  border: 2px solid #e60000;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.team-title {
  font-size: 2rem;
  color: #e60000;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
  border-bottom: 2px solid #ffffff;
  display: inline-block;
  padding-bottom: 10px;
}

.fighter-column {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  gap: 15px; /* Add spacing between fighter boxes */
  margin-top: 20px;
}

.fighter-box {
  border: 4px solid #ff0000;
  border-radius: 12px;
  padding: 15px;
  background-color: #000000;
  text-align: center;
  box-shadow: 0 4px 8px rgb(255, 0, 0);
  transition: transform 0.3s, box-shadow 0.3s;
}

.fighter-box .fighter-name {
  font-size: 1.5rem;
}

#captain {
  border: 4px solid #ffd700;
  border-radius: 12px;
  padding: 15px;
  background-color: #000000;
  text-align: center;
  box-shadow: 0 4px 8px #ffd700;
  transition: transform 0.3s, box-shadow 0.3s;
}

.fighter-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.weight-class {
  font-size: 2rem;
  color: #ff0000;
  font-weight: bold;
  margin-bottom: 10px;
}

.weight-class-list {
  color: rgb(255, 255, 255);
}

.fighter-name {
  font-size: 1rem;
  color: #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
  .team-title {
    font-size: 1.8rem;
  }

  .fighter-box {
    padding: 10px;
  }

  .weight-class {
    font-size: 1rem;
  }

  .fighter-name {
    font-size: 0.9rem;
  }
}
/* Team Selection with Border */

/* Tale of the Tape */
.tale-of-tape-title {
  font-size: 1.5em;
  color: #ffffff;
  text-decoration: underline #ff0000;
  width: fit-content;
  margin: 10px auto;
  font-family: "blackletter", sans-serif; /* Use WAR font */
  font-style: italic;
}

.red {
  color: red;
}

.gold {
  color: #ffd700;
}
.center-tale-of-tape {
  display: flex;
  justify-content: center;
}

.tale-of-tape {
  width: 100%;
  max-width: 700px;
  border-collapse: collapse;
  font-family: "blackletter", sans-serif;
}

.tale-of-tape th,
.tale-of-tape td {
  padding: 10px;
  border: 1px solid #f50000;
  text-align: center;
}

.tale-of-tape th {
  background-color: #ff0000;
  font-weight: bold;
  color: white;
}

.tale-of-tape td {
  color: #ffffff;
  background-color: #333;
}

/* Official Result */
.official-result {
  margin-top: 20px;
  padding: 15px;
  background-color: #333;
  border-left: 5px solid #ff0000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.official-result h4 {
  font-size: 1.4em;
  color: #ff0000;
  font-weight: bold;
  font-family: "blackletter", sans-serif;
  text-decoration: underline;
}

.official-result p {
  margin: 0;
  color: #ffffff;
  font-size: 1.2em;
}

/* Screen Text Styling */
.screen {
  padding: 10px;
  text-align: center;
  margin-top: 20px;
}

.words {
  text-align: center;
  margin: 20px 0;
  border: 2px solid #ff0000;
  padding: 15px;
  background-color: #ff0000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: "blackletter", sans-serif;
  color: #ffffff;
}

.table-container {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  overflow-x: auto; /* Enables horizontal scrolling */
}

.fighter-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
}

.fighter-stats-table thead th {
  background-color: #ff0000;
  color: rgb(255, 255, 255);
  padding: 10px;
  font-weight: bold;
  text-align: center;
}

.fighter-stats-table tbody td {
  padding: 10px;
  text-align: center;
  border: 1px solid #ff0000;
  background-color: #000000;
  color: #ff0000;
}

.fighter-stats-table tbody tr:nth-child(even) {
  background-color: #ffffff;
}

.fighter-stats-table tbody tr:hover {
  background-color: #ffffff;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  background-color: #ffffff;
  width: 0%;
  z-index: 1000;
}

.journ {
  font-style: oblique;
  font-weight: bolder;
}

/* Footer */
footer {
  padding: 15px;
  text-align: center;
  font-size: 0.9em;
  background-color: #f4f4f4;
  border-top: 1px solid #ddd;
}

/* General Styles */

.memory {
  font-style: italic;
  color: white;
}

.logo img {
  height: 50px;
}

/* Story Section */
.story-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.title {
  color: #ff0000;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.chapter {
  font-size: 1.8rem;
  color: #333;
}

/* Navigation Buttons */
.nav-button {
  padding: 10px 20px;
  background-color: #ff0000;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-size: 1.2rem;
}

.nav-button:hover {
  background-color: #d32f2f;
}

/* Top and Bottom Button Placement */
.top-buttons,
.bottom-buttons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.left {
  align-self: flex-start;
}

.right {
  align-self: flex-end;
}

.prologue {
  align-items: center;
}

/* Footer */
footer {
  text-align: center;
  background-color: #ff0000;
  color: #fff;
  padding: 15px;
}

body.light-mode .chapter-content {
  background-color: #ffffff; /* Light mode background */
  color: #000000; /* Dark text for light mode */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow in light mode */
}

/* Toggle Button */
#darkModeToggle {
  position: fixed;
  top: 10px;
  right: 10px;
  padding: 1px 1px;
  background-color: #f50808; /* WAR red */
  color: #000000; /* White text */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#darkModeToggle:hover {
  background-color: #ff0000; /* Darker WAR red on hover */
}

/* Smooth Transition */
body,
.story-section,
.chapter-content {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.chapter-font {
  color: #ff0000;
}

body.light-mode .war-intro {
  text-align: center;
  margin: 20px auto;
  padding: 20px;
  background-color: #ffff; /* Subtle light gray background for the intro section */
  border: 1px solid #ff0000; /* Optional: Border around the intro box */
  border-radius: 10px;
  max-width: 800px;
}

body.light-mode .war-description {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  color: #000000; /* Neutral dark gray for text */
  line-height: 1.6;
}

body.light-mode .war-thank-you {
  font-style: italic;
  color: #000000; /* Subtle gray for emphasis */
}

body.light-mode .journey {
  font-family: serif, sans-serif;
  font-size: 30px;
  text-align: center;
  color: #000000; /* WAR red color */
  background-color: #ffffff; /* White background */
}

body.light-mode .chapter-title {
  color: black;
}

body.light-mode .chapter1body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #ffffff; /* Default dark background */
  color: #000000; /* Light text for dark mode */
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode p {
  color: #000000;
}

body.light-mode .team-introduction {
  margin: 30px auto;
  text-align: center;
  max-width: 600px; /* Center the column and limit its width */
  padding: 20px;
  background-color: #ffffff;
  border: 2px solid #e60000;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

body.light-mode .team-title {
  font-size: 2rem;
  color: #e60000;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
  border-bottom: 2px solid #ff0000;
  display: inline-block;
  padding-bottom: 10px;
}

body.light-mode .fighter-column {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  gap: 15px; /* Add spacing between fighter boxes */
  margin-top: 20px;
}

body.light-mode .fighter-box {
  border: 4px solid #ff0000;
  border-radius: 12px;
  padding: 15px;
  background-color: #ffffff;
  text-align: center;
  box-shadow: 0 4px 8px rgb(255, 0, 0);
  transition: transform 0.3s, box-shadow 0.3s;
}

body.light-mode #captain {
  border: 4px solid #ffd700;
  border-radius: 12px;
  padding: 15px;
  background-color: #ffffff;
  text-align: center;
  box-shadow: 0 4px 8px #ffd700;
  transition: transform 0.3s, box-shadow 0.3s;
}

body.light-mode .weight-class-list {
  color: rgb(0, 0, 0);
}

body.light-mode .words {
  text-align: center;
  margin: 20px 0;
  border: 2px solid #ff0000;
  padding: 15px;
  background-color: #ff0000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: "blackletter", sans-serif;
  color: #ffffff;
}

body.light-mode .tale-of-tape th {
  background-color: #ff0000;
  font-weight: bold;
  color: rgb(0, 0, 0);
}

body.light-mode .tale-of-tape td {
  color: #000000;
  background-color: #ffffff;
}

body.light-mode .tale-of-tape th,
.tale-of-tape td {
  padding: 10px;
  border: 1px solid #f50000;
  text-align: center;
  color: #fff;
}

body.light-mode .official-result {
  margin-top: 20px;
  padding: 15px;
  background-color: #ffffff;
  border-left: 5px solid #ff0000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body.light-mode .tale-of-tape-title {
  font-size: 1.5em;
  color: #000000;

  width: fit-content;
  margin: 10px auto;
  font-family: "blackletter", sans-serif; /* Use WAR font */
}

body.light-mode .progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  background-color: #ff0000;
  width: 0%;
  z-index: 1000;
}

body.light-mode .war-highlight {
  color: #d11010; /* WAR red */
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
    1px 1px 0 #000; /* Black outline for "WAR" */
  background-color: #fff;
}

body.light-mode .fighter-stats-table tbody td {
  padding: 10px;
  text-align: center;
  border: 1px solid #ddd;
  background-color: #ffffff;
}

body.light-mode .fighter-stats-table tbody td {
  padding: 10px;
  text-align: center;
  border: 1px solid #ff0000;
  background-color: #ffffff;
  color: rgb(255, 0, 0);
}

body.light-mode #darkModeToggle {
  position: fixed;
  top: 10px;
  right: 10px;
  padding: 1px 1px;
  background-color: #f50808; /* WAR red */
  color: #ffffff; /* White text */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

body.light-mode .story-section {
  background-color: white;
}
