/***************** FONT ICON *****************/
.collbarclosed,
.collbaropened,
.collbaropenedsmall,
.txt_prev:before,
.txt_next:after,
.simple_btn a,
.breadcrumb_sep,
#toggle_on,
#toggle_off {
	font-family: 'Material Design Icons';
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}


/***************** SCREEN / PRINT *****************/
.maintitle {
    padding-top: 0 !important;
    font-size: 220% !important;
    font-weight: 400 !important;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
    background-color: white !important;
	transition: height 0.5s, font-size 0.4s, margin-top 0.4s, margin-bottom 0.4s;
}

.helplink {
    color: black !important;
    text-decoration: none !important;
    font-weight:300 !important;
    pointer-events: none !important;
}

.img_container, .audio_container, .table_container {
    margin-left: 0;
    margin-right: 0;
    transform: none;
    width: auto;
}

.img_container img, .audio_container audio, .table_container table {
    margin: 0;
}

.katex-display > .katex {
    text-align: left !important;
}

@media screen {
    .frame_idx {
		border: 0px;
		position: fixed;
		top: 50px;
		height: 100%;
		margin: 0px 0px 0px 10px;
	}
		
    .frame_cnt {
		border: 0px;
		position: fixed;
		top: 50px;
		height: 100%;
	}
    
	.cntpage {
		margin-left: 35px;
	}
	
	.frame_body {
		margin: 0px;
	}
	
	.cover {
		margin-bottom: 20px;
	}
}

@media print {
    .frame_idx {
        display: none !important;
        width:0 !important;
        height: 0 !important;
        border: none !important;
    }
    
    .frame_cnt {
        border:0 !important;
        position: absolute !important;
	    left: 0 !important;
        width:100% !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 100% !important;
        overflow: visible !important;
    }
    
    .prev_next_container_up {
        height: 0 !important;
        display: none !important;
    }
    
	#progress_header,
	#gototopicon,
	#collapsebar,
	#dragbar {
		display: none !important;
	}
	
	.maintitle,
	.cover,
	.cover_singlepage,
	.appendix {
		page-break-before: avoid !important;
	}
	
	.maintitle {
		margin-top: 0;
	}
	
    #div_header {
        position: static !important;
        margin-top: 0 !important;
        box-shadow: none !important;
		top: auto !important;
		height: auto !important;
    }
}


/***************** SPLITTER *****************/
#shield {
	display: none;
	top: 0;
	left: 0;
	width: 100%;
	position: fixed;
	height: 100%;
	z-index: 900;
}

#shield.withopacity {
    background-color: black;
	opacity: 0.2;
}

#collapsebar {
	display: fixed;
	display: inline-block;
	z-index: 110;
}

.collbaropened {
	margin-left: -14px;
	width: 18px;
	border-radius: 12px;
    padding-right: 8px;
}

.collbaropenedsmall {
	margin-left: -15px;
	width: 20px;
}

.collbarclosed:before {
	content: "\f142"; /*mdi-chevron-right*/
	margin-left: -6px;
}

.collbarclosed, .collbaropenedsmall {
	background-color: white;	
	border-radius: 40px;
	-webkit-border-radius: 40px;
	-moz-border-radius: 40px;
	box-shadow: 0px -2px 5px 0px rgba(0,0,0,0.4);
	padding-top: 37px;
	padding-bottom: 37px;
	margin-top: -37px;
}

.collbarclosed {
	margin-left: 3px;
	width: 20px;
}

.collbaropened, .collbaropenedsmall, .collbarclosed {
	font-size: 32px;
}

.collbaropened:before, .collbaropenedsmall:before {
	content: "\f141"; /*mdi-chevron-left*/
	margin-left: -6px;
}

.collbaropened:before {
	content: "\f141"; /*mdi-chevron-left*/
	margin-left: -3px;
}


/***************** HEADER/PREV/NEXT *****************/
.prev_next_container_up {
  height: 50px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  border:0;
  border-bottom: 1px solid #DEDEDE;
  padding-left: 0;
  padding-right: 0;
  z-index: 150;
}

table.a_i {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
    table-layout: fixed;
    white-space: nowrap;
    text-align: center;
	vertical-align: middle;
	color: #FFFFFF;
	height: 50px;
	line-height: 36px;
	font-weight: 300;
	top:0;
	margin:0;
}

table.a_i tbody td {
    padding:0;
    margin:0;
}

