.content-gallery {
    max-width: 90vw;
    height: 100%;
    position: fixed;
    top: 57%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 1);
    padding: 30px;
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

#detialGallery {
    position: fixed;
    top: 50%;
    left: 50%;
    display: flex;
    justify-content: center;
    position: fixed;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.85);
    padding: 20px;
    background-color: rgba(42, 109, 148, 0.5);
    z-index: 1000;
    overflow-y: auto;
    transition: all 0.3s ease-in-out;
}

.details-types-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
}

.pokemon-card {
    width: 200px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    margin: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

@keyframes rotateCard {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.pokemon-card.rotate {
    animation: rotateCard 0.5s ease-in-out forwards;
}

.pokemon-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.card-header {
    padding: 10px;
    font-size: 20px;
}

.card-header-txt {
    font-size: 18px;
    color: white;
}

.card-img-container {
    margin: 10px 0;
}

.card-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.details-types-container {
    display: flex;
    font-size: 20px;
    border-radius: 5px;
}

.pokemon-details-container {
    height: 84.5%;
    margin: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 330px;
    overflow: hidden;
    color: #fff;
    border-radius: 15px;
    border-width: 1px;
    border-color: white;
    border-style: solid;
    background-color: rgb(26, 70, 95);
    font-size: 40px;
}

.details-header-container {
    top: 0;
    height: 80px;
    width: 329px !important;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 20px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background-color: black;
}

.details-header {
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.details-header-headline-txt {
    display: flex;
    justify-content: center;
    margin: 0;
    color: rgb(189, 235, 247);
}

.details-header-headline-nb {
    display: flex;
    justify-content: left;
    margin: 0;
    padding-left: 5px;
    color: rgb(189, 235, 247);
}

.close-detail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    background-color: yellow;
    color: black;
}

.close-detail-btn:hover {
    color: #000000;
    transform: scale(1.2);
    cursor: pointer;
}

.details-img-and-abilitys-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2000px;
    width: 90vw;
    height: 300px;
}

.details-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 300px;
}

.details-img {
    display: flex;
    justify-content: center;
    width: 350px;
    height: 350px;
    margin-bottom: 20px;
    margin-left: 50px;
}

.details-abilitiesnav {
    display: flex;
    width: auto;
    justify-content: center;
    align-items: center;
    height: 90px;
    background-color: rgb(26, 70, 95);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.details-abilities-btns {
    margin: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: rgb(26, 70, 95);
    border-top-left-radius: 15px;
    border-bottom-right-radius: 15px;
    border: solid;
    border: 1px;
    border-color: black;
    font-size: 18px;
    color: black;
    cursor: pointer;
}

#statsBtn {
    display: flex;
    text-align: center;
    align-items: center;
    background-color: rgba(42, 109, 148, 0.5);
    border: none;
    border-color: black;
    font-size: 24px;
}

.details-stats-container {
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(26, 70, 95);
    list-style-type: none;
    padding: 1rem;
    margin: 0;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

ul {
    margin: 0;
    padding: 0;
    height: auto;
}

h3 {
    margin: 0;
    padding: 0;
}

.details-stats-headline {
    font-size: 28px;
    margin-left: 5px;
}

.details-stats-txt {
    font-size: 20px;
    margin-left: 5px;
    margin-right: 5px;
}

.back-and-forth-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 200px;
    background-color: rgb(26, 70, 95);
    padding: 1rem;
}

.back-btn {
    background-color: rgb(26, 70, 95);
    color: whitesmoke;
    cursor: pointer;
}

.forth-btn {
    background-color: rgb(26, 70, 95);
    color: whitesmoke;
    cursor: pointer;
}
