* {
	font-family: lora, sans-serif;
}

body, footer {
	margin-top: 0;
	margin-bottom: 0;
	margin-left: auto;
	margin-right: auto;
	max-width: 1400px;
	width: 100%;
}

footer > div > div > p {
	margin: 0 0 0 0;
}

#page-title {
	background-color: rgb(240, 240, 240);
	margin: 0 -2% 0 -2%;
	padding-left: 2%;
	padding-right: 2%;
	padding-top: 2em;
	padding-bottom: 2em;
}

h1 {
	margin: 0 0 0 0;
	text-align: center;
}

h3 {
	margin-top: 1.5em;
	margin-bottom: 1.5em;
}

.margin-text {
	margin-right: 4em;
}

.body-container {
	padding-left: 2%;
	padding-right: 2%;
	padding-bottom: 5em;
	background-color: rgb(250, 250, 250);
}

.flex-container{
	display: flex;
}

.flex-horizontal {
	display: flex;
	justify-content: space-between;
	flex-direction: row;
}

.flex-vertical {
	display: flex;
	flex-direction: column;
}

.selector-container {
	justify-content: flex-start;
}

.legend-container {
	justify-content: center;
	margin-right: 4em;
}

.legend-container > div > select {
	max-width: 20em;
}

.range-container {
	justify-content: flex-start;
	align-items: center;
}

select {
	margin-left: 0.5em;
}

.legend-line {
	border-style: solid;
  border-width: 2px;
	width: 10em;
	height: 0;
	margin: 0.5em 0.5em 0 0;
}

.blue {
	border-color: #395aae;
}

.orange {
	border-color: #d26110;
}

.map-container {
	width: 48.5%;
	aspect-ratio: 3/2;
	max-height: 528px;
}

.chart-container {
	width: 48.5%;
}

#piechart_container > div, #piechart_container > div > .vega-embed, #topchart_container > .vega-embed{
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.center-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.map-containerX {
	display: flex;
	justify-content: space-around;
  flex-flow: row wrap;
  align-items: stretch;
}

#map, #map_pp {
  min-height: 0;
  flex: 1;
  max-height: 500px;
  cursor: pointer;
}


.ol-popup {
  position: absolute;
  background-color: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #cccccc;
  bottom: 12px;
  left: -50px;
  min-width: 280px;
}
.ol-popup:after, .ol-popup:before {
  top: 100%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}
.ol-popup:after {
  border-top-color: white;
  border-width: 10px;
  left: 48px;
  margin-left: -10px;
}
.ol-popup:before {
  border-top-color: #cccccc;
  border-width: 11px;
  left: 48px;
  margin-left: -11px;
}
.ol-popup-closer {
  text-decoration: none;
  position: absolute;
  top: 2px;
  right: 8px;
}
.ol-popup-closer:after {
  /*content: "✖";*/
  content: "\2716";
}

.linear-gradient {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	margin-left: 23px;
	margin-right: 23px;
	height: 0.8em;
  background: linear-gradient(
    to right,
    rgba(0, 23, 0, 0.46), /*0*/
    rgba(0, 46, 0, 0.46), /*10*/
    rgba(0, 69, 0, 0.46), /*20*/
    rgba(0, 92, 0, 0.46), /*30*/
    rgba(0, 115, 0, 0.46), /*40*/
    rgba(0, 139, 0, 0.46), /*50*/
    rgba(0, 162, 0, 0.46), /*60*/
    rgba(0, 185, 0, 0.46), /*70*/
    rgba(0, 208, 0, 0.46), /*80*/
    rgba(0, 231, 0, 0.46), /*90*/
    rgba(0, 255, 0, 0.46) /*100*/
  );
}

.gradient-legend {
	width: 100%;
}

.gradient-legend > p {
	margin: 0 0 0 0;
	width: 46px;
	text-align: center;
	margin-top: 0.4em;
}

.linear-gradient > hr {
	border-style: solid;
  border-width: 1px;
  border-color: black;
	margin: -0.33em 0 0 0;
	height: calc(100% + 0.2em);
}

#Nuclear-color {
	border-color: #e45756;
	background-color: #e45756;
}
#Coal-color {
	border-color: #9e765f;
	background-color: #9e765f;
}
#Gas-color {
	border-color: #f58518;
	background-color: #f58518;
}
#Otherfossils-color {
	border-color: #b279a2;
	background-color: #b279a2;
}
#Hydro-color {
	border-color: #4c78a8;
	background-color: #4c78a8;
}
#Solar-color {
	border-color: #f2cf5b;
	background-color: #f2cf5b;
}
#Wind-color {
	border-color: #9ecae9;
	background-color: #9ecae9;
}
#Bioenergy-color {
	border-color: #54a24b;
	background-color: #54a24b;
}
#Otherrenewables-color {
	border-color: #d67195;
	background-color: #d67195;
}

#mappp-legend > div > hr {
	border-style: solid;
	border-radius: 20px;
	height: 3px;
	width: 3px;
	border-width: 4px;
	margin-left: 0px;
	margin-right: 0.3em;
}

#mappp-legend > div {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
}

#mappp-legend > div > p, #mappp-legend > p {
	margin: 0;
	font-size:12px;
}

#mappp-legend > div {
	margin-top: -0.5em;
}

#mappp-legend > #first_mappp_child {
	margin-top: 0;
}