@font-face {
    font-family: "OpenSans";
    src: url(../fonts/OpenSans-Italic-VariableFont_wdth\,wght.ttf);
    src: url(../fonts/OpenSans-VariableFont_wdth\,wght.ttf);
}

:root {
    font-family: "OpenSans", sans-serif;
    font-size: 20px;
    scroll-behavior: smooth;


    --Hauptfarbe: rgb(58, 112, 160);
    --background-grey: rgba(8, 8, 8, 0.096);
    --boxshadow-hover: -10px 7px 13px -7px var(--Hauptfarbe), 10px 7px 13px -7px var(--Hauptfarbe), -10px 7px 13px -7px rgba(0, 0, 0, 0);

    --element-normal: #AAA878;
    --element-fire: #F07F2F;
    --element-water: #6890F0;
    --element-plant: #79C950;
    --element-electro: #F8D030;
    --element-ice: #98D8D8;
    --element-poisen: #A040A1;
    --element-ground: #E0C069;
    --element-flight: #A98FF0;
    --element-psycho: #F95989;
    --element-stone: #B7A038;
    --element-ghost: #715699;
    --element-dragon: #7038F9;
    --element-fairy: #F7C9E3;
    --element-steel: #B8B8D0;
    --element-fight: #C13129;
    --element-bug: #A9B821;


}


body,
p {
    margin: 0;
    box-sizing: border-box;
}


/* Head-section */
header {
    height: 80px;
    width: 100%;
    background-color: var(--Hauptfarbe);
    display: flex;
    justify-content: space-between;
    align-items: center;

}

main {
    position: relative;
}

#pokeball-img {
    object-fit: contain;
    width: 70px;
    margin-left: 24px;
}

#pokemon-logo {
    object-fit: contain;
    width: 200px;
    margin-right: 24px;

}

#headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 24px;
    padding-bottom: 24px;

    color: var(--Hauptfarbe);
    background-color: rgb(255, 255, 255);
    font-weight: bold;
}

#search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

#search-input {
    font-size: 1.2rem;
    text-align: center;
    color: rgb(255, 255, 255);
    width: 480px;
    height: 40px;
    border: 2px solid var(--Hauptfarbe);
    border-radius: 10px;
    background-color: rgba(58, 112, 160, 0.664);

}

#reset-button {

    width: 30px;
    background-color: rgba(58, 112, 160, 0.75);

    border-radius: 10px;
    padding: 6px;
    border: 1px solid black;
    cursor: pointer;
}

#reset-button:hover {
    background-color: var(--Hauptfarbe);
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.63);
    text-align: center
}


#search-input:focus {
    outline: unset;
}

#pokedex-logo {
    object-fit: cover;
    width: 9%;
}

/* Main section */

#pokedex {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 48px;

    min-height: 50vh;
    margin: 16px;
    padding: 80px 0px 80px 0;

    border: 2px solid var(--Hauptfarbe);
    border-radius: 15px;
    background-color: var(--background-grey);
    color: var(--Hauptfarbe);
}

.pokemon-card {
    width: 300px;
    height: 400px;
    border: 2px solid var(--Hauptfarbe);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--element-normal);
    position: relative;
    overflow: hidden;
    transition: 225ms ease-in-out;
    cursor: pointer;
}


.image-frame {
    display: flex;

    justify-content: center;
    width: 90%;
    height: 100%;
    overflow: hidden;

}

.pokemon-card::before {
    content: "";
    background-image: url(../img/clipart2514739.png);
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    transform: rotate(30deg);
    width: 400px;
    height: 400px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    opacity: 0.05;
    z-index: 1;

}

.pokemon-img-style {
    width: 200px;
    height: 300px;
    object-fit: contain;
    z-index: 2;
    transition: 125ms ease-in-out;

}

.info-container {

    background-color: rgb(255, 255, 255);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;

    min-height: 120px;

    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    border-top: 2px solid var(--Hauptfarbe);
    border-right: 2px solid var(--Hauptfarbe);
    border-left: 2px solid var(--Hauptfarbe);

}

.info-box {
    display: flex;
    flex-direction: column;
    width: 90%;
    gap: 20px;
    text-align: center;

}

.row {

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

}

.pokemon-names {
    font-weight: bolder;
}

.numbers {
    font-weight: bolder;
}

.elements {
    min-width: 90px;
    color: black;
    padding: 5px;
    border-radius: 15px;
    background-color: var(--element-normal);
    border: 1px solid var(--Hauptfarbe);

    text-transform: capitalize;
    font-weight: 600;
}

/* For animations */
.pokemon-card:hover .pokemon-img-style {
    width: 240px;
    transition: 125ms ease-in-out;

}

.pokemon-card:hover {
    box-shadow: var(--boxshadow-hover);
    transition: 125ms ease-in-out;
}


/* Information card */
#information-card {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.579);
    z-index: 10;
    transition: 525ms ease-in-out;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow {
    position: absolute;

    width: 100px;
    z-index: 99999;
    transition: 125ms ease-in-out;
    cursor: pointer;
    opacity: 0.6;
}

.arrow:hover {
    width: 120px;
    opacity: 1;
}

#left-arrow {
    transform: rotate(180deg);
    left: 5%;
}

