body {
  background-image: url("/src/backGround.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.titleLogoWrapper {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 3rem;
  margin-top: 5rem;
}
.titleWrapper {
  display: flex;
  justify-content: flex-end;
  flex: 1;
}

.titleMain {
  background-color: rgba(0, 0, 0, 0.579);
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 80%;
  border: 1px solid #d4af37;
  box-shadow: 0 0 10px #d4af37;
  border-radius: 5px;
  margin: 0;
  padding: 0 30px;
}
.logoNombre {
  display: flex;
  align-items: center;
  margin-right: 3rem;
}
.logoNombre img {
  max-height: 160px;
  height: 100%;
}

.titleMain h1 {
  color: #d4af37;
  font-family: "Almendra", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 40px;
}
.titleMain p {
  color: white;
}

.panel {
  background-color: rgba(0, 0, 0, 0.579);
  width: 20%;
  border: 1px #d4af37 solid;
  border-radius: 5px;
  box-shadow: 0 0 3px #d4af37;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.panel-title {
  color: #d4af37;
  font-family: "Almendra", serif;
  text-align: center;
}
.hrBar {
  border: none;
  height: 3px;
  background-color: #e8c44c;
  text-align: center;
  width: 90%;
  border-radius: 50%;
}
.form-group,
.checkbox-container {
  width: 85%;
  margin: 15px auto;
  box-sizing: border-box;
}

.form-group {
  color: #e0c97d;
}

.form-group select,
.form-group input {
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.199);
  color: #e0c97d;
  border: 1px solid #e0c97d;
  border-radius: 5px;
  padding: 15px;
  font-size: 15px;
  margin: 15px auto;
}

.form-group option {
  background-color: rgba(0, 0, 0, 0.747);
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(0, 0, 0, 0.199);
  color: #e0c97d;
  border: 1px solid #e0c97d;
  border-radius: 5px;
  padding: 15px;
  line-height: 1.6;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.checkbox-container:hover {
  background-color: rgba(182, 172, 138, 0.08);
}
.checkbox-container,
.checkbox-container * {
  cursor: pointer;
}
.buttonResult {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.logProBtn,
.newAnalysis {
  background-color: #d6b84d;
  font-family: "Almendra", serif;
  font-size: 20px;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.4s ease;
  border: none;
  width: 80%;
}
.logProBtn:hover,
.newAnalysis:hover {
  transform: translateY(-3px);
}
.newAnalysis {
  background-color: #d52020;
  color: white;
}

.share-section {
  color: #e0c97d;
}
.share-buttons,
.share-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.share-buttons button {
  border-radius: 5px;
  font-size: 20px;
  font-family: "Almendra", serif;
  width: 100%;
  border: none;
  transition: all 0.4s ease;
}
.rankingBtn {
  color: white;
  background-color: rgb(47, 135, 47);
}
.shareBtn {
  background-color: #d6b84d;
}
.didiBtn {
  background-color: #5865f2;
  color: white;
}
.rankingBtn:hover,
.shareBtn:hover,
.didiBtn:hover {
  transform: translateY(-3px);
}
.cardResultWrapper {
  display: flex;
  width: 90%;
  margin: 50px auto 0;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
}
.main-content {
  border: 1px #d4af37 solid;
  width: 80%;
  background-color: rgba(0, 0, 0, 0.579);
  border-radius: 5px;
}
.card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.card-title {
  font-family: "Almendra", serif;
  color: #d4af37;
}
.player-identity {
  background-color: rgba(217, 217, 73, 0.156);
  border: 1px solid #e8c44c;
  width: 90%;
  display: flex;
  justify-content: space-between;
  padding: 20px;
  align-items: center;
  border-radius: 5px;
}
.player-name {
  color: #e8c44c;
  font-size: 20px;
  font-weight: bold;
}
.timeline-item {
  color: #e8c44c;
  font-size: 18px;
}

.combat-timeline {
  background-color: rgba(43, 43, 112, 0.334);
  border: 1px solid #e8c44c;
  width: 90%;
  display: block;
  justify-content: space-between;
  padding: 20px;
  align-items: center;
  border-radius: 5px;
  line-height: 2;
}
.timeline-item {
  display: flex;
  justify-content: space-between;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 90%;
  margin: 0 auto;
}
.stat-card {
  border: 1px solid #e8c44c;
  text-align: center;
  border-radius: 5px;
  background-color: rgba(217, 217, 73, 0.156);
  padding: 20px;
  line-height: 2;
  font-size: 20px;
  transition: transform 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-5px);
}
.stat-value {
  font-family: "Almendra", serif;
  font-size: 50px;
  color: #ebd691;
}
.stat-title {
  color: #d6b84d;
}
.main-content small {
  color: #ebd691;
}
.combat-efficiency {
  color: #e8c44c;
  border: none;
  border: 1px #e8c44c solid;
  box-shadow: 0 0 2px #d4af37;
  background-color: rgba(0, 0, 0, 0.416);
  border-radius: 5px;
  padding: 5px;
}
.card .section-title {
  font-family: "Almendra", serif;
  color: #d4af37;
  font-size: 24px;
  font-weight: bold;
}
.damage-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 250px));
  gap: 15px;
  margin-top: 20px;
}
.damage-type-card {
  background-color: rgba(217, 217, 73, 0.156);
  padding: 20px;
  font-size: 20px;
  font-weight: bold;
  border-left: 4px #d6b84d solid;
  border-radius: 5px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}
