body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* background-color: rgb(255,229,250); */
    /* background-image: url(img/pokedex-background.jpg); */
    color: white;
    /* margin-bottom: 100px; */
    overflow-x: hidden;
    font-family: 'Open Sans', sans-serif;
    position: relative;
}

/* body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/pokedex-background.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.5; 
    z-index: -1; 
    pointer-events: none; 
} */

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/pokedex-background.jpg');
    /* background-size: cover; */
    /* background-position: center; */
    opacity: 0.9;
    z-index: -1; /* Hintergrundbild hinter den Inhalt setzen */
    pointer-events: none; /* Macht sicher, dass das Pseudo-Element keine Mausereignisse abfängt */
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Halbtransparente schwarze Überlagerung */
    z-index: -1; /* Überlagerung hinter den Inhalt, aber über dem Hintergrundbild */
    pointer-events: none; /* Macht sicher, dass das Pseudo-Element keine Mausereignisse abfängt */
}

body img {
    height: 200px;
    margin-top: 10px;
}

#pokedex {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    box-shadow: 0px -10px 16px -5px rgba(0, 0, 0, 0.2);
    padding-top: 50px;
}

.pokemon-box {
    height: 300px;
    width: 300px;
    border-radius: 8px;
    transition: 1s ease;
    display: flex;
    justify-content: space-around;
    align-items: end;
    padding: 10px;
    color: white;
    margin: 50px;
    cursor: pointer;
}

.pokemon-box:hover {
    scale: 1.2;
}

.pokemon-img {
    height: 150px;
    width: 150px;
    transition: 250ms ease;
}

.pokemon-img:hover {
    scale: 1.5;
}

h1 {
    color: rgb(209, 20, 61);
    font-size: 48px;
    animation: glow 2s infinite;
    cursor: default;
    margin-block-start: 0em;
    margin-block-end: 0.3em;
}

h2 {
    font-size: 26px;
    cursor: default;
}

span {
    font-size: 24px;
    cursor: default;
}

.text-box {
    height: 280px;
    width: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-left: 5px;
}

.text-box2 {
    height: 280px;
    width: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.pokemon-type {
    height: 40px;
    width: 80px;
    border: none;
    border-radius: 20px;
    filter: brightness(95%);
    font-size: 18px;
    color: white;
    font-weight: 600;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.3);
    margin-top: 15px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pokemon-type2 {
    height: 40px;
    width: 80px;
    border: none;
    border-radius: 20px;
    filter: brightness(95%);
    font-size: 18px;
    color: white;
    font-weight: 600;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.3);
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.grass {
    background-color: #7AC74C;
}

.fire {
    background-color: #EE8130;
}

.water {
    background-color: #6390F0;
}

.bug {
    background-color: #A6B91A;
}

.normal {
    background-color: #A8A77A;
}

.flying {
    background-color: #A98FF3;
}

.poison {
    background-color: #A33EA1;
}

.electric {
    background-color: #F7D02C;
}

.ground {
    background-color: #E2BF65;
}

.fairy {
    background-color: #D685AD;
}

.fighting {
    background-color: #C22E28;
}

.psychic {
    background-color: #F95587;
}

.rock {
    background-color: #B6A136;
}

.ghost {
    background-color: #735797;
}

.ice {
    background-color: #96D9D6;
}

.dragon {
    background-color: #6F35FC;
}

.dark {
    background-color: #705746;
}

.steel {
    background-color: #B7B7CE;
}

.load-button {
    background-color: #008000;
    border: 1px solid #008000;
    color: white;
    padding: 15px;
    width: 180px;
    border-radius: 8px;
    cursor: pointer;  
    margin-top: 70px;
    margin-bottom: 70px;
    font-size: 26px;
}

.load-button:hover {
    filter: opacity(90%);
}

.d-none {
    display: none;
}

.pokemoninfo-box {
    height: 415px;
    width: 600px;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    margin-top: -80px;
}

.pokemoninfo-text {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
}

.pokemoninfo-img {
    height: 230px;
    display: flex;
    justify-content: center;
    margin-top: -50px;
}

.info-container {
    color: white;
    height: 350px;
    width: 600px;
    background-color: khaki;
    border-radius: 50px;
    margin-top: -50px;
}

.info-menu {
    font-size: 20px;
    display: flex;
    justify-content: space-evenly;
    padding-top: 40px;
}

#pokemon-info {
    position: fixed;
    top: 59vh;
    margin-top: -340px;
}

