/* Stili di base e reset per un layout a schermo intero */
html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Permette al body di occupare tutta l'altezza della finestra */
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
}

/* Container principale Flexbox per i 3 elementi verticali */
body {
    display: flex;
    flex-direction: column; /* Dispone gli elementi dall'alto verso il basso */
}

h1, h2, h3 {
    color: #333366;
    font-weight: bold;
    padding: 0px;
    margin: 0px;
}

h1 {
    font-size: 14pt;
}

h2 {
    font-size: 12pt;
}

h3 {
    font-size: 10pt;
}

p {
    margin-top: 0px;
}

sub {
    font-size: smaller;
}

a {
    color: inherit;
    text-decoration-style: dotted;
}

dialog.cmte1_dataset {
    margin-left: 5px;
    margin-right: auto;
    margin-top: 380px;
    margin-bottom: auto;
}

/* 1. Title */
#header {
    /* height: 60px; /* Altezza fissa */
    background-color: #f0f0f0;
    padding: 0px;
    box-sizing: border-box; /* Include padding e border nel calcolo dell'altezza */
    display: flex;
    flex-direction: column; /* Dispone i div interni in verticale */
    justify-content: space-around; /* Distribuisce lo spazio tra gli elementi */
}



#title {
    color: #FFFFFF;
    background-color: #da5e22;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12pt;
    font-weight: bold;
    white-space: nowrap;
    margin-bottom: 2px;
}
#title a {
    color: inherit;
    text-decoration: inherit;
}



#menu {
    background-color: #333366;
    color: #ffffff;
    margin-bottom: 2px; 
}
/* Stili per la lista principale (menubar) */
#menu ul {
    list-style-type: none; 
    margin: 0;
    padding: 0;
    display: flex; /* Dispone gli items del menu in orizzontale */
    justify-content: left; 
}
#menu li {
    position: relative; 
    padding-left: 5px;
    padding-right: 15px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
    height: 24px;
}
#menu li:hover {
    background-color: #ffffff;
    color: #333366;
}
#menu li a {
    display: block; 
    text-decoration: none;
    color: inherit;
    font-weight: bold;
    padding: 5px 0;
    white-space: preserve nowrap;
}
/* Stili per i submenu (dropdown) */
#menu li ul {
    display: none;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    margin-left: -5px;
    margin-top: 0px;
}
#menu li:hover ul {
    display: block;
    position: absolute;
    z-index:1;
    background-color: #333366;
    color: #FFFFFF;
}
#menu li.image {
    background-color: #ffffff;
    padding-left: 3px;
    padding-right: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    cursor: pointer;
}
#menu li.spazio {
    flex: 1 1 100%;
    text-align: right;
}
#menu li.spazio:hover {
    color: #ffffff;
    background-color: #333366;
}



#warning {
    background-color: red; 
    color: white;
/*    padding-top: 5px; */
/*    padding-bottom: 5px;*/
    font-size: 12pt; 
    text-align: center;
}
#warning a{
    color: inherit;
}



/* 2. Main */
#main {
    flex-grow: 1; /* Permette a main di occupare tutto lo spazio rimanente */
    display: flex;
    flex-direction: row; /* Dispone gli elementi interni fianco a fianco */
    height: 100%;
}



#left, #right, #onecolumn {
    padding: 5px;
    box-sizing: border-box;
    height: 100%;
}

#left {
    background-color: #ffffff; /*#e6e6e6;*/
    width: 700px;
    display: flex;
    flex-direction: column; /* Dispone gli elementi dall'alto verso il basso */
    gap: 10px;
}


#right {
    flex-grow: 1; /* Permette a entrambi di espandersi e dividere lo spazio */
    background-color: #ffffff; /*#d9d9d9;*/
}

#onecolumn {
    padding-left: 100px;
    padding-right: 100px;
    display: flex;
    flex-direction: column; /* Dispone gli elementi dall'alto verso il basso */
    gap: 10px;
}
.centered {
    width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

#sectionTop {
}

#sectionBottom {
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    overflow: hidden;
}

/* 3. Footer */
#footer {
    /* height: 18px;  Altezza fissa */
    background-color: #333366;
    color: #FFFFFF;
    text-align: center;
    vertical-align: bottom;
    padding: 2px;
    font-size: 8pt;
}
#footer a {
    color: inherit;
    text-decoration: none;
}
#footer a:visited {
    color: inherit;
}


.flexgrowH {
    flex-grow: 1; /* Permette a main di occupare tutto lo spazio rimanente */    
}

