@font-face {
    font-family: Lato;
    src: url(./fonts/lato.regular.ttf);
}
@font-face {
    font-family: Poke;
    src: url(./fonts/Pokemon.ttf);
}
body{         
    font-family: Lato;
    margin: 0;
    min-height: 100vh;
}
.bg{
    background-image: url(img/bg3.jpg);
    background-size: cover;
    background-attachment: fixed;
}
.d-none{
    display: none;
}
.overflow-hidden{
    overflow: hidden;
}
.invisible{
    opacity: 0;
}
/******#############################  loading card +++++++++++++++++*/

.load-more-box{
    display: flex;
    justify-content: center;
}
.loading-card{
    display: flex;
    align-items: center;
    cursor: pointer;
}
.load-more-text{
    color: white;
    font-size: 29px;
    padding-left: 16px;
}
.load-more-text:hover{
    text-shadow: 2px 2px 4px rgb(0, 0, 0, 0.3);
}
@keyframes turnBall {
    0%{transform: rotate(0deg);}
    100%{transform: rotate(2turn);}
}
.turn-poke-ball{
    filter: brightness(0);
}
@keyframes turnBallMore {
    0%{transform: rotate(0deg);}
    100%{transform: rotate(15turn);}
}
/* ###################################### header #########################*/

.header-box{
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    height: 100px;
    width: 100vw;
    font-size: 36px;
    background-color: rgba(76, 61, 124, 0.9);
    box-shadow: 5px 10px 5px rgba(0, 0, 0, 0.3);
    z-index: 10;
    justify-content: center;
    align-items: center;
    font-family: Poke;
    text-shadow: 3px 3px 2px blue;

}
.header-maxwidth, .header-left, .header-middle, .header-right-and-middle, .header-right{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-right-and-middle, .header-right, .header-maxwidth{
    gap: 80px;
}
.header-middle{
    gap: 30px;
}
.logo{
    color: rgb(255, 202, 70);
    font-size: 100px;
    margin-right: 30px;
    margin-bottom: 14px;
}
.search{
    height: 45px;
}
.search-input{
    margin-bottom: 5px;
    display: flex;
}
.search-input input{
    width: 100px;
}
.loading-box{
    height: 30px;
    width: 22px;
    background-color: blue;
}
.loading-box{
    color: rgb(255, 202, 70);
}
.header-box form{
    display: flex;
    align-items: center;
}

.header-box input{
    padding: 0;
    height: 25px;
    margin-top: 8px;
    border: 3px solid transparent;
    border-radius: 10px;
}
.header-box input:focus{
    border: 3px solid rgb(56, 94, 162);
    background: rgb(255, 202, 70);
}
.star-header img{
    width: 45px;
    height: 45x;
    cursor: pointer;
    transition: all 125ms ease-in-out;
}
.loaded-message{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.loaded-box{
    color: rgb(255, 202, 70);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.ball-box-header img{
    width: 60px;
    padding-top: 10px;
}
.header-box:hover .ball-box-header img{
    transform: scale(1.15) rotate(10deg);
}
.type-header{
    position: absolute;
    transform: translateX(160px);
    align-items: center;
    display: flex;
    transition: all 225ms ease-in-out;
}
.type-header img{
    width: 160px;
}
.type-header p{
    position: absolute;
    transform: translate(170px);
    font-size: 45px;
    color: rgb(117, 114, 157);
    text-shadow: none;
}
#type-header-stat{
    position: absolute;
    width: 300px;
    transform: translateX(0);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 45px;
    color: rgb(117, 114, 157);
    text-shadow: none;
}
.about{
    color: rgb(255, 202, 70);
    font-size: 84px;
    cursor: pointer;
}
/*************************************** imprint *********************************/
.about-box{
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11;
    backdrop-filter: blur(4px) brightness(0.5);
    background-color: rgba(0, 0, 0, 0.2);
    display: none;
}
.about-card{
    height: 500px;
    width: 300px;
    border-radius: 30px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(252, 145, 145, 0.5);
    background-color: rgb(255, 202, 70);
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    color: rgb(83, 71, 127);
    gap: 5px;
    overflow: hidden;
    text-shadow: 1px 1px 1px rgb(0, 0, 0, 0.1);
    animation: colorfulBack 1s forwards;
}
@keyframes colorfulBack {
    0%{background-color: rgb(62, 50, 107);;}
    100%{background-color: rgb(255, 202, 70);}
}
.imprint-text{
    font-size: 16px;
    opacity: 0;
    animation: appear 625ms forwards;
    margin-left: 25px;
}
.imprint-text a{
    text-decoration: none;
}
.imprint-text a:hover{
    color: blue;
    cursor: pointer;
}
.imprint-headline{
    font-size: 40px;
    margin-bottom: 64px;
    margin-top: 64px;
    margin-left: 25px;
    animation: appear 625ms forwards;
}
.imprint-message{
    margin-left: 25px;
    margin-top: 10px;
}
.imprint-message-box{
    margin-top: 60px;
}
.imprint-message:hover{
    color: blue;
    cursor: pointer;
}
.imprint-img{
    position: absolute;
    width: 230px;
    left: -120px;
    top: -20px;
    animation: appear 225ms forwards;
}
.imprint-poke{
    position: absolute;
    width: 200px;
    bottom: -20px;
    right: -10px;
    opacity: 0.7;
}
/*****************################       burger menu ################### *******************/

.burger-menu{
    position: absolute;
    top: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border: 2px solid rgb(255, 202, 70);
    border-radius: 10px;
    cursor: pointer;
    display: none;
}

.line-1, .line-2, .line-3{
    height: 4px;
    position: absolute;
    background-color: rgb(255, 202, 70);
    width: 40px;
    border-radius: 2px;
    transition: all 225ms ease-in-out;
}
.line-1{
    transform: translate(5px, 10px);
}
.line-2{
    transform: translate(5px, 23px);
}
.line-3{
    transform: translate(5px, 36px);
}

/* ################################ main small cards ##################### */

.main-container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 110px;  
    max-width: 1200px;
    display: flex;
}
.main-box{
    display: flex;
    justify-content: center;

}
.card{
    width: 280px;
    height: 150px;
    background-image: url(img/bg_wht.png);
    background-size: 90%;
    background-position: 400% 20%;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 15px;
    margin: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(252, 145, 145, 0.5);
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.card-small-image img{
    position: absolute;
    width: 100px;
    height: 100px;
    object-fit: contain;
    top: 20px;
    right: 20px;
    opacity: 0.9;
}
.card:hover .card-small-image img{
    transform: rotateY(180deg); 
}

.name-small, .number-small, .type-small{
    color: white;
}
.small-data{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 15px;
}
.number-small{
    margin-top: 20px;
    font-size: 16px;
}
.name-small{
    font-size: 25px;
    margin-top: 15px;
}
.type-small{
    font-size: 16px;
    opacity: 1;
    border-radius: 15px;
    min-width: 40px;
    text-align: center;
    cursor: pointer; 
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 3px;
    padding-bottom: 3px;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.1);
}
.type-icon img{
    width: 20px;
    height: 20px;
    opacity: 0;
    transform: translateX(-5px) translateY(-5px) scale(0);
    transition: 0.1s;
    position: absolute;
}
.type-icon{
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
} 
.type-small:hover img{
    opacity: 0.2;
    transform: translateX(-5px) translateY(-5px) scale(2.6);
    
}


/* ################################ closeup card ############## */

.closeup-main{
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11;
    backdrop-filter: blur(4px) brightness(0.4);
    background-color: rgba(0, 0, 0, 0.3);
}
.closeup-card{
    height: 500px;
    width: 300px;
    border-radius: 30px;
    position: relative;
    transform-origin: left;
    transform-style: preserve-3d;
    transition: 0.18s;
    transform: perspective(1000px);
    background-size: 90%;
    background-position: 400% 20%;
    background-repeat: no-repeat;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(252, 145, 145, 0.5);
}
.box-shadow{
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}
.box-shadow-negative{
    box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}
.closeup-card-head{
    height: 500px;
    width: 300px;
    border-radius: 30px;
    position: absolute;
    top: 0;
}
.closeup-card-body{
    height: 310px;
    width: 300px;
    position: absolute;
    top: 38%;
    border-radius: 30px;
    background-color: white;
    z-index: 1;
}
.closeup-img-box{
    position: absolute;
    width: 130px;
    height: 130px;
    top: 100px;
    right: 50px;
    z-index: 2;
}

.closeup-img-box img{
    position: absolute;
    z-index: 99;
}
.first-closeup-img{
    transition: 0.2s;
    transform: translateY(-1000px);
}
.first-closeup-body{
    transition: 0.3s;
    transform: translateY(1000px);
}
.first-closeup-head{
    animation: appear 625ms ease-in-out;
}
@keyframes appear {
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}
.closeup-img-box img{
    width: 100%;
}
.closeup-card-head:hover .closeup-img-box img{
    transform: rotateY(180deg);
}
.arrow-box, .arrow-box-back{
    width: 300px;
    display: flex;
    align-items: center;
}
.arrow-box{
    justify-content: space-between;
}
.arrow-box-back{
    justify-content: center;
}
.arrow-box img, .arrow-box-back img{
    width: 16px;
    height: 16px;
    margin-top: 10px;
    margin-left: 30px;
    margin-right: 30px;
    cursor: pointer;
    opacity: 0.6;
}
.arrow-close-up:hover{
    filter: brightness(0.8);
}
.closeup-name-number{
    display: flex;
    width: 260px;
    justify-content: space-between;
    margin-top: 20px;
    margin-left: 15px;
    color: white;
    font-size: 24px;
}
.closeup-name-number img{
    width: 25px;
    height: 25px;
    cursor: pointer;
}
.closeup-type-box{
    display: flex;
    margin-top: 5px;
    margin-left: 15px;
    margin-right: 15px;
    gap: 15px;
    font-size: 14px;
    color: white;
    justify-content: space-between;
    
}
.closeup-type{
    border-radius: 15px;
    padding-right: 6px;
    padding-left: 6px;
    padding-top: 2px;
    padding-bottom: 2px;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.1);
}
.shiny-box{
    cursor: pointer;
}
.shiny0{
    border-radius: 15px;
    color: rgb(112, 112, 112);
    background: linear-gradient(
        45deg,
        #999 5%,
        #fff 10%,
        #ccc 30%,
        #ddd 50%,
        #ccc 70%,
        #fff 80%,
        #999 95%
      );
      box-shadow: 1px 2px 0px 1px rgba(119, 119, 119, 0.8); 
}


