/* http://meyerweb.com/eric/tools/css/reset/ 
v2.0 | 20110126
License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* General Reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body { 
	background-color: #233d37;	
	background-image: url("../content/bgtile1.jpg");
	background-repeat: repeat;
}

canvas {	
	position: absolute;
	top: 0px;
	left: 0px;
	cursor: none;
	pointer-events: none;
}


/* Top bar styling */
.top-bar {
	width: 100%;
	max-height: 60px;
	height: 60px;
	background-color: #0f1819;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.top-bar-content {
	width: 100%;
	max-width: 1300px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 0 10px;
}

/* Logo styling */
.logo {
	position: absolute;
	left: 25px;
	padding: 5px;
	max-width: 170px;
	max-height: 50px;
	display: flex;
	align-items: center;
}

.logo img {
	max-height: 100%;
	max-width: 100%;
}

/* Background container styling */
.background-container {
	width: 100%;
	display: flex;
	justify-content: center;
	padding: Opx;
	/*background-image: url('../content/mainbg.jpg');
	background-repeat: repeat-x repeat-y;
	
	background-size: auto 100%;
	background-position: top center;*/
}

/* Center container styling */
.center-container {
	/*background-color: #fff;*/
	width: 100%;
	max-width: 1300px;
	padding: 20px;
	text-align: center;
}

/* Video container styling */
.video-container {
	position: relative;
	margin: 20px auto;
	background-color: black;
	display: flex;
	justify-content: center;
	align-items: center;

	/* Default size for desktop */
	width: calc(80vh * 4 / 5); /* Dynamic width based on height */
	height: 80vh; /* Full height of the viewport */

	box-shadow: 0 15px 25px rgba(0, 0, 0, 0.38);
    transition: box-shadow 1.0s ease;
}

.video-container::before {
	content: '';
	display: block;
	padding-top: 125%;
}

 .video-container video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.video-container video:fullscreen {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Adjust scaling to fit the screen while maintaining aspect ratio */
}

/* For Safari */
.video-container video:-webkit-full-screen {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Poster image styling */
.poster,
.end-poster {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: pointer;
	z-index: 2; /* Ensures the poster is on top of the video */
}

.poster {
	display: block; /* Initial display */
}

.end-poster {
	display: none; /* Hidden initially */
}


@media (max-width: 768px) {
	/* Remove all padding and center the video */
	.background-container {
		padding: 0;
		display: flex; /* Enable Flexbox */
		justify-content: center; /* Center vertically */
		align-items: center; /* Center horizontally */
		height: calc(100vh - 60px); /* Subtract the height of the top-bar (60px) */
		height: calc(100dvh - 60px); /* Modern browsers will use dynamic viewport height */
	}

	.center-container {
		padding: 0;
		box-shadow: none;
		background-color: transparent;
	}

	.video-container {
		width: 100%; /* Full width for mobile */
		margin: 0; /* Remove margin */
		height: auto; /* Height adjusts to maintain aspect ratio */
		/*box-shadow: none;*/
	}

	.video-container::before {
		padding-top: 125%; /* Ensure 4x5 aspect ratio on mobile */
	}
}