#monitor {
	height: 550px !important;
	position: relative;
}

.coalizioniContainer {
    height: 100%;
    margin: auto;
    width: 100%;
    padding-left: 70px;
    margin-top: 40px;
}

.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: 15px !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 {
    font-size: 15px;
    padding: 10px;
    z-index: 9999;
    position: absolute;
    right: 12px;
}

#legenda > div > div{
    margin-right: 10px;
    width: 22px;
    height: 3px;
    display: inline-block;
    vertical-align: middle;
}

#legenda > div.legenda1 > div {
	background: #cb7055;
}
#legenda > div.legenda3 > div {
	 background: #3c5e94;
}

#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;
}

.btn:not(#refreshButton) {
	box-shadow: none !important;
	background-color: #e1e8e8 !important;
    color: black !important;
    border: none;
}

.btn.active:not(#refreshButton) {
	font-weight: bold;
    border: 2px solid black !important;
}

#refreshButton {
	margin-right: 20px;
}

.listaEmpty span:not(.oi) {
	font-size: 15px !important;
}

/*** monitor orizzontale ***/

#monitor-hr {
	margin: auto;
	height: auto;
}

#monitor-hr .coalizione {
	display: block;
	position: static;
	margin: 25px;
}

#monitor-hr .lista {
    display: block;
    margin: 10px;
    text-align: left !important;
    margin-left: 0;
}

#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 > .header > div.row > button {
	margin-right: 5px;
	color: #fff;
    border-color: #fff;
}

#monitor-hr #soglia1 {
    width: 2px;
    background-color: #cb7055;
    height: 97%;
    position: absolute;
    bottom: -75px !important;
    left: calc(70px + 2.5%);
    box-shadow: 0 0 3px #fff, 0 0 2px #fff;
}

#monitor-hr #soglia3 {
    width: 2px;
    background-color: #3c5e94;
    height: 97%;
    position: absolute;
    bottom: -75px !important;
    left: calc(65px + 7.5%);
    box-shadow: 0 0 3px #fff, 0 0 2px #fff;
}

#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:  400px){
	#monitor-hr #soglia1 {
    	bottom: -100px !important;
	}

	#monitor-hr #soglia3 {
	    bottom: -100px !important;
	}
}

@media (max-width: 600px) {
	#legenda {
		display: block;
   	    top: 170px !important;
	}
	
	#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;
	}
}

div#soglia1:before {
    content: "1%";
    position: absolute;
    margin-top: -20px;
    margin-left: -9px;
    color: #cb7055;
    font-weight: bold;
}
div#soglia3:before {
    content: "3%";
    position: absolute;
    margin-top: -20px;
    margin-left: -9px;
    color: #3c5e94;
    font-weight: bold;
}

#monitor-hr .lista img {
    top: 0;
    left: -60px;
}
#monitor-hr .lista span {
    bottom: 25%;
    font-weight: bold;
    left: calc(100% + 10px);
    color: #656588;
}
