/* Estilo general */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

body {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    background-color: #121212;
    color: white;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Imagen del título */
.title-image {
    width: 200%; /* Ajusta el porcentaje según el tamaño deseado */
    max-width: 500px; /* Tamaño máximo opcional */
    display: block;
    margin: 20px auto; /* Centra la imagen */
}


/* Selector de tipo */
label {
    margin-top: 10px;
    font-size: 18px;
}

select {
    display: block;
    margin: 15px auto;
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    border: 2px solid white;
    background: #212121;
    color: #fff;
    font-weight: bold;
}

/* Contenedor de la Pokédex */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    width: 90%;
    max-width: 800px;
    justify-content: center;
    padding: 20px;
}

/* Tarjeta Pokémon */
.pokemon {
    background: linear-gradient(135deg, #ff1744, #ff9100);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #ffeb3b;
}

.pokemon:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(255, 235, 59, 0.8);
}

.pokemon img {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 10px white);
}

.pokemon p {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 235, 59, 0.8);
}

/* Estilo del modal */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 20px;
    border-radius: 10px;
    width: 350px;
    text-align: center;
    border: 3px solid #ffeb3b;
    box-shadow: 0 0 15px rgba(255, 235, 59, 0.7);
    animation: fadeIn 0.3s ease-in-out;
}

.modal h2 {
    font-size: 20px;
    text-shadow: 0 0 10px red;
}

.modal p {
    font-size: 14px;
}

/* Efecto de pantalla digital */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -55%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.modal-overlay.active {
    display: block;
}

.modal.active {
    display: block;
}

/* Botón para cerrar el modal */
.close-btn {
    background: red;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.2s;
}

.close-btn:hover {
    background: darkred;
}

/* Pantalla de Pokédex con efecto digital */
.pokedex-screen {
    background: #1b5e20;
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 10px;
    border: 3px solid #ffeb3b;
    box-shadow: 0 0 15px rgba(255, 235, 59, 0.5);
}

/* Botón de Pokédex interactivo */
.pokedex-button {
    background: #ffcc00;
    border: 3px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: inline-block;
    margin: 10px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.pokedex-button:active {
    transform: scale(0.9);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        grid-template-columns: repeat(1, 1fr);
    }
}
