/* Estilos específicos para videojuegos.html */
.top {
    height: 230px;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    background-color: #1a1a1a;
}

.top h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.top p {
    font-size: 18px;
    margin-bottom: 30px;
}

.main-content {
    background-color: #111;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    justify-items: center;
    align-items: center;
    padding: 50px 0;
}

.content-block {
    text-align: center;
    margin-bottom: 30px;
    max-width: 400px;
    max-height: auto;
    padding: 25px;
    background-color: #1f1f1f;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.content-block img {
    width: 100%;
    max-width: 350px;
    height: 250px;
    border-radius: 10px;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.content-block img:hover {
    opacity: 0.8;
    transform: scale(1.05);
    cursor: pointer;
}

.content-block h3 {
    color: #ffffff;
    margin: 15px 0;
}

.content-block p {
    color: #cccccc;
    font-size: 16px;
}

/* Media Queries para pantallas pequeñas */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .top {
        height: 400px;
    }

    .top h2 {
        font-size: 36px;
    }

    .top p {
        font-size: 16px;
    }

    .main-content {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .content-block {
        padding: 15px;
    }

    .content-block img {
        height: 200px;
    }
}