/*
 * CSS VARIABLES
 */

:root {
	--pop-blue: #132943; /* rgb(19,41,64) */
	--pop-background: #dfe5ea;
	--pop-border: #baccdd;
	--pop-bar-width: 50%;
}

/*
 * FONTS
 */

@font-face {
	font-family: 'Lato';
	src: url('fonts/Lato-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
}
@font-face {
	font-family: 'Lato';
	src: url('fonts/Lato-Bold.ttf') format('truetype');
	font-weight: 600;
	font-style: normal;
}
@font-face {
	font-family: 'Lato';
	src: url('fonts/Lato-BoldItalic.ttf') format('truetype');
	font-weight: 600;
	font-style: italic;
}
@font-face {
	font-family: 'Lato';
	src: url('fonts/Lato-Light.ttf') format('truetype');
	font-weight: 200;
	font-style: normal;
}

/*
 * BASIC STYLES
 */

/* apply a natural box layout model to all elements, but allowing components to change -> https://www.paulirish.com/2012/box-sizing-border-box-ftw/ */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

html {
	font-size: 16px;
}

body {
 	margin: 0;
	padding: 0;
	background: var(--pop-background);
	font-family: 'Lato', Arial, Helvetica, sans-serif;
	line-height: 1.4;
	color: var(--pop-blue);
}

.popContent {
	max-width: 60em;
	margin: 0 auto;
	padding: 1.5em;
}

.popPageHeader {
	background: white;
}

.popPageHeader p.popIntro {
	font-size: 1.3rem;
	font-weight: 200;
}

h3 {
	margin-top: 2em;
}

a, a:visited, a:active, a:hover {
	color: var(--pop-blue);
	font-weight: inherit;
	text-decoration: none;
	border-bottom: 1px solid var(--pop-blue);
}

.popToolbar a + a {
	margin-left: 0.5em;
}

.read-more-button, .read-more-button:active {
	display: inline-block;
	padding: 0.6em 1.5em;
	background-color: var(--pop-blue);
	border-radius: 5rem;
	font-size: 0.9rem;
	line-height: 1em;
	letter-spacing: 0.1em;
	font-weight: 700;
	color: white;
	text-transform: uppercase;
	text-decoration: none;
	margin-bottom: 5rem;
	border: none;
}

.popToolbar {
	padding-bottom: 0;
	padding-top: 0.8rem;
	line-height: 1rem;
}

.popToolbar a {
	opacity: 0.6;
	border: none;
	font-weight: bold;
}

.popToolbar .popActive {
	opacity: 1;
}

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

}

.popNavigationBar.sticky img {
	filter: grayscale(1);
	opacity: 0.5;
}

.popNavigationBar.sticky:hover img,
.popNavigationBar.sticky.dragged img,
.popNavigationBar.sticky .popActive img {
	opacity: 1;
	filter: none;
}

.popCountryList {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 4;
	margin-bottom: 8em;
}

a:hover {
	color: #000;
}

h1 {
	color: rgb(16, 92, 223);
	font-family: Arial, Helvetica, sans-serif;
	margin: 0;
	margin-top: 1rem;
	width: 100%;
	/*max-width: 18rem;*/
	margin-bottom: 2rem;
}

h1 img {
	width: 100%;
	height:  auto;
}

h2 {
	font-weight: 200;
	font-size: 2.2rem;
	line-height: 0.9;
	padding-top: 8rem;
	padding-bottom: 0.75rem;
	margin: 0;
	display: flex;
	justify-content: space-between;
	margin-bottom: 1em;
}

.popCountry h2 {
	padding-top: 8rem;
	position: sticky;
	top: 0;
	z-index: 9;
	background: var(--pop-background);
}

.popCountry a {
	border: none;
}

.popCountry .popTextUpdate {
	display: block;
	margin-top: 1em;
	font-weight: normal;
/*	font-size: 0.7em;
	text-transform: uppercase;
	letter-spacing: 0.1em;
*/}

h2 .popCC {
	display: inline-block;
	font-size: 2.2rem;
	letter-spacing: 0.1em;
	text-decoration: none;
	color: var(--pop-background);
	text-shadow: -1px 1px 0 var(--pop-blue),
				  1px 1px 0 var(--pop-blue),
				 1px -1px 0 var(--pop-blue),
				-1px -1px 0 var(--pop-blue);
	font-weight: bold;
	font-style: italic;
}

.popNavigationBar {
	width: 100%;
	overflow: hidden;
	position: sticky;
	top: 0;
	background: white;
	height: calc(8vh + 2rem + 2rem);
	max-height: calc(2rem + 2rem + 2rem);
	transition: transform 0.2s ease-in-out;
	box-shadow: 0px 3px 65px 20px rgba(19,41,64,0.08);
	z-index: 10;
}

.popNavigationBarDrag {
	position: absolute;
	left: 0;
	top: 2rem;
	padding-left: 2rem;
}

.popNavigationBarDrag a {
	padding: 1rem 0;
	border-bottom: 1px solid white;
}

.popFlagsMenu, .popCountryCodesMenu {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
}

.popMenuFlag {
	height: 8vh;
	max-height: 2rem;
	width: auto;
	transform: skew(-10deg);
}