.shiny1{
    cursor: pointer;
}
.type-box-before-shiny{
    width: 60%;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}
.closeup-height, .closeup-weight{
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-left: 15px;
    margin-bottom: 5px;
}
.closeup-height{
    margin-top: 15px;
}
.basestats-headline-box{
    width: 90%;
    font-size: 14px;
    margin-top: 25px;
    margin-left: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.stats-table{
    width: 270px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-right: 15px;
    margin-left: 15px;
    margin-top: 10px;
    margin-bottom: 5px; 
}
.stats-table p{
    margin: 2px;
    padding: 2px;
   
}
.stats-name, .stats-number, .stats-bar{
    display: flex;
    flex-direction: column;
}
.stats-name p{
    width: 110px;
}
.stats-number{
    width: 20px;
}
.stats-bar{
    width: 100px;   
}
.stat{
    cursor: pointer;
}
.bar{
    width: 100px;
    height: 4px;
    background-color: rgb(227, 226, 226);
    margin-top: 10px;
    margin-bottom: 17px;
}
.color-bar{
    width: 0px;
    height: 4px;
    transition: width 1s;
}
.basestats-box{
    width: 90%;
    font-size: 14px;
    margin-left: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 5px;
 
}
.closeup-abilities{
    display: flex;
    width: 80%;
    justify-content: space-evenly;
    margin-left: 15px;
    font-size: 13px;
    margin-top: 15px;
    margin-bottom: 15px;
    gap: 15px;
    text-align: center;
    align-items: center;
}
.ability-close{
    padding-top: 2px;
    padding-bottom: 2px;
    padding-right: 8px;
    padding-left: 8px;
    background-color: rgb(238, 237, 237);
    border-radius: 15px;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.1);

}
.hidden{
    box-shadow: 0 0 3px 5px rgb(213, 211, 240);
    background-color: rgb(213, 211, 240);

    color: white;
}


