html { height:100%; }
body { 
    height:100%; 
    overflow:hidden; 
    margin:0; 
    padding:0; 
    font-family:'Poppins', sans-serif; 
    font-size:16px; 
    color:#FFFFFF; 
    background-color:#000000; 
}

/* Screen-reader-only utility */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Top left logo styling */
.top-left-logo {
    position: absolute;
    top: 17px;
    left: 17px;
    z-index: 1500; /* Higher than the menu to stay on top */
    cursor: pointer;
}

.top-left-logo img {
    width: 280px; /* Use the full width of the logo */
    height: auto; /* Maintain aspect ratio */
    display: block;
}


.tour-menu {
	position: absolute;
	top: 0px;
	left: 0px;
	z-index: 1000;
	background-color: rgba(58, 72, 87, 0.9);
	border-radius: 0;
	padding: 0;
	width: 320px;
	border: none;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
	transition: transform 0.3s ease-in-out;
	transform: translateX(0); /* Default position */
	max-height: 80vh; /* Control max height */
	overflow-y: none; 
}

.menu-toggle {
	position: absolute;
	bottom: 0px;
	left: 0px;
	z-index: 1001;
	background-color: white;
	color: #990000;
	border: none;
	cursor: pointer;
	width: 100px;
	height: 80px;
	text-align: center;
	padding: 0;
}

/* Logo placeholder at top of menu */
.logo-placeholder {
	height: 88px; /* Same height as menu items */
	width: 100%;
	display: block;
	background-color: transparent;
	/* Add styling here when you want to add a logo */
}

.menugroup {
	position: relative;
	margin-bottom: 0;
}

.menugroup-title {
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.5px;
	padding: 0 16px;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border-bottom: none;
	background-color: transparent;
	margin-bottom: 0;
	border-radius: 0;
	transition: all 0.2s;
	height: 88px;
	border-top: 1px solid #ffffff9c;
}

.menugroup-title:hover {
	color: #ffffff; 
	background-color: #990000; 
}

.menugroup-items {
	position: absolute;
	left: 100%;
	top: 0;
	background-color: rgba(58, 72, 87, 0.9); 
	border-radius: 0;
	padding: 0;
	width: 340px;
	max-height: 320px; /* Limit to approximately 5 items (5 * 64px per item) */
	overflow-y: auto; /* Enable scrolling for additional items */
	z-index: 1002;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	border: none;
	transition: opacity 0.2s, transform 0.2s;
	scrollbar-width: auto; /* For Firefox */
	scrollbar-color: rgba(255, 255, 255, 0.3) transparent; /* For Firefox */
}

/* Custom scrollbar styling for WebKit browsers */
.menugroup-items::-webkit-scrollbar {
	width: 6px;
}

.menugroup-items::-webkit-scrollbar-track {
	background: transparent;
}

.menugroup-items::-webkit-scrollbar-thumb {
	background-color: rgba(255, 255, 255, 0.3);
	border-radius: 0px;
}

.menugroup-items::-webkit-scrollbar-thumb:hover {
	background-color: rgba(255, 255, 255, 0.5);
}


.menugroup-title::after {
	content: '>';
	margin-left: auto; 
	font-size: 16px;
	width: 23px;
	height: 23px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: poppins;
	font-weight: 400;
	transition: transform 0.2s;
	background-color: #990000;
}

.menugroup-title:hover::after {
	opacity: 1;
	transform: translateX(3px);
	color: #ffffff; 
}


.menu-toggle {
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
	transition: background-color 0.2s;
	font-family: 'Poppins', sans-serif;
	font-weight: 700; 
	font-size: 12pt; 
	letter-spacing: 0.5px;
}

.menu-toggle:hover {
	background-color: #f0f0f0; 
}

/* Hidden by default; shown on small screens */
.menu-close {
	display: none;
}

.scene-item {
	cursor: pointer;
	margin-bottom: 0;
	color: #ffffff;
	padding: 0 16px;
	transition: all 0.2s;
	border-radius: 0;
	font-size: 14px;
	padding-top: 10px;
	padding-bottom: 10px;
	font-weight: 600;
	min-height: 44px; 
	display: flex;
	align-items: center;
	white-space: normal; 
	border-top: 1px solid #ffffff9c;
}

.scene-item:hover {
	color: #ffffff; 
	background-color: #990000; 
}

.active-scene {
	color: #ffffff; 
	background-color: #990000; 
	font-weight: 500;
}

/* Menu sliding animations */
.menu-hidden {
	transform: translateX(-100%); /* Slide out to the left */
	display: block !important; /* Override display:none and ensure it's always displayed */
}

/* Mobile landscape rotate overlay (hidden by default) */
#rotateOverlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 101%;
	height: 101%;
	z-index: 100000;
	background: #000000;
	display: none;
	align-items: center;
	justify-content: center;
	text-align: center;
}

#rotateOverlay img {
	width: 80px;
	height: auto;
}

#rotateOverlay .overlay-fit {
	position: absolute;
	top: 0;
	left: 0;
	width: 101%;
	height: 101%;
	object-fit: cover;
	opacity: 0; /* presence only to satisfy requirement; invisible */
}

/* Keep display:none for submenu items only */
.menugroup-items.menu-hidden {
	display: none !important; /* We still want submenus to be display:none */
	transform: none; /* No transform for submenu items */
}

/* Mobile adjustments */
@media (max-width: 1024px) {
	.menu-toggle {
		width: 70px;
		height: 56px;
		font-size: 8pt;
		z-index: 2000;
	}

}

/* Mobile layout for small phones */
@media (max-width: 640px) {
	/* Menu takes full width on small screens */
	.tour-menu {
		position: relative;
		top: 0;
		left: 0;
		width: 100%;
		height: 100dvh;
		max-height: none;
		overflow-y: auto;
		z-index: 3000;
		background-color: #3a4857;
	}

	/* Submenu opens below the selected group */
	.menugroup-items {
		position: static;
		left: auto;
		top: auto;
		width: 100%;
		max-height: none;
		box-shadow: none;
		overflow-y: scroll;
	}

	/* Hide the menu entirely when toggled off on small screens */
	.tour-menu.menu-hidden {
		display: none !important;
		transform: none;
	}



	/* Close button at top-right of menu container */
	.menu-close {
		display: block;
		position: absolute;
		top: 8px;
		right: 8px;
		z-index: 1002;
		background: transparent;
		border: none;
		color: #ffffff;
		font-size: 24px;
		line-height: 1;
		cursor: pointer;
	}

	.top-left-logo {
		position: absolute;
		top: 21px;
		left: 50%;
		transform: translateX(-50%);
		z-index: 4000; /* Higher than the menu to stay on top */
		cursor: pointer;
	}

	/* Top logo size on mobile */
	.top-left-logo img {
		width: 200px;
	}
}

/* Only on mobile: show overlay in landscape, hide in portrait */
@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
	#rotateOverlay { display: flex; }
}

@media (hover: none) and (pointer: coarse) and (orientation: portrait) {
	#rotateOverlay { display: none; }
}

/* Fallback for devices/browsers that don't report pointer/hover correctly */
@media (max-width: 1024px) and (orientation: landscape) {
	#rotateOverlay { display: flex; }
}

@media (max-width: 1024px) and (orientation: portrait) {
	#rotateOverlay { display: none; }
}

