* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

nav {
    height: 100px;
}

.img-nav {
    width: 180px;
    height: 75px;
}

.titulo {
    color: white;
}

main {
    margin-top: 130px;
    margin-bottom: 50px;
    background-image: url('/img/pokemon_fondo.jpg');
}

.footer {
    display: flex;
    width: 100%;
    height: 100px;
    color: white;
    background-color: black;
    justify-content: space-around;
    align-items: center;
}

.card {
    width: 200px;
    height: 350px;
    margin: 10px;
    background-color: aliceblue;
}

.pokemon-todos {
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: 1fr 1fr 1fr 1fr;

}

@media (max-width: 480px) {

    .img-nav {
        width: 90px;
        height: 50px;
    }

    .pokemon-todos {
        transform: scale(0.6);
        transform-origin: top;
        display: grid;
        justify-content: center;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    #todos {
        height: 5250px;
    }

    .footer h4 {
        font-size: 15px;
    }

    .flip-card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 10px;
        transition: transform 0.6s;
        transform-style: preserve-3d;
    }

}

.pokemon-imagen,
.nombre-contenedor {
    display: flex;
    justify-content: center;
}

.img-pokemon {
    width: 180px;
    height: 180px;
}

.pokemon-tipos,
.pokemon-stat {
    display: flex;
    justify-content: space-around;
}

.pokemon-number {
    display: flex;
    justify-content: right;
    margin-right: 10px;
    margin-top: 10px;
}

.pokemon-name {
    background-color: white;
    color: black;
}

.pokemon-id {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    color: black;
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.stat,
.tipo {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    color: black;
    font-weight: bolder;
    width: 100px;
    height: 30px;
    border-radius: 5px;
    font-size: 25px;
    margin: 10px;
}

.flip-card {
    width: 300px;
    height: 400px;
    perspective: 1000px;
    margin: 10px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
}

.flip-card-front {
    background-color: #f1f1f1;
    overflow: hidden;
}

.flip-card-front img {
    max-height: 100%;
    width: 100%;
}

.flip-card-back {
    background-color: #555;
    background-image: url('/img/fondo.png');
    background-size: cover;
    color: white;
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-content {
    padding: 20px;
    text-align: center;
}

.card-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 16px;
    margin-bottom: 20px;
}