@font-face {
  font-family: "zabras";
  src: url("fonts/zabars/ZABARS/Zabars.ttf") format("truetype"); /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */
}
@font-face {
  font-family: "komika";
  src: url("fonts/komika.hand-bold.ttf") format("truetype"); /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* colors */
  --primary-100: #c5e5fc;
  --primary-200: #a5d5f8;
  --primary-300: #8bcbf9;
  --primary-400: #6ebef7;
  --primary-500: #49a6e9;
  --primary-600: #2d87c8;
  --primary-700: #1a6aa2;
  --primary-800: #104e7a;
  --primary-900: #063251;

  /* grey */
  --grey-50: #f8fafc;
  --grey-100: #f1f5f9;
  --grey-200: #e2e8f0;
  --grey-300: #cbd5e1;
  --grey-400: #94a3b8;
  --grey-500: #64748b;
  --grey-600: #475569;
  --grey-700: #334155;
  --grey-800: #1e293b;
  --grey-900: #0f172a;
  /* rest of the colors */
  --black: #222;
  --white: #fff;
  --red-light: #f8d7da;
  --red-dark: #842029;
  --green-light: #d1e7dd;
  --green-dark: #0f5132;

  --small-text: 0.875rem;
  --extra-small-text: 0.7em;
  /* rest of the vars */
  --backgroundColor: var(--grey-50);
  --textColor: var(--grey-900);
  --borderRadius: 0.25rem;
  --letterSpacing: 1px;
  --transition: 0.3s ease-in-out all;
  --max-width: 1120px;
  --fixed-width: 600px;

  /* box shadow*/
  --shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-4: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
  min-height: 100vh;
  position: relative;
  background: silver;
  display: flex;
  flex-direction: column;
}
.align-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
}

nav {
  height: 60px;
  justify-content: space-between;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1170px;
}

header {
  display: flex;
  justify-content: center;
  /* background-color: var(--primary-700); */
  align-items: center;
  box-shadow: var(--shadow-1);
  padding: 1rem;
}

.html-overflow {
  overflow: hidden;
}

.glide__slide {
  align-items: flex-start;
  justify-content: center;
  height: 630px !important;
  display: none;
  position: relative;
  background: #483867;
  border-radius: 2.5rem;
  z-index: 999;
}
.glide__arrows {
  display: none;
  z-index: 999;
}

.d-none {
  display: none;
}
.infos {
  color: rgb(85, 26, 139);
}
.btn {
  cursor: pointer;
  color: var(--white);
  background: rgb(85, 26, 139);
  border: transparent;
  border-radius: var(--borderRadius);
  letter-spacing: var(--letterSpacing);
  padding: 0.375rem 0.75rem;
  box-shadow: var(--shadow-1);
  transition: var(--transition);
  text-transform: capitalize;
  margin: 0 auto;
  display: flex;
}
.btn:hover {
  background: rgb(81, 33, 186);
  /* background: var(--primary-700); */
  box-shadow: var(--shadow-3);
}
.container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1170px;
}

h1 {
  font-family: "komika";
  font-size: 80px;
  color: rgb(254, 202, 27);
  margin-block-start: 0;
  margin-block-end: 0;
  -webkit-text-stroke: 1px rgb(55, 97, 168);
}

.infos {
  width: 100%;
  font-family: "komika";
  font-weight: 500;
  transition: all 300ms ease-in-out;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
  text-align: center;
}
.pokemon-img {
  width: 100%;
  object-fit: cover;
}

section {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin-block: 3rem;
  padding-inline: 1rem;
}

a:not(.removeBorder) {
  text-decoration: none;
  border: 2px solid rgb(85, 26, 139);
  border-radius: 30px;
}
input {
  padding: 0.5rem;
  outline: none;
  border-radius: 10px;
  border: none;
  background-color: linen;
  width: 250px;
  padding-block: 0.75rem;
}

