
.game-frame-container {
    margin: auto 0;
    width: 100%;
    clip-path: polygon(1rem 0%, calc(100% - 1rem) 0%, 100% 1rem, 100% calc(100% - 1rem), calc(100% - 1rem) 100%, 1rem 100%, 0% calc(100% - 1rem), 0% 1rem);
    overflow: hidden;
}

.game-frame-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.game-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-frame-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: var(--card-bg-color);
    color: var(--text-color);
}

.fullscreen-button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.fullscreen-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.game-title {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Estilos para pantalla completa */
.game-frame-container:fullscreen {
    width: 100vw;
    height: 100vh;
}

.game-frame-container iframe:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
}

.game-frame-container iframe:-moz-full-screen {
    width: 100vw;
    height: 100vh;
}

.game-frame-container iframe:-ms-fullscreen {
    width: 100vw;
    height: 100vh;
}

/* Estilos para iOS "fullscreen" */
.ios-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    background-color: black !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ios-fullscreen iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

.ios-fullscreen-body {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

.ios-fullscreen .fullscreen-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.7);
    color: red;
    padding: 10px 15px;
    border-radius: 5px;
    border: 2px solid white;
    font-weight: bold;
}

.fullscreen-exit-help {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    z-index: 10001;
    transition: opacity 0.5s ease;
    text-align: center;
    pointer-events: none;
}

.ios-exit-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10001;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    border: 2px solid white;
    font-weight: bold;
    pointer-events: auto; 
}


@media (max-width: 1024px) {
    .game-container {
        width: 75%
    }
}


@media (max-width: 425px) {
    .game-container {
        width: 90%
    }
}