html, body { height: 100%; }

html, body, div, p, img {
	margin: 0;
	border: 0;
	padding: 0;
}

body {
	background: white url(imgs/bg.png) center top;
	font: 12pt 'Ubuntu', cursive;
	line-height: 150%;
}
input, select, button {
	font: inherit;
}
h1, h2 { margin-top: 24pt; margin-bottom: 12pt; }
h3 { margin-top: 12pt; margin-bottom: 6pt; }
a, a:visited {
	color: #006400;
	text-decoration: none;
}
a:hover, a:active {
	color: #006400;
	text-decoration: underline;
}
.centerBlock {
	min-width: 480px;
	max-width: 900px;
	margin: 0 auto;
	padding: 0 6pt;
}

.big { font-size: 120%; }
.center { text-align: center; }
.centerDiv { margin: 0 auto; }
.fleft { float: left; }
.fright { float: right; }
.clear { clear: both; }

.logo-text{
	font: 18pt 'Fredericka the Great', cursive;
	text-decoration: none;
}

#header {
	background: white url(imgs/headerBg.png) center -20px;
	margin: 20px 0;
	box-shadow: 0 3px 15px 0 rgba(0, 0, 0, 0.5);
}
#header h1 {
	font: 48pt 'Fredericka the Great', cursive;
	text-align: center;
	padding: 12pt 0 6pt 0;
	white-space: nowrap;
}
#header .pencil {
	vertical-align: baseline;
	height: 1em;
	width: auto;
}

.menu.main {
	background: white url(imgs/headerBg.png) center -20px;
	margin: 20px 0;
	box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.35);
}

.menu a, .menu b, #all b {
	display: inline-block;
	padding: 5px 10px;
	margin: 10px 20px 10px 0px;
	color: #444;
	border-radius: 8pt;
	box-shadow: 0 0 4px 0 rgba(0, 0, 0, .5) inset, 0 0 8px 0 rgba(0, 0, 0, .5);

		-webkit-transition: all .1s;
		-moz-transition: all .1s;
		-o-transition: all .1s;
		-ms-transition: all .1s;
	transition: all .1s;
}
.menu a {
	color: inherit;
	text-decoration: none;
}

.menu a:hover, .menu b.active, #all b.active {
	color: black;
	position: relative; top: -2px;
	box-shadow: 0 -1px 4px 0 rgba(0, 0, 0, 1) inset, 0 2px 8px 0 rgba(0, 0, 0, 1);
}

.submenu {
	padding-left: 40px;
	height: 55px;
	overflow: hidden;
}
.menu.submenu b.active {
	height: 50px;
	background: url(imgs/bg.png);
	position: relative;
	z-index:2;
}


#all a{
	display: inline-block;
	padding: 5px 10px;
	margin: 10px 20px 10px 0px;
	color: #444;
	border-radius: 8pt;
	box-shadow: 0 0 4px 0 rgba(0, 0, 0, .5) inset, 0 0 8px 0 rgba(0, 0, 0, .5);

		-webkit-transition: all .1s;
		-moz-transition: all .1s;
		-o-transition: all .1s;
		-ms-transition: all .1s;
	transition: all .1s;
}
#all a {
	color: inherit;
	text-decoration: none;
}

#all a:hover {
	color: black;
	position: relative; top: -2px;
	box-shadow: 0 -1px 4px 0 rgba(0, 0, 0, 1) inset, 0 2px 8px 0 rgba(0, 0, 0, 1);
}

#page {
	text-align: justify;
	padding-bottom: 24pt;
}

#subpageContainer #page {
	position: relative;
	top: -2px;
	border-radius: 20px;
	box-shadow: 0 0 4px 0 rgba(0, 0, 0, .5) inset, 0 0 8px 0 rgba(0, 0, 0, .5);
	padding: 5px 20px 20px 20px;
	margin-bottom: 20px;
}

#page p {
	margin-bottom: 6pt;
}

#page .sideBar {
	background: white url(imgs/headerBg.png) center -20px;
	padding: 10px;
	border-radius: 0 0 20px 20px;
	width: 150px;
	float:right;
	margin: -20px 0 10px 20px;
	box-shadow: 0 6px 8px 0 rgba(0, 0, 0, 0.35);
}

p.buttons {
	margin: 12pt 0;
	text-align: center;
}

p.buttons a {
	display: inline-block;
	margin: 20px;
}

p.buttons img {
	vertical-align: middle;
	border-radius: 13px;
	box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .25);

		-webkit-transition: all .2s;
		-moz-transition: all .2s;
		-o-transition: all .2s;
		-ms-transition: all .2s;
	transition: all .2s;
	margin: 0;
}

p.buttons a:hover img {
	box-shadow: 0 5px 20px 0 rgba(0, 0, 0, .5);
	margin: -5px 0 5px 0;
}

p.buttons .hspace {
	margin-left: 100px;
}

p.nofb {
	text-align: center;
	margin-bottom: 24pt;
}

#page .inlineEntityGrid {
	min-width: 320px;
}
#page .inlineEntityGrid.enlarge {
	margin: 0 -20px;
}

hr.pageFooter {
	width: 80%;
	height: 1px;
	background-color: #ccc;
	border: 0;
	margin: 18pt auto;
}

