.header-home {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.logo-wrapper {
    margin-bottom: 32px;
    margin-top: 32px;
}

.input-button {
    display: flex;
}

.search-icon {
    width: 32px;
}

.loadMoreButton {
    display:flex;
    justify-content: center;
    align-items: center;
}

.list-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.list-item {
    color: white;
    padding: 0 20px 0 20px;
    border-radius: 20px;
    margin: 16px;
    cursor: pointer;
    width: 290px;
    height: 25vh;
}

.pokemonImage {
    width: 160px;
    height: 160px;
}

.pokemonImage:hover {
    transform: scale(1.15);
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding-top: 12px;
}

.img-wrap {
    display: flex;
    justify-content: flex-end;
}

.name-font {
    font-size: 24px;
    font-weight: bold;
}

.type_grass{
    background: radial-gradient(circle, rgb(8, 172, 8), rgb(11 151 11));
}
.type_fire{
    background: radial-gradient(circle, rgb(247, 43, 43), rgb(172, 14, 14));
}
.type_water{
    background: radial-gradient(circle, rgb(51, 54, 255), rgb(16, 79, 173));
}
.type_bug{
    background: radial-gradient(circle, rgb(213 197 54), rgb(149 140 10));
}
.type_normal{
    background: radial-gradient(circle, rgb(202, 202, 202), rgb(121, 121, 121));
}
.type_poison{
    background: radial-gradient(circle, rgb(128 11 205), rgb(92 51 131));
}
.type_electric{
    background: radial-gradient(circle, rgb(233 235 107), rgb(190 193 5));
}
.type_ground{
    background: radial-gradient(circle, rgb(229 193 92 / 77%), rgb(85 70 5 / 96%));
}
.type_fairy{
    background: radial-gradient(circle, rgb(247 146 247 / 77%), rgba(207, 14, 182, 0.96));
}
.type_fighting{
    background: radial-gradient(circle, rgba(124, 181, 255, 0.856), rgb(18 130 221 / 96%));
}
.type_psychic{
    background: radial-gradient(circle, rgba(248, 117, 248, 0.77), rgb(169 35 150 / 96%));
}
.type_rock{
    background: radial-gradient(circle, rgb(183 141 26 / 77%), rgba(71, 59, 4, 0.96));
}
.type_ghost{
    background: radial-gradient(circle, rgb(118 70 151), rgb(79, 41, 114));
}
.type_ice{
    background: radial-gradient(circle, rgba(153, 193, 245, 0.856), rgba(87, 173, 243, 0.96));
}
.type_dragon{
    background: radial-gradient(circle, rgb(103, 61, 252), rgb(68, 59, 153));
}
.type_dark{
    background: radial-gradient(circle, rgb(103 82 26 / 80%), rgb(30 24 3 / 87%));
}
.type_steel{
    background: radial-gradient(circle, rgb(192, 184, 184), rgb(185 185 185));
}
.type_flying{
    background: radial-gradient(circle, rgb(194,183,217), rgb(194,183,217));
}

.typImage {
    display: flex;
    justify-content: space-between;
    border-radius: 20px;
}

.types {
    display: flex;
    flex-direction: column;
    gap: 8px;
    
}

.display_type {
    border-radius: 40px;
    width: 64px;
    height: 24px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#loadMore {
    margin-top: 64px;
    margin-bottom: 32px;
}

@media(max-width: 420px) {
    .pokedex-logo {
        display: flex;
        align-items: center;
        width: 300px;
    }
}

/* Hintergrund-Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dunkle Hintergrundfarbe */
    z-index: 998; /* Hinter Popup-Fenster, aber über dem Rest des Inhalts */
}

/* Stilisierung des Popup-Fensters */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; /* oder die gewünschte Breite */
    max-width: 600px; /* Maximalbreite des Popups */
    background-color: #fefefe;
    border: 1px solid #888;
    border-radius: 40px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    z-index: 999;
    overflow:hidden;
}

.popup-open {
    overflow: hidden; /* Scrollen des Hintergrunds deaktivieren, wenn das Popup geöffnet ist */
}

.popup-content {
    /* Falls Sie zusätzlichen Platz zwischen Popup-Inhalt und Rahmen möchten */
    margin: 0;
}

/* Schließen-Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Kein Scrollen, wenn das Popup-Fenster angezeigt wird */
.popup-open body {
    overflow: hidden;
}


.img-wrap-card {
    display: flex;
    justify-content: center;
}

.pokemonImage-card {
    width: 250px;
    height: 250px;
}

.types-card {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.display-type-card {
    border-radius: 40px;
    width: 64px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

@media(max-width: 500px) {
    .pokemonImage-card {
        height: 160px;
        width: 160px;
    }
}

@media(max-width: 355px) {
    .nav {
        font-size: 12px;
    }
    .nav>li>a {
        padding: 8px 12px;
    }
}

.nav {
    display: flex;
    justify-content: center;
    padding-bottom: 12px;
}

.container {
    display: flex !important;
    justify-content: center !important;
    flex-direction: column !important;
}

.fade {
    opacity: 1 !important;
}

.flavor-text {
    font-size: 16px;
    border-radius: 40px;
    padding: 4px 8px;
    border: 1px solid #337ab7;
}

.featured-img {
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.pokemon-container-popUp {
    padding: 24px;
}

.info-container {
    padding: 24px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    margin-top: -40px;
    min-height: 100px;
    background: white;
}

.name-font-popUp {
    font-size: 32px;
    color: white;
    font-weight: bold;
}

.caption-fonts-popUp {
    font-size: 20px;
}

@media(max-width: 500px) {
    .name-font-popUp {
        font-size: 24px;
    }
}

.moves {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.about {
    font-size: 16px;
}

a {
    cursor: pointer;
}