body {
    background-color: black;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

.card {
    background-color: #333;
    border: 1px solid #ccc;
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 75%;
    text-align: center;
    margin: auto;
}

#contenedor {
    width: 75%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

h1, p {
    text-align: center;
}

#seccion-pregunta {
    margin-bottom: 20px;
}

#seccion-resultado {
    margin-top: 20px;
}

/* Estilos para el modal */
.modal-content {
    background-color: #333;
    color: white;
    border: 1px solid #666;
}

.modal-header {
    border-bottom: 1px solid #666;
}

.modal-footer {
    border-top: 1px solid #666;
}

.close {
    color: white;
}

.close:hover {
    color: #ccc;
}

/* Nuevos estilos para el index */
#contenedor-juegos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
}

.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #fff;
    margin-bottom: 15px;
}

.card p {
    color: #ccc;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    width: 100%;
    margin-top: 15px;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Ajustes específicos para el index */
body.index-page {
    min-height: 100vh;
    padding: 20px;
    display: block;
}

.index-page h1 {
    margin-bottom: 30px;
}
