body {
    margin: 0;
    font-family: roboto, sans-serif;
    background-color: #11C0FF;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.headline {
    width: 100%;
    height: 50vh;
    background: red;
    top: 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    position: sticky;
    color: white;
    z-index: 998;
    transition: all 525ms ease-in-out;
}

h2 {
    z-index: 3;
    font-size: 48px;
    margin-bottom: 8px;
    margin-top: 0;
}

.headline:before {
    content: '';
    position: absolute;
    bottom: -40px;
    right: 0;
    border-bottom: 40px solid red;
    border-left: 40px solid transparent;
    width: 25%;
    transform: rotateX(180deg);
    z-index: 998;
}

.bottom {
    width: 100%;
    height: 50vh;
    background: red;
    bottom: 0;
    position: fixed;
    color: white;
    z-index: 998;
    transition: all 525ms ease-in-out;
}

.bottom:after {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    border-bottom: 40px solid red;
    border-left: 40px solid transparent;
    width: 25%;
    transform: rotatey(180deg);
    z-index: 998;
}

.pokemonImg {
    max-width: 200px;
    max-height: 200px;
    z-index: 2;
}

.pokemonImg:hover {
    scale: 1.1;
}

#pokemonContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    height: 100%;
    width: 100%;
    margin-top: 64px;
}

.pokemonCell {
    height: 400px;
    width: 300px;
    margin: 8px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    border-radius: 16px;
    color: white;
    cursor: pointer;
    box-shadow: 2px 2px 2px 1px rgb(0 0 0 / 20%);
    z-index: 2;
    border: 2px solid white;
    position: relative;
}

.pokemonCell::after {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.2;
    background: url(img/pokeball.png)no-repeat -182% -268%;
    background-size: 120%;
}

.fontSize20{
    font-size: 20px;
}

.banner {
    border-radius: 16px;
    padding: 8px;
    min-width: 48px;
    text-align: center;
    margin-right: 8px;
    margin-left: 8px;
    margin-bottom: 16px;
    border: 2px solid white;
}

.types {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 16px;
}

.infoContainer {
    overflow: hidden;
    font-weight: bold;
    position: fixed;
    min-width: 200px;
    max-width: 450px;
    max-height: 800px;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    z-index: 1000;
    border: 2px solid white;
    border-radius: 33px;
    background-color: white;
    animation: slideInFromBottom 0.5s ease-out; 
}

.overlay {
    height: 100%;
    width: 100%;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.2); 
    position: fixed;
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(12px); 
    opacity: 1; 
}
.d-none {
    display: none !important;
}

#infoImg {
    position: absolute;
    right: 0;
    min-width: 100px;
    min-height: 100px;
    max-width: 200px;
    max-height: 200px;
    margin-top: 105px;
    margin-right: 32px;
    z-index: 6;
}

#infoBottom {
    border-radius: 32px;
    margin-top: -40px;
    background-color: white;
    height: 80%;
    display: flex;
    flex-direction: column;
    z-index: 4;
    justify-content: space-between;
}

#infoTop {
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    display: flex;
    color: white;
    height: 400px;
    padding: 16px;
}

#infoTop::after {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0.2;
    background: url(img/pokeball.png)no-repeat -104% -86%;
    background-size: 120%;
}

.infoOrder {
    display: flex;
    flex-direction: column;
    justify-content: start;
    z-index: 4;
}

.infoTypes {
    display: flex;
    align-items: center;
}

h3 {
    margin: 0;
    font-size: 32px;
}

.closeBtn {
    position: absolute;
    right: 16px;
    top: 16px;
    cursor: pointer;
    z-index: 4;
}

.closeBtn:hover{
    scale: 0.9;
}

.navigator {
    position: absolute;
    width: 100%;
    bottom: 0px;
    left: 0;
    display: flex;
}

.navigatorTop {
    position: absolute;
    width: 100%;
    left: 0;
    display: flex;
}