ul img {
  width: 175px;
  object-fit: cover;
}
.pokemon-characteristics {
  display: flex;
  gap: 1rem;
}
#align-middle {
  flex: 1;
  margin-bottom: 12rem;
}

.performance-label {
  font-family: "komika";
  font-size: 18px;
  color: darkgoldenrod;
}

#height,
#weight,
#abilities,
#types {
  font-family: "komika";
  font-weight: 300;
  color: whitesmoke;
}

.top-section-info {
  display: flex;
  align-items: end;
  justify-content: space-between;
  width: 100%;
  padding: 2rem 5rem 0 5rem;
}

button.info-btn {
  padding-block: 0.25rem;
  padding-inline: 2.5rem;
}
.details {
  display: flex;
  font-family: system-ui !important;
}

.pokemon-performances {
  display: flex;
  position: absolute;
  bottom: -38px;
}
.glide {
  top: 3rem;
  background: brown;
  position: absolute !important;
  width: 90% !important;
  max-width: 760px !important;
  margin: 0 auto;
  border-radius: 40px;
  z-index: 999;
}

.btn-exit {
  margin-right: unset !important;
  display: none;
  position: absolute;
  right: 2rem;
  top: 2rem;
  cursor: pointer;
  background: transparent;
  padding: 5px;
  color: #fff;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  box-shadow: 0 0.25em 0.5em 0 rgba(0, 0, 0, 0.1);
  text-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.1);
  transition: opacity 150ms ease, border 300ms ease-in-out;
  width: 40px !important;
  aspect-ratio: 1 / 1;
  z-index: 999;
}
.btn-exit:hover {
  border-color: #fff;
  opacity: 1;
}

.closeBtn {
  filter: invert(1);
  width: 20px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.img-current-pokemon {
  animation: animate-pokemon 2s ease-in-out infinite;
}

.links {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.link-icon {
  transition: all 250ms ease-in-out;
}

.removeBorder {
  cursor: pointer;
  transition: all 250ms ease-in-out;
}

.removeBorder:hover .link-icon {
  display: inline-block;
  font-size: 50px;
  transform: translateY(-20px);
}

.page-footer {
  background-color: #413e3e;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1rem;
  padding-block: 3rem;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1170px;
}

.copyright {
  color: #fff;
  font-family: system-ui, "Open Sans";
  font-size: 20px;
}
.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
}

@keyframes animate-pokemon {
  from {
    transform: scale(1) rotateX(0) rotateY(0);
  }
  to {
    transform: scale(1.2) rotateX(30deg) rotateY(-5deg);
  }
}

@media (width<800px) {
  .container {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  h1 {
    font-size: 60px;
  }
  .performance-label {
    font-size: 14px;
  }

  #height,
  #weight,
  #abilities,
  #types {
    font-size: small;
  }
}

@media (width<700px) {
  .top-section-info {
    padding: 2rem 2rem 0 2rem;
  }
}

@media (width<600px) {
  .top-section-info {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0rem 2rem 0 2rem;
  }
}

@media (width<600px) {
  .container {
    grid-template-columns: 1fr 1fr 1fr;
  }
  h1 {
    font-size: 50px;
  }
}

@media (width<570px) {
  nav {
    flex-direction: column;
    gap: 1rem;
  }
  header {
    box-shadow: unset;
    margin-bottom: 3rem;
  }
  .links {
    gap: 2rem;
  }
}
@media (width<500px) {
  .container {
    grid-template-columns: 1fr 1fr;
  }
  .footer-container {
    flex-direction: column;
    gap: 1rem;
  }
  .page-footer {
    padding-block: 1rem;
  }
}

@media (width<435px) {
  ul img {
    width: 135px;
  }
  #height,
  #weight,
  #abilities,
  #types {
    font-size: 12px;
  }
}
@media (width<380px) {
  #myChart {
    width: 250px !important;
  }
  .btn-exit {
    width: 32px !important;
  }
  .closeBtn {
    width: 15px;
  }
}
