﻿body {
	font-family: "Times New Roman", Times, serif;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

header {
	background-color: rgb(77, 168, 204);
	color: white;
	padding: 0.5rem 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 0.5rem solid rgb(38, 84, 102);
}

.header-content {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-grow: 1;
	font-size: 1.8rem;
}

.headericon	{
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	color: skyblue;
}

h1	{
	font-size: 2rem;
	text-align: center;
	
}

main {
	flex-grow: 1;
	flex-direction: row;
	font-size: 1.3rem;
	background-color: rgb(245, 245, 245);
	text-align: center;
}

}
.content-wrapper {
	display: flex;
	flex-direction: row;
	width: 100%;
	overflow: hidden;

}

.main-body {
	flex: 8;
	border: 0.1em solid #000;
	border-radius: 5px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2), 0 0 30px rgba(0, 0, 0, 0.1);
	background-color: white;
	margin-left: 1%;

}

.side-column {
	flex: 2;
	border-radius: 5px;
	align-items: left;
	justify-content: left;
	text-align: left;
}

.treeview-container {
	position: sticky;
    top: 0; /* Stick to the top of the viewport */
	overflow-y: auto;
	z-index: 1000; /* Ensures it stays above other content */
    padding: 1rem;
}

.treeview {
    list-style: none;
    padding-left: 0;
}

.treeview-item {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.75rem;
}

.treeview-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e5e7eb;
}

.treeview-content {
    display: flex;
    align-items: center;
    color: #374151;
    text-decoration: none;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.treeview-content:hover {
    background-color: #f3f4f6;
    color: #2563eb;
}

.treeview-icon {
    margin-right: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.treeview-item:last-child .treeview-line {
    height: 1.5rem;
}

h2	{
	margin-top: 1rem;
	font-size: 1.7rem;
}

p	{
	text-align: justify;
	padding-left: 1rem;
	padding-right: 1rem;
	text-indent: 2rem;
}

.chart-holder {
	border: 0.1em solid #000;
	padding-left: 1rem;
	padding-right: 1rem;
}
.chart{
	flex: 1;
    padding: 0.4rem;
    width: 100%;
    box-sizing: border-box; /* Includes padding and border in width calculations */
    overflow-x: auto; /* Allows horizontal scroll if content exceeds width */
    overflow-y: hidden; /* Prevents vertical overflow */
    min-height: 20rem;
    max-width: 100%; /* Ensures the chart does not exceed the parent container */

}

.info {
	padding: 6px 8px;
	font: 14px/16px Arial, Helvetica, sans-serif;
	background: white;
	background: rgba(255,255,255,0.8);
	box-shadow: 0 0 15px rgba(0,0,0,0.2);
	border-radius: 5px;
}
.info h4 {
	margin: 0 0 5px;
	color: #777;
}
.legend {
	line-height: 18px;
	color: #555;
}
.legend i {
	width: 18px;
	height: 18px;
	float: left;
	margin-right: 8px;
	opacity: 0.7;
}

/* Carousel-specific styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 25rem; /* Match the height of the banner */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the area */
}

.carousel-overlay-text {
    position: absolute;
    bottom: 0.5rem; /* Position text 20px from the bottom */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center horizontally */
    color: white;
    font-size: 1.2rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 2; /* Ensure text is above the image */
    background-color: rgba(0, 0, 0, 0.5); /* Add background for better readability */
    padding: 10px;
    border-radius: 5px;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 2rem; /* Increase arrow size */
    border-radius: 50%; /* Make buttons circular */
    width: 40px; /* Set fixed width */
    height: 40px; /* Set fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}
	
footer {
	background-color: rgb(77, 168, 204);
	color: white;
	text-align: center;
	padding: 0.5rem;
	font-size: 1rem;
	width: 100%;
	border-bottom: 1em solid rgb(38, 84, 102);
}

/* Styles for the feedback button and menu */
.feedback-button {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background-color: #4DA8CC;
	color: white;
	border: none;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	font-size: 24px;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	z-index: 1000;
}

.feedback-menu {
	display: none;
	position: fixed;
	bottom: 90px;
	right: 20px;
	background-color: white;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	z-index: 1001;
	width: 300px;
}

.feedback-menu textarea {
	width: 100%;
	height: 100px;
	margin-bottom: 10px;
	border-radius: 2px;
}

.feedback-menu button {
	background-color: #4DA8CC;
	color: white;
	border: none;
	font-size: 0.8rem;
	padding: 10px 20px;
	border-radius: 5px;
	cursor: pointer;
	margin-right: 10px;
}

.feedback-menu input[type="file"] {
	display: none;
}

.feedback-menu label {
	background-color: #4DA8CC;
	color: white;
	padding: 10px 20px;
	font-size: 0.8rem;
	border-radius: 5px;
	cursor: pointer;
}

.image-preview {
	max-width: 100%;
	max-height: 200px;
	margin-top: 10px;
	display: none;
}

/* Landscape orientation */
@media (orientation: landscape) and (min-width: 768px) {
	.content-wrapper {
	display: flex;
	flex-direction: row;
	width: 100%;
	}

}

/* Portrait orientation */
@media (orientation: portrait), (max-width: 767px) {
	.content-wrapper {
	display: flex;
	flex-direction: column;
	width: 100%;
	}
	.banner {
		height: auto; /* Height adjusts to content in portrait mode */
		flex-direction: column; /* Stack content vertically */
	}
	.overlay-text {
		position: static; /* Reset position for portrait */
		margin-top: 0.2rem; /* Add margin for spacing */
		color: black;
	}
}