table.a_i .prev_btn, table.a_i .next_btn {
    width: 80px;
}

table.a_i .simple_btn {
    width: 36px;
}

.head_btn a:hover {
  color: white;
  line-height: 36px;
  border-radius: 36px;
  -webkit-border-radius: 36px;
  -moz-border-radius: 36px;
}

.head_btn a:before {
	color: white;
	line-height: 36px;
	vertical-align: middle;
}

.simple_btn a:before {
	font-size: 19px;
	font-weight: normal;
}

.voice_btn a:before {
	content: "\F5CB"; /*mdi-voice*/
}

.clip_btn a:before {
	content: "\f3e2"; /*mdi-paperclip*/
}

.print_btn a:before {
	content: "\f42a"; /*mdi-printer*/ 
}

.head_btn.running a:before {
	color: #F73F3F !important;
}

table.a_i .filler {
	width: 10px;
}

.filler div {
	height: 50px;
}

.head_btn a, .cur_title1 a, .filler div {
  text-decoration: none;
  color: white;
  display: block;
  font-size: 95%;
  z-index: 150;
  position: relative;
}

.cur_title1 a {
	font-weight: 400;
}

.cur_title1 a:active {
  background-color: transparent;
}


.breadcrumb_sep:before {
	content: "\f142"; /*mdi-chevron-right*/
}

.txt_prev:before {
	content: "\f141"; /*mdi-chevron-left*/
	margin-left: -10px;
}

.txt_next:after {
	content: "\f142"; /*mdi-chevron-right*/
	margin-right: -20px;
}

.txt_prev:before, .txt_next:after {
	font-size: 28px;
	font-weight: bold;
	line-height: 36px;
	vertical-align: middle;
}

.txt_prev:after, .txt_next:before {
    line-height: 36px;
}

#div_header {
    position: fixed;
    margin-left: -20px;
    padding-left: 20px;
    top: 0px;
    width: 100%;
    background: white;
    height: 114px;
    z-index: 9;
	transition: height 0.5s;
}

#div_header.scrolled {
	height: auto !important;
}

#div_header.scrolled .maintitle {
	font-size: 170% !important;
	margin-top: 10px !important;
	margin-bottom: 10px !important;
}

#progress_header {
	height: 3px;
	position: absolute;
	bottom: -2px;
	margin-left: -40px;
    -webkit-transition: width 0.3s ease;
    transition: width 0.3s ease;
}

.cnt_subpage #progress_header {
    display: none;
}

#gototopicon {
	position: fixed;
    bottom: 10px;
    right: 10px;
    display: none;
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    font-size: 50px;
    opacity: 0.1;
    cursor: pointer;
}
#gototopicon:hover {
	opacity: 0.5;
}

#gototopicon:before {
	content: "\F05F"; /*mdi-arrow-up-bold-circle*/
}

.cnt_subpage {
	margin-top: 60px;
}

.cnt_subpage #div_header {
    position: relative;
    background: white;
    height: auto;
	z-index: 8;
}

.cnt_subpage .empty_page {
    display: none;
}

#div_header.ztube_header {
	height: 98px;
}

.header_shadow {
    box-shadow: 10px 0px 10px 0px rgba(0,0,0,0.2);
}

.cnt_subpage .header_shadow {
	box-shadow: none;
}

.header_title {
    position: fixed;
    top: 0px;
    left: 80px;
    width: 230px;
    height: 50px;
    vertical-align: middle;
    z-index: 10;
}

.header_title a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 50px;
    font-size: 95%;
}

.header_title a:active {
    text-decoration: none;
    background-color: transparent;
}

.index_logo {
  height:50px;
  position:fixed;
  top:0px;
  box-shadow:10px 4px 2px -2px rgba(0,0,0,0.2);
  z-index: 10;
}

.index_logo a img{
  position:absolute;
  left:10px;
  top:10px;
  border:0px;
  border-radius:40px;
 -webkit-border-radius: 40px;
 -moz-border-radius: 40px;
  box-shadow:1px 1px 5px 0px rgba(0,0,0,0.4);
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

::-webkit-scrollbar-thumb {
    background: #ADADAD; 
}

::-webkit-scrollbar-thumb:hover {
    background: #555; 
}


/***************** POPUP VOCI DI GLOSSARIO *****************/
.glosslink {
    position: relative;
}

.glosslayer iframe {
    background-color: white;
    border: 0;
    width: 400px;
    height: 250px;
}

.gloss_body .cntpage {
    margin-left: 5px;
    margin-top: 50px;
    margin-right: 5px;
    margin-bottom: 10px;
}

.gloss_body p {
	text-align:left !important;
}

dd {
	text-align:left !important;
}

.gloss_body #div_header {
    position: fixed;
    text-align: left;
    padding-top: 3px;
    top: 0;
    width: 100%;
    height: 30px;
    z-index: 20;
    margin-left: -5px;
    padding-left: 5px;
    color: hsl(209, 100%, 39%);
}