/* ######################  back side of closeup card ################# */

.back{
    z-index: 4;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(252, 145, 145, 0.5);
    border-radius: 28px;
    backdrop-filter: blur(5px);
    background-color: white;
    position: relative;
    transform-origin: left;
    transform-style: preserve-3d;
    transform: rotateY(-180deg) translateX(-100%);
    width: 100%;
    height: 500px;
}
.back-body{
    position: absolute;
    height: 500px;
    width: 300px;
}
.back-image-box{
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0.1;
}
.back-image-box img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    
}
.base-ex-box{
    width: 90%;
    font-size: 14px;
    margin-top: 15px;
    margin-left: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}
.base-ex{
    width: 100%;
    text-align: center;
    margin-top: 10px;
}
.moves{
    width: 270px;
    height: 400px;
    margin-top: 10px;
    margin-left: 15px;
    margin-right: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;

}
.moves span{
    background-color: rgb(228, 225, 225);
    padding: 1px;
    margin-right: 2px;
    margin-left: 2px;
    border-radius: 5px;
    font-size: 8px;
    flex-shrink: 1;
    flex-grow: 1;
    text-align: center;
    overflow: auto;
}
.moves span:hover:nth-child(2n+2){
    background-color: rgb(205, 195, 195);
}
.moves span:nth-child(3n+3){
    background-color: rgb(229, 206, 206);
}
.moves span:nth-child(4n+4){
    background-color: rgb(219, 230, 244);
}
.moves span:nth-child(5n+5){
    background-color: rgb(244, 244, 219);
}
.moves span:nth-child(6n+6){
    background-color: rgb(195, 242, 209);
}
.moves span:nth-last-child(1), .moves span:nth-last-child(2), .moves span:nth-last-child(3){
    flex-grow: 0;
}
/*#################### hearts ############################ */

