body{
	height:98%;
	background-color: #E8E8E8;
}
.togglebar {
	width: 100%;
	height: 30px;
	background-color: #ffffff;
	border-bottom: 5px solid #c6c2b6; /* Narrow grey line above toolbar */
}

.content {
	--padding: 5px;
	text-align: center;
	display: flex;
	flex-direction: column;
	height: 90%; /* Container takes up full height of the viewport */
}

#search {
	background-color: #690b45;
	border: 1px solid white;
	color: white;
	padding: 2px 4px; /* Smaller size */
	border-radius: 4px;
	font-size: 14px; /* Adjust font size */
	cursor: pointer;
	transition: background-color 0.3s ease; /* Smooth hover effect */
}

#search:hover {
	background-color: lightgray;
	color: #690b45; /* Optional: Change text color on hover */
}

/* Leaflet Map Styling */
#map {
	height: 650px; /*Adjust the height as needed */
	width: 100%; /* Full width */
	flex-grow: 1; /* Take up the remaining space */
}

/* Hide the actual file input element */
input[type="file"] {
	display: none;
}
/* Add some space for the map container */
.content-map {
	--border-top: 5px solid #c6c2b6; /* Narrow grey line above toolbar */
	--border-bottom: 5px solid #c6c2b6;
	/* Narrow grey line above toolbar */
	--border-left: 5px solid #c6c2b6; /* Narrow grey line above toolbar */
	--border-right: 5px solid #c6c2b6; /* Narrow grey line above toolbar */
}

.thelog {
	border-top: 5px solid #c6c2b6; /* Narrow grey line above toolbar */
	border-bottom: 5px solid #c6c2b6; /* Narrow grey line above toolbar */
	border-left: 5px solid #c6c2b6; /* Narrow grey line above toolbar */
	border-right: 5px solid #c6c2b6; /* Narrow grey line above toolbar */
}

.dummymap {
	flex-grow: 1; /* Take up the remaining space */
	background-color: lightgreen;
}

/* Basic styles for the menu */
.menu {
	position: fixed;
	/* Always stay in the same position relative to the viewport */
	right: -300px; /* Hide it outside of the screen */
	top: 55px;
	width: 200px;
	height: 75%;
	background-color: rgba(255, 255, 255, 1.0);
	color: white;
	overflow-y: auto; /* Add scrollbar if content exceeds height */
	transition: right 0.3s ease; /* Smooth transition */
	z-index: 5000; /* Ensure it is above other content */
	padding: 20px;
	box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
	border-radius: 10px 0px 0px 10px;
}

/* Styles for the menu items */
.menu ul {
	list-style-type: none;
	padding: 0;
}

.menu ul li {
	margin: 10px 0;
}

.menu ul li a {
	color: rgb(0, 0, 0);
	text-decoration: none;
	font-size: 14px;
	cursor: pointer;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Menu is visible when .menu-open class is added */
.menu.menu-open {
	right: 0;
}

.menup {
	color: rgb(0, 0, 0);
	font-size: 14px;
}

.menupbold {
	color: rgb(0, 0, 0);
	font-size: 14px;
	font-weight: bold;
}

.menupsmall {
	color: rgb(0, 0, 0);
	font-size: 10px;
}

/* Custom Tooltip: Remove background and padding */
.custom-tooltip {
	background: transparent !important; /* No background */
	color: black !important; /* Text color */
	font-size: 14px !important;
	font-weight: bold; /* Optional: Bold text */
	padding: 0 !important; /* Remove padding */
	border: none !important; /* No border */
	box-shadow: none !important; /* No shadow */
}

/* Remove the tooltip arrow */
.leaflet-tooltip::before {
	display: none !important;
}

.custom-tooltip-OLD {
	background-color: white;
	color: black;
	font-size: 14px;
	border-radius: 4px;
	padding: 1px 1px; /* Reduced padding */
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

#toast {
	animation: fadein 0.5s, fadeout 0.5s 2.5s;
	z-index: 2001;
}

@keyframes fadein {
	from {bottom: 0;
	opacity: 0;
}

to {
	bottom: 20px;
	opacity: 1;
}

}
@keyframes fadeout {
	from {bottom: 20px;
	opacity: 1;
}

to {
	bottom: 0;
	opacity: 0;
}

}

/* Fade-in animation */
@keyframes fadeInDIV {
	0% {
		opacity: 0;
		top: 500px;
	}
	100% {
		opacity: 0.85;
		top: 100px;
	}
}



/* map toggles */

/* Style for the toggle tab */
.tab {
	position: fixed;
	left: 10px;
	top: 65px;
	width: 100px; /* Make the tab thin */
	height: 20px; /* Adjust height as necessary */
	background-color: #ffffff;
	opacity: 0.7;
	color: black;
	cursor: pointer;
	text-align: center;
	z-index: 1500; /* Keep it on top of other elements */
	padding: 3px; /* Add some padding for the text */
	/* Round the top-right and bottom-right corners */
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
	border: 1px solid #ccc;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	font-size: 14px;
	align-items: center;
}

/* Style for the postcode search tab */
.postcodesearch {
	display: inline-block;
	position: fixed;
	left: 120px;
	top: 65px;
	width: 220px; /* Make the tab thin */
	height: 26px; /* Adjust height as necessary */
	/* background-color: #ffffff; */
	opacity: 1.0;
	color: black;
	cursor: pointer;
	text-align: center;
	z-index: 1500; /* Keep it on top of other elements */
	padding: 3px; /* Add some padding for the text */
	/* Round the top-right and bottom-right corners */
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
	/* border: 1px solid #ccc; */
	/* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
	font-size: 14px;
	align-items: center;
}

#layerControl {
	position: fixed;
	top: 100px;
	left: 10px;
	background-color: rgba(255, 255, 255, 1.0);
	border: 1px solid #ccc;
	padding: 5px;
	z-index: 3000;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
	border-radius: 10px;
	opacity: 0.7; /* Default transparency */
	transition: opacity 0.3s ease; /* Smooth transition */
	transform: translateX(-120%);
}

/* When the panel is visible */
#layerControl.visible {
	transform: translateX(0);
}

