html,
body {
	height: 100vh;
	margin: 0;
	padding: 0;
	font-family: Arial, sans-serif;
	background-color: #f4f7f6;
	color: #333;
	display: flex;
	overflow: hidden;
}

#sidebar {
	width: 250px;
	background-color: #f8f8f8;
	padding: 20px;
	flex-shrink: 0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	position: fixed;
	height: 100vh;
	overflow-y: auto;
	padding-top: 0;
}


#sidebar h2 {
	color: #2c0161;
	margin-top: 0;
	font-size: 1.8em;
	font-weight: bold;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
	margin-bottom: 20px;
	text-align: center;
}

#sidebar-content-wrapper {
	flex-grow: 1;
	padding-bottom: 20px;
}

#sidebar ul {
	list-style: none;
	padding: 0;
}


#sidebar ul li a {
	display: block;
	padding: 10px 15px;
	text-decoration: none;
	color: #555;
	border-radius: 4px;
	margin-bottom: 5px;
	transition: background-color 0.3s ease;
	font-size: 0.9em;
}

#sidebar ul li a:hover,
#sidebar ul li a.active {
	background-color: #b593f53b;
	color: #6b21fc;
}

#languageToggleContainer {
	margin-top: auto;
	margin-bottom: 5px;
	padding-top: 7px;
	border-top: 1px solid #eee;
    cursor: pointer;
    color: #2c0161;
}

#languageToggle {
	gap: 5px;
	align-items: normal;
    align-items: end;
    display: flex;
    padding-bottom: 3px;
}

#main-content {
	padding: 40px 40px 40px 60px;
	/* max-width: 900px; */
	flex-grow: 1;
	margin-left: 250px;
	margin-right: auto;
	background-color: #ffffff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
	line-height: 1.6;
	overflow-y: auto;
	/* height: 100vh; */
    color: #5f5f5f;
}

#main-content h1 {
	color: #2c0161;
	border-bottom: 2px solid #eee;
	padding-bottom: 15px;
	margin-bottom: 30px;
}

#main-content h2 {
	color: #2c0161;
	margin-top: 40px;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
	margin-bottom: 20px;
}

#main-content h3 {
	color: #2c0161;
	margin-top: 30px;
	margin-bottom: 15px;
}

#main-content p {
	margin-bottom: 15px;
}

#main-content img {
	/* max-width: 100%; */
	max-width: 80%;
	height: auto;
	display: block;
	margin: 20px 0 0 20px;
	border: 1px solid #ddd;
	border-radius: 5px;
}

.sub>h5{
    color: #2c0161;
    margin-bottom: 0;
}
.sub>ul,
.sub>p{
    margin: 0 20px;
    padding-left: 20px;
}

#faq p strong{
	color: #2c0161;
}

.image-footnote{
    margin: 4px 0 0 20px;
}

/* Image Zoom Styles */
.image-overlay {
	position: fixed;
	top: 0;
	left: 0;
    width: 100vw;
    height: 100vh;
	background-color: rgba(0, 0, 0, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	cursor: zoom-out;
}

.image-overlay.active {
	opacity: 1;
	visibility: visible;
}

.zoomed-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    cursor: zoom-out;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    transition: max-width 0.3s ease, max-height 0.3s ease;
    object-fit: contain;
}

#main-content a:visited,
#main-content a {
    color: #2c0161;
}


#main-content img.zoomed-image {
	margin: 0;
	border: none;
}

.highlight {
	background-color: yellow;
	font-weight: bold;
}

@media (max-width: 768px) {

	html,
	body {
		display: block;
		height: auto;
		overflow: auto;
	}

	#sidebar {
		position: static;
        width: calc(100% - 40px);
		height: auto;
		overflow-y: visible;
		box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
		padding-bottom: 10px;
		flex-direction: column;
	}

	#sidebar-content-wrapper {
		overflow-y: visible;
		flex-grow: 0;
		padding-bottom: 0;
	}

	#languageToggleContainer {
		margin-top: 10px;
		padding-top: 10px;
		border-top: none;
	}

	#main-content {
		padding: 20px;
		margin-left: 0;
		margin-right: 0;
		max-width: 100%;
		height: auto;
		overflow-y: visible;
	}
}


.search {
	display: flex;
	gap: 10px;
}

.search>input {
	border: 1px solid #ddd;
	border-radius: .375rem;
	padding: .5rem 1rem;
	outline: none;
    width: 100%;
}

/* .search>button {
	background-color: #2c0161;
	border: 1px solid #ddd;
	border-radius: 0.375rem;
	cursor: pointer;
	transition: .2s;
	display: flex;
	align-items: anchor-center;
}

.search>button:hover {
	background-color: #6b21fc;
} */

.hidden{
    display: none;
}