* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

body {
    background-image: url('../img/telaprincipal.png');
    background-size: cover;       
    background-position: center center;  
    background-repeat: no-repeat; 
    width: 100vw;
    height: 100vh;
    position: relative;
}

#botao-jogar {
    position: absolute;
    bottom: 1vh; 
    left: 50%;
    transform: translateX(-50%);
    width: 120px; 
    transition: transform 0.2s ease;
    z-index: 10;
}

#botao-jogar img {
    width: 100%;
    height: auto;
    display: block;
}

#botao-jogar:hover {
    transform: translateX(-50%) scale(1.1);
}

.btn-engrenagem {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    width: 55px !important;
    height: 55px !important;
    max-width: 55px !important;
    max-height: 55px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    z-index: 100 !important;
    padding: 0 !important;
}

.btn-engrenagem img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform 0.2s ease;
}

.btn-engrenagem img:hover {
    transform: rotate(45deg);
}

/* MODAL DE CONFIGURAÇÕES */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.conteudo-modal {
    background-color: #fff;
    padding: 25px;
    border-radius: 15px;
    border: 4px solid #ffa51f;
    width: 280px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
}

.fechar-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    color: #888;
}

.opcao-volume {
    margin: 20px 0 15px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: bold;
    color: #333;
}

.opcao-volume input[type="range"] {
    cursor: pointer;
}

.btn-mudo-style {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}