* {
	box-sizing: border-box;
}
body {
	width: 100%;
	height: 100%;
	min-height: 100%;
	padding: 0;
	margin: 0;
	font-family: Carlito, Helvetica, sans-serif;
	color: black;
	background-color: #b3b3b3;
	background-size: contain;
	background-attachment: fixed;
	background-repeat: no-repeat;
	background-image: linear-gradient(to bottom right, gray, white);
}

h1 {
	padding-top: 50px;
	font-size: 1.8em;
}
h2 {
	font-size: 1.2em;
}
p {
	font-size: 0.9em;
}

section {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 5%;
}

.responsive_image {
	width: 100%;
	height: auto;
	pointer-events: none;
}

#news_wrapper {
	position: relative;
	margin: 0 auto;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 3 / 1;
	margin-bottom: 2em;
}

	#news_scroller {
		top: 0px;
		left: 0px;
		min-width: 100%;
		height: 100%;
		position: absolute;
		z-index: 1;
		/* Put the scroller into the HW Compositing layer right from the start */
		-webkit-transform: translateZ(0);
		-moz-transform: translateZ(0);
		-ms-transform: translateZ(0);
		-o-transform: translateZ(0);
		transform: translateZ(0);
		-webkit-touch-callout: none;
		-webkit-user-select: none;
		-moz-user-select: none;
		-ms-user-select: none;
		user-select: none;
		-webkit-text-size-adjust: none;
		-moz-text-size-adjust: none;
		-ms-text-size-adjust: none;
		-o-text-size-adjust: none;
		text-size-adjust: none;
	}

		#news_container {
			display: flex;
			justify-content: space-evenly;
			flex-wrap: nowrap;
			height: 100%;
		}
			.news_item {
				aspect-ratio: 1 / 1;
				position: relative;
				text-align: center;
				color: white;
				font-size: 1.5em;
				overflow: hidden;
				margin-left: 2em;
			}
				.news_item_text {
					width: 100%;
					background-color: rgba(34, 34, 34, 0.4);
					padding: 5px;
				}

				#news a {
					padding: 2px;
					color: #666666;
					background-color: #DDD;
					border-radius: 4px;
				}

				.news_details {
					padding: 0 20px;
					overflow: hidden;
					background-color: Gainsboro;
					width: 100%;
					max-height: 0px;
					transition: max-height 0.2s ease-out;
				}
				.active_newsitem {
					border: 3px solid #ff6600;
				}

#aboutus_image_container {
	position: relative;
}

footer {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	background-color: #404040;
	color: white;
	display: flex;
	justify-content: space-evenly;
	/* to be in front of timeline elements*/
	z-index: 2;
}
	footer span {
		color: #f2f2f2;
		text-align: center;
		padding: 14px 16px;
		text-decoration: none;
		font-size: 1.0em;
	}
	footer span:hover {
		background-color: #ddd;
		color: black;
	}
	.valign_center {
		display: flex;
		align-items: center;
	}

.centered {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.centered_bottom {
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translate(-50%, 0);
}
.right_top {
	position: absolute;
	top: 3%;
	right: 2%;
}
.left_bottom {
	position: absolute;
	bottom: 25%;
	left: 8px;
}
.darkened_background {
	background-color: rgba(34, 34, 34, 0.4);
}
.about_us_text {
	padding: 25px;
	text-align: left;
	color: white;
	font-size: 1.5em;	
}
.button {
	border-radius: 15px;
	border: 3px solid white;
	cursor: pointer;
	display: inline-block;
}
.popup {
	visibility: hidden;
	position: absolute;
	background-color: rgba(34, 34, 34, 0.4);
	color: white;
	padding: 8px;
	border-radius: 6px;
	z-index: 5;
	bottom: 125%;
	left: 50%;
	width: 240px;
	margin-left: -60px;
}
.left_bottom .show {
	visibility: visible;
	-webkit-animation: fadeIn 1s;
	animation: fadeIn: 1s;
}
@-webkit-keyframes fadeIn {
	from {opacity: 0;}
	to {opacity: 1;}
}
@keyframes fadeIn {
	from {opacity: 0;}
	to {opacity: 1;}
}
/*arrow*/
.popup::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: rgba(34, 34, 34, 0.4) transparent transparent transparent;
}
@media only screen and (max-width: 870px) {
	
	.news_item {
		font-size: 1em;
	}
	
	#aboutus_image_container {
		font-size: 1em;
	}
	
	h1 {
		padding-top: 30px;
		font-size: 1.3em;
	}
	h2 {
		font-size: 1.0em;
	}
	p {
		font-size: 0.9em;
	}
	.about_us_text {
		padding: 12px;
		font-size: 1.0em;
	}
	.popup {
		padding: 0px;
		width: 180px;
		margin-left: -40px;
	}
	
	footer span {
		font-size: 0.9em;
		padding: 2px 4px;
	}
}

@media only screen and (max-width: 470px) {
	
	.about_us_text {
		padding: 8px;
		font-size: 0.8em;
	}
	.popup {
		padding: 0px;
		width: 120px;
		margin-left: -40px;
	}
	.popup ul {
		padding: 0 20px;
	}
	
	footer span {
		font-size: 0.8em;
	}
}

@media only screen and (max-width: 375px) {
	
	.news_item {
		font-size: 0.8em;
	}
	
	h1 {
		padding-top: 20px;
		font-size: 1.0em;
	}
	h2 {
		font-size: 0.9em;
	}
	p {
		font-size: 0.8em;
	}
}
