* {
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  width: 100dvw;
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 0;
}

nav {
  background-color: #a682ff;
  top: 0;
  margin: 0;
  width: 100dvw;
  height: 50px;
  min-height: 50px;
  display: flex;
  justify-content: space-around;

  a {
    height: min-content;
    margin: auto;
    text-decoration: none;
    color: #102e4a;
    font-size: 1.5rem;

    @media (min-width:660px) {
      font-size: 1.75rem;

    }

    &:hover {
      text-decoration: underline;
    }
  }
}

.profile-card {
  width: clamp(20em, 60dvw, 320px);
  border-radius: 1rem;
  background: #a682ff;
  box-shadow: 0 0 20px 20px rgba(0, 0, 0, .1);
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 210px;
  transition: 1.5s ease-in-out;
  margin: 5rem;

  .profile-heading {
    grid-column: 1 /-1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    img {
      width: 7.5em;
      height: 7.5em;
      border: 5px solid #fff;
      border-radius: 10em;
      box-shadow: 0 0 2px 2px rgba(0, 0, 0, .2);
      justify-content: left;
      display: flex;
      transition: 1.5s ease-in-out;
      transform: translatex(100px);

      width: 10em;
      height: 10em;
      transform: translatex(80px);


    }

    h1 {
      grid-column: 2/ -1;
      grid-row: 1;
      font-size: 2.5rem;
      color: #102e4a;
      display: flex;
      justify-content: left;
      text-wrap: nowrap;
      transition: 1.5s ease-in-out;
      transform: translatey(130px) translateX(-85px);
      transform: translatey(130px) translateX(-130px);
    }

  }

  p {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
  }

  .profile-info {
    color: #102e4a;
    margin: 0 auto 10px auto;
    height: 0;
    max-height: 0;
    /* overflow: hidden; */
    opacity: 0;
    transition: linear 1.5s;

    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;


    .profile-bio {
      padding: 0 1rem;
      grid-column: 1/-1;

      h2 {
        margin: 0;
        font-size: 2rem;
        width: fit-content;
      }
    }

    .profile-age {
      display: flex;
      flex-direction: column;
      justify-content: start;
      padding: 0 1rem;
    }


  }
}

.profile-links {
  padding: 0 1rem;

  a {
    text-decoration: none;
    transition: linear .5s;
    min-height: 50px;
    margin: 0 .2rem;

    img {
      transition: linear .2s;

    }

    &:hover {
      img {
        transform: scale(1.2);
        z-index: 10;
      }
    }
  }
}

.pokemon-page {
  h1{
    text-align: center;
  }
  .profile-pokemon {
    grid-column: 1/-1;
    padding: 0 1rem;

    ul {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(2, auto);
      list-style: none;
      padding: 0;
      margin: 0;

      li {
        display: flex;
        flex-direction: column-reverse;
        text-decoration: none;
        color: #102e4a;

        img {
          width: 96px;
          margin: 0 auto;
        }

        h4 {
          margin: 0;
          text-align: center;
          font-size: 2rem;
        }
      }
    }
  }

}

/* effects */
.open-card {
  /* width: clamp(20em, 100%, 40em); */
  height: min-content;
  width: clamp(320px, 90%, 800px);

  .profile-heading {
    max-width: fit-content;
    margin: auto;

    img {
      width: 120px;
      height: 120px;
      transform: rotateZ(360deg) rotate3d(1, 1, 0, 360deg) translateX(0px);
      margin: .7rem .5rem;

      @media (min-width: 660px) {
        width: 160px;
        height: 160px;
      }
    }

    h1 {
      transform: translatey(0px) translateX(0px);
      font-size: 2.5rem;
      text-wrap: wrap;
      height: fit-content;
      margin: auto;
      grid-column: 2/-1;

      @media (min-width: 660px) {
        font-size: 3.5rem;

      }
    }

    p {
      opacity: 1;
      font-size: .75rem;
      margin-top: 100px;
    }
  }

  .profile-card-img {}

  .profile-info {
    height: unset;
    max-height: unset;
    opacity: 1;
  }

}