* {box-sizing:border-box}

html {
	--animation-slider-duration: 8000ms;
	--animation-text-delay: 500ms;
	--animation-first-subtext-delay: 1000ms;
	--animation-last-subtext-delay: 1500ms;
	--animation-text-duration: calc(var(--animation-slider-duration) - var(--animation-text-delay) - var(--animation-last-subtext-delay));
	--animation-subtext-duration-delay: calc(var(--animation-last-subtext-delay) - var(--animation-first-subtext-delay));
}

/* Slideshow container */
.slideshow-container {
	max-width: 980px;
	max-height: 450px;
	position: relative;
	overflow: hidden;
	margin: 40px 0px 10px 0px;
	padding: 0px;
}

.mySlides {
	display: none;
	margin: 0px;
	padding: 0px;
	animation: animateSliderOpacity var(--animation-slider-duration) ease;
}

/* The slider opacity animation code */
@keyframes animateSliderOpacity {
	0%   {opacity: 0;}
	12%  {opacity: 1;}
	88%  {opacity: 1;}
	100% {opacity: 0;}
}

.myImages {
	margin: 0px;
	padding: 0px;
	max-width: 100%;
	max-height: 100%;
	position: relative;
}

/* Next & previous buttons */
.slideshow-prev, .slideshow-next {
	cursor: pointer;
	position: absolute;
	top: 50%;
	width: auto;
	margin-top: -30px;
	padding: 16px;
	color: white;
	background-color: transparent;
	font-weight: bold;
	font-size: 18px;
	user-select: none;
	transition: 0.6s ease;
	text-shadow: 1px 1px 2px #404040;
}

.noselect {
	user-select: none;
}

.slideshow-prev {
	left: 0;
	border-radius: 0px 5px 5px 0px;
}

.slideshow-next {
	right: 0;
	border-radius: 5px 0px 0px 5px;
}

/* On hover, add a black background color with a little bit see-through */
.slideshow-prev:hover, .slideshow-next:hover {
	color: white;
	background-color: rgba(0,0,0,0.8);
	text-shadow: none;
}

.text-container {
	position: absolute;
	top: 50px;
	left: 90px;
}

/* Slider text */
.text-container > .text-title {
	position: relative;
	min-width: 450px;
	font-size: 180%;
	font-family: 'Fjalla One', sans-serif;
	background-color: rgba(0,0,0,0.6);
	color: #f2f2f2;
	border-radius: 4px;
	padding: 4px 12px;
	margin: 0px 0px 20px 0px;
	animation: animateText var(--animation-text-duration) ease;
    animation-fill-mode: both;
	animation-delay: var(--animation-text-delay);
}

.subtext-container {
	display: grid;
	grid-auto-columns: max-content;
	grid-template-areas: "a";
	position: relative;
	grid-gap: 10px;
}

.subtext-container > div {
	position: relative;
	min-width: 200px;
	font-size: 100%;
	font-family: 'Pontano Sans', sans-serif;
	background-color: rgba(0,0,0,0.6);
	color: #f2f2f2;
	border-radius: 4px;
	padding: 4px 12px;
	margin: 0px;
	animation: animateText var(--animation-text-duration) ease;
    animation-fill-mode: both;
}

/* The text animation code */
@keyframes animateText {
	0%   {left:-85px; opacity: 0;}
	12%  {left:0px;   opacity: 1;}
	88%  {left:0px;   opacity: 1;}
	100% {left:-85px; opacity: 0;}
}

.subtext-container > div:nth-child(1){
	animation-delay: var(--animation-first-subtext-delay)
}
.subtext-container > div:nth-child(2){
	animation-delay: calc(var(--animation-subtext-duration-delay) / 2 + var(--animation-first-subtext-delay))
}
.subtext-container > div:nth-child(3){
	animation-delay: var(--animation-last-subtext-delay)
}

/* The loader indicator */
.svgloader {
    position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	overflow: hidden;
	opacity: 0.5;
}

#svgloader-container {
	animation: animateSliderOpacity var(--animation-slider-duration) ease;
}

svg > #loader {
	fill: #ffffff;
}

sgv > #border {
	fill: #000000;
}

/* The dots/bullets/indicators */
.dots {
	text-align: center;
}

.dot {
	cursor:pointer;
	height: 15px;
	width: 15px;
	margin: 0px 5px;
	color: #ffffff;
	background-color: #b0b0b0;
	border-radius: 50%;
	display: inline-block;
	transition: background-color 0.6s ease;
}

.active, .dot:hover {
	color: #ffffff;
	background-color: #717171;
}
