@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
/* font-family: "Inter", sans-serif; */
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap");
/* font-family: "Oswald", sans-serif; */
* {
  margin: 0%;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  scroll-behavior: smooth;
}
:root {
  --clr: #1664b0;
  --clr2: #efe8de;
  --clr3: #d21624;
  --header: #191506;
  --section: #b7b1a9;
}
body {
  background-color: var(--aside);
  position: relative;
  scroll-behavior: smooth;
}
main {
  position: fixed;
  top: 0;

  width: 90%;
  height: 100%;
}

/* aside   */
aside {
  position: fixed;
  right: 0;

  background-color: var(--header);
  display: flex;
  flex-direction: column;

  height: 100%;
  width: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

aside .profile {
  width: 50%;
  height: 20%;

  background: url(assets/Logo.png) center no-repeat;
  background-size: contain;
}
aside nav {
  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
}
aside nav div {
  display: flex;
  flex-direction: column;
  padding-top: 1rem;
  gap: 1.5rem;
}
nav div li a {
  color: var(--clr2);
  font-weight: bolder;
  letter-spacing: 1px;
  font-family: "Inter", sans-serif;
}

/* header  */
header {
  width: 100%;
  background-color: var(--header);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.refresh .refresh-icon {
  font-size: 1.5rem;
  color: var(--clr2);
  cursor: pointer;
  transition: transform 0.4s ease;
}
.refresh-icon.rotate{
  transform: rotate(360deg);
}
header .search {
  width: 50%;
  position: relative;
  display: flex;
  align-items: center;
}
.search input {
  width: 100%;
  padding: 0.7rem;
  border-radius: 5px;
  outline: none;
  border: none;
  font-size: clamp(1rem, 2vw, 1rem);
}
.search .search-btn {
  position: absolute;
  right: 0;
  padding: 0.5rem 2.5rem;
  background-color: none;
  border: 2px solid var(--clr);
  border-radius: 5px;
  outline: none;
  color: #1664b0;
  cursor: pointer;
  font-size: clamp(1rem, 2vw, 1rem);
}

/* section   */
section {
  width: 100%;
  height: 100%;
  background-color: var(--section);
  overflow-y: scroll;

  position: relative;
}
.sec-heading {
  position: sticky;
  top: 0;
  z-index: 2;

  padding: 0.5rem;
  /* background-color: var(--clr2); */
}
section .sec-heading h2 {
  border-left: 5px solid var(--clr3);
  padding: 0.5rem 1rem;
  letter-spacing: 1px;
  color: var(--clr3);
  font-weight: bolder;
}

.cards {
  padding: 10px 1rem;
  padding-bottom: 10px;
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.card {
  background-color: var(--clr3);
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.card .card-image {
  background-color: whitesmoke;
  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
}
.card .card-image img {
  width: 200px;
  height: 200px;
}
.card-image button {
  outline: none;
  border: none;
  padding: 5px;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  background-color: transparent;
}
.card-image button .save-img {
  width: 30px;
  height: 30px;
  cursor: pointer;
  background-color: transparent;
  object-fit: contain;
}
.pokedex-number {
  text-align: end;
  padding: 0.2rem 1rem;
}
.pokedex-number p {
  color: rgba(255, 255, 0, 0.915);
  font-weight: bolder;
  letter-spacing: 2px;
}
.card .card-content {
  background-color: var(--clr3);
  display: flex;
  /* flex-direction: column; */
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  gap: 1rem;
}
.card-content .pokemon-name {
  font-weight: bold;
  text-transform: uppercase;
  color: var(--clr2);
}

.card-content .pokemon-type {
  color: var(--clr);
  font-weight: bold;
  text-transform: capitalize;
  font-size: clamp(1rem, 2vw, 1rem);
  background-color: var(--clr2);
  padding: 0.5rem;
  border-radius: 10px;
}
.saved {
  background-color: var(--section);
  width: 100%;
  height: 90%;
  overflow-y: scroll;

  display: none;
}
body.show-saved .allpokemon {
  display: none;
}

body.show-saved .saved {
  display: block;
}
.icon-link {
  color: var(--clr2);
}
a {
  font-family: "Oswald", sans-serif;
}
h2 {
  font-family: "Inter", sans-serif;
}
