/* ============================== */
/*          Base Styles           */
/* ============================== */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9;
  color: #000;
}

header {
  background-color: #20232a;
  color: #61dafb;
  padding: 10px;
  text-align: center;
}

main {
  padding: 20px;
}

#language-selector {
  margin: 10px 0;
  text-align: center;
}

/* Champion List Styles */
#champion-list {
  display: flex;
  flex-wrap: wrap;
}

.champion-card {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  margin: 5px;
  background-color: #fff;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.champion-card:hover {
  transform: scale(1.05);
}

.champion-card img {
  max-width: 100px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ============================== */
/*     Team Selection Boxes       */
/* ============================== */

.teams-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 20px;
}

.team {
  border: 1px solid #ccc;
  margin: 10px;
  padding: 10px;
  background-color: #fff;
  width: 45%;
  /* Ensure inner text styling is inherited */
  color: inherit;
}

.team-panel {
  display: flex;
  justify-content: space-around;
}

.team-subsection {
  flex: 1;
  padding: 10px;
}

.team-slots {
  min-height: 100px;
  border: 1px dashed #aaa;
  padding: 5px;
}

.team-slot {
  display: inline-block;
  margin: 5px;
}

.team-slot img {
  width: 50px;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 50%;
}

/* ============================== */
/*         Tables Layout          */
/* ============================== */

.table-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.table-row {
  display: flex;
  gap: 20px;
}

.table-column {
  flex: 1;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

/* ============================== */
/*          Modal Styles          */
/* ============================== */

.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 300px;
  text-align: center;
  border-radius: 10px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

/* ============================== */
/*         Other Elements         */
/* ============================== */

#view-mode {
  text-align: center;
  margin: 10px 0;
}

/* ============================== */
/*         Dark Mode Styles       */
/* ============================== */

body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

.dark-mode a:link { color: lightskyblue; }
.dark-mode a:visited { color: #6d4b8d; }
.dark-mode a:hover { color: #ffffff; }
.dark-mode a:active { color: #ff4040; text-decoration:none; font-weight:normal; }


body.dark-mode header {
  background-color: #1e1e1e;
  color: #e0e0e0;
}

body.dark-mode main {
  background-color: #121212;
}

body.dark-mode .champion-card {
  background-color: #1e1e1e;
  border-color: #333;
  color: #e0e0e0;
}

body.dark-mode table,
body.dark-mode th,
body.dark-mode td {
  border-color: #555;
  color: #e0e0e0;
}

/* Increase specificity for team selection area */
body.dark-mode .teams-container,
body.dark-mode .teams-container * {
  background-color: transparent !important;
  color: #e0e0e0 !important;
}

body.dark-mode .team {
  background-color: #1f1f1f !important;
  border: 1px solid #555 !important;
  color: #e0e0e0 !important;
}

body.dark-mode .team-panel,
body.dark-mode .team-subsection {
  background-color: transparent !important;
  color: #e0e0e0 !important;
}

body.dark-mode .team-slots {
  border: 1px dashed #666 !important;
  background-color: #1f1f1f !important;
  color: #e0e0e0 !important;
}

/* Optional: Dark mode adjustments for modal */
body.dark-mode .modal-content {
  background-color: #1e1e1e;
  border: 1px solid #444;
  color: #e0e0e0;
}

body.dark-mode .box1 {
  background-color: #1e1e1e;
  border: 1px solid #444;
  color: #e0e0e0;
}

body.dark-mode #shareableLinkOutput {
    color: white;
}


#filter-container {
  text-align: center;
  margin-bottom: 20px;
}

#championFilter {
  padding: 10px;
  width: 300px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}
/* Greyscale effect for picked champions */
.champion-card.disabled {
  filter: grayscale(100%);
  pointer-events: none;
  opacity: 0.5; /* Makes it look visually inactive */
  cursor: not-allowed; /* Changes the cursor to show it's disabled */
}

#share-link-container {
  text-align: center;
  margin-top: 20px;
}

#generateLinkButton {
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#generateLinkButton:hover {
  background-color: #0056b3;
}

#shareableLinkOutput {
  color: #333;
  font-size: 16px;
}