/* Testo che indica che il sito è in caricamento */
.loading {
    color: red;
    font-weight: bold;
}
.toolbar {
    display: flex; 
    flex-direction: row; 
    gap: 5px;
    padding-top: 5px;
}
.toolbar select, input {
    border: none;
    background-color: inherit;
}

.imgButton {
    cursor: pointer;
    height: 18px;
}


.index {
    /*margin-left: 50px;*/
    text-align: center; 
    background-image: url('./images/sfondo_1200pxcutted.png');
    /*background-position: center;*/
    /*background-size: cover;*/
    background-repeat: no-repeat;
    width: 1200px;
    height: 732px;
    /*height: 100%;*/
    /*border: solid thin red;*/
}
.index h1 {
	font-size: 42pt; 
    font-weight: bold; 
	padding-top: 50px;
	/*text-shadow: 0 0 5px #da5e22;*/
	color: #0000EE;
}
.index h2 {
	font-size: 32pt; font-weight: bold; 
	padding-top: 20px;
	/* text-shadow: 0 0 5px #da5e22; */
	color: #0000EE;
}
.index h2.yr {
	font-size: 42pt; 
	padding-top: 50px;
}
.index .stats {
	font-size: 18pt; /* font-weight: bold; */
	text-align: left; 
	line-height: 1.2em;
    padding-left: 25px;
    padding-right: 25px;
	/*margin-top: 300px; 
	padding-top: 20px; */
	/* padding-bottom: 25px; */
	/*height: 135px;*/
	color: #da5e22;
	background: rgba(255, 255, 255, 0.5);
	text-shadow: 1px 1px 0 #333366;
	text-shadow: 1px -1px 0 #333366;
	text-shadow: -1px 1px 0 #333366;
	text-shadow: -1px -1px 0 #333366;
	border-top: solid 3px #da5e22;
}



.testo {
    line-height: 1.5em;
    text-align: justify;
    padding-top: 0.0em; padding-bottom: 0.5em;
    font-size: 12pt;
    margin-bottom: 10px;
}
.testo h2 {
    margin-top: 15px;
}
.testo p {
    margin-left: 50px;
    margin-bottom: 0px;
}
.testo a {
    color: inherit;
    text-decoration-style: dotted;
}
.testo ul {
    margin-bottom: 0px;
    margin-top: 0px;
    margin-left: 50px;
}
.testo ul ul {
    margin-left: 25px;
}
.testo li {
    margin-top: 0px;
    margin-bottom: 3px; 
    /*margin-left: 30px;*/
    list-style-position: outside;
    list-style-type: disc;
    line-height: 1.5em;
    text-align: justify;
    /*padding-top: 0.5em;*/
    font-size: 12pt;
}


.biblio li {
    list-style-type: disc;
    list-style-position: outside;
    margin-top: 5px;
    margin-left: 10px;
    font-size: 8pt;
}
.referencelist li {
    list-style-type: disc;
    list-style-position: outside;
    margin-top: 5px;
    margin-left: 10px;
    font-size: 10pt;
}

/* Scrollable DIV verticale per il testo
 * ----------------------------------------------------------------------------
 */
.scrollableText {
    overflow-y: scroll; /* make scrollable if heighter than height  */
    height: 100%;                    /* gives an initial height to the table */
    /* border-top: solid 2px #333366; */
    /* border-bottom: solid 2px #333366; */
    margin-top: 0px; 
    font-size: 10pt;
    text-align: justify;
    text-justify: inter-word;
    padding-right: 15px;
}
.scrollableText h3 {
    color: #333366;
    font-size: 12pt;
    font-weight: bold;
    padding: 0px;
    margin: 0px;
}


/* Scrollable DIV in orizzontale. Contenitore per foto.
 * ----------------------------------------------------------------------------
 */
.scrollableFoto {
    background-color: white;
    overflow: auto;
    white-space: nowrap;
}
.scrollableFoto img {
    height: 200px;
    border: solid 5px black;
    margin-right: 10px;
}
.scrollableFoto img.hover {
    border: solid 5px #da5e22;
}