#layerControl h4 {
	margin: 0 0 5px 0;
	font-size: 10px;
}

#layerControl label {
	display: block;
	margin-bottom: 0px;
	font-size: 10px;
}

.tab-button {
	padding: 10px 20px;
	background-color: #007bff;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}

#notification {
	position: fixed;
	top: 10px;
	right: 60px;
	background-color: #ffffff;
	color: black;
	padding: 2px;
	border-radius: 5px;
	opacity: 0; /* Start invisible */
	transition: opacity 1s ease; /* Transition for fading effect */
	z-index: 4000;
}

#notification.show {
	opacity: 1; /* Fully visible when 'show' class is added */
}

/* Demo mode label */
.fixed-div {
	position: fixed;
	top: 70px;
	left: 50%;
	transform: translateX(-50%);
	background-color: #f0f0f0;
	padding: 10px;
	border: 1px solid #ccc;
	z-index: 4500; /* ensures it sits on top of other content */
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	opacity: 0.85;
	font-size: 11px;
	border-radius: 5px;
	animation: fadeInDIV 2s forwards;
}

/* North arrow */
.north-arrow-div {
	position: fixed;
	top: 70px;
	right: 5px;
	padding: 0px;
	z-index: 4500; /* ensures it sits on top of other content */
}

/* coords label */
#coords-label {
	position: fixed;
	bottom: 5px;
	left: 5px;
	background-color: white;
	color: black;
	padding: 5px 5px;
	border-radius: 5px;
	font-family: Courier, sans-serif;
	font-size: 12px;
	z-index: 4501;
	border: 1px solid #ccc;
}

/* cross-section instructions label */
#cs-label {
	position: fixed;
	bottom: 5px;
	right: 5px;
	background-color: white;
	color: black;
	padding: 5px 5px;
	border-radius: 5px;
	font-family: Courier, sans-serif;
	font-size: 12px;
	z-index: 2000;
	border: 1px solid #ccc;
}

/* toggle labels label */
#toggle-labels-label {
	position: fixed;
	bottom: 5px;
	right: 180px;
	background-color: white;
	color: black;
	padding: 5px 5px;
	border-radius: 5px;
	font-family: Courier, sans-serif;
	font-size: 12px;
	z-index: 2000;
	border: 1px solid #ccc;
}

/* Instructions div stuff */
/* Centered floating div */
#historic-maps-instruction-box {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 300px;
	padding: 20px;
	background-color: white;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	text-align: center;
	font-size: 12px;
	z-index: 20000;
	display: none; /* Hidden by default */
}

#historic-maps-close-btn {
	margin-top: 15px;
	padding: 10px 15px;
	background-color: #690b45;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

#historic-maps-close-btn:hover {
	background-color: #0056b3;
}

#instruction-box {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 300px;
	padding: 20px;
	background-color: white;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	text-align: center;
	font-size: 12px;
	z-index: 20000;
	display: none; /* Hidden by default */
}

