/* Stylized h2 headers */
h2 {
	border-bottom: 2px solid #f0efef;
	color: #f0efef;
	font-size: 1.5rem;
	margin-top: 2rem;
	padding-bottom: 0.5rem;
	clear:both;
}

#front-matter {
	display: flex;
	align-items: flex-start;
	background-color: #344351;
}

#fm_logo {
	width: 142px;
	min-width: 142px;
	height: 151px;
	background: url('/img/post_fm2.png') no-repeat left top;
	background-size: contain;
}

#fm_top, #fm_bottom {
    width: 100%; /* Allow them to take the full width of the remaining space */
}

#fm_right {
    display: flex;
    flex-direction: column;
	width:100%;
}

#fm_top {
    height: 92px;
    background-color: #60c0ea;
	color: aliceblue;
	text-align: center;
	align-content: center;
	font-size: 32px;
	line-height: 37px;
}

#fm_bottom {
	height: 46px;
	background-color: #9bc4ca;
	text-align: center;
	align-content: center;
	font-size: 12px;
}

.post-date {
	font-size: 19px;
	color: #3d585b;
}

.post-category {
	margin-left: 10px;
	padding-left: 10px;
	font-size: 19px;
	color: #3d585b;
	border-left: 1px dashed aliceblue;
}

.post-tags {
	margin-left: 15px;
	font-size: 15px;
	color: #3d585b;
	padding-left: 20px;
	border-left: 1px dashed aliceblue;
}

.post-tag {
	background-color: #66aeb9;
	color: #46586a;
	padding: 2px 5px;
	margin-right: 5px;
}

/* Media query for header */
@media (max-width: 600px) {
	#fm_top {
		font-size: 18px;
		line-height: 27px;
	}

	#fm_bottom {
		font-size: 10px;
	}

	/* dates, categories, and tags */
	.post-date, .post-category {
		font-size: 16px;
	}

	/* post tag */
	.post-tags {
		display: none;
	}
}

article p {
	margin: 30px 0;
}

article a:link, article a:visited {
	color: #4ce8b5;
	text-decoration: none;
}

article a:hover {
	text-decoration: underline; /* Add underline on hover if desired */
}

/* Breakout widget style */
.widget {
	margin: 2rem 0;
	padding: 1rem;
	background: #f9f9f9;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.widget.full-width {
	/*position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;*/
	background: #f9f9f9;
	padding: 1rem;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Additional styling for images, galleries, or videos inside widgets */
.widget img,
.widget video {
	max-width: 100%;
	display: block;
}

	/* Main container: full width, fixed height, white background */
.embedContainer {
	display: flex;
	width: 100%;
	/* height: 400px; */
	background-color: #fff;
	align-items: stretch;
	box-sizing: border-box;
}

/* Left icon container: fixed 32px width for the icon */
.embedIconContainer {
	width: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color:#9BC4CA;
}

/* Icon styling (optional) */
.embedIcon {
	width: 32px;
	height: 32px;
}

/* The right side with the 3D viewer + button list */
.embedSub {
	background-color: #1D252D; /* Background color */
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	box-sizing: border-box;
}

/* 2/3 portion for the 3D view */
.viewPane {
	/* flex: grow shrink basis
		= 2 means it grows with double weight compared to the navPane’s 1. 
		min-width: 0 ensures it can shrink below content size if needed.
	*/
	flex: 2 1 0;
	min-width: 0;
	margin-right: 0.5rem;
	box-sizing: border-box;
	/* So the contained canvas can fill up 100% width/height if desired */
	display: flex;
	flex-direction: column;
}

/* 1/3 portion for the buttons/list */
.navPane {
	border-left:1px solid #E2E2E2;
	flex: 1 1 0;
	min-width: 0;
	padding: 23px;
	display: flex;
	flex-direction: column; /* Stack buttons vertically */
	overflow-y: auto; /* If the button list grows large */
	box-sizing: border-box;
	background-color: #1D252D;
	color: #E2E2E2; /* Text color */
}

/* Demo button styling */
.navPane button {
	width: 100%;
	height: 55px;
	cursor: pointer;
	background-color: #9BC4CA; /* Button background color */
	color: #1D252D; /* Text color for contrast */
	border: none;
	font-size: 1rem; /* Adjust font size */
	transition: background-color 0.1s, transform 0.1s; /* Smooth hover effect */
	border: 4px solid #1a3e64;
}

.navPane button:hover {
	background-color: #7EAEB5; /* Slightly darker on hover */
	transform: scale(1.05); /* Slight zoom effect */
}

.navPane button:active {
	background-color: #67959A; /* Even darker on click */
	transform: scale(0.95); /* Slightly smaller for feedback */
}

/* GALLERY-SPECIFIC STYLES */
.gallery-container {
	display: grid;
	flex: 1 1 auto;          
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 10px;
	padding: 10px;
	overflow-y: auto;
}

.gallery-thumbnail {
	cursor: zoom-in;
	width: 100%;
	height: auto;
	border-radius: 5px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease;
}
.gallery-thumbnail:hover {
	transform: scale(1.05);
}

@media (max-width: 600px) {
	.gallery-container {
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	}
}

/* VIDEO STYLES */
.embedSub video {
	width: 100%;
	height: 100%;
	object-fit: cover; /* Ensures the video scales to fill the space */
	display: block;
	max-height: 600px;
	margin: 0 auto;    /* Center horizontally */
	object-fit: contain; /* Ensures no cropping */
	background-color: black; 
}

/* CODE STYLES */
pre {
	width: 100%;
	padding: 0;
	margin: 0;
	overflow: auto;
	max-height: 600px;
}

code {
	border-radius:0;
}

/* FILE DOWNLOAD STYLES */

.file-download {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: #e0f0ff;
	border: 2px solid #0099ff;
	color: #007acc;
	text-decoration: none;
	font-weight: bold;
	border-radius: 4px;
	transition: background 0.2s, border-color 0.2s;
	max-width: 400px;
}

.file-download:hover {
	background: #cce8ff;
	border-color: #007acc;
}

.file-icon {
	width: 20px;
	height: 20px;
}

.file-description {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 400px;
}
