

/* Main page styles */
html, body {
	height: 100%;
	margin: 0;
}



.body2 {
	background-color: #92C3E4;
	font-family: Arial, Helvetica, sans-serif;
	color: #333333;
}

.centered {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1rem;
}

.centered img {
	width: 640px;
	max-width: 80%;
	height: auto;
	display: block;
	border-radius: 6px;
}


/* Generic image wrapper to center images across pages */
.img-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.img-wrapper img {
	width: 640px;
	max-width: 90%;
	height: auto;
	display: block;
}
/* Row layout: place the main image and framed media side-by-side */
.media-row {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	justify-content: center;
	flex-wrap: wrap;
	width: 100%;
	max-width: 1200px;
}

.media-row .img-wrapper,
.media-row .media-frame-container {
	box-sizing: border-box;
	flex: 0 1 48%;
	max-width: 48%;
}

.media-row .img-wrapper img,
.media-row .media-frame-container img.media-frame {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
}

@media (max-width: 760px) {
	.media-row .img-wrapper,
	.media-row .media-frame-container {
		flex: 0 1 100%;
		max-width: 100%;
	}
}
/* Media frame container: frame image with overlaid video. Use CSS variables to adjust overlay. */
.media-frame-container {
		/* defaults (percentages relative to container) */
		--overlay-top: 8%;
		--overlay-left: 8%;
		--overlay-width: 84%;
		--overlay-height: 84%;
		position: relative;
		width: 640px;
		max-width: 90%;
		margin: 0.5rem auto;
}

.media-frame-container img.media-frame {
		width: 100%;
		display: block;
		height: auto;
		position: relative;
		z-index: 1;
}

.media-frame-container video.overlay-video {
		position: absolute;
		top: var(--overlay-top);
		left: var(--overlay-left);
		width: var(--overlay-width);
		height: var(--overlay-height);
		object-fit: cover;
		border-radius: 4px;
		z-index: 2;
}

/* Audio control inside the media frame: centered along the bottom of the frame */
.media-frame-container audio.frame-audio {
	position: absolute;
	bottom: 91%;
	left: 50%;
	transform: translateX(-50%);
	width: 65%;
	z-index: 3;
	background: rgba(120, 167, 189, 0.9);
	border-radius: 6px;
}

@media (max-width: 480px) {
	.media-frame-container audio.frame-audio {
		bottom: 4%;
		width: 86%;
	}
}

@media (max-width: 480px) {
	.media-frame-container, .img-wrapper img {
		width: 92%;
		max-width: 92%;
	}
	.media-frame-container video.overlay-video {
		top: calc(var(--overlay-top) - 2%);
		left: calc(var(--overlay-left) - 2%);
		width: calc(var(--overlay-width) + 4%);
		height: calc(var(--overlay-height) + 4%);
	}
}
/* Buttons: global style and centered container */
.button-container {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	margin-top: 0; /* positioned by the centered container */
}

button {
	font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
	font-size: 1.1rem; /* ~18px */
	padding: 0.6rem 1rem;
	border: none;
	border-radius: 6px;
	background: #5ab5f1;
	color: #ffffff;
	cursor: pointer;
	transition: all 0.3s ease;
}

button:hover {
	background: #024e81;
	opacity: 0.95;
	transform: translateY(-6px);
}

.button-container2 {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	margin-top: 0; /* positioned by the centered container */
}

button:hover {
	background: #024e81;
	opacity: 0.95;
	transform: translateY(-6px);
}



