#monitor {
	height: 550px !important;
	position: relative;
}

.coalizioniContainer {
	height: 100%;
    margin: auto;
    width: 90%;
}

.coalizione {
	height: 100%;
	display: inline-block;
	position: relative;
	padding-bottom: 10px;
}

.coalizione > span {
	position: absolute;
    top: 30%;
    width: 100%;
    text-align: center;
    font-size: 10px;
}

.lista {
	display: inline-block;
	text-align: center !important;
	height: 100%;
	width: auto;
	position: relative;
	bottom: -60%;
	opacity: 0;
	box-shadow: 2px -1px 2px 1px rgba(0,0,102,0.16), 0px 0px 2px 0px rgba(0,0,102,0.12);
	vertical-align: bottom;
}

.lista span {
	position: absolute;
    bottom: -25px;
    left: 5px;
    font-size: 13px !important;
}

.lista img {
	width: 50px;
	height: 50px;
	position: relative;
	top: -75px;
}

.lista.cand img {
	width: 40px;
	height: 50px;
	position: relative;
	top: -75px;
}

#soglia1, #soglia3, #soglia4, #soglia5 {
	height: 2px;
    background-color: #ef3c3c;
    width: 100%;
    position: absolute;
}

#soglia3, #soglia4, #soglia5{
	bottom: calc(40px + 3%);
}

.camera ~ #soglia3 {
	bottom: calc(56px + 3%);
}

.senato ~ #soglia3 {
	bottom: calc(40px + 3%)
}

#monitor-hr.box > .sottotitolo {
	border-bottom: 1px solid #eeeeee;
	margin: 0 !important;
	padding: 15px;
}

#monitor-hr.box > .sottotitolo > div {
	overflow: auto;
	margin: auto;
}

#legenda {
	position: absolute !important;
	font-size: 15px;
	padding: 10px;
	z-index: 9999;
    right: 20px;
    top: 130px;
}

#legenda > div > div{
	margin-right: 10px;
	width: 15px;
    height: 2px;
    display: inline-block;
    vertical-align: middle;
}

#legenda > div.legenda1 > div {
	background: #f2ff00;
}
#legenda > div.legenda3 > div {
	 background: #ef3c3c;
}

#legenda > div.legenda4 > div  {
	 background: #ef3c3c;
}

#legendaTitle{
	background: #ef3c3c;	
	margin-right: 10px;
	width: 15px;
    height: 2px;
    display: inline-block;
    vertical-align: middle;
}

div[role=group] {
	margin-right: 15px;
}

.listaEmpty span:not(.oi) {
	font-size: 15px !important;
}

/*** monitor orizzontale ***/

#monitor-hr {
	margin: auto;
	height: auto;
}

#monitor-hr .coalizioniContainer {
	margin: 0 40px;
}

#monitor-hr .coalizione {
	display: block;
	position: static;
	margin: 25px;
}

#monitor-hr .lista {
	display: block;
	margin: 10px;
	text-align: left !important;
}

#monitor-hr .lista img {
	top: 0;
	left: calc(100% + 55px);
}

#monitor-hr .lista span {
	bottom: 25%;
    left: -50px;
}

#monitor-hr .coalizione > span {
	position: relative;
	left: 50%;
}

#monitor-hr #soglia1 {
	width: 2px;
    background-color: #f2ff00;
/*     height: 95%; */
    position: absolute;
    bottom: 0px !important;
	left: calc(73px + 2%);
}

#monitor-hr #soglia3 {
	width: 2px;
    background-color: #ef3c3c;
    position: absolute;
    bottom: 0px !important;
	left: calc(46px + 3%);
}

#monitor-hr #soglia4 {
	width: 2px;
    background-color: #ef3c3c;
    position: absolute;
    bottom: 0px !important;
	left: calc(46px + 4%)
}

#monitor-hr #soglia5 {
	width: 2px;
    background-color: #ef3c3c;
    height: 74%;
    position: absolute;
    bottom: 0px !important;
	left: calc(46px + 5%)
}

@media (max-width: 600px) {
	#legenda {
		display: none;
	}
	
	#monitor-hr .lista img {
		left: calc(100% + 30px);
	}
}

@media (max-width: 700px) {	
	#legenda > div > span > span {
		display: none;
	}
	
	#legenda > div > span {
		font-size: 10px;
	}
	
	#legenda > div > div {
		width: 10px;
	}
}

#confronti #refreshButton, #stime #refreshButton{
    border-color: #fff;
    margin-right:  5px;
}

#confronti #jsonButton, #stime #jsonButton{
    border-color: #fff;
    margin-right:  20px;
}

/* loading */

#backdrop {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.25);
	z-index: 9999;
}

#loading {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.4);
}

.loader {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3b3b3b; /* Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    
    position: relative;
	top: 50%;
	margin: auto;
}


@media (max-width: 394px) {
  .header {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center;
  }

  .header h4 {
    margin-bottom: 10px;
  }

  .header .row {
    justify-content: center;
  }

  .d-flex{
  	justify-content: center;
  	padding-bottom: 2px;
  }
}

.colonnaTotaleRiparto{
	border-style: solid;
    border-width: 2px 0px 0px 0px;
    border-color: black;
    height: 65px;
}