.gloss_body .maintitle {
    padding-top: 0 !important;
    font-size: 170% !important;
    font-weight: 400 !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}


/*****************  PERMALINK ****************/
.maintitle:hover .permalink,
.pagetitle:hover .permalink,
.quiztitle:hover .permalink {
	opacity: 1;
}

.permalink {
    position: absolute;
    margin-left: 0.3em;
    opacity: 0;
    transition: opacity .3s;
    text-decoration: none !important;
	cursor: pointer;
	font-size: 90%;
}

.permalink:hover {
	opacity: 1;
}

.permalink:after {
	content: "\f339"; /*mdi-link-variant*/
	font-family: 'Material Design Icons';
}


/*****************  MAPPE ****************/
.mapArea, .spotArea {
    position: absolute;
}


/**************  PAGINE VUOTE *************/
.empty_page {
    position: fixed;
    top: 75px;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
}

.txt_empty_page {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    opacity: 0.5;
    
    background-image: url(logo_top.png);
    background-repeat: no-repeat;
    background-size: 100px;
    background-position: top center;
    
    padding-top: 100px;
    font-family: 'MonospaceFont', monospace;
    font-size: 40px;
    width: 550px;
    text-align: center;
}

.txt_empty_page::before {
    opacity: 0.2;
}


/***********  DIMENSIONE RIDOTTA SCHERMO **********/
@media screen and (max-width: 850px) {
	table.a_i .head_btn {
		width: 36px !important;
		font-size: 120% !important;
	}
	
	.txt_prev:after {content:" " !important;}
	.txt_prev:before {margin-left: 0 !important;}
	.txt_next:before {content:" " !important;}
	.txt_next:after {margin-right: 0 !important;}
}

@media screen and (max-width: 600px) {
	body {
		font-size: 85% !important;
	}
	
	.index_logo, .left_header, table.a_i .filler {
		display: none;
	}
	
	.a_i {
		margin-top: 10px !important;
		line-height: 28px !important;
	}
	
	.header_title a {
        line-height: 28px !important;
        display: block;
        white-space: nowrap;
	}
	
	.header_title {
		width: 100% !important;
		left: 0;
		text-align: center;
	}
	
	.cur_title1 {
		position: absolute;
		top: 20px;
		left: 50%;
		transform: translate(-50%, 0%);
		-ms-transform: translate(-50%, 0%);
		-webkit-transform: translate(-50%, 0%);
		-moz-transform: translate(-50%, 0%);
		-o-transform: translate(-50%, 0%);
	}
	
	.head_btn a:hover {
		line-height: 28px;
		border-radius: 28px;
		-webkit-border-radius: 28px;
		-moz-border-radius: 28px;
	}
	
	table.a_i .simple_btn {
		width: 28px;
	}
	
	.simple_btn a:before,
	.txt_prev:before, .txt_next:after,
	.txt_prev:after, .txt_next:before {
		line-height: 28px;
	}
}


/***********  ANIMAZIONE CARICAMENTO INIZIALE **********/
#entity_loading {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 999;
}

#entity_loading::after, #entity_loading::before {
	content: '';
	border: 14px solid #F3F3F3;
	border-radius: 50%;
	border-top-style: solid;
	border-top-width: 14px;
	display: block;
	position: absolute;
	opacity: 0;
}

#entity_loading::after {
  width: 80px;
  height: 80px;
  animation: spin 1500ms linear infinite, 300ms delayview;
  animation-fill-mode: forwards;
  left: calc( 50% - 52px);
  top: calc( 50% - 52px);
}

#entity_loading::before {
  width: 40px;
  height: 40px;
  animation: spin2 800ms linear infinite, 300ms delayview;
  animation-fill-mode: forwards;
  left: calc( 50% - 32px);
  top: calc( 50% - 32px);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin2 {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes delayview {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
