.no-scroll
{
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/*
	language
*/

body.lang-fi #header-logo
{
	background-image: url('../static/img/logo-rr-horizontal-fi.png');
	width: 178px;
	height: 60px;
}
body.lang-se #header-logo
{
	background-image: url('../static/img/logo-rr-horizontal-se.png');
	width: 158px;
	height: 60px;
}
body.lang-en #header-logo
{
	background-image: url('../static/img/logo-rr-horizontal-en.png');
	width: 158px;
	height: 60px;
}


/*
	buttons
*/

.btn
{
	color: var(--color-white);
	background-color: var(--color-green-dark);
	border-color: var(--color-green-dark);
	text-decoration: none;
	font-family: var(--font-family-body);
	font-weight: 600;
	cursor: pointer;
}
	.btn:hover
	{
		background: var(--color-green-light);
		color: var(--color-white);
		border-color: var(--color-green-light);
	}

.btn.green-light
{
	color: var(--color-white);
	background-color: var(--color-green-light);
}
	.btn.green-light:hover
	{
		color: var(--color-white);
		background-color: var(--color-green-dark);
	}

.btn.glass
{
	color: var(--color-white);
	background-color: rgba(255, 255, 255, .2);
}
	.btn.glass:hover
	{
		color: var(--color-white);
		background-color: rgba(255, 255, 255, .33);
	}

.btn-circle {
	display: flex;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	font-size: 20px;
}

.btn-round {
	display: inline-flex;
	flex-basis: auto;
	align-items: center;
	height: 45px;
	width: fit-content;
	padding: 0 22px;
	border-radius: 23px;
	font-family: var(--font-family-body);
	text-transform: uppercase;
	font-size: .8em;
	letter-spacing: .5px;
	font-weight: 600;
	line-height: 1em;
	cursor: pointer;
}
.btn-round .icon {
	font-size: 1em;
	line-height: 1em;
}
.btn-round .text
{
	margin:0 10px;
}

.btn-round.darkest
{
	background-color: var(--color-green-darkest);
	border-color: var(--color-green-darkest);
	color: var(--color-white);
}
	.btn-round.darkest:hover
	{
		background-color: var(--color-green-dark);
		border-color: var(--color-green-dark);
	}

/*
	common styles
*/

html,
body,
#stage
{
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
}
	.wrapper
	{
		padding: var(--content-padding);
	}
	.subtitle
	{
		font-family: var(--font-family-body);
		font-size: .75em;
		font-weight: bold;
		line-height: 1em;
		text-transform: uppercase;
		font-weight: 600;
    letter-spacing: 0.03em;
		margin-bottom: var(--content-gap);
	}
	.overlay
	{
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 1;
		background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0) 100%);
	}

/*
	stage
*/

#stage
{
	display: flex;
	flex-direction: column;
}

#header
{
	width: 100%;
	padding: var(--content-padding);
	display: flex;
	align-items: center;
	justify-content: space-between;
}
	#header-logo
	{
		flex-shrink: 0;
		background-repeat: no-repeat;
		background-position: 50% 50%;
		background-size: contain;
	}
	#header-text
	{
		text-align: center;
		font-size: .8em;
		line-height: 1.4em;
		max-width: 760px;
		opacity: .5;
		margin: 0 var(--content-gap);
	}

	#ui-lang
	{
		width: 45px;
		height: 45px;
	}
		#ui-lang .lang-icon
		{
			position: absolute;
			font-size: .8em;
		}

#footer
{
	width: 100%;
	padding: var(--content-padding);
	display: flex;
	align-items: center;
	justify-content: space-between;
}
	#footer-text
	{
		font-size: .8em;
		line-height: 1.4em;
		max-width: 760px;
		opacity: .5;
		margin-right: var(--content-gap);
	}
	#footer .btn
	{
		background-color: #333;
		white-space: nowrap;
	}

/*
	carousel
*/

#carousel
{
	width: 100%;
	height: 100%;
	border-bottom: var(--content-padding) solid #000;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	overflow-x: scroll;
}
	.carousel-item
	{
		position: relative;
		width: 80vw;
		min-width: 320px;
		height: 100%;
		margin: 0 var(--content-gap);
		border-radius: var(--content-gap);
		overflow: hidden;
		cursor: pointer;
	}
		.carousel-item:first-child
		{
			margin-left: calc( 2 * var(--content-gap) );
		}
		.carousel-item:last-child
		{
			margin-right: calc( 2 * var(--content-gap) );
		}
		.carousel-item.disabled
		{
			cursor: auto;
			pointer-events: none;
			filter: grayscale(100%);
		}
		.carousel-item .front
		{
			position: absolute;
			z-index: 1;
			bottom: 0;
			padding: 30px;
		}
		.carousel-item p
		{
			font-size: 18px;
			line-height: 1.4em;
		}

		.carousel-item .bg
		{
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			z-index: 0;
		}
			.carousel-item .bg .image
			{
				position: absolute;
				z-index: 0;
				width: 100%;
				height: 100%;
				background-position: 50% 50%;
				background-size: cover;
			}
			.carousel-item .bg .overlay
			{
				position: absolute;
				z-index: 1;
				width: 100%;
				height: 50%;
				top: 50%;
				background: linear-gradient(180deg,rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .5) 75%);
			}

/*
	video player
*/

