

body {
	--mainOpaque: #d0d4df;
}

h3,h4 {
	font-size: 1.8rem;
	margin-bottom: 0;
/*	width: max-content;
	min-width: 300px;
	background: linear-gradient(90deg,var(--mainOpaque) 0%,#ffffff 50%);
	padding: 0.2em 0.5em;
	border-radius: 20px; */
}

h4 {
	font-size: 1.4rem;
/*	background: linear-gradient(90deg,var(--mainOpaque) 0%,#ffffff 25%); */
}

div.floater {
	margin-bottom: 2em;
	font-size: 80%;
}


a {
	color: var(--main);
}

/* table */

table {

}

table.pollOverviewTable td {
	font-size: 14px;
}

table.pollOverviewTable span {
	white-space: nowrap;
}

table#coalitions {
	border-top: 1px dotted;
	border-bottom: none;
}

	table#coalitions caption {
		caption-side: bottom;
		border-top: 1px dotted;
		border-bottom: none;
		padding-top: 5px;
	}
	
caption {
	padding-bottom: 5px;
	border-bottom: 1px dotted;
	margin-bottom: 10px;
}

div.wrapper {
	border: 1px dotted;
	border-width: 1px 0;
}

span.partyName {
	font-weight: bold;
}

/* by tr */

th {
	background-color: #eeeeee;
	white-space: nowrap;
}

	th:empty,th:only-child {
		background-color: transparent;
	}

td.senateMinority {
	text-decoration: line-through;
}

tr.majority td.senateMinority,tr.minority:hover td.senateMinority {
	color: #cc0000;
}

tr.majority td.polls {
	background-color: #aaaaaa;
	color: white;
}

tr.minority td {
	color: #666666;
	opacity: .7;
}

	tr.minority td.polls {
		background: #eeeeee;
		color: inherit;
	}

	tr.minority:hover td {
		color: inherit;
		opacity: 1;
	}
	
tr.separator td {
	padding: 7px 0;
}

	tr.separator:hover td {
		padding: 7px 0;
	}

tr.placeholder:not(:only-child) {
	display: none;
}

	tr.placeholder td {
		font-weight: bold;
	}

/* by th */

th {
	font-size: 90%;
	font-weight: normal;
}

th.clickable {
	cursor: pointer;
}

th.separator,td.separator {
	width: 15px;
}

/* by td */

td,th {
	font-size: 14px;
	padding: 3px;
}

td {
	text-align: center;
	vertical-align: middle;
}

	tr:hover td {
		border: 1px dotted #999999;
		border-width: 1px 0;
		padding: 2px 3px;
	}
	
		tr:hover td:empty {
			border: none;
		}

td.nameList {
	font-size: 80%;
}

	td.nameList span.partyName {
		font-weight: normal;
	}

th.polls,td.polls {
	background-color: #eeeeee;
	width: 60px;
}

td.win {
	color: green;
}

td.lose {
	color: #cc0000;
}

td.minor {
	opacity: 0.75;
	font-size: 90%;
}

tr:hover td.minor {
	opacity: 1;
}

#pollOverview :is(td,th){
	font-size: 18px;
	padding: 4px;
}

#pollOverview :is(td,th):hover {
	padding: 3px 4px;
}

/* other */

td select {
	width: 100%;
}

th select {
	margin: 0 auto;
}

th h4 {
	margin: 0;
	font-weight: normal;
	font-size: 100%;
	text-align: left;
	background: none;
}

td.zetels {
	line-height: 100%;
}

td.zetels span {
	float: right;
}

td.nameList span {
	white-space: nowrap;
}

td.nameList div {
	max-height: 1.75em;
	overflow: auto;
}

thead.overview th[colspan=2] {
	width: 150px;
}

ul#rejections span.partyName {
	font-size: 100%;
}

dl#relationsOverview dt {
	font-weight: normal;
}

div.floater li {
	padding: 0.3em;
	margin-left: -1.5em;
}

div.floater li:nth-child(even) {
	background-color: #F2F3EF;
}

section.columns {
	border-bottom: 1px dotted;
	padding: 5px 0;
	overflow: auto;
}

section.columns div {
	width: 45%;
	float: right;
}

section.columns div:first-child {
	float: left;
}

section.columns h5 {
	border-bottom: 1px dotted;
	padding-bottom: 0;
	margin-bottom: 2px;
	font-weight: normal;
}

section.columns ol {
	margin: 0;
	border: none;
}

section.columns ol li {
	margin-left: -15px;
}

div.columns ol + h5 {

}

span.sup {
	padding-right: 3px;
	padding-left: 1px;
	position: relative;
	top: -7px;
	font-size: 90%;
}

dl.formula dt {
	margin: 0;
	margin-top: 5px;
	font-weight: normal;
}

dl.formula dd {
	margin-top: 0;
}

section#descriptions {

}

section#descriptions p {
	font-size: 80%;
	hyphens: auto;
}

