/* Stili per l'animazione di particelle 3D */
.particle-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none; /* Permette scroll touch su mobile */
}

/* Compatibilità con lo stile precedente */
#world-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

canvas {
    display: block; 
    width: 100%; 
    height: 100%;
    pointer-events: none; /* Disabilita interazione con canvas per permettere scroll */
}

#ui {
    position: absolute;
    top: 15px; 
    width: 100%;
    text-align: center;
    z-index: 100; 
    pointer-events: none; 
}

#info {
    font-size: 14px;
    padding: 10px 18px; 
    background-color: rgba(25, 30, 50, 0.35); 
    border-radius: 10px; 
    display: inline-block;
    text-shadow: 0 0 5px rgba(0, 128, 255, 0.8); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    transition: all 0.3s ease; 
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05); 
}

#loading {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    z-index: 1000; 
    transition: opacity 0.6s ease-out; 
}

#loading span {
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 15px; 
}

#progress-container {
    width: 60%;
    max-width: 300px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden; 
}

#progress {
    height: 100%;
    width: 0%; 
    background: linear-gradient(90deg, #00a2ff, #00ffea); 
    transition: width 0.3s ease; 
    border-radius: 3px;
}

#controls {
    position: absolute;
    bottom: 20px; 
    left: 50%;
    transform: translateX(-50%); 
    z-index: 100;
    text-align: center;
    pointer-events: all; 
    background-color: rgba(25, 30, 50, 0.4); 
    padding: 15px 25px; 
    border-radius: 12px; 
    border: 1px solid rgba(255, 255, 255, 0.12); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
}

#controls button {
    background: rgba(0, 80, 180, 0.7); 
    color: white;
    border: 1px solid rgba(0, 180, 255, 0.6); 
    border-radius: 6px;
    padding: 8px 15px;
    margin: 0 8px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    transition: all 0.25s ease;
}

#controls button:hover {
    background: rgba(0, 110, 220, 0.9); 
    border-color: rgba(0, 210, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 150, 255, 0.3);
}

#color-picker {
    margin-top: 15px; 
    display: flex;
    justify-content: center;
    gap: 12px;
}

.color-option {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2); 
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.4); 
}

.color-option:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.7); 
}

.color-option.active {
    transform: scale(1.18);
    border-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7); 
}

/* Versione semplificata senza pannelli di controllo */
.simple-particles-container #controls,
.simple-particles-container #info {
    display: none;
}
