/* --- FONT --- */
@font-face { 
    font-family: 'NbpInforma'; 
    /* Il percorso sale di un livello (..) e poi entra in imgs/font/ */
    src: url('../font/NbpInformaFivesix-2dXW.ttf') format('truetype'); 
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    font-family: 'NbpInforma', sans-serif;
    overflow: hidden; 
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- SFONDO PARTICELLARE --- */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; 
}

/* --- PULSANTE MUSICA (In alto a destra) --- */
#music-toggle {
    position: absolute;
    top: 30px;
    right: 40px;
    z-index: 100;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    font-family: 'NbpInforma', sans-serif;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Tasto rotondo */
}

#music-toggle:hover {
    background: #909090;
    color: #000;
}

/* --- CONTENITORE UI (Sopra il canvas) --- */
#ui-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1200px; 
    padding: 20px;
}

/* --- IMMAGINE TITOLO --- */
#game-title {
    width: 800px; 
    height: auto;
    margin-bottom: 0px; 
    filter: drop-shadow(0px 0px 15px rgba(255, 255, 255, 0.3)); 
    image-rendering: pixelated; 
}

/* --- CAMPO INSERIMENTO NOME --- */
#name-input {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #fff;
    color: #fff;
    font-family: 'NbpInforma', sans-serif;
    font-size: 24px;
    padding: 15px 20px;
    width: 350px;
    text-align: center;
    text-transform: uppercase;
    outline: none;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

#name-input::placeholder {
    color: #666;
}

#name-input:focus {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* --- BOTTONE INIZIA --- */
#start-btn {
    background-color: #fff;
    color: #000;
    border: 2px solid #fff;
    font-family: 'NbpInforma', sans-serif;
    font-size: 24px;
    font-weight: bold;
    padding: 15px 40px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

#start-btn:hover {
    background-color: #000;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

#start-btn:active {
    transform: scale(0.95);
}

/* --- OVERLAY PER TRANSIZIONE NERA --- */
#fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}