div.graph {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
	clear: right;
	margin-top: 1em;
	margin-bottom: 2em;
	padding-bottom: 0.5em;
	background: #dddddd;
	border-radius: 16px;
	--growTime: 0.7s;
	--textTime: 0.1s;
	--moveTime: var(--totalTime);
	--backTime: 0.1s;
	--halfMoveTime: calc(var(--moveTime) / 2);
	--totalTime: calc(var(--growTime) + var(--textTime));
	--left: calc((var(--order,1)*2 - 1) * (100%/(var(--numberOfLinks)*2)));
}

div.graph:empty {
	display: none;
}

div.graph > a {
	border: none;
	text-align: center;
	color: black;
	display: grid;
	place-items: center;
	text-decoration: none;
	margin: 0.2em;
	padding: 0.2em 1em;
	margin-bottom: 0;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	z-index: 1;
	transition: background-color var(--backTime),
		color var(--backTime);
}

div.graph > a.current {
	background: white;
	transition: all var(--growTime);
	ransition: background-color var(--backTime) var(--halfMoveTime),
		color var(--backTime) var(--halfMoveTime);
}

div.graph > a.fakeA {
	position: absolute;
	z-index: 0;
	width: 100px;
	height: 30px;
	background: black;
	visibility: hidden;
	left: calc(var(--left) - 50px);
	transition: none;
}

div.graph.transition > a.fakeA {
	background: transparent;
	visibility: visible;
	width: 50px;
	transition: all var(--moveTime),
		background var(--moveTime) var(--backTime);
}

div.graph div.wrapper {
	display: flex;
	margin: 0;
	padding: 10px;
	padding-bottom: 7px;
	padding-right: 0.5em;
	width: 100%;
	border: none;
	align-items: end;
	background: #ffffff;
	overflow-x: hidden;
}

div.graph div.wrapper div {
	color: var(--cl,var(--bg));
	background: var(--bg);
	width: 0px;
	height: 75px;
	box-shadow: 0;
	overflow: hidden;
	text-align: center;
	text-wrap: balance;
	display: grid;
	place-items: center;
	transition: width var(--growTime) var(--textTime),
		flex-grow var(--growTime) var(--textTime),
		box-shadow var(--growTime),
		color var(--textTime);
}

div.graph div.wrapper div.fixedText {
	color: white;
	transition: width var(--growTime) var(--textTime),
		flex-grow var(--growTime) var(--textTime);
}

div.graph div.wrapper div.government {
	box-shadow: 4px 4px 4px #666666;
	z-index: 1;
}

div.graph div.wrapper div:not(.lr,.fixedText):is(:hover,:focus) {
	width: 75px;
	color: white;
	flex-grow: 0 !important; /* must overrule inline style */
	transition: width var(--growTime),
		flex-grow var(--growTime),
		color var(--textTime) var(--growTime);
}

div.graph.transition div.wrapper div {
	transition: flex-grow var(--totalTime),
		box-shadow var(--growTime),
		color var(--textTime);
}

div.graph.transition div.wrapper div.fixedText {
	transition: flex-grow var(--totalTime),
		box-shadow var(--growTime),
		color var(--textTime) var(--growTime);
}

div.graph div.wrapper div.lr {
	flex-basis: 3px;
	background: black;
	height: 100px;
	align-self: start;
	position: relative;
	overflow: visible;
}

div.lr {
	order: 1;
}

div.rrr {
	order: 2;
}

div.lr::before,div.lr::after {
	content:  "Left " var(--left);
	position: absolute;
	right: 10px;
	top: -4px;
	background: white;
	color: black;
	width: max-content;
}

div.lr::after {
	content: var(--cr) " Centre-right" ;
	left: 10px;
}

div.rrr::before {
	content: '';
}

div.rrr::after {
	content: var(--rr) " Radical right";
}



div#timeline {
	height: 75px;
	position: relative;
	background: #eeeeee;
	margin-bottom: 100px;
	border-radius: 1em;
	pointer-events: none;
}

div.poll {
	position: absolute;
	top:-0.15em;
	left: 0;
	padding-left: 4px;
	box-sizing: content-box;
	height: 100%;
	text-align: right;
	font-size: 3em;
}

div.poll a {
	text-decoration: none;
	pointer-events: auto;
	display: inline-block;
	line-height: 15px;
	overflow: hidden;
}

div.legenda {
	display: flex;
	flex-wrap: wrap;
	line-height: 20px;
}

div.legenda span {
	flex-grow: 1;
	white-space: nowrap;
	text-align: center;
}

div.legenda span span {
	margin-right: 0.1rem;
	font-size: 3em;
	position: relative;
	top: 0.275em;
}

div.label {
	--localcolor: var(--color,black);
	position: absolute;
	border-left: 1px dotted var(--localcolor);
	height: 100%;
}

div.label::after {
	content: var(--label);
	color: var(--localcolor);
	top: 100%;
	position: absolute;
	left: 0;
	width: 8em;
	background: white;
	font-size: 13px;
	transform: rotate(45deg);
	transform-origin: top left;
	hyphens: auto;
	text-wrap: balance;
}

div.label:hover {
	z-index: 1;
	background: black !important;
}