.damage-type-card:hover {
  transform: translateY(-5px);
}
.damage-type-card .damage-type-header {
  color: #d6b84d;
}
.damage-type-card .damage-type-value {
  color: #ebd691;
  font-size: 20px;
}
.table-info {
  background-color: rgba(0, 0, 0, 0.579);
  width: 71%;
  border: 1px #d4af37 solid;
  margin-top: 3rem;
  position: absolute;
  right: 5%;
  border-radius: 5px;
  margin-bottom: 3rem;
}
.table-info .card-title {
  text-align: center;
}
.filters-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.filter-group {
  color: #e0c97d;
  font-weight: bold;
}
.filter-select {
  color: #e0c97d;
  background-color: rgba(0, 0, 0, 0.627);
  padding: 10px;
  border-radius: 5px;
  font-size: 15px;
}
.btn {
  color: white;
  background-color: #d4af37;
  padding: 15px;
  font-size: 16px;
  font-family: "Almendra", serif;
  font-weight: bold;
  border-radius: 5px;
  transition: transform 0.3s ease;
}
.btn:hover {
  transform: translateY(-3px);
}

.table-container {
  width: 90%;
  margin: 20px auto;
  overflow-x: auto;
}
.table-container table {
  width: 100%;
  border-collapse: collapse;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid #d4af37;
  border-radius: 5px;
  overflow: hidden;
}

.table-container thead {
  background-color: rgba(212, 175, 55, 0.15);
}

.table-container th {
  font-family: "Almendra", serif;
  color: #d4af37;
  padding: 15px;
  text-align: left;
  font-size: 18px;
  border-bottom: 1px solid #d4af37;
}
.table-container td {
  padding: 12px 15px;
  color: #ebd691;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  font-size: 15px;
}
.table-container tbody tr {
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.table-container tbody tr:hover {
  background-color: rgba(217, 217, 73, 0.08);
}

.table-container tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

label {
  font-weight: bold;
}

.hidden {
  display: none;
}

button {
  padding: 10px;
  margin: 5px;
  cursor: pointer;
}

input,
select {
  padding: 5px;
  margin: 5px;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #333;
  padding: 10px;
  border-radius: 5px;
  opacity: 0;
  transition: 0.3s;
}

.toast.show {
  opacity: 1;
}

.toast.error {
  background: red;
}

.damage-bar {
  background: #333;
  height: 10px;
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 5px;
}

.damage-dealt-bar {
  background: lime;
  height: 100%;
  width: 0%;
  transition: width 0.5s ease;
}

.damage-received-bar {
  background: red;
  height: 100%;
  width: 0%;
  transition: width 0.5s ease;
}

    @media (max-width: 1200px) {
  .titleLogoWrapper {
    flex-direction: column-reverse;
    margin: 0 auto;
    width: 95%;
    align-items: center;
    margin-top: 2rem;
  }

  .logoNombre {
    margin-right: 0;
  }
  /* TITLE */
  .titleMain {
    width: 90%;
  }

  .titleMain h1 {
    font-size: 32px;
  }

  /* LAYOUT */
  .cardResultWrapper {
    flex-direction: column;
    align-items: center;
  }

  .main-content {
    width: 95%;
  }

  .panel {
    width: 90%;
    margin-top: 20px;
    margin-bottom: 2rem;
  }

  /* STATS GRID */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* TABLE */
  .table-info {
    width: 90%;
    position: static;
    margin: 2rem auto;
  }

  /* TEXT SIZE */
  .player-name {
    font-size: 18px;
  }

  .stat-value {
    font-size: 40px;
  }

  .stat-card {
    font-size: 18px;
  }
  .filter-group {
    margin-left: 2rem;
  }
}
@media (max-width: 600px) {
  .titleLogoWrapper {
    flex-direction: column-reverse;
    margin: 0 auto;
    align-items: center;
    margin-top: 2rem;
    width: 95%;
  }
  /* TITLE */
  .titleMain {
    width: 95%;
  }
  .logoNombre {
    margin-right: 0;
  }
  .titleMain h1 {
    font-size: 24px;
  }

  /* PANEL */
  .panel {
    width: 95%;
    margin-bottom: 2rem;
  }

  .panel-title {
    font-size: 18px;
  }

  /* BUTTONS */
  .logProBtn,
  .newAnalysis {
    width: 90%;
    font-size: 16px;
  }

  /* WRAP MAIN LAYOUT */
  .cardResultWrapper {
    flex-direction: column;
    width: 95%;
  }

  .main-content {
    width: 100%;
  }

  /* PLAYER INFO */
  .player-identity {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  /* STATS GRID → STACK */
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 32px;
  }

  .stat-card {
    font-size: 16px;
  }

  /* DAMAGE GRID */
  .damage-types {
    grid-template-columns: 1fr;
  }

  /* TABLE */
  .table-info {
    width: 95%;
    position: static;
    margin-top: 20px;
  }

  .table-container th,
  .table-container td {
    font-size: 12px;
    padding: 8px;
  }

  /* FILTERS */
  .filters-container {
    flex-direction: column;
  }
   .filter-group {
    margin-left: 2rem;
  }

  .filter-select {
    width: 100%;
  }

  /* TOAST */
  .toast {
    width: 90%;
    right: 5%;
    left: 5%;
  }
}
