body {
  font-family: Arial, sans-serif;
  background: #f3f4f6;
  margin: 0;
  padding: 0;
}

.main-header {
	background-color: #FFFFFF;
	padding: 0.5rem;
	display: flex;
	justify-content: flex-start;
	justify-items: center;
	gap: 1rem;
	max-height: 4.5rem;
	border-bottom: 2px solid #222222;
}

.main-header .logo-img {
	width: 25%; 
	max-height: 100%;
	object-fit: contain;
}

h1 {
	flex-grow: 1;
	text-size: 1.5rem;
}

nav a {
    text-decoration: none;
    color: #333;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}
nav a.active {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

main {
	margin-top: 0.5rem;
	margin-left: auto;
	margin-right: auto;
}

.sidebar {
	border: 2px solid black;
	width: min-content;
	margin-left: 0.5rem;
	margin-right: 0.5rem;
	padding: 1rem;
	border-radius: 0.5rem;
	background-color: #FFFFFF;
}

.container {
	margin-left: auto;
	margin-right: auto;
	max-width: 80%;
	background: white;
	padding: 0.5rem 1.5rem;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

section.container {
	font-size: 1rem;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	margin-top: 0.5rem;
	place-items: center;
	justify-items: center;
}

section.container div {
	flex: 1 1 0px;
}

.content {
	line-height: 1.33;
}

/*
 * Form and form elements
 * 
 */
label {
  display: block;
  margin-bottom: 0.25rem;
  margin-right: 0.25rem;
}

form div {
	margin-bottom: 0.25rem;
}
input[type="text"],
input[type="number"],
input[type="password"] {
	display: block;	
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
	min-width: 13rem;
}

.primary-btn{
  width: fit-content;
  padding: 0.66rem 1rem;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.primary-btn:hover {
  background: #1d4ed8;
}

.primary-btn a {
	text-decoration: none;
	color: white;
}
a.primary-btn {
	height: fit-content;
}

.delete-btn {
  background: none;
  border: none;
  color: red;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}
.map-container {
	margin-left: 1rem;
	margin-right: 1rem;
	display: flex;
}

#colorbar-container {
	display: flex;
	flex-direction: column;
	gap: 0.33rem;
	height: 500px;
	margin-left: 0.5rem;
}

#colorbar {
	max-width: 1rem;
	height: 100%;
}

#map {
	flex-grow: 2;
	height: 500px;
	z-index: 1
}
.delete-btn {
  background: none;
  border: none;
  color: red;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}

/* Modal Classes */
#modal-container{
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  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 */
}

/* Modal Content/Box */
#modal-content {
	background-color: #fefefe;
	margin: 15% auto; /* 15% from the top and centered */
	padding: 20px;
	border: 1px solid #888;
	width: 50%; /* Could be more or less, depending on screen size */
	display: flex;
	flex-direction: column;
}

#modal-content header {
	width: 100%
}

#job-progress-meter {
	height: 5px;
	position: relative;
	background: #f3efe6;
	overflow: hidden;
	width: 100%;
}

#job-progress-meter span {
	display: block;
	height: 100%;
	width: 100%;
}

.progress {
	width: 0%;
	background-color: #004bbd;
	transition: all 0.7s ease;

}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#error-box {
	display: none;
	color: darkred;
	padding: 1rem;
	border: 2px solid darkred;
	border-radius: 0.5rem;
}

/*Classes to change leaflet image rendering*/
.leaflet-image-layer {
	image-rendering: pixelated;
}

.leaflet-opacity-toggle {
	padding: 0.5rem 0.5rem;
	border: 2px solid #777777FF;
	background-color: #FFFFFFCC;
	border-radius: 0.5rem;
}


.loader {
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 70px;
  height: 70px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.modal-message-container {
  display: flex;
  flex-direction: column;
  align-content: center;
  place-items: center;
  gap: 0.33rem;
}