#right-arrow {
    right: 5%;
}


#information-container {
    width: 70%;
    height: 70%;
    border-radius: 15px;
    border: 5px solid var(--Hauptfarbe);
    background-color: rgb(242 242 242);
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
}

#background-img {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    object-fit: contain;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;

}

#info-container-header {
    width: 100%;
    height: 125px;
    background-color: rgba(58, 112, 160, 0.325);
    z-index: 1;
    position: absolute;
    top: 0px;
    bottom: 0;
    left: 0;
    border-bottom: rgba(58, 112, 160, 0.4) 2px solid;

}

.pokemon-info {
    width: 95%;
    height: 90%;
    display: flex;
    align-items: center;
    z-index: 19;
    position: relative;
    z-index: 2;
}


#close {
    width: 32px;
    height: 32px;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 99999999;
}


.left-side {
    height: 100%;
    width: 55%;
    /* border: 1px solid red; */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.basic-information {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;

}

.basic-infocard {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--Hauptfarbe);
}

.numbers-info {
    font-weight: bold;
}

.pokemon-names-info {
    font-size: 1.8rem;
}

.elements-infocard {
    height: 100%;
    display: flex;
    gap: 20px;
    align-items: end;
}

.type-infocard {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 30px;
    border-radius: 5px;
    border: none;
    padding: 5px 20px 5px 20px;
    border: 2px solid var(--Hauptfarbe);
}

.image-frame-info {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    height: 100%;
    border-radius: 15px;
    border: 2px solid var(--Hauptfarbe);
    box-shadow: var(--boxshadow-hover);
}

.pokemon-img-style-info {
    object-fit: cover;
    width: 80%;
}

.right-side {
    display: flex;
    align-items: center;
    flex-direction: column;
    height: 100%;
    width: 55%;
    /* border: 2px solid black; */
    z-index: 11;
    color: var(--Hauptfarbe);
    gap: 64px;
}

.reiter-container {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 50px;
    font-weight: 600;
    height: 81px;
    width: 75%;
}

.reiter {
    text-decoration: none;
    color: var(--Hauptfarbe);
    opacity: 0.5;
    cursor: pointer;
    font-weight: bolder;

}

.reiter:hover {
    opacity: 1;
}

.active-reiter {
    opacity: 1;
}

.content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    height: 96%;
    border-radius: 15px;
    background-color: rgba(8, 8, 8, 0.04);
    color: var(--Hauptfarbe);

}

.content-box {

    height: 90%;
    width: 90%;
}

.description {
    font-weight: 500;
    font-size: 1.5rem;
}

.details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 1.5rem;

}

.details div {
    width: 100%;
}

.details div p {
    display: inline-block;
    font-weight: 500;
}

.details div b {
    font-weight: 700;
}


#goUp {
    display: unset !important;
    position: fixed;
    width: 4%;
    bottom: 0%;
    right: 1.5%;
    opacity: 0.5;
    z-index: 2;
    cursor: pointer;
}
#goUp:hover{
    opacity: 1;
}

#laod-more-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#load-more {
    font-size: 1.2rem;
    text-align: center;
    color: rgb(255, 255, 255);
    padding: 16px;
    border: 2px solid var(--Hauptfarbe);
    border-radius: 10px;
    background-color: rgba(58, 112, 160, 0.664);
    cursor: pointer;
    margin-bottom: 16px;
}

#load-more:hover{
    background-color: var(--Hauptfarbe);
} 





/* js classes */
/* element colors */


.normal {
    background-color: var(--element-normal);
}

.fire {
    background-color: var(--element-fire);
}

.water {
    background-color: var(--element-water);
}

.grass {
    background-color: var(--element-plant);
}

.electric {
    background-color: var(--element-electro);
}

.ice {
    background-color: var(--element-ice);
}

.poison {
    background-color: var(--element-poisen);
}

.ground {
    background-color: var(--element-ground);
}

.flying {
    background-color: var(--element-flight);
}

.psychic {
    background-color: var(--element-psycho);
}

.rock {
    background-color: var(--element-stone);
}

.ghost {
    background-color: var(--element-ghost);
}

.dragon {
    background-color: var(--element-dragon);
}

.fairy {
    background-color: var(--element-fairy);
}

.steel {
    background-color: var(--element-steel);
}

.fighting {
    background-color: var(--element-fight);
}

.bug {
    background-color: var(--element-bug);
}

/* no scroll function */
.noscroll {
    height: 100%;
    overflow: hidden;
}

/* addAnimation() */

.animation {
    animation: blur 225ms ease-in-out;
}

#loading-screen-container {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 99999;

}

#loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid black;
    background-color: var(--Hauptfarbe);
    border-radius: 15px;

}

#loading-screen p {

    padding: 10px;
    text-align: center;
}

#loading-mini-screen {
    position: fixed;
    bottom: 0;
    background-color: rgba(250, 235, 215, 0.795);
    padding: 10px;
    border-radius: 10px;
    z-index: 9;
    left: 1%;
}

#loading-img {
    transform: rotate(0deg);
    animation: loadingAnimation 3s infinite linear;
}

@keyframes loadingAnimation {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(30deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(-30deg);
    }

    100% {
        transform: rotate(0deg);
    }

}


@keyframes blur {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }


}