.navBtn {
    height: 58px;
    width: 50%;
    text-align: center;
    background-color: red;
    cursor: pointer;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navBtnLeft:after {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    border-bottom: 40px solid red;
    border-left: 40px solid transparent;
    width: 30%;
    transform: rotatey(180deg);
    z-index: 1;
}

.navBtn:hover {
    background-color: grey;
}

.navBtnLeft {
    border-bottom-left-radius: 30px;
    border-right: 2px solid white;
    z-index: 999;
    position: relative;
}

.navBtnRight {
    border-bottom-right-radius: 30px;
    border-left: 2px solid white;
    z-index: 999;
    position: relative;
}


.navBtnRight:after {
    content: '';
    position: absolute;
    top: -30px;
    right: 0;
    border-bottom: 40px solid red;
    border-left: 40px solid transparent;
    width: 30%;
    z-index: 1;
}

.infoBtnLeft {
    border-top-left-radius: 30px;
    border-right: 2px solid white;
    z-index: 999;
    position: relative;
}

.infoBtnRight {
    border-top-right-radius: 30px;
    border-left: 2px solid white;
    z-index: 999;
    position: relative;
}

.infoBtnRight:after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: 0;
    border-top: 40px solid red;
    border-right: 40px solid transparent;
    width: 30%;
    z-index: 1;
    transform: rotateY(180deg);
}

.infoBtnLeft:after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    border-bottom: 40px solid red;
    border-right: 40px solid transparent;
    width: 30%;
    z-index: 1;
    transform: rotateX(180deg);
}

.infoBtnLeft:hover:after {
    border-bottom: 40px solid grey;
}

.infoBtnRight:hover:after {
    border-top: 40px solid grey;
}

.navBtnLeft:hover:after {
    border-bottom: 40px solid grey;
}

.navBtnRight:hover:after {
    border-bottom: 40px solid grey;
}

#statChart {
    height: 400px !important;
    width: 400px !important;
}

#stats {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#evolution{
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        box-sizing: border-box;
        padding: 0 16px 0 16px;
}

#search {
    height: 32px;
    outline: none;
    border: none;
    border-radius: 32px;
    padding: 6px;
}

img#scrollToTopBtn {
    position: fixed;
    bottom: 82px;
    right: 20px;
    padding: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
    z-index: 3;
}

.left {
    height: 100%;
    width: 20px;
    background-color: red;
    position: fixed;
    left: 0;
    z-index: 998;
}

.right {
    height: 100%;
    width: 20px;
    background-color: red;
    position: fixed;
    right: 0;
    z-index: 998;
}
.hide {
    opacity: 0;
}
.loadPokemonBtn {
    height: 48px;
    width: 128px;
    background-color: red;
    color: white;
    border-radius: 16px;
    border: none;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 2px 2px 2px 1px rgb(0 0 0 / 20%);
}

.centerLoadBtn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
    margin-bottom: 92px;
}

.loadPokemonBtn:hover {
    background-color: #4d4d4d;
}


::-webkit-scrollbar {
    width: 10px;
}


::-webkit-scrollbar-track {
    background: white;
}


::-webkit-scrollbar-thumb {
    background: red;
    border-radius: 16px;
}


::-webkit-scrollbar-thumb:hover {
    background: #4d4d4d;
}

#scrollToTopBtn:hover {
    filter: invert(20%) sepia(0%) saturate(0%) hue-rotate(9deg) brightness(88%) contrast(130%);
}

#loadingOverlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index:999;
}

.loadingSpinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid red;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.evolution-step{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    height: 50%;

}

.evolution-image{
    width: 100%;
    max-width: 200px;
}

.noTextShadow {
    text-shadow: none;
}

.arrow{
    font-size: 16px;
}

.slideInFromRight {
    animation: slideInFromRight 0.5s ease-out; /* Dauer und Timing der Animation */
}

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

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

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%); 
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}



@media screen and (max-width:380px) {
    .infoContainer {
        max-height: 700px;
    }

    #infoTypes {
        display: none;
    }

    #statChart {
        height: 330px !important;
        width: 330px !important;
    }
}

@media screen and (max-width:340px) {
    .infoContainer {
        height: 650px;
    }

    @media screen and (max-width:300px) {
        #headline {
            display: none;
        }

    }
}