/* Mood ------------------------------------------------------------ */

.counterDiv {
	text-align: center;
	padding: 90px 20px 20px 20px;
}
#counters1 { float: left; }
#counters2 { float: right; }

.counter {
	font: 50pt 'Fredericka the Great', cursive;
	text-decoration: none;
	text-shadow: 4px 2px 5px #bbb;
	position: relative;
}
.counterText {
	font: 14pt 'Fredericka the Great', cursive;
	text-decoration: none;
	position: relative;
	display: block;
}

.caption {
	font-size: 90%;
	width: 90%;
	margin: 0 auto;
}

#moodGraph {
	width:700px;
	height:350px;
	margin: 12pt auto;
	padding: 0 50px
}

#mapContainer {
	position: relative;
	background: white url(imgs/headerBg.png);
	position: relative;
	box-shadow: 0px 2px 15px rgba(0,0,0,0.5);
	border-radius: 25px;
	margin: 10px 0px;
	min-width: 550px;
}

#svgMap {
	margin: 10px auto;
	border: 0;
}

#chooseDataset {
	position: absolute;
	top: 20px;
	right: 20px;
	text-align: right;
}

#mapLegend {
	font-size: 75%;
	line-height: 1.2em;
	position: absolute;
	top: 120px;
	right: 20px;
	text-align: center;
}

/* affinities graph */
.node {
	stroke-width: 2px;
}

.link {
	stroke: #999;
	stroke-opacity: .6;
}

.node text {
	pointer-events: none;
	font: 20px verdana;
	font-family: Arial;
	stroke-width: 0;
	stroke     : #000;
	fill       : #fff;
}

#graph_container{
	background: white url(imgs/headerBg.png);
	position: relative;
	box-shadow: 0px 2px 15px rgba(0,0,0,0.5);
	border-radius: 25px;
	margin: 10px auto;
	width: 800px;
	height: 600px;
	overflow: hidden;
}

/* affinities cuples ------------------ */


.dailyAffinity {
}


#affinitiesBox, #senateBox {
	position: relative;
	width: 550px;
	margin: 20px auto;
	padding: 20px 0;
	border-radius: 20px;
	box-shadow: 0 3px 15px 0 rgba(0, 0, 0, 0.5);
}
#senateBox {
	padding: 10px;
}
.vBarArea {
	position: absolute;
	top: 20px;
	left: 0;
	width: 100%;
	text-align: center;
}
.vBarArea p {
	margin: 0;
	font-size: 14px;
	font-weight: bold;
}
.vBar {
	position: relative;
	width: 40px;
	height: 140px;
	margin: 5px auto;
	background-color: rgba(0, 0, 0, 0.1);
	box-shadow: 2px 2px 10px 0 black inset;
	border-radius: 10px;
}
.vBarFill {
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 50%;
	text-align: center;
	font-size: 12px;
	text-shadow: 0 0 2px black;
	color: white;
	padding-top: 4px;

	border-radius: 10px;
	background-color: #f39;
	box-shadow: -2px -2px 10px 0 rgba(0, 0, 0, 0.5) inset, 0 0 20px 0 #f39;

		-webkit-transition: all .2s;
		-moz-transition: all .2s;
		-o-transition: all .2s;
		-ms-transition: all .2s;
	transition: all .2s;
}
.logoBox {
	text-align: center;
	width: 250px;
}
#logoP1, #logoP2 {
	width: 140px;
	height: 140px;
	margin: 20px auto;
	border-radius: 50%;
	border: 5px solid white;
	box-shadow: 0 5px 10px 0 black;
}
#logoP2 {
}

#affinitiesCouples {
	padding: 0 15px;
}


#senatePartyList .smallLogo {
	vertical-align: middle;
	width: 25px;
}

.w25 {
	position: relative;
	width: 25%;
	height: 1px;
}

#senatePartyList label {
	display: block;
	width: 250px;
	padding: 10px;
	margin: 0;
	border-radius: 10px;
}
#senatePartyList label.noRadiusUp { border-radius: 0 0 10px 10px; }
#senatePartyList label.noRadiusDown { border-radius: 10px 10px 0 0; }

#senatePartyList label.checked {
	background-color: rgba(0, 0, 0, .1);
	box-shadow: 0 3px 15px 0 rgba(0, 0, 0, .3) inset;
}

#senatePartyList label:hover {
	box-shadow: 0 0 50px 0 #3f9 inset, 0 0 20px 0 #3f9;
}

#senatePartyList .coalition {
	border-radius: 10px;
	width: 270px;
	margin-bottom: 10px;
	box-shadow: 0 0 5px 0 #f33;
}

#senatePartyList .coalition.blue {
	box-shadow: 0 0 5px 0 #3cf;
}

#senatePartyList .coalition.yellow {
	box-shadow: 0 0 5px 0 #ff0;
}

#senatePartyList .coalition.orange {
	box-shadow: 0 0 5px 0 #fa0;
}

#senatePartyList .note {
	border-top: 1px solid #ccc;
	font-size: 75%;
	margin-bottom: 0;
}

.threshold {
	position: absolute;
	top: 47%;
	border-top: 1px solid red;
	color: red;
	text-align: right;
	width: 70px;
	font-size: 12px;
}