.bg-darker {
    filter: brightness(25%);
}

.pointer-events-none {
    pointer-events: none;
}

.bg-dark {
    background-color: rgba(0, 0, 0, 0.9);
}

.overflow-hidden {
    overflow: hidden;
}

@keyframes flicker_grass {
    0%, 100% {
        box-shadow: 0 0 10px 2px rgba(122, 199, 76, 1);
    }
    50% {
        box-shadow: 0 0 25px 10px rgba(122, 199, 76, 1);
    }
}

@keyframes flicker_fire {
    0%, 100% {
        box-shadow: 0 0 10px 2px rgba(238, 129, 48, 1);
    }
    50% {
        box-shadow: 0 0 25px 10px rgba(238, 129, 48, 1);
    }
}

@keyframes flicker_water {
    0%, 100% {
        box-shadow: 0 0 10px 2px rgba(99, 144, 240, 1);
    }
    50% {
        box-shadow: 0 0 25px 10px rgba(99, 144, 240, 1);
    }
}

@keyframes flicker_bug {
    0%, 100% {
        box-shadow: 0 0 10px 2px rgba(166, 185, 26, 1);
    }
    50% {
        box-shadow: 0 0 25px 10px rgba(166, 185, 26, 1);
    }
}

@keyframes flicker_normal {
    0%, 100% {
        box-shadow: 0 0 10px 2px rgba(168, 167, 122, 1);
    }
    50% {
        box-shadow: 0 0 25px 10px rgba(168, 167, 122, 1);
    }
}

@keyframes flicker_poison {
    0%, 100% {
        box-shadow: 0 0 10px 2px rgba(163, 62, 161, 1);
    }
    50% {
        box-shadow: 0 0 25px 10px rgba(163, 62, 161, 1);
    }
}

@keyframes flicker_electric {
    0%, 100% {
        box-shadow: 0 0 10px 2px rgba(247, 208, 44, 1);
    }
    50% {
        box-shadow: 0 0 25px 10px rgba(247, 208, 44, 1);
    }
}

@keyframes flicker_ground {
    0%, 100% {
        box-shadow: 0 0 10px 2px rgba(226, 191, 101, 1);
    }
    50% {
        box-shadow: 0 0 25px 10px rgba(226, 191, 101, 1);
    }
}

@keyframes flicker_fairy {
    0%, 100% {
        box-shadow: 0 0 10px 2px rgba(214, 133, 173, 1);
    }
    50% {
        box-shadow: 0 0 25px 10px rgba(214, 133, 173, 1);
    }
}

@keyframes flicker_fighting {
    0%, 100% {
        box-shadow: 0 0 10px 2px rgba(194, 46, 40, 1);
    }
    50% {
        box-shadow: 0 0 25px 10px rgba(194, 46, 40, 1);
    }
}

@keyframes flicker_psychic {
    0%, 100% {
        box-shadow: 0 0 10px 2px rgba(249, 85, 135, 1);
    }
    50% {
        box-shadow: 0 0 25px 10px rgba(249, 85, 135, 1);
    }
}

@keyframes flicker_rock {
    0%, 100% {
        box-shadow: 0 0 10px 2px rgba(182, 161, 540, 1);
    }
    50% {
        box-shadow: 0 0 25px 10px rgba(182, 161, 54, 1);
    }
}

@keyframes flicker_ghost {
    0%, 100% {
        box-shadow: 0 0 10px 2px rgba(115, 87, 151, 1);
    }
    50% {
        box-shadow: 0 0 25px 10px rgba(115, 87, 151, 1);
    }
}

@keyframes flicker_ice {
    0%, 100% {
        box-shadow: 0 0 10px 2px rgba(150, 217, 214, 1);
    }
    50% {
        box-shadow: 0 0 25px 10px rgba(150, 217, 214, 1);
    }
}

