/* ============================
   GLOBAL RESET
============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================
   BODY
============================ */
body {
  font-family: Verdana, Arial, sans-serif;
  height: 100vh;
  background-color: #f0f0f0;
  background-image: url('graphics/town-hall-back.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* ============================
   NAVBAR
============================ */
.navbar {
/*  background-color: rgba(0, 0, 0, 0.7);*/
  background-color: #444444;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font-size: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(5px);
}

/* Navbar links */
.navbar a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 0 0 5px 5px;
  transition: background-color 0.3s;
}

.navbar a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.navbar a.active {
  background-color: #007acc;
}

/* Dropdown container */
.navbar .dropdown {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  flex-direction: column;
}

.navbar .dropbtn {
  cursor: pointer;
}

.navbar .dropbtn::after {
	content: " ▼";
	font-size: 0.7em;
	marging-left: 3px;
}

/* Dropdown content (hidden by default) */
.navbar .dropdown .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
/*  background-color: rgba(0, 0, 0, 0.7);*/
  background-color: #444444;
  min-width: 115px;
  z-index: 100;
  border-radius: 0 0 5px 5px;
  flex-direction: column;
  text-align: left;
  padding: 5px 0;
  margin-top: 7px;
}

/* Dropdown links */
.navbar .dropdown .submenu a {
  display: block;
  padding: 8px 16px;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s;
}

.navbar .dropdown .submenu a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Show submenu on hover (desktop) */
.navbar .dropdown:hover .submenu {
  display: flex;
}

/* ============================
   FOOTER
============================ */
footer {
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  font-size: 0.75rem;
  text-align: center;
  padding: 10px 0;
  z-index: 100;
}

/* ============================
   MAIN CONTENT
============================ */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 40px;
  border-radius: 15px;
  max-width: 800px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

h1 {
  font-size: 3.5rem;
  color: #88ccff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

p {
  font-size: 1.3rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

table {
  background-color: rgba(0, 0, 0, 0);
  border: none;
}

td {
  text-align: left;
}

a {
  color: orange;
  text-decoration: none;
}

a:hover {
  color: white;
}

/* ============================
   MOBILE STYLES
============================ */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .navbar a, 
  .navbar .dropbtn {
    width: 100%;
  }

  /* Make dropdown submenu static under parent on mobile */
  .navbar .dropdown .submenu {
    position: static;
    display: none;
    width: 100%;
    padding-left: 10px;
    flex-direction: column;
  }

  /* Show submenu when parent is clicked (JS toggle) */
  .navbar .dropdown.active .submenu {
    display: flex;
  }
}
