* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul, ol {
  list-style: none;
}

h1,h2,h3,h4,h5,h6 {
  margin-inline-start: 0;
  margin-block-end: 0;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

header {
  background-color: #110312ca;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.orden-container {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin-block: 64px;
}

.orden-left,
.orden-right {
  display: flex;
  gap: 35px;
}

.orden-container img {
  width: 60px;
  height: 60px;
}

.orden-1, .orden-8 { transform: translateY(30px); }
.orden-2, .orden-7 { transform: translateY(-10px); }
.orden-3, .orden-6 { transform: translateY(-45px); }
.orden-4, .orden-5 { transform: translateY(-65px); }

.logo {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.logo img {
  width: 90%;
}

.header-text {
  margin-bottom: 64px;
}

.header-text p {
  font-size: 32px;
  font-weight: bold;
  color: white;
  margin-top: -80px;
  letter-spacing: 8px;
}

::-webkit-scrollbar {
  width: 20px;
}
::-webkit-scrollbar-track {
  background-color: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: #282E3A;
  border-radius: 20px;
  border: 6px solid transparent;
  background-clip: content-box;
  transition: background-color 0.3s ease-in-out;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #333d52;
}

button {
  cursor: pointer;
}

.container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wrapper {
  position: relative;
  flex-wrap: wrap;
  max-width: 1920px;
  display: flex;
  justify-content: center;
  gap: 154px;
  padding: 64px;
}

.wrapper-btn {
  max-width: 1920px;
}

body {
  background: #272727;
  font-family: 'Poppins', sans-serif;
}

.content {
  position: relative;
  margin-bottom: 64px;
}

.box {
  position: relative;
  width: 240px;
  height: 260px;
  transform-style: preserve-3d;
  transform:  perspective(100px) rotateY(-30deg);
  transition: 1.5s;
  margin-bottom: 16px;
}

.box::before {
  content: '';
  position: absolute;
  width: 240px;
  height: 150px;
  background: #2225;
  transform:  translateY(240px) rotateX(90deg) scale(1.1);
  filter: blur(50px);
}

.close-btn {
  width: 32px;
  margin-top: 4px;
}

.box .card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 260px;
  border-radius: 20px;
  border: 1px  solid  black;
  transform-origin: center;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--i)  * 90deg)) translateZ(120px);
}

.box .card .imgBx {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: end;
  bottom: -2px;
  width: 100%;
  height: 200px;
  cursor: pointer;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transform: translateZ(30px);
  transition: transform 0.3s ease; 
}

.box .card .flying {
  bottom: 10px !important;
}

.cursor {
  cursor: default !important;
}

.box .card .imgBx img {
  position: absolute;
  width: auto;
  height: auto;
}

.box .card .imgBx:hover {
  transform: scale(1.1) translateZ(30px);
}

