body {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #8a9597;
}
.container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    margin-top: 55px;
}
.column {
    flex: 1;
    padding: 10px;
    box-sizing: border-box;
    align-items: center;
}
.box {
    text-align: center;
    font-family: 'Verdana', sans-serif;
    color: #ADD8E6; 
    background-color: #8a9597;
    border: 1px solid #000000;
    margin: 5px 0;
    padding: 20px;
    max-width: 100%; 
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}
.full-column {
    width: 100%;
}
.row {
    display: flex;
    flex-direction: row;
    width: 100%;
    box-sizing: border-box;
}
.row .box {
    flex: 1;
    margin: 10px;
    box-sizing: border-box;
}
.title {
    font-family: 'Verdana', sans-serif;
    font-size: 22px;
    background-color: #ffffff;
    border: 1px solid #000000;
    margin: 5px 0;
    padding: 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}
img {
    max-width: 100%; /* Added this line */
    height: auto; /* Added this line */
}
.webcam-offline-message {
    width: 360px;
    height: 270px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000; /* sfondo nero */
    color: #ffffff;            /* testo bianco */
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    margin: 0 auto;
}
@media (max-width: 1206px) {
    .container {
        flex-direction: column;
    }
    .row {
        flex-direction: column;
    }
}

/* Stile per il box flottante */
#legendBox {
    display: none;
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#infoButton {
    width: 20px;
    height: 20px;
    background-color: #000000; /* Grey background for info button */
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    line-height: 0; /* Regola l'altezza della linea per il centramento verticale */
    padding: 0; /* Rimuovi il padding predefinito che potrebbe influenzare la forma */
    margin-left: 10px;
    vertical-align: top;
}

/* Stile per il tasto "Ritorna alla mappa" */
#returnButton {
    position: absolute;
    font-family: 'Verdana', sans-serif;
    font-size: 12pt; /* Riduce la dimensione del font */
    top: 20px;
    left: 50%;
    transform: translateX(-50%); /* Centra orizzontalmente */
    padding: 10px 20px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sollevamento */
}

#footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Verdana', sans-serif;
    color: #FFFFFF;
    text-align: center;
    font-size: 18px;
    width: 100%; /* Ensures the footer spans the width of the page */
    background-color: #000000; /* Optional: to match the background color */
    padding: 10px 0; /* Optional: to add some padding */
}
#footer a {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Keep the text color */
}
