/* === UptoPlay: Estilos generales para juegos online === */
@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Poppins:wght@400;500;700&display=swap');

:root {
    --font-family-title: 'Bungee', 'Montserrat', Arial, sans-serif;
    --font-family-main: 'Poppins', 'Segoe UI', Arial, sans-serif;
    --font-size-base: 16px;
    --color-primary: #00c3ff;
    --color-primary-dark: #146698;
    --color-bg: #efefef;
    --color-bg-alt: #f6f8fa;
    --color-text-main: #222;
    --color-text-secondary: #666;
    --color-title: #00c3ff;
    --color-title-dark: #146698;
    --border-radius: 14px;
    --transition-time: 0.2s;
    --container-max-width: 1200px;
    --container-padding: 18px;
    --shadow-main: 0 2px 12px rgba(0,195,255,0.08);
    --header-height: 80px;
    --header-height-mobile: 60px;
}

/* Reset y base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Más específico que el otro .container */
body .container {
  padding: 18px !important;
  max-width: 1200px;
  background: linear-gradient(120deg, #eaf6fb 60%, #d0eaff 100%);
}
html, body {
    background: var(--color-bg) !important;
    color: var(--color-text-main);
    font-family: var(--font-family-main);
    font-size: var(--font-size-base);
    min-height: 100vh;
    line-height: 1.6;
}

/* Títulos gamer */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-title) !important;
    color: var(--color-title) !important;
    font-weight: 700 !important;
    margin-top: 40px !important;
    margin-bottom: 18px !important;
    letter-spacing: 2px !important;
    text-shadow: 0 2px 8px #00c3ff22;
    text-align: center;
    line-height: 1.1;
    text-transform: uppercase;
}
h1 { font-size: 2.8rem; color: var(--color-title-dark); }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4, h5, h6 { font-size: 1.1rem; }

/* Texto general */
p {
    color: var(--color-text-secondary);
    font-size: 1.08rem;
    line-height: 1.7;
    margin: 0 0 18px 0;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

main, .container, .blog-featured {
  margin-bottom: 60px; /* o más, si el footer es alto */
}
/* Links estilo gamer */
a {
    color: white;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color var(--transition-time), text-shadow var(--transition-time) !important;
}
a:hover {
    color: var(--color-primary) !important;
    text-shadow: 0 2px 8px #00c3ff44 !important;
    text-decoration: underline !important;
}

/* Listas */
ul, ol {
    color: var(--color-text-main);
    font-size: 1rem;
    margin: 0 0 18px 32px;
    padding: 0;
}
li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Imágenes */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-main);
}

/* Contenedor principal */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    background: linear-gradient(120deg, #eaf6fb 60%, #d0eaff 100%);
    border-radius: 18px;
    box-shadow: 0 2px 24px #21d4fd11;
    border: none !important;
}

/* Botones gamer */
button, .btn {
    font-family: var(--font-family-title);
    background: linear-gradient(90deg, #21d4fd 0%, #146698 100%);
    color: #fff;
    border: 2px solid #146698;
    border-radius: var(--border-radius);
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px #21d4fd44;
    position: relative;
    overflow: hidden;
    transition: background var(--transition-time), box-shadow var(--transition-time);
}
button::after, .btn::after {
    content: "";
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    border: 2px dotted #21d4fd88;
    border-radius: var(--border-radius);
    pointer-events: none;
    opacity: 0.5;
}
button:hover, .btn:hover {
    background: linear-gradient(90deg, #146698 0%, #21d4fd 100%);
    box-shadow: 0 4px 16px #21d4fd66;
    border-color: #21d4fd;
}

/* Utilidades */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }

/* Sección alternativa de fondo */
.bg-alt {
    background: var(--color-bg-alt);
}

#middlebox{
    margin-top: 80px !important;
}

/* Responsive */
@media (max-width: 992px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    .container { padding: 0 8px; }
    button, .btn { padding: 10px 18px; font-size: 0.95rem; }
}

@media (max-width: 600px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }
    p { font-size: 1rem; }
    .container { padding: 0 4px; }
    button, .btn { padding: 8px 12px; font-size: 0.9rem; }
}


/* === OCULTAR EL H1 NO DESEADO (con enlace a offidocs) === */
h1 a[href*="search.offidocs.com"] {
    display: none !important;
}

