html {
    height: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1a0f2e;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    /* Configuración principal del layout */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Encabezado y Pie de Página */
.game-header, .game-footer {
    width: 100%;
    text-align: center;
    background-color: #1a0f2e;
    padding: 20px 0;
    flex-shrink: 0;
    box-sizing: border-box;
}

.game-title-text {
    font-size: 3em;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

.game-footer {
    border-top: 1px solid #440088;
}

/* Nuevo estilo para los enlaces legales y de atribución en el footer */
.game-footer a {
    color: #00ffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.game-footer a:hover {
    color: #fff;
}


/* Contenedor Principal (donde va el juego y los anuncios) */
.game-layout {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 20px;
    box-sizing: border-box;
}

/* Contenedor del Juego (Wrapper del Iframe) */
.game-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

/* Iframe del Juego */
#gameFrame {
    width: 100%;
    max-width: 1038px;
    height: 100%;
    max-height: 629px;
    aspect-ratio: 1024 / 576;
    border: 2px solid #00ffff;
    background-color: #000;
    
    overflow: hidden;
}

/* Banners de Anuncios */
.ad-banner {
    width: 160px;
    height: 600px;
    background-color: #000;
    border: 1px solid #6600ff;
    margin: 0 15px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 0.9em;
    text-align: center;
    box-sizing: border-box;
}

/* Mensaje para dispositivos móviles - OCULTO POR DEFECTO */
.mobile-only-message {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    max-width: 90%;
    margin: 20px auto;
    background-color: #2a1f3e;
    border: 2px solid #00ffff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.mobile-only-message .message-text {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.mobile-only-message .playstore-button {
    display: inline-block;
    margin-top: 10px;
}

.mobile-only-message .playstore-badge {
    max-width: 200px;
    height: auto;
}

/* Estilos para la sección de compartir */
.share-section {
    width: 100%;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    box-sizing: border-box;
}

.share-button {
    background-color: #6600ff;
    color: #fff;
    border: 2px solid #00ffff;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    margin-left: 150px;
}

.share-button:hover {
    background-color: #00ffff;
    color: #1a0f2e;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

.copy-confirm {
    margin-left: 15px;
    color: #00ff00;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Sección de donaciones */
.donation-section {
    width: 100%;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    box-sizing: border-box;
    border-top: 1px solid #440088;
    background-color: #1a0f2e;
}

.donation-text {
    font-size: 1.2em;
    color: #00ffff;
    margin-bottom: 15px;
    text-shadow: 0 0 8px #00ffff;
}

.donation-section form {
    display: inline-block;
    margin: 0 auto;
    margin-left:-125px;
}

.donation-section form input[type="image"] {
    border: 2px solid #6600ff;
    border-radius: 5px;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(102, 0, 255, 0.5);
}

.donation-section form input[type="image"]:hover {
    box-shadow: 0 0 20px rgba(102, 0, 255, 0.8);
}

/* ---- Media Queries para Responsividad ---- */

@media (max-width: 1400px) {
    .ad-banner {
        display: none;
    }
}

@media (max-width: 1024px) {
    .game-layout {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only-message {
        display: flex;
    }

    .game-container-wrapper {
        margin: 0;
        width: 100%;
        max-width: none;
    }

    #gameFrame {
        width: 100%;
        height: auto;
        overflow: hidden;
    }

    .share-section {
        margin-top: 30px;
        padding: 10px;
    }
    .share-button {
        padding: 10px 20px;
        margin-left: -10px;
        font-size: 1em;
    }
    .copy-confirm {
        display: block;
        margin-top: 10px;
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .game-header {
        padding: 10px 0;
    }

    .game-title-text {
        font-size: 2em;
    }

    .mobile-only-message {
        padding: 15px;
    }
    .mobile-only-message .message-text {
        font-size: 1em;
    }
    .mobile-only-message .playstore-badge {
        max-width: 150px;
    }
    .donation-text {
        font-size: 1em;
    }
}

.privacy-content-container {
    background-color: #2a1f3e; /* Un fondo ligeramente más claro */
    padding: 40px;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(102, 0, 255, 0.4);
    line-height: 1.6;
}

.privacy-title {
    font-size: 2.5em;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    margin-bottom: 20px;
    text-align: center;
}

.privacy-content-container h2 {
    color: #fff;
    font-size: 1.8em;
    margin-top: 30px;
    border-bottom: 2px solid #6600ff;
    padding-bottom: 5px;
}

.privacy-content-container p {
    font-size: 1em;
    color: #e0e0e0;
}

.privacy-content-container ul {
    list-style: disc;
    padding-left: 20px;
}

.privacy-content-container li {
    margin-bottom: 10px;
}
