html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  color: #eee;
  background: url('/images/background.jpg') no-repeat center center fixed;
  background-size: cover;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 800px;
  margin: auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  color: #000;
  background-color: transparent; /* allow page-specific backgrounds */
}


/* Page-specific backgrounds */
.index-main {
  background: #8a9ab5 !important;
}

.about-main {
  background: url('/images/about-bg.jpg') no-repeat center center;
  background-size: cover;
}

.gallery-main {
  background: #8a9ab5 !important;
}

.contact-main {
  background: #8a9ab5 !important;
}

.admin-main {
  background: #8a9ab5 !important;
}

.gallery_manage-main {
  background: #8a9ab5 !important;
}

.upload-main {
  background: #8a9ab5 !important;
}

.news-main {
  background: #D3D3D3 !important;
}

.charts-main {
  background: #D3D3D3 !important;
}

.radar-main {
  background: #D3D3D3 !important;
}

.manage_dropdowns-main {
  background: #D3D3D3 !important;
}

.view_history-main {
  background: #D3D3D3 !important;
}

.view_stats-main {
  background: #D3D3D3 !important;
}

header, footer {
  background: #003366;
  color: white;
  padding: 10px 20px;
}

nav {
  margin-top: 10px;
}

nav a {
  color: white;
  margin-right: 15px;
  text-decoration: none;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

form label {
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  padding: 0.5em;
  font-size: 1em;
  width: 100%;
  max-width: 600px;
}

button {
  width: fit-content;
  padding: 0.5em 1em;
  background: #003366;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background: #0055aa;
}

table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

table th,
table td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: left;
}

table th {
  background-color: #f0f0f0;
}

textarea.blog-content {
  height: 300px;
}

.text-block {
  background: rgba(255, 255, 255, 0.6);  /* less opaque for softer overlay */
  padding: 1.5em;
  border-radius: 10px;
  color: #111;  /* slightly darker than pure black for readability */
  text-shadow: none;  /* remove shadow to prevent fuzziness */
  backdrop-filter: blur(2px);  /* subtle blur of background behind text */
  -webkit-backdrop-filter: blur(2px);  /* Safari support */
  max-width: 700px;
  margin: 2em auto;
}