.heart-container{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}
.heart-box{
    width: 130px;
    height: 130px;
    position: absolute;
    transform: translate(0, 75px);
}
.heart{
    width: 30px;
    height: 30px;
    position: absolute;
    top: 0;
    right: 50%;
    left: 50%;
    opacity: 0;
    z-index: 5;
  }   
  .heart1{
    animation: heart1 1s ease-out;
  } 
  .heart2{
    animation: heart2 1s ease-out 0.05s;
  }
  .heart3{
    animation: heart3 1s ease-out 0.1s;
  }
  .heart4{
    animation: heart4 1s ease-out 0.15s;
  }
  @keyframes heart1 {
    0% {transform: translateY(0) translateX(-10px) scale(0.25); opacity: 1;}
    100% {transform: translateY(-150px) translateX(-20px) scale(1); opacity: 0;}
  }
  @keyframes heart3 {
    0% {transform: translateY(0) translateX(0) scale(0.25); opacity: 1;}
    100% {transform: translateY(-150px) translateX(-10px) scale(1); opacity: 0;}
  }
  @keyframes heart2 {
    0% {transform: translateY(0) translateX(0) scale(0.25); opacity: 1;}
    100% {transform: translateY(-150px) translateX(20px) scale(1); opacity: 0;}
  }
  @keyframes heart4 {
    0% {transform: translateY(0) translateX(0) scale(0.25); opacity: 1;}
    100% {transform: translateY(-150px) translateX(10px) scale(1); opacity: 0;}
  }