:root {
  --button-color: #6c79db;
}

/* POKEMON DETAILS */
.content__details .details__header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 0;
}

.content__details .details__header button {
  background-color: inherit;
  border: none;
  color: white;
  font-weight: lighter;
  cursor: pointer;
}

.content__details .pokemon__detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
  padding-bottom: 0;
  color: white;
}

.content__details .pokemon__name {
  font-size: 2rem;
  font-weight: 700;
  text-transform: capitalize;
}

.content__details .pokemon__number {
  font-size: 1rem;
  font-weight: 700;
  align-self: flex-end;
}

.content__details .pokemon__types {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.content__details .pokemon__type {
  margin-bottom: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  text-align: center;
  font-size: 0.825rem;
  text-transform: capitalize;
}

.content__details .pokemon__detail img {
  max-width: 100%;
  height: 160px;
  border-style: none;
  align-self: center;
}

/* POKEMON INFORMATION */
.content__details .pokemon__info-Container {
  padding-top: 1rem;
  background-color: white;
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
}

.content__details .info__tabs {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  margin-bottom: 1rem;
}

.content__details .info-Button {
  background-color: inherit;
  border: none;
  color: black;
  opacity: 0.3;
  font-weight: bold;
  padding: 1rem 0.25rem;
  cursor: pointer;
}

.content__details .info-Button.selected {
  opacity: 1;
  border-bottom: 2px solid var(--button-color);
}

.content__details .info {
  display: none;
}

.content__details .info.selected {
  display: block;
}

.content__details .info__table {
  padding: 0 1rem;
  width: 100%;
}

.content__details .info__table th {
  padding: 0.5rem;
  text-align: start;
  opacity: 0.3;
}

.content__details .info__table .info__title {
  opacity: 1;
  padding-top: 1rem;
}

/* POKEMON EVOLUTION */
.content__details .evolution__title {
  font-weight: bold;
  font-size: 1.25rem;
  padding: 0 1rem;
}

.content__details .evolution__table {
  margin: 1rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
}

.evolution__table .evolution__img-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-transform: capitalize;
}

.evolution__table .evolution__img-name img {
  max-width: 100%;
  height: 90px;
  border-style: none;
}

.evolution__table .evolution__condition {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.evolution__table .evolution__condition i {
  font-size: 1.5rem;
  opacity: 0.3;
}

/* POKEMON MOVES */
.content__details .moves__table {
  padding: 0 1rem;
  width: 100%;
  text-transform: capitalize;
  position: relative;
  border-collapse: collapse;
}

.content__details .moves__table th {
  padding: 0.5rem;
  text-align: start;
  color: rgba(0, 0, 0, 0.3);
  text-align: center;
  background-color: white;
  position: sticky;
  top:0;
}

.content__details .moves__table td {
    text-align: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.199);
}

.content__details .moves__table div {
    color: white;
    border-radius: 1rem;
    padding:0.2rem;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.219);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.247);
}


@media screen and (min-width: 576px) {
  .content__details .pokemon__detail {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
  }

  .content__details .pokemon__detail img {
    height: 200px;
  }

  .content__details .pokemon__name {
    font-size: 2.5rem;
  }

  .content__details .pokemon__number {
    font-size: 1.25rem;
    align-self: center;
  }

  .content__details .pokemon__type {
    margin: 0;
  }

  .content__details .info__table {
    max-width: 560px;
    margin: auto;
  }

  .content__details .evolution__table {
    max-width: 560px;
    margin: 1rem auto;
  }

  .evolution__table .evolution__img-name img {
    height: 150px;
  }

  .content__details .moves__table {
    max-width: 560px;
    margin: auto;
  }
}

@media screen and (min-width: 992px) {
  .content__details .evolution__title {
    padding: 0 10rem;
  }
}
