dialog {
  position: relative;
  overflow: hidden;
  border: none;
  width: 450px;
  height: 650px;
  border-radius: 12px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); 
}

dialog::backdrop {
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(6px);
}

dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../assets/icons/pokeball.svg') no-repeat left 110px top 16px;
  background-size: 80%;
  opacity: 0.072;
  pointer-events: none;
  z-index: 0;
}

.detail-card-background {
  height: 310px;
}

.close-area {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px; 
  height: 30px;
}

.close-button {
  height: 36px;
  cursor: pointer;
}

.pokemon-number-detail-card {
  position: relative;
  z-index: 1;
  font-size: 18px;
  color: white;
  text-align: left;
  padding-left: 20px;
  padding-top: 60px;
}

.pokemon-name-detail-card {
  position: relative;
  z-index: 1;
  font-weight: 500;
  font-size: 32px;
  color: white;
  text-align: left;
  padding-left: 20px;
  padding-top: 20px;
  padding-bottom: 8px;
}

#pokemonImgDetailCard {
  position: absolute;
  top: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 205px;
}

#pokemonImgDetailCard img {
  max-width: 190px;
  max-height: 190px;
  display: block;
}

.type-area-detail-card {
  display: flex;
  justify-content: start;
  padding-left: 20px;
  gap: 6px;
}

.pokemon-type-button-detail-card {
  position: relative;
  z-index: 1;
  border: none;
  padding: 4px 14px;
  font-size: 16px;
  border-radius: 25px;
  color: #515151;
  font-family: "Jost";
  font-weight: 300;
  font-size: 13px;
  background-color: rgb(255, 255, 255);
}

.arrow-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 40px;
}

.arrow-left {
  width: 40px;
  padding-left: 20px;
}

.arrow-right {
  width: 40px;
}

.arrow-icon {
  height: 20px;
  cursor: pointer;
}

.white-area {
  position: absolute;
  top: 295px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 355px;
  background-color: #fff;
  border-radius: 12px;
  padding: 16px;
  z-index: 1;
}

/* Menu */

.menu-detail-card {
  padding-left: 90px;
  padding-top: 25px;
  width: 450px;
  height: 40px;
}

.menu-detail-card ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.menu-detail-card li {
  display: inline;
}

.menu-detail-card button {
  position: relative;
  z-index: 1;
  color: #9b9b9b;
  font-family: 'Jost';
  font-size: 16px;
  font-weight: 600;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer; 
}

.menu-detail-card button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 3px;
  background-color: #ededed;
  border-radius: 25px;
  border: none;
  background-color: none;
}

.menu-detail-card button:hover::after {
  width: 100%;
}

.content {
  display: none;
}

.content.active {
  display: block;
}

/* Tabs */

.tab-content {
  display: none;
  position: absolute;
  z-index: 1;
  top: 390px;
  left: 90px;
  right: 0;
  bottom: 0;
  color: #9b9b9b;
  font-size: 14px;
  font-weight: 400;
}

.tab-content.active {
  display: block;
}

/* About Content */

.table {
  text-align: left;
}

/* Stats Content */

.progress-wrapper {
  width: 265px;
  height: 220px;
  margin-top: 2px;
}

.bar-info {
  font-weight: 500;
  font-size: 14px;
  color: #515151;
  text-align: left;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #f1f1f1;
  border-radius: 25px;
  margin-top: 2px;
  margin-bottom: 12px;
}

.progress-bar span {
  position: absolute;
  height: 8px;
  border-radius: 25px;
  background-color: #c8c8c8;
  transform: scale(0);
  animation: animate 1s cubic-bezier(1, 0, 0.5, 1) forwards;
  color: transparent;
}

@keyframes animate {
  100%{
    transform: scale(1);
  }
}