/*
 * index.css
 *
 * Copyright 2018 salvi <stefano@salvi.mn.it>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301, USA.
 */

body {
  margin: 0;
  padding: 0;
}

h1 {
  text-align: center;
}

.bottone {
  border: 2px solid #404040;
  border-radius: 5px;
  padding: 0.3em;
  background-color: #eeeeee;
  font-weight: bold;
  text-decoration: none;
  color: black;
}

.bottone:hover {
  background-color: #cccccc;
}

ul li {
  line-height: 2em;
  margin: 3px 0;
}

#panel_container {
  width: 100%;
  text-align: center;
}

#panel_dialog {
  display: inline-block;
  padding: 20px;
  text-align: center;
  border: 2px solid #404040;
  border-radius: 10px;
}

#error_dialog {
  display: inline-block;
  padding: 20px;
  font-size: 2em;
  font-weight: bold;
  text-align: center;
  border: 2px solid #404040;
  border-radius: 10px;
  background-color: #ffeeee;
  color: #ff0000;
}

#ritorna {
  text-align: center;
}

#ritorna-sorgente {
  display: inline-block;
  background: white;
}

#ritorna-container {
  position: absolute;
  width: 100%;
  text-align: center;
  z-index: 100;
}

#code_container {
  position: absolute;
  left: 2em;
  right: 2em;
  top: 7.2em;
  bottom: 2em;
  overflow: auto;
  border: 1px solid black;
}

#numbers_panel {
  float: left;
  width: 1,5em;
  text-align: right;
  padding: 0 5px;
  border-right: 1px solid #202020;
  background-color: #f0f0ff;
}

#code_panel {
  margin-left: 2em;
  padding: 0 5px;
}

/* Stili Slide */
/* Struttura generale */
#slide_content, #slide_old_content {
  position: absolute;
  background-color: #c6b8c9;
  top: 0;
  bottom : 0;
  left: 0;
  right: 0;
}

.showSlide {
  -webkit-transition: opacity 2s;
  -ms-transition: opacity 2s;
  transition: opacity 2s;
}

#t_base {
  display: table;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 99%;
}

#t_banner {
  display: table-row;
}

#t_banner_cell {
  display: table-cell;
  height: 132px;
}

.t_centro {
  display: table-row;
}

#t_centro_menu {
  vertical-align: bottom;
  display: table-cell;
}

#t_centro_contenuto {
  display: table-cell;
  vertical-align: middle;
}

#t_centro_contenuto ul li {
  line-height: 1em;
}

#t_centro_source {
  display: table-cell;
}

#t_source {
  padding-left: 25px;
  font-weight: bold;
  font-size: 150%;
  font-family: mono;
}

#t_centro_links {
  padding-left: 30px;
  display: table-cell;
  vertical-align: middle;
}

#t_centro_dialog {
  display: table-cell;
  vertical-align: middle;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  text-align: center;
}

#t_piede {
  display: table-row;
}

#t_piede_cell {
  display: table-cell;
  height: 5em;
}
/* Fine struttura generale */

/* Attributi per la mappa (inutili, invero) */
#mymap {
  font-size: 0px;
  line-height: 0;
}

/* Stitli per banner */
#logo {
  float: right;
  padding-right: 20px;
  padding-top: 4px;
  padding-bottom: 2px;
}

#title {  /* Centrato in veritcale */
  height: 98px;
  /* width:99%; */
  background: url("grafica/angoloinf.png");
  background-repeat: no-repeat;
  background-position: left bottom;
}

#middle_title {
  display: table-cell; /*     Non IE */
  vertical-align: middle;
}

#center_title {
  text-align: center;
  line-height: 100%;
  padding-left: 18px;
}

.bordodestro {
  margin: 0;
  padding: 0;
  line-height: 0;
  background: url("grafica/destro.png");
  background-repeat: repeat-y;
  background-position: right;
}

#righttop {
  float: right;
  width: 32px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  background: url("grafica/angolodestro.png");
  background-repeat: no-repeat;
  background-position: top;
}

.top {
  height: 16px;
  margin: 0;
  padding: 0;
  background: url("grafica/superiore.png");
  background-repeat: repeat-x;
  background-position: top;
}

.lefttop {
  width: 17px;
  height: 16px;
  margin: 0;
  padding: 0;
  background: url("grafica/angolosup.png");
  background-repeat: no-repeat;
  background-position: top;
}

#angolobasso {
  border-bottom: 1px solid blue;
  margin: 0;
  background: url("grafica/angoloinf.png");
  background-repeat: no-repeat;
  background-position: left bottom;
}
/* Fine stili per banner */

.clear {
  display: compact;
  margin: 0;
  padding: 0;
  border: 0;
  clear: both;
}