/* Close button styles */
#close-btn {
	margin-top: 15px;
	padding: 10px 15px;
	background-color: #690b45;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

#close-btn:hover {
	background-color: #0056b3;
}

/* Cookie banner styling */
.cookie-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: #333;
	color: white;
	padding: 20px;
	text-align: center;
	display: none; /* Initially hidden */
	z-index: 19999;
}

.cookie-banner button {
	padding: 10px 20px;
	background-color: #690b45;
	color: white;
	border: none;
	cursor: pointer;
}

.cookie-banner button:hover {
	background-color: #45a049;
}

.opacity-slider {
	position: absolute;
	top: 200px;
	left: 10px;
	background: white;
	padding: 10px;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	z-index: 10000;
}

/* Cross section button styling */
.cs-btn {
	background: #fff;
	border: 2px solid #fff;
	border-radius: 3px;
	color: #000;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 25px;
	height: 25px;
	overflow: hidden;
	transition: all 0.3s ease;
	position: relative;
	font-family: Arial, sans-serif;
	font-size: 10px;
	font-weight: bold;
}

.cs-btn:hover {
	width: 150px;
	height: 50px;
	background: #fff;
	display: grid;
}

.cs-btn:hover .cs-text {
	display: none;
}

.cs-btn:hover .cs-text-expanded {
	display: flex;
	font-size: 12px;
}

.cs-text-expanded {
	display: none;
	white-space: nowrap;
	width: 146px;
	height: 21px;
	margin:2px;
	align-items: center;
	justify-content: center;
}

.cs-text-expanded:hover {
	background-color: #eee;
}

.cs-btn.active {
	background: rgb(255, 255, 0);
	border: 2px solid #fff;
}

.cs-btn.active:hover {
	background: #fff;
}

.cs-text-expanded.active {
	background: rgb(255, 255, 0);
}

/* Line controls */
.line-ctrls {
	position: fixed;
	bottom: 100px;
	left: 50px;
	width: 360px;
	height: 35px;
	border: 2px solid rgba(204, 204, 204, 0.8);
	padding: 2px;
	display: none;
	z-index: 3000;
	background-color: rgb(255, 255, 255);
	border-radius: 3px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	font-size: 14px;
}


.close-line-ctrls {
	position: absolute;
	top: 2px;
	right: 2px;
	background: transparent;
	border: none;
	font-size: 16px;
	cursor: pointer;
}

.buff-line-ctrl{
	width: 100px; 
	height: 10px;
	accent-color: rgb(105,11,69);
}

.print-line-ctrl{
	padding:5px;
	vertical-align: bottom;
}

.print-line-ctrl:hover{
	cursor: pointer;
	background: rgb(255, 255, 0);
}

.colour-line-ctrl{
	--margin-left: 10px;
	height: 20px;
}


.buff-val{
	width: 40px;
	padding-left: 5px;
}



/* Coordinate entry for cross section */
.coord-entries {
	background-color: #eee;
	width: 300px;
	min-height: 200px;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	position: fixed;
	bottom:250px;
	left:20px;
	display:none;
	z-index: 1000;
}

.coord-header {
	background-color: #690b45;
	color: white;
	font-size: 16px;
	padding: 5px;
	border-radius: 8px;
	min-width: 290px;
	font-size: 20px;
}

.input-container {
	padding: 10px;
	display: flex;
	gap: 8px;
}

.coord-input {
	flex: 1;
	padding: 5px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 12px;
	width: 55px;
	height: 15px;
}

.coord-label {
	flex: none;
	align-content: center;
	font-size: 12px;
}

.coordBtn {
	padding: 6px;
	background: #690b45;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	cursor: pointer;
}

coordBtn:hover {
	background: #4f0934;
}

.coords {
	list-style: none;
	padding: 0;
	margin: 0;
	height:100px;
	overflow-y: scroll;
	scrollbar-width:thin;
}

.close-coords {
	text-align: center;
	padding: 10px;
}

.coords li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f1f1f1;
	margin-bottom: 8px;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 12px;
	transition: background 0.2s;
}

.coords li.completed {
	text-decoration: line-through;
	color: #aaa;
	background: #e2e2e2;
}

.deleteBtn {
	background: transparent;
	border: none;
	color: #e74c3c;
	font-size: 18px;
	cursor: pointer;
}

.li-number, .li-text, .li-delete {
	flex: 1 1 1 1;
	text-align: center;
}

.li-number {
	font-weight: bold;
}

.li-delete {
	flex: 0 0 auto;
	text-align: right;
}