#stage-video
{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 88;
	background: var(--color-black);
	display: none;
}
	#stage-video .video-close
	{
		position: absolute;
		top: calc(var(--content-gap) * 2);
		left: calc(var(--content-gap) * 2);
		width: 45px;
		height: 45px;
		z-index: 9;
	}

	#video-ui
	{
		pointer-events: none;
	}

	#video-ui--action
	{
		position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
		height: 100%;
		width: 100%;
		max-width: 960px;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
	}
	#video-ui--title
	{
		opacity: 0;

    text-align: center;
    text-transform: uppercase;
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 0.03em;
		padding: var(--content-padding);
		margin-top: var(--content-gap);
	}

	#video-ui--question
	{
		opacity: 0;

		text-align: center;
		font-size: 1.8em;
		font-weight: 600;
		line-height: 1.3em;
		width: calc(100% - 60px);
		text-shadow: 2px 2px 0px #000;
		padding: var(--content-padding);
	}

	#video-ui--options
	{
		opacity: 0;
		
		display: flex;
		flex-direction: column;
		justify-content: end;
		width: 100%;
		padding: var(--content-padding);
		margin-bottom: var(--content-gap);
	}
		#video-ui--options .question
		{
			color: var(--color-white);
			font-size: 1.3em;
			line-height: 1.3em;
			text-shadow: 1px 1px 2px #000;
			margin-bottom: var(--content-gap);
		}
			#video-ui--options .option
			{
				display: flex;
				flex-direction: row;
				justify-content: space-between;
				align-items: center;
				margin-bottom: var(--content-gap);
				padding: var(--content-gap);
				background-color: var(--color-green-dark);
				color: var(--color-white);
				border-radius: .7em;
				cursor: pointer;

				text-transform: uppercase;
				font-size: 1em;
				line-height: 1.3em;
				font-weight: 600;
				letter-spacing: 0.03em;
			}
				#video-ui--options .option .icon
				{
					margin-left: 10px;
				}

	#videoplayer
	{
		display: flex;
    justify-content: center;
    align-items: center;
		width: 100%;
    height: 100%;
		overflow: hidden;
		position: relative;
	}
			#videoplayer--touch
			{
				position: absolute;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
				display: flex;
				z-index: 1;
			}
				#videoplayer--touch__left
				{
					width: 25%;
				}
				#videoplayer--touch__center
				{
					width: 50%;
				}
				#videoplayer--touch__right
				{
					width: 25%;
				}
			#videoplayer video
			{
				position: absolute;
				z-index: 0;
			}

	#video-ui
	{
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 5;
	}
		#video-ui--time
		{
			position: absolute;
			display: flex;
			align-items: center;
			justify-content: center;

			color: var(--color-white);
			bottom: 0;
			left: 0;
			width: 100%;
		}
			#video-progress
			{
				position: relative;
				width: 100%;
				height: 1px;
			}
				#video-progress--bar
				{
					position: absolute;
					z-index: 1;
					width: 0;
					height: 100%;
					background-color: var(--color-green-light);
				}
				#video-progress--bg
				{
					position: absolute;
					z-index: 0;
					width: 100%;
					height: 100%;
				}

		.green-glow
		{
			position: absolute;
			z-index: 0;
			top: 0;
			left: 0;
			transform: translate(-50%, -50%);
			width: 125px;
			height: 125px;
			border-radius: 50%;
			background-color: var(--color-green-lightest);
			opacity: .25;
		}

#splash-sounds
{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 88;
	background-color: rgba(0, 0, 0, .5);
	backdrop-filter: blur(5px);
}
	#splash-sounds img
	{
		width: 50%;
		max-width: 360px;
	}

@media (aspect-ratio > 0.8)  {

	#videoplayer
	{
		display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100% - 60px);
		width: auto;
		aspect-ratio: 9 / 16;
		overflow: hidden;
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		border-radius: 20px;
	}

	#video-ui--options
	{
		opacity: 0;

		display: flex;
		flex-direction: row;
		justify-content: center;
		padding: var(--content-padding);
	}
		#video-ui--options .option
		{
			margin: var(--content-gap);
		}

}

@media only screen and (max-width: 960px) {

	section.content-row
	{
		flex-direction: column-reverse !important;
	}
	div.square
	{
		width: 100%;
		min-height: 360px;
		aspect-ratio: unset;
	}
	section.hero .front h1
	{
		font-size: 2.2em;
	}
	section.hero .front .wrapper
	{
		max-width: 760px;
	}
	section.hero
	{
		aspect-ratio: unset;
		max-height: none;
	}
		section.hero .overlay
		{
			background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
		}
		section.hero .front
		{
			align-items: end;
			justify-content: center;
			text-align: center;
		}
		section.hero .front .wrapper
		{
			padding-top: 420px;
			padding-bottom: calc(var(--content-gap) * 3);
		}
	footer .wrapper
	{
		min-height: 0;
		padding-bottom: 200px;
	}
}

@media only screen and (max-width: 640px) {

	.carousel-item p
	{
		font-size: 17px;
		line-height: 1.4em;
	}

}

@media only screen and (max-width: 480px) {

	.carousel-item p
	{
		font-size: 16px;
		line-height: 1.4em;
	}
	#header-logo
	{
		width: 150px !important;
	}
	#header-text
	{
		flex-basis: min-content;
		line-height: 1.2em;
	}
}