/* #region HEADER */
header {
  height: 10dvh;
  z-index: 10;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
  .content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    .title-slogan {
      display: flex;
      align-items: center;
      gap: 40px;
      img {
        height: 8dvh;
      }
    }

    #search-container {
      display: flex;
      align-items: center;
      height: 6dvh;
      width: 250px;
      border: 1px solid #cccccc;
      border-radius: 25px;
      padding: 8px;
      gap: 8px;
      img {
        height: 4dvh;
      }
      input {
        height: 6dvh;
        border: none;
        width: calc(250px - 4dvh - 8px - 8px);
        background: transparent;
        font-family: "baloo2-Regular";
        font-size: min(1.8rem, 2rem);
      }
    }
  }
  @media (max-width: 1050px) {
    height: 15dvh;
    .content {
      justify-content: center;
      gap: 24px;
      .title-slogan {
        flex-direction: column;
        width: calc(100% - 250px);
        gap: 0;
      }
    }
  }
  @media (max-width: 755px) {
    h1 {
      display: none;
    }
  }
  @media (max-width: 550px) {
    .content {
      flex-direction: column;
      gap: 16px;
      .title-slogan {
        img {
          height: 6dvh;
        }
      }
      #search-container {
        height: 5dvh;
        img {
          height: 3dvh;
        }
      }
    }
  }
}
#noresults {
  padding: 3rem;
  font-size: medium;
  color: rgb(165, 35, 6);
}
/* #endregion */

/* #region MAIN */
main {
  height: auto;
  min-height: calc(100dvh - 10dvh - 5dvh);
}
#overview {
  z-index: 2;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-direction: column;
  .content {
    display: flex;
    justify-content: center;
    align-items: top;
    flex-wrap: wrap;
    padding: 2.5rem 3rem;
    gap: 2rem;
    .pokemon-small-cards {
      box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
        rgba(0, 0, 0, 0.3) 0px 30px 60px -30px,
        rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
      border-radius: 2rem;
      background-image: url("./assets/icons/pokeball-white_op18.png");
      background-size: 90%;
      background-repeat: no-repeat;
      background-blend-mode: color-dodge;
      background-position: bottom -7rem right -7rem;
      padding: 1.5rem;
      width: 30rem;
      height: 25rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      div {
        display: flex;
        justify-content: space-around;
        .types {
          display: flex;
          flex-direction: column;
          justify-content: center;
          gap: 0.8rem;
        }
        img {
          width: 15rem;
        }
      }
    }
    .pokemon-small-cards:hover {
      box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
        rgba(0, 0, 0, 0.3) 0px 30px 60px -30px,
        rgba(36, 37, 39, 0.35) -6px -8px 6px 0px inset;
      width: 32rem;
      height: 27rem;
    }
  }
  #loadmore-btn {
    justify-content: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.type {
  background: rgba(255, 255, 255, 0.3);
  padding: 0.8rem 1.6rem;
  border-radius: 2rem;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px;
}
/* #endregion */

/* #region BATTLE CARD */
#battlecard-bg {
  background: rgba(0, 0, 0, 0.8);
  width: 100%;
  height: 100dvh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 29;
  justify-content: center;
  align-items: center;
  overflow-y: hidden;
  .battlecard {
    width: 320px;
    height: 480px;
    border-radius: 30px;
    display: flex;
    img {
      position: absolute;
      width: 180px;
      height: 260px;
      top: 50px;
      right: 0;
      opacity: 10%;
    }
    #pokemon-data {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 20;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      div {
        display: flex;
        width: 100%;
        justify-content: space-between;
        padding: 1rem 3.5rem;
        button {
          background: rgba(255, 255, 255, 0.2);
          width: 4rem;
          height: 4rem;
          color: white;
          font-size: x-large;
          font-family: "Baloo2-Regular";
          border: 1px solid white;
          display: flex;
          justify-content: center;
          align-items: center;
        }
      }
      .types {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 50px;
        width: 40%;
        padding: 1rem;
        gap: 0.5rem;
        .type {
          padding: 0.4rem 1rem;
          text-align: center;
        }
      }
      h3 {
        padding-left: 2rem;
        text-align: left;
        top: 7.5rem;
        color: white;
      }
      h1 {
        color: white;
        position: absolute;
        top: 18rem;
        z-index: 10;
        padding-left: 16px;
      }
      @media (max-width: 350px) {
        h1,h3{
          padding-top: 2rem;
        }  
      }
      #info {
        background: white;
        width: 100%;
        height: 280px;
        border-radius: 30px;
        position: absolute;
        bottom: -385px;
        display: flex;
        flex-direction: column;
        padding: 0;
        @media (max-width: 350px) {
          bottom: calc(-385px + 1rem);
        }
        img {
          opacity: 100%;
          width: 180px;
          height: 180px;
          position: absolute;
          top: -160px;
          left: 130px;
          @media (max-width: 350px) {
            top: calc(-160px + 2rem)
          }
        }
        #tab {
          width: 100%;
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 2rem 2.5rem 1rem 2.5rem;
          a {
            font-weight: 900;
          }
          a:hover {
            border-bottom: 2px solid rgb(117, 6, 91);
          }
        }
        section {
          padding: 1rem 2.5rem 1rem 2.5rem;
          height: calc(280px - 53px);
        }
        #specification {
          table {
            width: 100%;
            td:nth-child(1) {
              width: 40%;
            }
            td:nth-child(2) {
              width: 60%;
              text-align: right;
            }
          }
        }
        #basestats {
          table {
            width: 100%;
            td:nth-child(1) {
              width: 35%;
            }
            td:nth-child(2) {
              width: 10%;
            }
            td:nth-child(3) {
              width: calc(100% - 35% - 10%);
              div {
                background-color: red;
                height: 2rem;
              }
            }
          }
        }
      }
    }
  }
}
.active-tab {
  border-bottom: 2px solid rgb(71, 68, 68);
}
/* #endregion */

/* #region SPINNER */
.spinner {
  border: none;
  width: 100%;
  height: 100dvh;
  flex-direction: column;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  gap: 2rem;
  align-items: center;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  .spinner-animation {
    animation: boing 2s infinite;
    img {
      width: 60px;
      height: 60px;
    }
  }
}

@keyframes boing {
  0% {
    top: 0;
    transform: rotate(0);
  }
  50% {
    top: -20rem;
    transform: rotate(360deg);
  }
  100% {
    top: 0;
    transform: rotate(360deg);
  }
}

/* #endregion */

/* #region FOOTER */
footer {
  height: 6dvh;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
  z-index: 8;
  .content {
    display: flex;
    justify-content: center;
    align-items: center;
    img {
      height: 5dvh;
    }
  }
}
/* #endregion */

/* #region BACKGROUND COLOR */
.normal {
  background: #a8a77a;
}
.fire {
  background: #ee8130;
}
.water {
  background: #6390f0; 
}
.electric {
  background: #f7d02c;
}
.grass {
  background: #7ac74c;
}
.ice {
  background: #96d9d6;
}
.fighting {
  background: #c22e28;
}
.poison {
  background: #a33ea1;
}
.ground {
  background: #e2bf65;
}
.flying {
  background: #a98ff3;
}
.psychic {
  background: #f95587;
}
.bug {
  background: #a6b91a;
}
.rock {
  background: #b6a136;
}
.ghost {
  background: #735797;
}
.dragon {
  background: #6f35fc;
}
.dark {
  background: #705746;
}
.steel {
  background: #b7b7ce;
}
.fairy {
  background: #d685ad;
}
/* #endregion */
