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


body {
    text-align: center;
    background: linear-gradient(to bottom, #6ab7f5, rgb(107, 220, 69) ) ;
    min-height: 100vh;
    min-height: 100vh;
    padding-bottom: 50px;
}

.na ul{
    gap: 20px;
    list-style-type: none;
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

.bienvenido {
    padding-top: 30px;
    
}
.na ul li{
    border: 2px solid #333;
    border-radius: 5px;
    box-shadow: -2px 3px 0 #222, -4px 6px 0 #000;
    background: linear-gradient(to bottom, #bee21c, rgb(146, 148, 26) ) ;
}


.na ul li:active{
    box-shadow: inset -4px 4px 0 #222;
    font-size: 0.9rem;
}

.bienvenido{
    pad: 10px;
    margin: 10px;
}

.na ul li a{
    text-decoration: none;
    color: black;
}

main {
    display: inline-block;
    margin-top: 2%;
    padding: 15px;
    position: relative;
}

.pokedex {
    width: 100%;
    max-width: 425px;
    
}

.pokemon__image {
     position: absolute;
     bottom: 50%;
     left: 50%;
     transform: translate(-63%, -10%);
     height: 18%;
} 

.pokemon__data{
    position: absolute;
    font-weight: 600;
    color: #aaa;
    bottom: 41%;
    top: 54.5;
    right: 27%;
    font-size: clamp(8px, 5vw, 25px);
}

.pokemon__name{
    color: #3a444d;
    text-transform: capitalize;
}

.form{
    position: absolute;
    width: 65%;
    top: 65%;
    left: 13.5%;
}

.input__search{
    width: 100%;
    padding: 4%;
    outline: none;
    border: 2px solid #333;
    border-radius: 5px;
    font-weight: 600;
    color: #3a444d;
    font-size: clamp(8px, 5vw, 1rem);
    box-shadow: -3px 4px 0 #888, -5px 7px 0 #333 ;
}

.buttons {
    position: absolute;
    bottom: 10%;
    left: 50%;
    width: 65%;
    transform: translate(-57%, 0);
    display: flex;
    gap: 20px;
}

.button {
    width: 50%;
    padding: 4%;
    border: 2px solid #000;
    border-radius: 5px;
    font-size: clamp(8px, 5vw, 1rem);
    font-weight: 600;
    color: white;
    background-color: #444;
    box-shadow: -2px 3px 0 #222, -4px 6px 0 #000;
}

.button:active{
    box-shadow: inset -4px 4px 0 #222;
    font-size: 0.9rem;
}

#contacto {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

footer {
    background: #ff3e3e;
    color: white;
    text-align: center;
    padding: 10px;
    width: 100%;
}

.contacto {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
}

.contacto li {
    margin-bottom: 2px;
}

.correo {
    text-align: left;
    padding-left: 2px;
}

.telefono {
    text-align: right;
    padding-right: 2px;
}

footer p {
    margin-top: 2px;
    text-align: center;
}


footer .contacto {
    list-style: none;
    padding: 0;
    margin-bottom: 10px;
}

footer .contacto li {
    margin: 5px 0;
}

footer .contacto li strong {
    font-weight: bold;
}

footer p {
    margin-top: 10px;
}

.contenedor-menus {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    background-color: #ffffff00;
    padding: 20px;
    border-radius: 8px;
}


.menu-container {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}


.menu-container > * {
    background-color: #ffffff5e;
    color: black;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}


.menu-container > *:hover {
    background: linear-gradient(to bottom, #bee21c, rgb(146, 148, 26) ) ;
    color: black;
}


.mai {
    display: inline-block;
    margin-top: 40px;
}


.pokemon-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    width: 95%;
    max-width: 1200px;
}


.pokemon-lista .pokemon-item {
    background-color: rgba(255, 255, 255, 0.475);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    display: inline-block;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    margin: 5px;
    padding: 10px;
    width: 100%;
    max-width: 200px;
    min-width: 150px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.pokemon-lista .pokemon-item:hover {
    transform: scale(1.05);
}

.pokemon-card {
    background-color: rgba(255, 255, 255, 0.475);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    display: inline-block;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    margin: 5px;
    padding: 10px;
    width: 100%;
    max-width: 200px;
    min-width: 150px;
    box-sizing: border-box;
}

.pokemon-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}


#menuTipos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
}

h1 {
    color: #ff3e3e;
    margin-top: 25px;
    margin-bottom: 10px;
}

.pokemon-card p {
    margin: 5px 0;
    font-weight: bold;
}
.botones {
    margin-bottom: 2%;
}

.boton {
    padding: 10px 15px;
    margin: 5px;
    border: none;
    background-color: #ff3e3e;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}
.boton:disabled {
    background-color: gray;
    cursor: not-allowed;
}

.battle-container { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin-top: 20px; 
    position: relative; 
}

.pokemon { 
    text-align: center; 
    position: relative; 
    margin: 0 50px; 
}

.log { 
    margin-top: 20px; 
    height: 300px; 
    overflow-y: auto; 
    padding: 10px; 
}
.attack { 
    position: absolute; 
    font-size: 24px; 
    font-weight: bold; 
    color: red; 
    display: none; 
}
.health-bar-container { 
    width: 150px; 
    background: gray; 
    height: 20px; 
    margin-top: 10px; 
    border-radius: 5px; 
}

.health-bar { 
    height: 100%; 
    background: green; 
    width: 100%; 
    border-radius: 5px; 
}
.pokemon img { 
    transition: transform 0.5s ease-in-out; 
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #333;
    color: white;
    text-align: center;
    padding: 10px;
}

@media screen and (min-width: 1440px) {
    .na ul li {
        font-size: 1.2rem;
    }

    .pokemon-lista {
        grid-template-columns: repeat(4, 1fr);
    }

    .main {
        padding: 30px;
    }
}


@media screen and (min-width: 1024px) and (max-width: 1439px) {
    .na ul li {
        font-size: 1.1rem;
    }

    .pokemon-lista {
        grid-template-columns: repeat(3, 1fr);
    }

    .main {
        padding: 25px;
    }
}


@media screen and (min-width: 768px) and (max-width: 1023px) {
    .na ul li {
        font-size: 1rem;
    }

    .pokemon-lista {
        grid-template-columns: repeat(2, 1fr);
    }

    .main {
        padding: 20px;
    }
}


@media screen and (min-width: 480px) and (max-width: 767px) {
    .na ul li {
        font-size: 0.9rem;
    }

    .pokemon-lista {
        grid-template-columns: 1fr;
    }

    .main {
        padding: 15px;
    }
}