@keyframes flicker_dragon {
    0%, 100% {
        box-shadow: 0 0 10px 2px rgba(111, 53, 252, 1);
    }
    50% {
        box-shadow: 0 0 25px 10px rgba(111, 53, 252, 1);
    }
}

@keyframes flicker_dark {
    0%, 100% {
        box-shadow: 0 0 10px 2px rgba(112, 87, 70, 1);
    }
    50% {
        box-shadow: 0 0 25px 10px rgba(112, 87, 70, 1);
    }
}

@keyframes flicker_steel {
    0%, 100% {
        box-shadow: 0 0 10px 2px rgba(183, 183, 206, 1);
    }
    50% {
        box-shadow: 0 0 25px 10px rgba(183, 183, 206, 1);
    }
}

.flicker-grass {
    animation: flicker_grass 2s infinite;
}

.flicker-fire {
    animation: flicker_fire 2s infinite;
}

.flicker-water {
    animation: flicker_water 2s infinite;
}

.flicker-bug {
    animation: flicker_bug 2s infinite;
}

.flicker-normal {
    animation: flicker_normal 2s infinite;
}

.flicker-poison {
    animation: flicker_poison 2s infinite;
}

.flicker-electric {
    animation: flicker_electric 2s infinite;
}

.flicker-ground {
    animation: flicker_ground 2s infinite;
}

.flicker-fairy {
    animation: flicker_fairy 2s infinite;
}

.flicker-fighting {
    animation: flicker_fighting 2s infinite;
}

.flicker-psychic {
    animation: flicker_psychic 2s infinite;
}

.flicker-rock {
    animation: flicker_rock 2s infinite;
}

.flicker-ghost {
    animation: flicker_ghost 2s infinite;
}

.flicker-ice {
    animation: flicker_ice 2s infinite;
}

.flicker-dragon {
    animation: flicker_dragon 2s infinite;
}

.flicker-dark {
    animation: flicker_dark 2s infinite;
}

.flicker-steel {
    animation: flicker_steel 2s infinite;
}

.pokeball-img {
    height: 36px;
    width: 36px;
}

.pokemoninfo-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.x-button {
    height: 38px;
    width: 38px;
    cursor: pointer;
    position: absolute;
    left: 46%;
    top: -75px;
}

.x-button:hover {
    filter: brightness(70%)
}

.arrows img {
    height: 48px;
    width: 48px;
    cursor: pointer;
}

.arrows img:hover {
    filter: opacity(50%);
}

.information1 {
    height: 200px;
    justify-content: center;
    align-items: center;
    font-size: 22px;
}

.information2 {
    height: 200px;
    justify-content: center;
    align-items: center;
}

.information3 {
    height: 200px;
    justify-content: space-around;
    align-items: center;
}

.information4 {
    height: 200px;
    justify-content: space-around;
    align-items: center;
}

.arrows {
    height: 55px;
    display: flex;
    align-items: end;
    justify-content: space-around;
}

.info1 {
    border-radius: 20px;
    width: 80px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
}

.info2 {
    border-radius: 20px;
    width: 120px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
}

.info3 {
    border-radius: 20px;
    width: 120px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
}

.info4 {
    border-radius: 20px;
    width: 75px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
}

.gif-img {
    height: 150px;
}

.d-flex {
    display: flex;
}

.ability-box {
    height: 75px;
    display: flex;
    flex-direction: column;
    align-items: end;
}

.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#searchInput {
    padding: 10px;
    font-size: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 5px;
    width: 180px; 
    cursor: text;
}

#searchButton {
    padding: 10px 20px;
    font-size: 20px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#searchButton:hover {
    background-color: #45a049;
}

.search-box {
    margin-bottom: 50px;
}

#baseStatsChart {
    margin-top: 10px;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px red;
        color: red;
    }
    50% {
        text-shadow: 0 0 20px red;
        color: #ff3333; 
    }
    100% {
        text-shadow: 0 0 5px red;
        color: red;
    }
}

.color-grass {
    color: #7AC74C;
}