.popCountryCodesMenu a {
	font-size: 2.5rem;
	line-height: 2rem;
	text-decoration: none;
	color: white;
	text-shadow: -1px 1px 0 var(--pop-blue),
				  1px 1px 0 var(--pop-blue),
				 1px -1px 0 var(--pop-blue),
				-1px -1px 0 var(--pop-blue);
	font-weight: bold;
	font-style: italic;
	letter-spacing: 0.1em;
	margin: 0 0.143em;
}

.popCountryCodesMenu a.popActive {
	color: var(--pop-blue);
}

/* !!! do not remove !!! needed for switching between menues !!! */
.popHide {
	display: none
}

.popCountry {
	border-bottom: 1px solid white;
}

.popCountry .popContent {
	padding-top: 0;
	display: flex;
	flex-direction: column;
}

.popCountry .flag,
.popCountry .popFlaggenNormal .popImage { /* eK */
	height: 4em;
	width: auto;
}

.popCountry .building,
.popCountry .popParlamenteAxo .popImage { /* eK */
	width: 25em;
	height: auto;
}

.popCountry .location,
.popCountry .popLageplaene .popImage { /* eK */
	width: 25em;
	height: auto;
}

.popCountry .location::before,
.popCountry .popLageplaene .popImage::before { /* eK */
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 100%;
	background: white;
	content: ' ';
}

.popFooter {
	background: white;
}

.popFooter .popParlamentsLogo {
	max-width: 15em;
	/*margin-bottom: 2em;*/
}
.popFooter .popContent {
	display: flex;
	flex-direction: row;
}


.popFooter .popContent > div:first-child {
	width: 50%;
}

.popFooter .popContent > div:nth-child(2) {
	width: 30%;
}

.popCountryTable {
	padding: 0;
	border-spacing: 0;
	border-collapse: collapse;
	margin-bottom: 3rem;
}

.popCountryTable tr {
	border-bottom: 1px solid var(--pop-border);
}
.popCountryTable tr:last-child {
	border-bottom: 0;
}
.popCountryTable td {
	padding: 0.5em 0;
	vertical-align: top;
}

.popCountryTable td:first-child {
	width: 15em;
}

.popCountryTable td:first-child span {
	font-weight: bold;
	display: inline-block;
	font-size: 0.9em;
	opacity: 0.7;
}

.popCountryTable td:last-child {
	font-weight: bold;
}

.popCountryTable td:last-child {
	font-weight: bold;
}

.popBar {
	display: inline-block;
	width: 100%;
	max-width: 20em;
	margin-right: 0.5rem;
	height: 0.5rem;
	border-radius: 0.3rem;
	background: white;
	position: relative;
	z-index: -1;
}
.popBar:after {
	content: ' ';
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	background: var(--pop-blue);
	height: 0.5rem;
	border-radius: 0.3rem;
	width: var(--pop-bar-width);
	z-index: 0;
}

.popGDP, .popCO2, .popPAX {
	display: inline-block;
	background-image: url(img/icon-pax.svg);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: bottom left;
	width: 1rem;
	height: 1rem;
	margin-right: -0.1em;
	margin-bottom: -0.1em;
}

.popCO2 {
	background-size: 1.1rem;
}

.popGDP.pop25, .popCO2.pop25, .popPAX.pop25 {
	width:  0.25rem;
} 
.popGDP.pop50, .popCO2.pop50, .popPAX.pop50 {
	width:  0.5rem;
}
.popGDP.pop75, .popCO2.pop75, .popPAX.pop75 {
	width:  0.75rem;
}
.popCO2 {
	background-image: url(img/icon-co2.svg);
}
.popGDP {
	background-image: url(img/icon-gdp.svg);
}

i:last-child {
	margin-right: 0.5rem;
}

#popTopButton,
#popIndexButton { 
	opacity: 0;
	visibility: hidden;
	position: fixed;
	right: 1.25rem;
	bottom: 5.2rem;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 100%;
	border: none;
	font-size: 1.8rem;
	background: white;
	color: var(--pop-blue);
	cursor: pointer;
	box-shadow: 0px 0px 15px 0px rgba(19,41,64,0.15);
	text-align: center;
	line-height: 3rem;
	transition: opacity 0.3s ease-in-out;
	z-index: 20;
}

#popIndexButton {
	opacity: 1;
	visibility: visible;
	bottom: 1.25rem;
	font-size: 0.9rem;
	line-height: 3.5rem;
}

.sticky #popTopButton {
	visibility: visible;
	opacity: 1;
}

main {
	padding-bottom: 6em;
}
.popTeam {
	border-top: 1px solid white;
}

.popTeam a {
	font-weight: normal;
	border-bottom: 1px solid var(--pop-blue);
}

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

.popPageHeaderLogos p {
	margin: 0;
}

.popPageHeaderLogos p img {
	width: 7em;
	height: auto;
}

.popPageHeaderParlament {
	border-bottom: 1px solid var(--pop-background);
}
.popPageHeaderParlament .popContent  {
	display: flex;
	justify-content: space-between;
	flex-direction: row;
	align-items: center;
	padding: 1em;
	line-height: 1;
}

.popPageHeaderParlament a {
	border: 0;
}

.popPageHeaderParlament img {
	height: 2rem;
	width: auto;
	margin-left: 1rem;
}
