/*
Snake JS - No AI
Questo progetto è un'implementazione del gioco Snake realizzata in JavaScript Vanilla, senza l’uso di IA.
Realizzato interamente da Daniele Prevedi (4° INFO) dell'ITT Agnelli.

Soggetto a licenza Creative Commons CC BY-NC-SA 4.0
*/

* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

.header {
    text-align: center;
    font-weight: normal;
    margin-top: 20px;
    margin-bottom: 20px;
}

.gioco {
    width: 73vh;
    height: 73vh;
    max-width: 900px;
    max-height: 900px;
    margin: auto;
    position: relative;
}

#divContainerCanvasGioco {
    border: 1px solid black;
    background-color: #e0e0e0;
    width: 100%;
    height: 100%;
}

#pressToStart {
    background-color: rgba(0, 0, 0, 0.4);
    width: 73vh;
    height: 73vh;
    max-width: 900px;
    max-height: 900px;
    margin: auto;
    position: absolute;
}

#testoPressToStart {
    color: white;
    font-weight: normal;
    text-align: center;
    padding-top: 40%;
}
 
#pressToStart button {
    display: block;
    margin: auto;
    margin-top: 10px;
    padding: 5px 10px;
    font-size: 1em;
    cursor: pointer;
    background-color: white;
    border: none;
    border-radius: 10px;
}

.punteggio {
    text-align: center;
    margin-top: 20px;
}

#testoPunteggio {
    font-weight: normal;
    display: inline;
}

#numeroPunteggio {
    display: inline;
}

#testoPunteggioPrecedente {
    color: white;
    font-weight: normal;
    display: inline;
    font-size: 1.25em;
}

#numeroPunteggioPrecedente {
    color: white;
    display: inline;
    font-size: 1.25em;
}

footer {
    position: fixed;
    font-size: 0.8em;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: #f1f1f1;
}