/* --- STRUTTURA GENERALE --- */
body { 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    overflow: hidden; 
}

#map { 
    height: 100vh; 
    width: 100vw; 
    z-index: 1; 
}

/* --- PANNELLO LIVE LINK (Bottom Left) --- */
.live-link-panel {
    position: absolute;
    bottom: 80px;
    left: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 6px solid #dc3545;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.live-link-panel a:hover {
    text-decoration: underline !important;
}

/* --- PANNELLO STATISTICHE (Top Right) --- */
.stats-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85); 
    padding: 15px;
    border-radius: 8px;
    border-right: 6px solid #000080; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-width: 280px;
}

/* --- PANNELLO PARTECIPANTE (Top Left) --- */
.participant-panel {
    position: absolute;
    top: 20px;
    left: 50px;
    z-index: 1001; 
    background: rgba(8, 111, 159, 0.85); 
    color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-width: 250px;
    display: none; 
}

.participant-panel p {
    min-width: 150px;
}

.btn-participate {
    display: inline-block;
    background-color: #e3ab1e; 
    color: white;
    padding: 10px 12px;
    margin-top: 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    text-align: center;
    font-weight: bold;
    transition: background 0.2s;
    width: 100%; 
    box-sizing: border-box;
}

.btn-participate:hover { background-color: #b31419; }

/* --- TITOLO CENTRALE --- */
.main-title {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000; 
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid #000080;
    text-align: center;
    pointer-events: none; 
    white-space: nowrap;
}

.main-title h1 {
    margin: 0;
    font-size: 1.4em;
    color: #000080;
    letter-spacing: 1px;
}

/* --- CONTROLLI CENTRALI (Logo e Pulsante) --- */
.bottom-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: auto;
    pointer-events: none; 
}

.bottom-logo img {
    height: 75px;
    width: auto;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.4));
    pointer-events: auto;
}

.center-btn {
    background: #fff;
    border: 2px solid #000080;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    color: #000080;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    pointer-events: auto;
    white-space: nowrap;
    transition: transform 0.1s;
}

.center-btn:active { transform: scale(0.95); }

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 600px) {
    .main-title { 
        padding: 8px 15px; 
        top: 10px;
        width: 80%;
    }
    .main-title h1 { font-size: 0.9em; }

    /* Pannello Partecipante */
    .participant-panel {
        top: 70px;
        left: 10px;
        max-width: 160px;
        padding: 10px;
    }

    .stats-panel {
        top: 70px;
        right: 10px;
        max-width: 160px;
        padding: 10px;
    }

    .live-link-panel {
        bottom: 80px;
        left: 10px;
        padding: 10px 12px;
        font-size: 0.9em;
    }

    .stats-panel h2 { font-size: 1em; }
    #stats { font-size: 0.9em; }

    .bottom-logo img { height: 50px; }
    .center-btn { padding: 8px 15px; font-size: 12px; }
}
.footer-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2000; /* Higher than map and controls */
    background: rgba(255, 255, 255, 0.7); /* Light transparent background */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 5px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-info {
    display: flex;
    justify-content: space-around; /* Spreads copyright and designer across the bottom */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info p {
    margin: 0;
    font-size: 11px;
    color: #444;
    font-family: Arial, sans-serif;
}

.copyright {
    font-weight: bold;
}

/* On Mobile, stack them or make them smaller */
@media (max-width: 600px) {
    .footer-info {
        flex-direction: column;
        gap: 2px;
    }
    .footer-info p {
        font-size: 10px;
    }
}
.info-table {
    margin: 0 auto; /* This centers the table horizontally */
    border-collapse: collapse;
    width: 80%; /* Optional: defines how wide the table is */
    text-align: center;
}