/* Paleta de colores
--color-1: #F1DCE1
--color-2: #FDC1D4
--color-3: #C2C982
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #ffe9ee;
}

header {
    text-align: center;
    margin-bottom: 30px;
    background-color: #ffffff;
}
header h1 {
    padding: 10px;
    font-size: 2.5em;
    color: #C2C982;
    margin: 0;
}
header p {
    font-size: 1em;
    margin-top: 10px;
    color: #333;
}
nav {
    margin-top: 20px;
    background-color: #FDC1D4;
    padding: 10px 20px;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
}

.menu li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s;
}

.menu li:hover {
    color: #d8d8d8;
}

.menu a:visited {
    color: #ffffff;
}

.section {
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #ffffff;
    padding: 20px;
    max-width: 600px;
    margin: 30px auto;
}

.section h2 {
    color: #7f8a1e;
    padding: 10px;
    text-align: center;
}

#definition p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

#pokes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: flex-start;
    max-width: 1000px; 
    margin: 30px auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
}

#pokes h2 {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    flex-basis: 100%;
}

.pokemon-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 180px;
    padding: 20px;
    text-align: center;
    margin: 10px;
    flex: 1 1 180px;           
    max-width: 220px;
}
.pokemon-card h3 {
    color: #333;
}
.pokemon-card img {
    width: 100px;
    height: 100px;
}
.pokemon-card:hover {
    transform: scale(1.05);
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background-color: #e4eba4;
    color: #333;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}
.pokemon-card.flipped .card-inner {
    transform: rotateY(180deg);
}
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.card-back {
    transform: rotateY(180deg);
    background: #f0f0f0;
}