/* background do menu principal */
body.menu-bg{
    background-image: url("assets/Background/Menu-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* mantém o fundo fixo */
}

/* background do about */
body.about-bg{
    background-image: url("assets/Background/About-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* mantém o fundo fixo */
}

/* background do controls */
body.controls-bg{
    background-image: url("assets/Background/Controls-bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* mantém o fundo fixo */
}

/* estilo da página */
body{
    margin:0;
    background-image: url("assets/Background/Menu-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color:white;
    font-family:Arial;
    text-align:center;
}

/* Titulo */
#title{
    width:550px;
    height:auto;
    margin-bottom:80px;
}

/* posição do menu */
#menu{
    display: flex;
    flex-direction: column; /* Titulo em cima, botões abaixo*/
    align-items: center; /* centraliza horizontal */
    justify-content: flex-start; /* mántem o titulo no topo */
    min-height: 100vh; /* ocupa toda a altura da tela */
    padding-top: 20px; /* um pouco de espaço no topo */
    box-sizing: border-box;
}

.screen{
    display:none;
    margin-top:120px;
}

/* estilo dos botões */
button{
    display:block;
    margin:10px auto;
    padding:15px 40px;
    font-size:18px;

    background:#444;
    color:black;
    border:none;
    border-radius:8px;

    cursor:pointer;
}

button:hover{
    background:#666;
}

/* estilo da área do jogo */
canvas{
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    display: none;

    border: none;
}

#carGrid{
    display:grid;
    grid-template-columns: repeat(3, 200px);
    gap:30px;
    justify-content:center;
}

.car{
    cursor:pointer;
}

.car img{
    width:200px;
}

.car:hover{
    transform:scale(1.1);
}

#playlistPanel{
    position: fixed;
    top: 20px;
    right: 20px;
    display: none;
    z-index: 1000;

    background: rgba(0,0,0,0.7);
    color: white;
    padding: 12px;
    border-radius: 10px;
}

#playlistPanel button{
    display: block;
    margin: 8px 0;
    width: 140px;
}

.timer-text{
    font-family: Impact, Arial, sans-serif;
    font-size: 72px;
    color: yellow;
    text-shadow: 3px 3px 8px black;
}