.modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 3;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgb(0, 0, 0, 0.8);
  overflow-y: auto;
}

.modal-container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 500px;
  height: fit-content;
  padding: 32px 0 0 0;
  color: var(--dark-color);
  background-color: var(--bg-color);
  border-radius: var(--border-radius-card);
}

#modal-title-wrapper {
  padding: 16px;
  color: #fff;
  text-shadow: var(--text-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#modal-content {
  width: 100%;
  margin-top: 16px;
}

.modal-info-wrapper {
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-card);
  background-color: var(--bg-color);
  padding: 32px 32px 16px 32px;
}

.modal-img {
  max-width: 200px;
  padding: 16px 0;
  -webkit-filter: drop-shadow(var(--drop-shadow));
  filter: drop-shadow(var(--drop-shadow));
}

.modal-tabs-container {
  color: var(--dark-color);
  margin: 0 0 16px 0;
  display: flex;
  gap: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgb(0, 0, 0, 0.2);
}

.modal-tab-btn {
  background: transparent;
  border: none;
  font-weight: 500;
}

.current-selection {
  background-color: rgb(0, 0, 0, 0.1);
  padding: 16px;
  border-radius: var(--border-radius-btn);
}

.modal-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.arrow-btn {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
}

.close-btn {
  background: transparent;
  width: 20px;
  border: none;
  position: absolute;
  top: 16px;
  right: 16px;
}

#prev-btn,
#next-btn {
  width: 20px;
}

/*------ */
/* ABOUT */
/*------ */
th {
  padding-right: 32px;
  display: flex;
  align-items: flex-end; /* Align text to the bottom */
  justify-content: flex-start; /* Align text to the left */
}

td {
  padding: 0 8px 16px 8px;
}

.modal-tags-container {
  margin: 18px 0 139px 0;
  color: #fff;
  text-shadow: var(--text-shadow);
  font-weight: 400;
}

/*------ */
/* STATS */
/*------ */

.stats-content {
  width: 100%;
}

.stats-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
}

.bar {
  width: 100%;
  background-color: rgb(195, 195, 195);
  height: 16px;
  border-radius: var(--border-radius-btn);
}

.bar-fill {
  height: 16px;
  border-radius: var(--border-radius-btn);
}

/*-------------- */
/* MEDIA QUERIES */
/*-------------- */

@media (max-width: 550px) {
  .modal-container {
    width: 300px;
  }

  .modal-img {
    width: 100px;
  }

  .modal-info-wrapper {
    padding: 16px;
    font-size: 14px;
  }

  .modal-tabs-container {
    margin: 0;
    font-size: 14px;
    padding-bottom: 8px;
  }

  .modal-tags-container {
    margin: 8px 0 96px 0;
  }

  .current-selection {
    padding: 8px;
  }

  .stats-wrapper {
    padding-bottom: 8px;
  }

  .close-btn {
    width: 14px;
    top: 12px;
    right: 12px;
  }

  .modal-navigation {
    margin-top: 8px;
  }

  .arrow-btn {
    width: 16px;
  }
}
