/* Estilos básicos para o iframe overlay */
.iframe-overlay {
    background-color: #222;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

/* Cabeçalho do iframe */
.iframe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #333;
    color: #fff;
    padding: 8px 16px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
}

/* Botões de controle do iframe */
.iframe-controls button {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    margin-left: 8px;
    padding: 4px;
}

/* Animação de "pulsar" ao passar o mouse */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.iframe-controls button:hover {
    color: #ff6666; /* Muda para um vermelho suave */
    animation: pulse 0.5s infinite alternate; /* Aplica a animação */
}

/* Estilo específico para o iframe */
.game-iframe {
    width: 100%;
    height: calc(100% - 40px); /* Altura total menos o cabeçalho */
    border: none;
}

/* Estilo quando o iframe está maximizado */
.maximized .game-iframe {
    height: 100vh;
}
