@media (max-width: 830px) {
  .pokedexContainer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 5;
  }

  .positionLoader {
    top: calc(50% - (80px / 2));
    left: calc(50% - (80px / 2));
  }

  #current-pokemon {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
  }

  .wrapper {
    margin-top: unset;
    right: unset;
  }

  .backBtn {
    display: block;
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 100%;
    box-shadow: 0px 0px 10px var(--clr-white);
    cursor: pointer;
    z-index: 5;
  }

  .backBtn:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.15);
    box-shadow: 0px 0px 15px var(--clr-white);
  }

  .backBtn img {
    height: 40px;
  }

  #pokemonContainer {
    margin-right: unset;
    margin-left: unset;
    padding: 0 30px;
  }

  #current-pokemon {
    height: 100vh;
  }

  .pokemonLoader {
    margin-right: unset;
  }

  .mybutton {
    left: unset;
    right: 5px;
  }

  .left::before {
    height: 70px;
    width: 45px;
  }

  .right::after {
    height: 70px;
    width: 45px;
  }

  #infoSection {
    transform: scale(1);
  }

  @keyframes slideOut {
    0% {
      right: unset;
      filter: opacity(0);
    }
    100% {
      right: unset;
      filter: opacity(0);
    }
  }

  @keyframes slideIn {
    0% {
      right: unset;
      filter: opacity(0);
    }
    100% {
      right: unset;
      filter: opacity(1);
    }
  }

  .fadeOut {
    animation: fadeOut ease-in-out 0.35s;
    animation-fill-mode: forwards;
  }

  @keyframes fadeOut {
    0% {
      filter: opacity(1);
    }
    100% {
      filter: opacity(0);
    }
  }
}

@media (max-width: 665px) {
  .logoContainer {
    display: none;
  }

  .pokemonCard {
    width: 210px;
  }

  .typeSpan {
    display: none;
  }

  #preLoader img {
    height: 35%;
  }

  .languageContainer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .content {
    margin-top: 85px;
  }
}

@media (max-width: 540px) {
  .pokemoncard {
    width: 200px;
  }

  .wrapper {
    width: 385px;
  }

  .left::before {
    left: -19%;
    width: 32px;
  }

  .right::after {
    right: -19%;
    width: 32px;
  }

  #pokemonImg {
    margin-right: 22px;
    margin-left: 37px;
  }

  .circle {
    left: 45px;
  }
}

@media (max-width: 520px) {
  #preLoader img {
    height: 25%;
  }
}

@media (max-width: 420px) {
  #pokemonContainer {
    margin-right: unset;
    margin-left: unset;
    padding: 0 0;
  }

  #preLoader img {
    height: 20%;
  }

  .wrapper {
    width: 300px;
  }

  #pokemonImg {
    margin-right: 17px;
    margin-left: 7px;
    height: 100px;
    width: 100px;
  }
  .circle {
    left: 13px;
    height: 100px;
    width: 100px;
  }

  .pokedexMenu {
    height: 60px;
    font-size: 14px;
  }

  .pokedexMenu ul li {
    height: 60px;
    padding: 10px;
  }

  .left::before {
    left: -22%;
  }
  .right::after {
    right: -22%;
  }

  .pokemonTypes {
    width: max-content;
  }

  .pokedexData tbody td:first-child {
    width: 30%;
  }
}

@media (max-width: 340px) {
  .backBtn img {
    height: 30px;
  }

  .active {
    font-size: 16px;
  }

  .typeStyling span {
    display: none;
  }

  .pokedexData tbody td:first-child {
    width: 55%;
  }

  .wrapper {
    width: 265px;
  }

  #pokemonName {
    font-size: 22px;
  }

  .left::before {
    left: -18%;
    width: 18px;
  }

  .right::after {
    right: -18%;
    width: 18px;
  }
}

@media (max-width: 300px) {
  #pokemonContainer {
    justify-content: flex-start;
  }
}