/* Opcional: si el h1 tiene estilo en línea, aseguramos que no se vea */
h1[style*="color: #fff;"] {
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Asegurar que todo el contenido esté centrado dentro de .item-page */
.item-page {
    max-width: 100% !important;
    margin: 48px auto 32px auto !important;
    padding: 36px 32px 32px 32px !important;
    text-align: center !important;
}

/* === SECCIÓN DE CABECERA DEL JUEGO (sin tocar HTML) === */

/* Contenedor principal de la cabecera */
div[style*="margin: 0 0 10px 0;"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    margin: 0 auto 24px auto !important;
    padding: 20px 16px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(33, 212, 253, 0.12) !important;
    max-width: 700px !important;
    width: 100% !important;
}

div[style*="margin:0 0 10px 0"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    margin: 0 auto 24px auto !important;
    padding: 20px 16px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(33, 212, 253, 0.12) !important;
    max-width: 700px !important;
    width: 100% !important;
}

/* Contenedor de icono + texto */
div[style*="text-align: left"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 24px !important;
    flex-wrap: wrap !important;
}

div[style*="text-align:left"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 24px !important;
    flex-wrap: wrap !important;
}

/* Imagen del juego */
div[style*="text-align: left"] img {
    width: 150px !important;
    height: 150px !important;
    border-radius: 20px !important;
    box-shadow: 0 6px 16px rgba(33, 212, 253, 0.2) !important;
    transition: transform 0.2s ease !important;
}

div[style*="text-align:left"] img {
    width: 150px !important;
    height: 150px !important;
    border-radius: 20px !important;
    box-shadow: 0 6px 16px rgba(33, 212, 253, 0.2) !important;
    transition: transform 0.2s ease !important;
}

div[style*="text-align: left"] img:hover {
    transform: scale(1.05) !important;
}

div[style*="text-align:left"] img:hover {
    transform: scale(1.05) !important;
}

/* Texto del juego (título, subtítulo, distribución) */
div[style*="text-align: left"] span {
    max-width: 260px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
}

div[style*="text-align:left"] span {
    max-width: 260px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
}

div[style*="text-align: left"] span p {
    margin: 0 !important;
    text-align: left !important;
    white-space: normal !important;
}

div[style*="text-align:left"] span p {
    margin: 0 !important;
    text-align: left !important;
    white-space: normal !important;
}

div[style*="text-align: left"] span p:first-child {
    font-size: 24px !important;
    font-weight: 900 !important;
    color: var(--color-title-dark) !important;
    font-family: var(--font-family-title) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

div[style*="text-align:left"] span p:first-child {
    font-size: 24px !important;
    font-weight: 900 !important;
    color: var(--color-title-dark) !important;
    font-family: var(--font-family-title) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

div[style*="text-align: left"] span p:nth-child(2) {
    color: #3a5dc7 !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
}

div[style*="text-align:left"] span p:nth-child(2) {
    color: #3a5dc7 !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
}

div[style*="text-align: left"] span p:nth-child(3) {
    font-size: 0.9rem !important;
    color: #666 !important;
    opacity: 0.8 !important;
}

div[style*="text-align:left"] span p:nth-child(3) {
    font-size: 0.9rem !important;
    color: #666 !important;
    opacity: 0.8 !important;
}

/* === MEJORA DEL CARRUSEL DE IMÁGENES === */

/* Contenedor del carrusel */
div[style*="width: 60%;"] {
    width: 100% !important;
    max-width: 600px !important;
    margin: 16px auto !important;
    overflow-x: auto !important;
    padding: 8px 0 !important;
    white-space: nowrap !important;
    scrollbar-width: thin !important;
    scrollbar-color: #21d4fd #eaf6fb !important;
}

div[style*="width: 60%;"]::-webkit-scrollbar {
    height: 6px !important;
}
div[style*="width: 60%;"]::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 10px !important;
}
div[style*="width: 60%;"]::-webkit-scrollbar-thumb {
    background: #21d4fd !important;
    border-radius: 10px !important;
}


div[style*="width:60%;"] {
    width: 100% !important;
    max-width: 600px !important;
    margin: 16px auto !important;
    overflow-x: auto !important;
    padding: 8px 0 !important;
    white-space: nowrap !important;
    scrollbar-width: thin !important;
    scrollbar-color: #21d4fd #eaf6fb !important;
}

div[style*="width:60%;"]::-webkit-scrollbar {
    height: 6px !important;
}
div[style*="width:60%;"]::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 10px !important;
}
div[style*="width:60%;"]::-webkit-scrollbar-thumb {
    background: #21d4fd !important;
    border-radius: 10px !important;
}





/* Estilo de cada slide */
div[style*="width: 60%;"] .slide {
    display: inline-block !important;
    margin-right: 16px !important;
}

div[style*="width: 60%;"] .slide img {
    width: 280px !important;
    height: 160px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.2s ease !important;
}

div[style*="width: 60%;"] .slide img:hover {
    transform: scale(1.03) !important;
}


div[style*="width:60%;"] .slide {
    display: inline-block !important;
    margin-right: 16px !important;
}

div[style*="width:60%;"] .slide img {
    width: 280px !important;
    height: 160px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.2s ease !important;
}

div[style*="width:60%;"] .slide img:hover {
    transform: scale(1.03) !important;
}


/* === BOTÓN "PLAY ONLINE" === */
.item-page .linkfunctiony,
.item-page a[onclick*="opengamex"] {
    display: inline-block !important;
    margin: 24px auto !important;
    padding: 0.95em 2.4em !important;
    background: linear-gradient(90deg, #21d4fd 0%, #b721ff 100%) !important;
    color: #fff !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    font-family: var(--font-family-title) !important;
    border-radius: 32px !important;
    box-shadow: 0 4px 16px #21d4fd22 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    border: none !important;
    text-align: center !important;
}

.item-page .linkfunctiony:hover,
.item-page a[onclick*="opengamex"]:hover {
    background: linear-gradient(90deg, #b721ff 0%, #21d4fd 100%) !important;
    transform: scale(1.05) translateY(-2px) !important;
    box-shadow: 0 6px 20px #21d4fd44 !important;
}

/* === SECCIÓN DE SCREENSHOTS Y DESCRIPCIÓN === */

/* Título de secciones como "SCREENSHOTS", "DESCRIPTION" */
.item-page h2 strong {
    color: var(--color-title-dark) !important;
    font-weight: 900 !important;
    font-size: 1.35rem !important;
    letter-spacing: 0.5px !important;
    margin: 36px 0 12px 0 !important;
    display: block !important;
    text-align: center !important;
    text-transform: uppercase !important;
    font-family: var(--font-family-title) !important;
}

/* Carrusel oficial de screenshots (el que ya tiene imágenes) */
#carousel {
    justify-content: center !important;
    gap: 18px !important;
    padding-bottom: 8px !important;
}

#carousel .slide img {
    width: 280px !important;
    height: 160px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px #21d4fd22 !important;
    transition: transform 0.2s ease !important;
}

#carousel .slide img:hover {
    transform: scale(1.04) !important;
}

