body {
    background-image: url('/site/Gam2/images/Mar_Desenhar_Top_background.png');
    background-size: cover;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;  
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1; /* Mantém o container quadrado */
    width: 90vw; /* Usa uma largura baseada na viewport para melhor adaptação */
    max-width: 450px;
    margin: 0 auto; /* Centraliza o container */
    border: 10px solid #3d3c3c;
    border-radius: 5px;
    overflow: hidden; /* Garante que o conteúdo não ultrapasse os limites do container */
}

#gameCanvas {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Garante que o conteúdo se ajuste ao container */
    max-width: 450px;
    max-height: 450px;
}

#startScreen, #gameOverScreen {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 18px;
    font-family: 'Rock Salt', cursive;
    flex-direction: column;
    visibility: hidden;
    background-position: center;
    background-repeat: no-repeat;
}

#startScreen {
    background-image: url('/site/Gam4/lapis-start.png');
}

#gameOverScreen {
    background-image: url('/site/Gam4/lapis-game-over.png');
}

#score {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    font-family: 'Rock Salt', cursive;
    font-weight: bold;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

#milestones {
    position: absolute;
    top: 110px;
    left: 10px;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.menu-bar {
    display: flex;
    align-items: center;
    width: 90vw; /* Usa uma largura baseada na viewport para melhor adaptação */
    max-width: 450px;
    border-radius: 5px;
    background-color: #3d3c3c;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin: 10px auto; /* Centraliza a barra de menu */
    position: relative;
}

.menu-bar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner {
    padding-top: 1px;
}

@media (max-width: 700px) {
    .container {
        width: 90vw; /* Mantém uma largura baseada na viewport */
        height: 90vw;
        max-width: none;
        margin: 10px auto; /* Garante que esteja centralizado */
    }
    .menu-bar {
        width: 90vw; /* Mantém uma largura baseada na viewport */
}
}