img {    /* Tutte le immagini non devono avere bordo */
  border: 0;
  margin: 0;
  line-height: 0;
  padding: 0;
}

.closure {
  position: relative;
  top: -16px;
  left: 0px;
  height: 16px;
  width: 17px;
  background: url("grafica/angoloinf.png");
  background-repeat: repeat-y;
}

#centro_pannello {
  display: table;    /* Non IE */
  margin-right: auto;
  margin-left: auto;
}

#message {
  text-align: center;
  font-size: 250%;
  color: rgb(64, 0, 0);
}

#contenuto_pannello {
  display: table-cell;
  padding: 10px;
  text-align: center;
  border: 2px outset;
}

#size_1 {
  font-size: 100%;
}

#size_2 {
  font-size: 150%;
}
#size_3 {
  font-size: 200%;
}
#size_4 {
  font-size: 250%;
}

#blocca_altezza {  /* Blocca il piede in fondo al  video */
  float: left;
  margin-top: -142px;
  margin-bottom: -1em;
  width: 17px;
  height: 99%;
}

#piede {
  clear: both;
  width: 100%;
  text-align: center;
  font-family: sans-serif;
  font-size: 70%;
}

td.opzione {
  width: 15px;
  vertical-align: top;
}

#navigazione {
  clear: both;
  width: 100%;
  text-align: center;
}

h1 {
  margin: 0;
  line-height: 100%;
  text-align: center;
  font-size: 3em;
}

h2 {
  text-align: center;
  font-size: 2em;
}

.center {
  text-align: center;
}

table.menutable {
  margin-left: auto;
  margin-right: auto;
  width: 98%;
  border: 1px outset;
}

td.menutable, th.menutable {
  width: 50%;
  border: 1px inset;
}

td {
  text-align: left;
}

.listitem {
  margin-left: 6px;
  margin-top: 3px;
  margin-bottom: 3px;
}

.bold { font-weight: bolder; }
.italics {  font-style: italic; }
.code {  font-family: monospace; }
.underline { text-decoration: underline; }

#mnsq_w3c {
  text-align: center;
}

#prev {
 position: absolute;
 left: 22px;
}

#next {
 position: absolute;
 right: 5px;
}

#slideimage {
  float: right;
  padding: 10px;
}

.slideimage {
  float: right;
  padding: 10px;
}

/* Stili per l'evidenziazione sintattica */
.comment {
  font-style: italic;
  color: grey;
}

.keyword {
  color: blue;
}
/* Fine stili slide */
/* Stili visualizzatore sorgenti */
#source_shadow {
  position: absolute;
  top: 0;
  bottom: 0;
  left:0;
  right: 0;
  font-size: 180%;
  max-height: 1em;
  max-width: 1em;
  background-color: rgba(0,0,0,0.5);
  transition-property: max-width, max-height;
  transition-duration: 1s;
}

#source_panel {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 1em;
  max-height: 1em;
  bottom: 0;
  right: 0;
  background: white;
  overflow: none;
  -webkit-transition-property: left, right, top, bottom, max-width, max-height;
  -webkit-transition-duration: 1s;
  -ms-transition-property: left, right, top, bottom, max-width, max-height;
  -ms-transition-duration: 1s;
  transition-property: left, right, top, bottom, max-width, max-height;
  transition-duration: 1s;
}

#source_switch {
  float: left;
  transform: rotate(0deg);
  -webkit-transition: -webkit-transform 1s;
  -ms-transition: -ms-transform 1s;
  transition: transform 1s;
}

#source_current {
  font-weight: bold;
}

#source_menu {
  position: absolute;
  left: 1em;
  top: 0;
  display: inline-block;
  margin-left: 5px;
  max-height: 1.2em;
  overflow: hidden;
  -webkit-transition: max-height 1s; /* Safari */
  transition: max-height 1s;
  visibility: hidden;
}

#source_menu:hover {
  max-height: 30em;
  z-index: 100;
}

#source_list{
  margin-top: 0;
  margin-bottom: 0;
  border: 1px solid black;
  padding: 0;
  background-color: white;
}

#source_list li{
  margin: 0;
  padding: 0 3px;
  line-height: 1.5em;
  background-color: #eeeeee;
  list-style-type: none;
}

#source_list li:hover{
  background-color: #808080;
  color: white;
}

#source_list li.source_file_item_selected{
  background-color: white;
}

#source_list li.source_file_item_selected:hover {
  background-color: #808080;
}

.source_content_panel {
  position: absolute;
  top: 1.2em;
  left: .5em;
  right: .5em;
  bottom: .5em;
  overflow: auto;
  visibility: hidden;
  border: 1px solid black;
}
/* Fine stili Visualizzatore Sorgente */
