/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #e0e0e0;
}

header {
    background-color: #1f1f1f;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2rem; /* Tamaño de fuente más pequeño para móviles */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Para que los elementos del menú se ajusten en móviles */
}

nav ul li {
    margin: 0 10px; /* Menos margen para móviles */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

section {
    padding: 15px;
    margin: 15px;
    max-width: 800px;
    background-color: #1f1f1f;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 1.5rem; /* Tamaño de fuente más pequeño para móviles */
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 8px 12px; /* Botones más pequeños para móviles */
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 0.9rem; /* Tamaño de fuente más pequeño para móviles */
}

.btn:hover {
    background-color: #555;
}

.game-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game {
    background-color: #2c2c2c;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.game h3 {
    margin: 0 0 8px;
    font-size: 1.2rem; /* Tamaño de fuente más pequeño para móviles */
}

.game p {
    margin: 0 0 10px;
    font-size: 0.9rem; /* Tamaño de fuente más pequeño para móviles */
}

.links {
    display: flex;
    flex-direction: column; /* Botones en columna para móviles */
    gap: 8px;
}

.social-links {
    display: flex;
    flex-wrap: wrap; /* Para que los botones de redes sociales se ajusten en móviles */
    gap: 10px;
    justify-content: center;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px; /* Botones más pequeños para móviles */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: opacity 0.3s;
    font-size: 0.9rem; /* Tamaño de fuente más pequeño para móviles */
}

.social-btn:hover {
    opacity: 0.8;
}

/* Barra de Búsqueda */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.search-bar button {
    padding: 10px 15px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: #555;
}

/* Filtros por Categoría */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Para que los botones se ajusten en móviles */
}

.filter-btn {
    padding: 8px 12px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-btn.active {
    background-color: #7289da; /* Color para el botón activo */
}

.filter-btn:hover {
    background-color: #555;
}

.youtube {
    background-color: #ff0000;
}

.tiktok {
    background-color: #000000;
}

.discord {
    background-color: #7289da;
}

/* Estilos para la página de detalles del juego */
#detalles-juego {
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    background-color: #1f1f1f;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#detalles-juego h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

#detalles-juego h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.game-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.screenshots h4, .system-requirements h4, .download-links h4 {
    font-size: 1.5rem;
    margin: 20px 0 10px;
    color: #ffffff;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.screenshot-grid img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.system-requirements ul {
    list-style: none;
    padding: 0;
}

.system-requirements ul li {
    margin: 10px 0;
    font-size: 1rem;
    color: #e0e0e0;
}

.download-links .links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.back-button {
    margin-top: 20px;
    text-align: center;
}

.back-button .btn {
    background-color: #7289da;
}

.back-button .btn:hover {
    background-color: #5a6fbb;
}

/* Media Queries para tablets y pantallas más grandes */
@media (min-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 15px;
        font-size: 1rem;
    }

    .game h3 {
        font-size: 1.5rem;
    }

    .game p {
        font-size: 1rem;
    }

    .links {
        flex-direction: row; /* Botones en fila para pantallas más grandes */
    }

    .social-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Estilos para los enlaces de descarga */
.download-links {
    margin-top: 20px;
}

.download-links h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.download-links .links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-links .btn {
    background-color: #333;
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.download-links .btn:hover {
    background-color: #555;
}

/* Estilos para los requisitos del sistema */
.system-requirements {
    margin-top: 20px;
}

.system-requirements h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.system-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.system-requirements ul li {
    margin: 10px 0;
    font-size: 1rem;
    color: #e0e0e0;
}

/* Estilos para la nota de desarrollo */
.nota-desarrollo {
    background-color: #2c2c2c;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 5px solid #7289da; /* Borde lateral para destacar */
}

.nota-desarrollo p {
    margin: 0;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.nota-desarrollo strong {
    color: #7289da; /* Color para resaltar "Nota" */
}