/* Estilos básicos para el modal */
#modalArcade {
    display: none;
    /* Modal oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 5px;
    /* Margen alrededor del modal */
    box-sizing: border-box;
}

#modalArcade .modal-content {
    position: relative;
    width: 99%;
    height: 99%;
    background-color: white;
    padding: 1px 1px 1px 1px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    overflow: hidden;
}

#modalArcade .modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#modalArcade .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: black;
}

#game-container {
    height: 100%;
}

/* Panel de la información del juego */
.game-panel {
    position: fixed;
    top: 10px;
    left: 10px;
    background: linear-gradient(to bottom, #ffffff, #c4c4c4);
    color: black;
    border-radius: 5px;
    padding: 15px;
    width: 370px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    flex-direction: column;
}

.game-panel h3 {
    margin: 0 0 10px;
    font-size: 20x;
    text-align: center;
}

.game-panel .content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-panel img {
    width: 100px;
    height: 100px;
    opacity: 0;
    visibility: hidden;
    margin-right: 10px;
}

.game-panel p {
    margin: 0;
    font-size: 15px;
    flex-grow: 1;
    text-align: justify;
}

/* Mostrar el panel */
.game-panel h3,
.game-panel img,
.game-panel p {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.game-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Animaciones individuales */
.game-panel.show .title {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.game-panel.show .image {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.game-panel.show .description {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0.4s;
}


/* Ajustes responsivos */
@media (max-width: 768px) {
    .game-panel {
        max-width: 200px; /* Reduce el ancho máximo en pantallas pequeñas */
        top: 5px;
        left: 5px;
        padding: 10px;
    }

    .game-panel h3 {
        font-size: 10px;
        margin: 0 0 5px;
    }

    .game-panel p {
        font-size: 8px;
    }

    .game-panel img {
        width: 50px;
        height: 50px;
    }
}
  
@media (max-width: 480px) {
    .game-panel {
    max-width: 200px; /* Reduce el ancho máximo en pantallas pequeñas */
    top: 5px;
    left: 5px;
    padding: 10px;
    }

    .game-panel h3 {
        font-size: 10px;
        margin: 0 0 5px;
    }

    .game-panel p {
     font-size: 8px;
    }

    .game-panel img {
        width: 50px;
        height: 50px;
    }
}