@media (max-width: 768px) {
    body, body.iframe-page {
        min-height: 100vh !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 20px !important;
        margin: 0 !important;
        overflow: auto !important;
    }

    

    .games-container {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 500px !important;
        padding: 20px !important;
        margin: 0 auto !important;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .game-card {
        padding: 15px !important;
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    body, body.iframe-page {
        padding: 15px !important;
    }

    .games-container {
        max-width: 400px !important;
        padding: 15px !important;
    }

    .games-grid {
        gap: 12px !important;
    }

    .game-card {
        padding: 12px !important;
    }

    .game-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
    }

    .game-card h3 {
        font-size: 0.95rem !important;
        margin-bottom: 6px !important;
    }

    .game-card p {
        font-size: 0.75rem !important;
        margin-bottom: 8px !important;
    }

    .play-button-inicio {
        padding: 5px 12px !important;
        font-size: 0.8rem !important;
    }

        }
/* Reset e Estilos Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px;
}

body.iframe-page {
    padding: 0;
    justify-content: flex-start;
}

body.iframe-page iframe {
    width: 100vw;
    height: 100vh;
    border: none;
}

/* Container Principal */
.games-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

/* Grade de Jogos */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 100%;
    justify-items: center;
    align-items: start;
    margin: 0 auto;
    justify-content: center;
}

/* Cards de Jogo */
.game-card {
    background: black;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    width: 100%;
    max-width: 215px;
}

.game-card-caca {
    background: rgb(218, 226, 170);
    border: 2px solid rgb(164, 173, 121);
    border-radius: 8px; /* Cantos arredondados */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra sutil */
}

.game-card-sudoku {
    background: rgb(143, 193, 202);
    border: 2px solid rgb(91, 177, 192);
    border-radius: 8px; /* Cantos arredondados */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra sutil */
}

.game-card-senha {
    background: rgb(231, 156, 105);
    border: 2px solid rgb(179, 118, 78);
    border-radius: 8px; /* Cantos arredondados */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra sutil */
}

.game-card-aranha {
    background: rgb(221, 164, 171);
    border: 2px solid rgb(172, 113, 120);
    border-radius: 8px; /* Cantos arredondados */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra sutil */
}

.game-card-campo {
    background: rgb(88, 96, 155);
    border: 2px solid rgb(51, 61, 132);
    border-radius: 8px; /* Cantos arredondados */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra sutil */
}
/* Container branco interno */
.branco {
    background-color: white;
    width: 100%;  
    text-align: center;
    padding: 25px 20px;
    margin-top: 10px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;

}

.branco p {
    margin-top: -10px;
    font-size: 1.5em;
    line-height: 1.5;
    color: black;
    font-weight: 500;
    font-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

/* Botão estilizado */
.play-button-inicio {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    width: 100%;
    max-width: 160px;
    margin-top: 5px;
    margin-bottom: -30px;
}

.play-button:hover {

    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.play-button:active {
    transform: translateY(0);
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.15);
}

.game-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    background-color: #fff5f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #303135;
    font-size: 1.5rem;
}

.game-icon-caca {
    background: rgb(155, 160, 126);
}

.game-icon-sudoku {
    background: rgb(104, 189, 204);
}

.game-icon-senha {
    background: rgb(190, 108, 53);
}

.game-icon-aranha {
    background: rgb(211, 85, 102);
}

.game-icon-campo {
    background: rgb(110, 131, 215);
}

.game-card:hover .game-icon {
    background-color: #303135;
    color: white;
}


.game-card h3 {
    margin-bottom: 8px;
    color: #000000;
    font-weight: 600;
    font-size: 1.4rem;
    font-family: 'Roboto', sans-serif;
}

.game-card p {
    color: #000000;
    margin-bottom: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
    font-family: 'Roboto', sans-serif;
}

.play-button {
    background-color: #303135;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.play-button:hover {
    background-color: #646c6c;
}

/* Responsividade */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .game-card {
        max-width: none;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .game-card {
        max-width: none;
        padding: 10px;
    }
    
    .game-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .game-card h3 {
        font-size: 1rem;
    }
    
    .game-card p {
        font-size: 0.8rem;
    }
}

/* ===== ESTILOS PARA PÁGINAS DE JOGOS ===== */

/* Reset do body para páginas de jogos */
body.game-page {
    padding: 0;
    justify-content: flex-start;
}

/* Estilos do Header para Páginas de Jogo */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #303135;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0px;
    z-index: 100;
    width: 100%;
    margin: 0;
    margin-bottom: 20px;
}

.game-header-caca {
    background: rgb(88, 94, 55);
}

.game-header-sudoku {
    background: rgb(49, 104, 114);
}

.game-header-senha {
    background: rgb(134, 74, 40);
}

.header-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.6rem;
    font-weight: 100;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.header-button:hover {
    background-color: #646c6c;
}

.game-title {
    font-weight: 700;
    color: white;
    margin: 0;
}

/* Container do Conteúdo do Jogo */
.game-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}