.scrollableTable {
    overflow-y: scroll; /* make the table scrollable if heighter than height  */
    height: 150px;                    /* gives an initial height to the table */
    font-size: 8pt;
    border-top: solid 2px #333366;
    border-bottom: solid 2px #333366;
    margin-top: 0px; 
}
.scrollableTable table {
    border-collapse: collapse;
    /* width: 100%; NON VA USATO !!!!*/
}
.scrollableTable thead th {
    cursor: pointer;
    position: sticky;                          /* make the table heads sticky */
    top: 0px; /* table head will be placed from the top of the table and sticks to it */
    /* width: 100%; NON VA USATO !!!*/
    color: #333366;
    background-color: #e6e6e6; /*#ffffff;*/
    font-weight: bold;
    white-space: nowrap;
}
.scrollableTable thead tr {
    border-bottom: solid 2px #999999;
    /* background-color: green; */
}
.scrollableTable tbody tr {
    cursor: pointer;
}
.scrollableTable tbody tr.unselected {
    color: #000000;
    background-color: #ffffff;
}
.scrollableTable tbody tr.unselected:hover {
    color: #000000;
    background-color: #FFFF70;
}
.scrollableTable tbody tr.hover {
    /* usato dalla mappa per selezionare la riga */
    color: #000000;
    background-color: #FFFF70;
}
.scrollableTable tbody tr.selected {
    color: #ffffff;
    background-color: #da5e22;
}
.scrollableTable th, td {
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 3px;
    padding-bottom: 3px;
}
.scrollableTable h3, ul {
    padding-left: 10px;
    margin-top: 10px;
}
.scrollableTable li {
    padding-bottom: 5px;
}


.cmte1Table table {
    border-collapse: collapse;
    margin-top: 5px;
}
.cmte1Table thead th {
    position: sticky;                          /* make the table heads sticky */
    top: 0px; /* table head will be placed from the top of the table and sticks to it */
    color: #333366;
    background-color: #e6e6e6; /*#ffffff;*/
    font-weight: bold;
    white-space: nowrap;
}
.cmte1Table thead tr {
    border-top: solid 2px #999999;
    border-bottom: solid 2px #999999;
}
.cmte1Table th, td {
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 3px;
    padding-bottom: 3px;
}

/* formattazione colonne delle tabelle
 * ----------------------------------------------------------------------------
 */
td.changed {
    color: red;
    font-weight: bold;
}
th.data, td.data {
    width: auto;
    text-align: right;
}
th.orario, td.orario {
    width: auto;
    text-align: center;
}
th.epicarea, td.epicarea, 
th.localita, td.localita {
    width: 100%;
    text-align: left;
    overflow: hidden; 
    text-overflow: ellipsis;
    white-space: nowrap;
}
th.faglia, td.faglia,
th.istat, td.istat {
    width: 100%;
    text-align: left;
    overflow: hidden; 
    text-overflow: ellipsis;
    white-space: nowrap;
}
th.degree, td.degree {
    width: auto;
    text-align: center;
    white-space: nowrap;
}
th.number, td.number {
    width: auto;
    text-align: right;
}
th.intensity, td.intensity {
    width: auto;
    text-align: center;
}
th.mm, td.mm {
    width: auto;
    text-align: right;
}
th.ml, td.ml{
    width: auto;
    text-align: right;
    padding-right: 0px;
}
th.quality, td.quality {
    width: auto;
    text-align: center;
}
th.icon, td.icon {
    width: auto;
    text-align: center;
}
th.suff, td.suff {
    width: auto;
    text-align: left;
    padding-left: 0px;
}


.request form {
    /*font-size: 12 pt;*/
}
.request label {
    font-weight: bold;
}
.request input {
    border: solid 1px grey;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 1px;
    padding-bottom: 1px;
    background-color: white;
}
.request .grid {
    display: grid; 
    grid-template-columns: max-content 1fr; 
    gap: 10px; 
    margin-bottom: 10px;
}
.request .error {
    color: red;
    font-weight: bold;
    font-size: 10pt;
}
.output {
    border: solid thin black; 
    overflow-y: scroll; 
    padding: 5px;
}


/* impostazioni mappa */
.map {
    height: 100%;
    background-color: #99cccc;
    border: solid thin black;
    z-index: 0;
}

.map .logo {
    background-color: rgba(255,255,255,0.5);
    }
.map .logo img {
    float: left;
    width: 32px;
    margin-right: 5px;
    vertical-align: middle;
}
.map .logo div {
    float: right;
    font-size: 10pt;
    line-height: 1;
}
.map div.tooltip {
    text-align: center;
}
.map .info {
    padding: 6px 8px;
    font: 14px/16px Arial, Helvetica, sans-serif;
    background: white;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 5px;
}
.map .legend {
    line-height: 18px;
    color: #555;
}
.map .legend i.line {
    width: 36px;
    height: 4px;
    margin-top: 7px;
    float: left;
    margin-right: 8px;
    opacity: 0.7;
}
.map .legend i.box {
    width: 12px;
    height:12px;
    float: left;
    margin-right: 8px;
    opacity: 0.7;
}

.chart {
    margin-top: 0px;
}