/* === DESCRIPCIÓN Y TEXTO === */
.item-page p {
    text-align: left !important;
    max-width: none !important;
    margin: 12px 0 !important;
    line-height: 1.7 !important;
    color: var(--color-text-main) !important;
}

.item-page p:last-of-type {
    margin-bottom: 24px !important;
}


/* Navegación gamer solo texto Prev/Next */
.item-page .pagenav {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 48px !important;
    margin: 48px auto !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100%;
    text-align: center !important;
}

.item-page .pagenav li {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.item-page .pagenav .pagenav-prev a,
.item-page .pagenav .pagenav-next a {
    min-width: 120px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(90deg, #21d4fd, #146698) !important;
    box-shadow: 0 2px 12px rgba(33, 212, 253, 0.4) !important;
    position: relative !important;
    font-size: 0.90rem !important;
    color: #fff !important;
    border: none !important;
    border-radius: 24px !important;
    transition: transform 0.2s ease !important;
    letter-spacing: 1px !important;
    font-family: var(--font-family-title) !important;
    text-align: center !important;
}

.item-page .pagenav .pagenav-prev a:hover,
.item-page .pagenav .pagenav-next a:hover {
    transform: scale(1.1) !important;
    background: linear-gradient(90deg, #146698, #21d4fd) !important;
}
/* === RESPONSIVE: Móviles === */
@media (max-width: 768px) {
    div[style*="text-align: left"] {
        flex-direction: column !important;
        align-items: center !important;
    }
    div[style*="text-align: left"] span {
        align-items: center !important;
        text-align: center !important;
    }
    div[style*="text-align: left"] span p {
        text-align: center !important;
    }

    div[style*="text-align:left"] {
        flex-direction: column !important;
        align-items: center !important;
    }
    div[style*="text-align:left"] span {
        align-items: center !important;
        text-align: center !important;
    }
    div[style*="text-align:left"] span p {
        text-align: center !important;
    }

    .item-page {
        padding: 24px 12px !important;
        margin: 24px auto !important;
    }
    #carousel .slide img,
    div[style*="width: 60%;"] .slide img {
        width: 220px !important;
        height: 124px !important;
    }
    div[style*="width:60%;"] .slide img {
        width: 220px !important;
        height: 124px !important;
    }
    .item-page .linkfunctiony {
        font-size: 1.1rem !important;
        padding: 0.8em 2em !important;
    }
}




#ja-main, #ja-content {
    float: none !important;
    width: 100% !important;
}

#allx {
    z-index: 9999 !important;
    display: none; /* Se muestra solo cuando el JS lo activa */
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

#allx[style*="display:block"] {
    display: flex !important;
}



#middlebox {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 400px;
    background: transparent !important;
}

