/* body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 20px;
} */
.stadio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

}
.riga {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.settore {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    background-color: #ccc;
    border: 2px solid #999;
    cursor: pointer;
}
.settore.angolo {
    width: 80px;
    height: 80px;
    background-color: #bbb;
}
.settore.campo {
    width: 400px;
    height: 200px;
    background-color: green;
    color: white;
    font-weight: bold;
}
.popup {
    display: none;
    position: fixed; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 2px solid #999;
    border-radius: 10px;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 1750px;
}
.popup h2 {
    margin-top: 0;
}
.popup .fila {
    min-width: 1700px;
    display: flex;
    justify-content: center;
    margin: 5px 0;
    flex-wrap: nowrap;
}
.popup .posto {
    width: 30px;
    height: 30px;
    margin: 2px;
    background-color: #ccc;
    border: 1px solid #999;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    line-height: 30px;
    flex-shrink: 0;
}
.popup .posto.selezionato {
    background-color: #4caf50;
    color: white;
}
.popup .posto.acquistato {
    background-color: #ff4d4d;
    color: white;
    cursor: not-allowed;
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100% ;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.popup-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}
.popup-buttons button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.popup-buttons .chiudi-btn {
    background-color: #f44336;
    color: white;
}
.popup-buttons .conferma-btn {
    background-color: #4caf50;
    color: white;
}
.totale {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

#mappa-posti-outer{
    max-width: unset; 
    width: unset;
    box-sizing: border-box;
    overflow-x: auto;    
}

main:has(.popup) h1, main:has(.popup) h2 {
 text-align: center;
}