html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    background-image: url('../img/fondo.jpg');
    background-size: cover;
    background-attachment: fixed;
    position: relative; 
    min-height: 100vh;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
}

body > * {
    position: relative;
    z-index: 1;
}

h1 {
    font-family: "Grandstander", cursive;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 50px;
}

a {
    text-decoration: none;
    color: white;
}
a:hover {
    color: rgb(148, 148, 148);
}

.container {
    padding: 20px;
}

.pokemon-card {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    background: rgba(97, 97, 97, 0.473);
    box-shadow: 10px 10px 14px rgba(75, 75, 75, 0.301);
    border-radius: 10px;
    border: 1px solid #7c7c7c;
    margin-bottom: 20px;
}

.pokemon-card:hover {
    transition: 0.3s;
    transform: scale(1.05);
}

.pokemon-image {
    max-height: 200px;
    object-fit: contain;
    width: 100%;
    margin: 10px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 700;
    background-color: #040402;
}

.btn-primary {
    font-family: "Grandstander", cursive;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 20px;
    background-color: #ff000095;
    border-color: #e42828a0;
}

.btn-primary:hover {
    font-family: "Grandstander", cursive;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 20px;
    background-color: #b30000;
    border-color: #b30000;
    transform: scale(1.05);
}

.pagination {
    display: flex;
    gap: 15px; /* Espaciado más amplio entre elementos */
    align-items: center;
    justify-content: center;
    font-family: "Grandstander", cursive;
}

.page-buttons button {
    padding: 8px 15px;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    background-color: #ff000095; /* Rojo translúcido */
    border: 2px solid #e42828a0; /* Borde similar al botón principal */
    border-radius: 8px; /* Bordes redondeados */
    color: white;
    cursor: pointer;
    transition: all 0.3s ease; /* Transiciones suaves */
}

.page-buttons button.active {
    background-color: #b30000; /* Rojo más oscuro para destacar */
    border-color: #b30000;
    transform: scale(1.1); /* Aumenta tamaño del botón activo */
    color: white;
}

.page-buttons button:hover {
    background-color: #b30000;
    border-color: #b30000;
    transform: scale(1.05); /* Efecto sutil de agrandamiento */
}

.pagination button:disabled {
    background-color: #e9ecef;
    border-color: #e9ecef;
    color: #6c757d; /* Gris apagado para botones deshabilitados */
    cursor: not-allowed;
    opacity: 0.6;
}


footer {
    background-color: rgba(255, 255, 255, 0);
    color: white;
    padding: 20px 0;
    margin-top: 30px;
    flex-shrink: 0;
}

.card-body {
    color: whitesmoke;
    text-align: left;
}
.card-title {
    color: whitesmoke;
    text-align: center;
    font-family: "Grandstander", cursive;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 20px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 35px;
    }

    .pokemon-card {
        margin-bottom: 15px;
    }
}