#loginx.containeriframe {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 300px;
}

#login_banner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 300px;
    box-sizing: border-box !important;
    background: #000 !important;
    border-radius: 18px;
    box-shadow: 0 2px 24px #21d4fd22;
    max-width: 720px;
}

#login_banner > * {
    margin-left: auto !important;
    margin-right: auto !important;
}

#rightbox, #leftbox {
    display: none !important;
}

@media (max-width: 900px) {
    #login_banner {
        min-height: 200px;
        max-width: 98vw;
    }
}
#middlebox {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 600px;
    background: #146698 !important;
}

#loginx.containeriframe {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 400px;
}

#login_banner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 400px;
    box-sizing: border-box !important;
    background: #000 !important;
    border-radius: 18px;
    box-shadow: 0 2px 24px #21d4fd22;
}

#login_banner > * {
    margin-left: auto !important;
    margin-right: auto !important;
}
#rightbox {
    display: none !important;
}

@media (max-width: 900px) {
    #middlebox {
        min-height: 400px;
        padding: 0 !important;
    }
    #login_banner {
        min-height: 300px;
        max-width: 98vw;
    }
}
/* Mostrar imagen de fondo usando la variable --thumb */
.talpa-splash-background-image {
    width: 100% !important;
    height: 100% !important;
    background-image: var(--thumb) !important;
    background-size: cover !important;
    background-position: center !important;
    filter: blur(20px) brightness(1.2) !important;
    border-radius: 18px !important;
    min-height: 200px !important;
}

html[xmlns] .clearfix {
    display: block !important;
    margin-top: 32px !important;
}

/* Ocultar el título "SCREENSHOTS" en todas las resoluciones */
.item-page h2 strong {
    display: none !important;
}
  #carousel .slide img {
        width: 350px !important;
        max-width: 350px !important;
        height: auto !important;
        margin: 0 auto !important;
    }
/* Responsive: carrusel en columna y ocultar título screenshots */
@media (max-width: 768px) {
    #carousel {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 18px !important;
        overflow-x: unset !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    #carousel .slide {
        display: block !important;
        margin: 0 0 18px 0 !important;
        width: 100% !important;
        text-align: center !important;
    }
    #carousel .slide img {
        width: 98vw !important;
        max-width: 320px !important;
        height: auto !important;
        margin: 0 auto !important;
    }
    /* Ocultar el título "SCREENSHOTS" en móviles */
    .item-page h2 strong {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    #ja-content, .ja-frontpage #ja-content {
        width: 900px !important; 
        margin-left: calc(50% - 550px);
    }
}

@media (min-width: 950px) and (max-width: 1199px) {
    #ja-content, .ja-frontpage #ja-content {
        width: 900px !important;
        margin-left: calc(50% - 450px);
    }
}


@media (min-width: 800px) and (max-width: 949px) {
  #ja-content,
  .ja-frontpage #ja-content {
    width: 100%;
    margin-left: 50px;
  }
}

#loginx {
	background: #efefef;
}

.css-1la1o8y {
	background: black;
}

@media (min-width: 900px) {
	.css-1la1o8y {
		margin-left: 50px !important;
	}

}



