.loadScreen {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgb(53, 101, 174);
  z-index: 10;
  overscroll-behavior: contain;
}

.loadScreen img {
  width: 256px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.804);
  z-index: 10;
  overscroll-behavior: contain;
}

.dNone {
  display: none;
}

.pokeOverlay {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  width: 400px;
  height: 620px;
  background-color: rgb(32, 36, 60);
  border: 5px solid rgb(0, 0, 0);
  border-radius: 30px;
  gap: 10px;
  z-index: 9;
  box-shadow: 0px 0px 15px 7px #535252;
}

.pokeCircleOverlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 392px;
  height: 220px;
  padding-bottom: 40px;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
  border-top-left-radius: 27px;
  border-top-right-radius: 29px;
  z-index: 0;
}

.imgOverlay {
  width: 160px;
  height: 160px;
  opacity: 1 !important;
}

.nameOverlay {
  display: flex;
  align-items: center;
  width: 395px;
  gap: 230px;
  padding-top: 10px;
  color: white;
  font-size: 20px;
}

.nameTypeOverlay {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nameOverlayStyle {
  color: white;
  font-size: 36px !important;
  font-weight: 400px;
}

.type {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 140px;
  height: 35px;
  border: 3px solid black;
  border-radius: 50px;
  color: white;
  font-weight: 300;
  font-size: 20px;
}

.typesOverlay {
  display: flex;
  gap: 20px;
}

.nameOverlay h2 {
  font-size: 20px;
  font: bold;
}

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

.statsHeader {
  display: flex;
  justify-content: center;
  font-size: 36px;
  color: white;
}

.displayStats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stats {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px;
  gap: 20px;
}

.stats h2 {
  display: flex;
  justify-content: start;
  align-items: center;
  width: 50px;
  font-size: 14px;
  color: white;
}

.progress {
  width: 200px;
  height: 25px !important;
}

.progressBorder {
  border: 3px solid black;
  border-radius: 80px !important;
}

.returnButton {
  color: rgb(255, 255, 255) !important;
  font: 900;
}

.returnButton:hover {
  color: rgb(213, 59, 71) !important;
}

.overlayButton {
  display: flex;
  justify-content: space-between;
  gap: 150px;
  padding-bottom: 40px;
}

@media (max-width: 500px) {
  .pokeOverlay {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    gap: 80px;
    z-index: 9;
    box-shadow: 0;
  }

  .pokeCircleOverlay {
    width: 100%;
    height: 300px;
    padding-bottom: 40px;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    z-index: 0;
  }
  .imgOverlay {
    width: 250px;
    height: 250px;
  }
  .nameTypeOverlay {
    position: absolute;
    top: 37%;
  }
  .statsContent {
    position: absolute;
    top: 52%;
  }
  .overlayButton {
    position: absolute;
    top: 82%;
  }
  .statsContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }
  .statsHeader {
    font-size: 36px;
  }
  .stats {
    width: 500px;
    gap: 50px;
  }

  .stats h2 {
    width: 50px;
    font-size: 20px;
    color: white;
  }

  .progress {
    width: 280px;
    height: 25px !important;
  }

  .progressBorder {
    border: 3px solid black;
    border-radius: 80px !important;
  }
}

@media (max-width: 400px) {
  .pokeOverlay {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    gap: 80px;
    z-index: 9;
    box-shadow: 0;
  }

  .pokeCircleOverlay {
    width: 100%;
    height: 210px;
    padding-bottom: 40px;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    z-index: 0;
  }

  .nameOverlay {
    justify-content: center;
    gap: 200px;
  }

  .imgOverlay {
    width: 120px;
    height: 120px;
  }

  .nameTypeOverlay {
    position: absolute;
    top: 33%;
  }

  .statsContent {
    position: absolute;
    top: 49%;
  }

  .overlayButton {
    position: absolute;
    top: 85%;
  }

  .statsContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .statsHeader {
    font-size: 36px;
  }

  .stats {
    width: 400px;
    gap: 50px;
  }

  .stats h2 {
    width: 50px;
    font-size: 20px;
    color: white;
  }

  .pokeButton {
    width: 50px;
    height: 50px;
  }

  .progress {
    width: 220px !important;
    height: 25px !important;
  }

  .progressBorder {
    border: 3px solid black;
    border-radius: 80px !important;
  }
}
@media (max-width: 350px) {
  .nameOverlay {
    justify-content: center;
    gap: 180px;
  }

  .nameOverlay h2 {
    margin-right: 20px;
  }

  .progress {
    width: 200px !important;
    height: 25px !important;
  }
}
