﻿body, html {
	margin: 0;
	padding: 0;
	overflow: hidden;
	height: 100%;
}


#tabs {
	height: calc(50vh - 30px); /* You need to specify the height of your tabs header */
	overflow: hidden; /* This ensures no scrollbar on the tab container */
}


#tabs-1, #tabs-2, #tabs-3 {
	height: 100%;
	overflow-y: auto; /* This ensures a scrollbar only if the content overflows */
}


.navbar {
	height: 50px;
}

.middle-panel,
.right-panel {
	padding: 2px;
	overflow-y: auto;
}

.middle-panel {
	flex: 1;
}

#searchWidgetDiv {
	position: relative;
	top: 18px;
	left: 60px;
}

@media (max-width: 767px) {
	.navbar {
		height: auto;
		padding: 10px;
	}

	.calcite-title img.logo {
		max-height: 20px;
	}
}

footer {
	background-color: #196fa6;
	color: #fff;
	text-align: center;
	font-size: 0.9em;
	position: fixed;
	bottom: 0;
	width: 100%;
	height: 60px;
	left: 0;
	right: 0;
}

#links {
	color: white;
	padding: 5px;
}

.navbar.calcite-navbar {
	height: 60px;
	top: 0;
	left: 0;
	right: 0;
	position: fixed;
	z-index: 1000;
}


#viewDiv {
	width: 100%;
	height: 50vh; /* Adjust this value based on your requirement */
}

.right-panel, .middle-panel {
	width: 100%;
	overflow-y: hidden;
	height: 50vh; /* Adjust this value based on your requirement */
	border: 1px solid white;
	color: black;
}

/*###########################*/


footer {
	background-color: #196fa6; /* Dark background color */
	color: #fff; /* White text color */
	text-align: center; /* Center the text */
	font-size: 0.9em; /* Adjust font size as needed */
	position: absolute; /* To fix the footer to the bottom */
	bottom: 0; /* Align it to the bottom */
	width: 100%; /* Full width */
	height: 30px;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
}

#bottomLinks:hover {
	cursor: pointer;
}

#links {
	color: white;
	padding: 5px;
}

#links a {
	color: white;
}

#links a:visited {
	color: #e36d15;
}

.navbar.calcite-navbar {
	height: 30px; /* Adjust as needed */
	top: 0; /* Ensures it's at the very top */
	left: 0;
	right: 0;
	position: fixed;
	z-index: 1000; /* Keeps it above other content */
}

.wrapper {
	display: flex;
	/* 80px (header) + 60px (footer) */
	margin-top: 50px; /* Push it down by the height of the header */
	overflow-y: hidden !important;
	flex-direction: column;
	height: 100vh;
}

.ui-dialog {
	width: 80% !important; /* This will make the dialog take up 80% of the viewport width */
	max-width: 800px !important; /* This ensures the dialog doesn't get too wide, adjust as needed */
	left: 10% !important; /* To center the dialog */
}

.ui-dialog .ui-dialog-title {
	color: white !important; /* Change 'red' to your desired color */
}

.ui-dialog .ui-dialog-titlebar {
	background-color: #196fa6; /* Change 'blue' to your desired color */
}

.ui-tabs .ui-tabs-panel {
	display: block;
	border-width: 0;
	padding: 0px !important;
	background: none;
}

#togglePanel {
	position: absolute;
	top: 10px; /* Adjust as per your requirement */
	right: 10px; /* Adjust as per your requirement */
	background-color: #333;
	color: #fff;
	border: none;
	cursor: pointer;
	padding: 5px 10px;
	border-radius: 4px;
}

.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
	float: left;
	padding: 2px;
	text-decoration: none;
}


#bottomLinks a {
	color: white;
	text-decoration: underline;
}

	#bottomLinks a:visited {
		color: #e36d15;
	}

.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover {
	border: 1px solid #003eff;
	background: #196fa6;
	font-weight: normal;
	color: #ffffff;
}

.esri-view-height-less-than-medium .esri-popup__main-container {
	max-height: 300px;
	max-width: 500px !important;
	width: 400px !important;
}

.highlighted {
	border: 2px solid white;
	border-radius: 10px;
}

.popup {
	position: absolute;
	display: none;
	z-index: 100;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
	max-width: 300px;
	max-height: 300px; /* Set a max-height */
	background-color: white;
	/*border-radius: 50%;*/ /* Add this line to make the popup round */
	overflow: hidden; /* Add this line to hide any overflowing image content */
}

	.popup img {
		width: 100%;
		height: 100%;
		object-fit: cover; /* Add this line to make the image fit and cover the entire popup */
	}

.ui-widget.ui-widget-content {
	border: 0px solid #c5c5c5;
}

/*#trafficAlerts {
	max-height: calc(100vh - 180px);*/ /* Adjust this height as per your requirement */
	/*overflow-y: auto;
}

#layersDiv {
	max-height: calc(100vh - 180px);*/ /* Adjust this height as per your requirement */
	/*overflow-y: auto;
}

#trafficCameras {
	max-height: calc(100vh - 180px);*/ /* Adjust this height as per your requirement */
	/*overflow-y: auto;
}*/


.card-image-container {
	height: 100%;
	width: 100%;
	overflow: hidden;
	border: 1px solid gray;
	border-radius: 10px;
}

.card-image {
	height: 100%;
	width: 100%;
	object-fit: fill;
}

.card .icon {
	color: black;
	font-size: 40px;
}

.card {
	position: relative;
	width:100% !important;
}


.card-buttons {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
}

/* Basic button styling */
.maximize-button, .zoom-to-button {
	background-color: transparent;
	border: none;
	padding: 0;
	color: black;
	/*	padding: 5px 10px;
*/ cursor: pointer;
	transition: background-color 0.3s;
}

.camera-zoom-to-button {
	background-color: transparent;
	border: none;
	padding: 0;
	color: white;
	/*	padding: 5px 10px;
*/ cursor: pointer;
	transition: background-color 0.3s;
}

/* Hover effect */
.maximize-button:hover, .zoom-to-button:hover {
	/*background-color: rgba(255, 255, 255, 1);*/ /* Opaque white on hover */
	font-weight: bold;
}

/* Esri icon styling */
.esri-icon {
	margin-right: 2px; /* Spacing between icon and text */
}

.card-alert {
	height: auto;
	overflow: hidden;
	padding: 5px;
	/*	padding-bottom: 10px;*/
	border: 1px solid gray;
	border-radius: 10px;
	margin: 5px;
}

.card {
	width:100%;
}
.card-title {
	font-size: 14px;
}

calcite-modal {
	position: relative; /* Stay in place */
	z-index: 2; /* Sit on top */
	left: 0;
	top: 50px;
	width: 80%; /* Full width */
	/*height: 80%;*/ /* Full height */
	--calcite-modal-width: 80%;
	/*--calcite-modal-height: 80%;*/
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}



#cameraModal .modal-content {
	display: flex;
	justify-content: center;
	align-items: center;
	height: auto; /* Adjust height based on content */
	max-height: 80vh; /* Set maximum height to 80% of the viewport height */
	overflow: auto; /* Enable scrolling if needed */
}

#cameraModalImage {
	max-width: 100%; /* Image will not exceed the width of its container */
	max-height: 70vh; /* Limit image height to be within the modal, 70% of the viewport height */
	object-fit: contain; /* Scale the image to be as large as possible but ensure its aspect ratio is maintained */
	width: auto; /* Default width auto for responsiveness */
	height: auto; /* Default height auto for responsiveness */
}