.color-fire {
    color: #EE8130;
}

.color-water {
    color: #6390F0;
}

.color-bug {
    color: #A6B91A;
}

.color-normal {
    color: #A8A77A;
}

.color-flying {
    color: #A98FF3;
}

.color-poison {
    color: #A33EA1;
}

.color-electric {
    color: #F7D02C;
}

.color-ground {
    color: #E2BF65;
}

.color-fairy {
    color: #D685AD;
}

.color-fighting {
    color: #C22E28;
}

.color-psychic {
    color: #F95587;
}

.color-rock {
    color: #B6A136;
}

.color-ghost {
    color: #735797;
}

.color-ice {
    color: #96D9D6;
}

.color-dragon {
    color: #6F35FC;
}

.color-dark {
    color: #705746;
}

.color-steel {
    color: #B7B7CE;
}

.button-box {
    display: flex;
    flex-direction: column;
    height: 190px;
}

.button-box2 {
    display: flex;
    flex-direction: column;
}

td {
    padding-left: 25px;
    padding-right: 25px;
}

h4 {
    color: black;
}
    

@media(max-width: 750px) {
    .pokemoninfo-box {
        width: 500px;
    }
    .info-container {
        width: 500px;
    }
    .x-button {
        height: 34px;
        width: 34px;
    }
}

@media(max-width: 600px) {
    body img {
        height: 150px;
    }
}

@media(max-width: 550px) {
    .pokemoninfo-box {
        width: 420px;
    }
    .info-container {
        width: 420px;
    }
    .info-menu {
        font-size: 18px;
    }
    .info1 {
        width: 75px;
        border-radius: 16px;
    }
    .info2 {
        width: 115px;
        border-radius: 16px;
    }
    .info3 {
        width: 115px;
        border-radius: 16px;
    }
    .info4 {
        width: 70px;
        border-radius: 16px;
    }
    .pokemon-type2 {
        height: 35px;
        width: 70px;
        font-size: 16px;
    }
    .x-button {
        height: 32px;
        width: 32px;
    }
}

@media(max-width: 450px) {
    .pokemon-box {
        width: 260px;
        margin: 20px;
    }
    .search-box {
        display: flex;
        flex-direction: column;
    }
    .text-box {
        width: 140px;
    }
    .text-box2 {
        width: 115px;
    }
    .pokemon-box:hover {
        cursor: pointer;
        scale: 1;
    }
    .pokemon-img:hover {
        scale: 1.1;
    }
    .pokemoninfo-box {
        width: 300px;
    }
    .info-container {
        height: 320px;
        width: 300px;
    }
    .information1 {
        height: 170px;
    }
    .information2 {
        height: 170px;
    }
    .information3 {
        height: 170px;
    }
    .information4 {
        height: 170px;
    }
    .gif-img {
        height: 100px;
    }
    .pokeball-img {
        display: none;
    }
    .pokemoninfo-counter {
        justify-content: end;
    }
    .info-menu {
        font-size: 15px;
    }
    .info1 {
        width: 55px;
        border-radius: 16px;
    }
    .info2 {
        width: 85px;
        border-radius: 16px;
    }
    .info3 {
        width: 85px;
        border-radius: 16px;
    }
    .info4 {
        width: 50px;
        border-radius: 16px;
    }
    .x-button {
        height: 28px;
        width: 28px;
    }
    .pokemoninfo-img {
        height: 200px;
    }

    .pokemon-type2 {
        height: 30px;
        width: 60px;
        font-size: 14px;
    }
    .button-box{
        margin-top: 30px;
    }
    .button-box2 {
        flex-direction: unset;
        gap: 10px;
    }
    .about-text {
        font-size: 17px;
    }
    .button-box h2 {
        margin-block-start: 0em;
        margin-block-end: 0em;
    }
    .information1 {
        font-size: 18px;
    }
    td {
        padding-left: 20px;
        padding-right: 20px;
    }
    #searchInput {
        width: 175px;
        margin-right: 0;
    }
    #searchButton {
        padding: 10px 10px;
    }
    body img {
        height: 111px;
    }
}





























