/* --- Estilos gerais --- */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #111;
    color: white;
    overflow: hidden;
    position: relative;
}

/* --- Canvas --- */
#gameCanvas {
    display: block;
    margin: 0 auto;
    background-color: #000;
    border: 2px solid white;
}

/* --- Overlay: telas iniciais e configurações --- */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    text-align: center;
}

.overlay h1 {
    font-size: 60px;
    margin-bottom: 40px;
}

.overlay h2 {
    font-size: 40px;
    margin-bottom: 30px;
}

.overlay p {
    font-size: 20px;
    margin-bottom: 20px;
}

.overlay button {
    font-size: 20px;
    padding: 15px 30px;
    margin: 10px;
    cursor: pointer;
    background-color: #222;
    color: white;
    border: 2px solid white;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.overlay button:hover {
    background-color: #555;
    border-color: yellow;
}

/* --- Inputs de configurações --- */
.overlay input[type="number"] {
    width: 60px;
    font-size: 18px;
    margin-left: 10px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #fff;
    background-color: #222;
    color: white;
}

/* --- Rodapé --- */
#footer {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 16px;
}

#footer a {
    color: yellow;
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}