.box .card .poke-name {
  height: 60px;
  border-radius: 20px;
  transform: translateZ(20px);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.box .card .poke-name h2 {
  position: relative;
  top: 10px;
  width: 240px;
  text-align: center;
  font-size: 1em;
  font-weight: 500;
  line-height: 1em;
  text-transform: uppercase;
}

.btns {
  width: 100%;
  position: absolute;
  bottom: -80px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.btns div {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #333;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btns div:active {
  background: #333;
}

.btns div::before {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border-top: 3px solid #333;
  border-right: 3px solid #333;
  transform: rotate(45deg) translate(-2.5px, 2.5px);
}

.btns div.prev::before {
  transform: rotate(225deg) translate(-2.5px, 2.5px);
}

.btns div:active::before {
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
}

.loadButton {
  background-color: rgb(98, 95, 95);
  color: white;
  font-size: 16px;
  padding: 16px;
  border-radius: 20px;
  border-style: none;
  outline: none;
  margin: 32px;
  cursor: pointer;
}

.loadButton:active {
  background: #333;
}

.popup-bg {
  overflow: hidden;
  background: #110312;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.pokemon-card {
  width: 1500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.menu {
  margin-block: 16px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.menu h1,
.menu h2 {
  font-size: 32px;
  font-weight: 600;
}

.subheader-type {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.card-type {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 20px;
}

.card-header {
  border-radius: 20px;
  color: black;
  background-position: 50%;
  width: 50%;
  height: 350px;
}

.stats-container {
  background: white;
  width: 50%;
  margin-top: -40px;
  padding-bottom: 16px;
  color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 30px 30px 0 0;
  border-radius: 20px;
  height: 400px;
}

.pokemon-image {
  width: 250px;
  margin-top: -220px;
  filter: drop-shadow(0px 8px 8px rgba(0, 0, 0, 0.646));
}

.toggle-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-block: 16px;
  gap: 90px;
  font-size: 20px;
}

.svg {
    width: 64px;
    height: 40px;
    fill: black;
    border-radius: 20px;
    padding: 8px;
}

.svg-disabled {
  cursor: default;
  fill: grey;
}

.toggle-section button {
  border: 0;
  background: transparent;
} 

.toggle-section img {
  width: 40px;
  height: 40px;
}

.about-container {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.left {
  color: rgb(141, 141, 141);
}

.stats-container h2 {
  font-size: 20px;
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width:   100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #2f2f2fd6;
  transition: opacity 0.75s, visibility  0.75s;
}

.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader::after {
  content: '';
  width: 75px;
  height: 75px;
  border: 15px  solid #dddddd;
  border-top-color: #110312;
  border-radius: 50%;
  animation: loading 0.75s ease infinite;
}


.single-card {
  width: 400px;
  height: 450px;
  cursor: pointer;
  border-radius: 20px;
  box-shadow: -4px 4px 12px rgba(0, 0, 0, 1.0); 
  perspective: 1000px; 
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; 
}


.imgBx-single-card {
  display: flex;
  justify-content: center;
  bottom: -2px;
  cursor: pointer;
 
}

.imgBx-single-card img {
  position: absolute;
  width: auto;
  height: auto;
  bottom: 60px;
  transition: transform 0.3s ease;
  z-index: 2;
}


.imgBx-single-card img:hover {
  transform: scale(1.1) translateZ(30px);
}

.single-poke-name {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;  
  justify-content: center;
  align-items: center;
  height: 60px;
  border-radius: 20px;
}

.popup-bg-searched-cards {
  background: #110312;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0; 
  display: flex;
  justify-content: center;
}


.searched-cards {
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  height: 100%;
  padding-block: 16px;
}
.close-button {
  background: rgb(185, 180, 41);
  position: absolute;
  border-radius: 20px;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: bold;;
  color: #000;
  border: none;
  cursor: pointer;
  z-index: 900;
  outline: solid transparent 0.5px;
}

.close-button:hover {
  background: rgb(27, 121, 126);
}

.overflow {
  overflow: hidden;
}

.search-btn svg {
  position: fixed;
  top: 12px;
  right: 70px;
  width: 1.35rem;
  filter: drop-shadow(0 2px 2px #00000026);
}
.search-btn {
  position: fixed;
  top: 10px;
  right: 64px;
  background: rgb(185, 180, 41);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 6px;
  gap: 0.5rem;
  outline: solid transparent 0.5px;
  transition: all 0.25s ease-in-out;
  z-index: 900;
}
@media only screen and (min-width: 1920px) {
  .search-btn {
      top: 10px; 
      right: calc((100vw - 1920px) / 2 + 10px); 
      max-width: 1920px; 
  }
  .search-btn svg {
    top: 12px;
    right: calc((100vw - 1920px) / 2 + 16px); 
    max-width: 1920px; 
  }
}

.search-btn:hover {
  background: rgb(27, 121, 126);
  outline: solid white 0.5px;
  width: 13.5rem;
  justify-content: flex-start;
  padding: 0 0.5rem;
}

.search-btn input {
  height: 1.5rem;
  width: 1rem;
  font-weight: 400;
  font-size: 1rem;
  color: black;
  padding: 0.75rem;
  border: none;
  background: white;
  border-radius: 1rem;
  border: #b8cac7 solid 0.1px;
  opacity: 0;
  transition: width 0.3s ease, opacity 0.3s ease;
}

.search-btn:hover input {
  width: 10.5rem;
  opacity: 1;
  transition-delay: 0.3s;
}



::placeholder {
  font-size: 0.75rem;
}

.search-btn input:active {
  outline: solid rgb(39, 125, 18) 2.5px;
  justify-content: flex-start;
}

@keyframes loading {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}

@media (max-width: 763px) {
  .search-btn {
    right: 16px;
  }
  .search-btn svg {
    right: 22px;
  }
  .box {
    width: 150px;
    height: 200px;
    margin-bottom: 16px;
  }
  .box::before {
    width: 160px;
    height: 160px;
    transform:  translateY(170px) rotateX(90deg) scale(1.1);
    filter: blur(50px);
  }
  .box .card {
    width: 100%;
    height: 220px;
    transform: rotateY(calc(var(--i)  * 90deg)) translateZ(75px);
  }
  .box .card .imgBx {
    width: 100%;
    height: 170px;
  }
  .box .card .poke-name {
    height: 50px;
  }
  .box .card .poke-name h2 {
    width: 100%;
    font-size: 14px;
  }
  .pokemon-card {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  .card-header,
  .stats-container {
    width: 100%;
  }
  .menu {
    gap: 80px;
  }
  .orden-container {
    margin-block: 0px;
    gap: 16px;
  }
  .orden-left,
  .orden-right {
    gap: 16px;
  }
  .orden-container img {
    width: 40px;
    height: 40px;
    margin-block: 56px;
  }
  .header-text p {
    font-size: 24px;
    margin-top: -70px;
    letter-spacing: 6px;
  }
  .loadButton {
    margin: 64px;
  }
  .close-btn {
    width: 24px;
  }
  .menu  h2, 
  .menu  h1 {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  .orden-container {
    flex-direction: column;
    margin-top: 56px
  }
  .orden-container img {
    width: 40px;
    height: 40px;
    margin-block: 0;
  }
  .header-text {
    margin-bottom: 32px;
  }
  .orden-1, .orden-2, .orden-3, .orden-4, 
  .orden-5, .orden-6, .orden-7, .orden-8 { 
    transform: translateY(0); 
  }

  .header-text p {
    font-size: 24px;
    margin-top: -140px;
    letter-spacing: 6px;
  }

}

@media (max-width: 537px) {
  .close-button {
    left: 64px;
  }
  .search-btn {
    right: 64px;
  }
  .search-btn svg {
    right: 72px;
  }
}

@media (max-width: 439px) {
  .toggle-section {
    gap: 60px;
  } 
  .menu {
    gap: 0px;
  }
  .single-card  {
    width: 280px; 
    height: 350px; 
  }  
}

@media (max-height: 707px) {
  .pokemon-image {
    width: 150px;
  }
  .pokemon-card {
    height: 100vh;
  }
  .stats-container,
  .card-header {
    border-radius: 0;
  }
}

@media (max-height: 605px) {
  .pokemon-image {
    margin-top: 0px;
  }
  .stats-container {
    overflow: auto;
    scrollbar-gutter: stable;
  }
}

 @media (max-height: 476px) {
  .card-header {
    height: 800px;
  }
}

.d-none {
  display: none;
}