header {
    padding: 5px;
    text-align: left;
    background: #7bfc5b;
    color: white;
    font-size: 15px;
}

h1 {
    text-align: center;
}

.cards-electrico {
    background-color: yellow;
    margin: 10px;
}

.cards-agua {
    background-color: rgb(0, 140, 255);
    margin: 10px;
}

.cards-dragon {
    background-color: rgb(179, 120, 11);
    margin: 10px;
}

.cards-veneno {
    background-color: purple;
    margin: 10px;
}

.cards {
    text-align: center;
    margin: 10px;
    display: flex;
}

.card {
    flex: 25%;
    margin: 5px;
    border: 3px solid black;
    display: flex;
    flex-direction: column;
}

.card .content {
    flex-grow: 4;
    flex-shrink: 4;
}

.pokeTitulo {
    text-align: center;
    margin-top: 50px;
    font-weight: bold;
}

.modal {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .4s;
}

.modal-content {
    padding: 20px;
    position: relative;
    width: 500px;
    height: auto;
    background-color: rgb(194, 180, 180);
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0 0 0 / .15);
}

.modal-content h2 {
    margin-top: 20px;
}

.modal-content p {
    margin: 20px 0;
}

.modal-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 30px;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    background: rgb(255, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-btn a {
    text-decoration: none;
    font-weight: 800;
    font-size: 20px;
}

.close-btn a:hover {
    color: rgb(0, 0, 0);
}

.modal:target {
    visibility: visible;
    opacity: 1;
}

.electrico {
    color: yellow;}
.agua {
    color: blue; }
.dragon {
    color: rgb(179, 120, 11); }
.veneno {
    color: purple; }
.siniestro {
    color:darkslategray }
.tierra {
    color: chocolate; }
.hielo {
    color: aquamarine; }
.hada {
    color: pink; }
.volador {
    color: cyan; }
.fantasma {
    color:darkviolet; }
.bicho {
    color: greenyellow; }

.close {
    background: #606061;
    color: #FFFFFF;
    line-height: 25px;
    position: absolute;
    right: 1px;
    text-align: center;
    top: 1px;
    width: 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius:3px;
}

.close:hover {
    background: #FAAC58;
    color:#222;
}