/* Reset default styles and set base styles */
body {
  font-family: 'Arial', sans-serif;
  background-color: #070606;
  color: #e0e0e0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  line-height: 1.6;
  transition: background-image 0.6s ease-in-out;
  will-change: background-image;
}

/* Main container */
.container {
  max-width: 1200px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  color: #fff;
  margin-top: 20px;
}

/* Header */
h1 {
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
  font-size: 2rem;
}

/* Select dropdown */
.select-container {
  margin-bottom: 20px;
  text-align: center;
}

.select-container select {
  padding: 6px;
  font-size: 16px;
  border: 2px solid #007bff;
  border-radius: 8px;
  width: 90%;
  max-width: 300px;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  transition: border-color 0.3s ease-in-out;
}

.select-container select:hover,
.select-container select:focus {
  border-color: #0056b3;
  outline: none;
}

/* Links */
#wikiLink, #LeagueToolBoxLink, #LeagueGuesser, #DamageCheck {
  color: #f0f0f0;
  text-decoration: underline;
  transition: color 0.3s ease-in-out;
}

#wikiLink:hover, #LeagueToolBoxLink:hover, #LeagueGuesser:hover, #DamageCheck:hover {
  color: #ffcc00;
  text-decoration: none;
  border-bottom: 2px solid #ffcc00;
}

/* Table */
table {
  width: 100%;
  margin-top: 30px;
  border-collapse: collapse;
}

table th, table td {
  border: 1px solid #444;
  padding: 12px;
  text-align: center;
  font-size: 15px;
}

table th {
  background-color: #007bff;
  color: white;
  font-weight: bold;
}

table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.1);
}

table tr:hover {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

/* Number inputs */
input[type="number"] {
  width: 60px;
  text-align: right;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid #777;
  padding: 5px;
  appearance: textfield;
}

/* Calculator */
.calculator {
  max-width: 400px;
  margin: 20px auto;
  background-color: rgba(41, 39, 39, 0.8);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  color: #fff;
}

.calculator h2 {
  text-align: center;
  color: #007bff;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.calculator .form-group {
  margin-bottom: 15px;
}

.calculator label {
  display: block;
  margin-bottom: 5px;
  color: #f3f3f3;
}

.calculator input {
  width: 100%;
  padding: 8px;
  font-size: 16px;
  border: 1px solid #777;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  box-sizing: border-box;
}

.calculator button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  width: 90%;
  max-width: 300px;
  margin: 0 auto;
  display: block;
  transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.calculator button:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

.calculator button:focus {
  outline: 2px solid #ffcc00;
  box-shadow: 0 0 8px #ffcc00;
}

/* Calculation result */
.calculator #result {
  margin-top: 20px;
  text-align: center;
  font-size: 18px;
  color: #ffcc00;
}

/* Loading indicator */
.loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #007bff;
  font-size: 24px;
  display: none;
}

.loading.show {
  display: block;
}

/* Tooltip */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  text-align: center;
  border-radius: 5px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 600px) {
  .container {
    padding: 15px;
  }

  h1 {
    font-size: 24px;
  }

  .calculator button {
    font-size: 14px;
    padding: 10px;
  }

  table th, table td {
    padding: 8px;
    font-size: 14px;
  }

  .tooltip .tooltiptext {
    width: 150px;
    margin-left: -75px;
  }
}
