/* =========================================================
   GENERAL STYLES
   ========================================================= */

body {
  margin: 0;
  background-color: #bebcc0;
  color: #222;
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: #542477;
}

a:hover {
  color: #d4af37;
}


/* =========================================================
   NOTICE BAR
   ========================================================= */

.notice-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 2px solid #d4af37;
  background-color: #7e2b2b;
  color: #fff;
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-align: right;
}

.notice-bar marquee {
  display: block;
  width: 100%;
  padding: 7px 10px;
  box-sizing: border-box;
  font-size: 15px;
}

.notice-bar strong {
  -webkit-text-stroke: 1px black;
}

.notice-bar .marqueep {
  display: inline;
  margin: 0;
  -webkit-text-stroke: 0.5px black;
}


/* =========================================================
   HEADER AND CONTENT CONTAINERS
   ========================================================= */

.navigation-bar,
body > section:not(.navigation-bar) {
  width: 985px;
  max-width: calc(100% - 40px);
  box-sizing: border-box;
  border: 2px solid #d4af37;
}

.navigation-bar {
  position: relative;
  z-index: 1000;
  height: 125px;
  margin: 30px auto 0;
  background-color: #160b24;
  color: #fff;
}

body > section:not(.navigation-bar) {
  margin: 0 auto;
  padding: 28px 30px;
  border-top: 0;
  background-color: #f7f4f0;
}


/* =========================================================
   BRANDING
   ========================================================= */

.header-top {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 6px 12px 4px;
  box-sizing: border-box;
}

.branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.branding img,
.navigation-bar h1 {
  position: relative;
  top: 15px;
}

.branding img {
  display: block;
  width: 80px;
  height: auto;
}

.navigation-bar h1 {
  margin: 0;
  font-size: 31px;
  line-height: 0.9;
  letter-spacing: 1px;
  text-align: left;
}

.navigation-bar h1 span {
  display: block;
}


/* =========================================================
   GOVERNMENT INFORMATION AND PORTAL ROW
   ========================================================= */

.nav-btns {
  position: relative;
  top: -7px;
  left: -1px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
}

.govinfo {
  position: relative;
  top: 5px; /* Moves only the text down */
  min-width: 0;
  font-size: 12px;
  text-align: right;
}

.dropdown {
  position: relative;
  flex: 0 0 auto;
}


/* =========================================================
   BUTTONS AND DROPDOWN LINKS
   ========================================================= */

.navigation-bar button,
.dropdown-content a {
  display: block;
  box-sizing: border-box;
  border: 2px solid #d4af37;
  background-color: #160b24;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: bold;
  white-space: nowrap;
}

.navigation-bar button {
  margin: 0;
  padding: 5px 20px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1500;
  width: 100%;
  min-width: max-content;
}

.dropdown-content a {
  margin-top: -2px;
  padding: 7px 15px;
  text-decoration: none;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}


/* =========================================================
   THEME TOGGLE
   ========================================================= */

.lidark {
  position: absolute;
  top: 10px;
  right: 4px;
}

#theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
}

.lidarkicon {
  display: block;
  width: 30px;
  height: auto;
}

.lang {
  position: absolute;
  top: 10px;
  right: 50px;
}

#lang-dropdown {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  box-sizing: border-box;
}

/* Open the language menu when its hidden attribute is removed */
.lang > .dropdown-content:not([hidden]) {
  display: block;
}

/* =========================================================
   CONTENT HEADINGS
   ========================================================= */

body > section:not(.navigation-bar) h2 {
  margin: 0 0 18px;
  padding-bottom: 7px;
  border-bottom: 3px solid #d4af37;
  color: #271433;
  font-size: 30px;
}

body > section:not(.navigation-bar) h3 {
  margin-bottom: 10px;
  padding-bottom: 3px;
  border-bottom: 1px solid #d4af37;
  color: #542477;
}


/* =========================================================
   DARK MODE
   ========================================================= */

body.dark-mode {
  background-color: #100e14;
  color: #eee9f2;
}

body.dark-mode > section:not(.navigation-bar) {
  background-color: #211b28;
  border-color: #b99845;
}

body.dark-mode > section:not(.navigation-bar) h2 {
  color: #f0e4fa;
  border-color: #b99845;
}

body.dark-mode > section:not(.navigation-bar) h3 {
  color: #d6b3ef;
  border-color: #b99845;
}

body.dark-mode a {
  color: #d6b3ef;
}

body.dark-mode a:visited {
  color: #bea4d3;
}

body.dark-mode a:hover {
  color: #f0ce70;
}

body.dark-mode .navigation-bar,
body.dark-mode .navigation-bar button,
body.dark-mode .dropdown-content a {
  background-color: #100919;
  color: #eee9f2;
  border-color: #b99845;
}

body.dark-mode .notice-bar {
  background-color: #4c2028;
  color: #fff1f1;
  border-color: #b99845;
}

body.dark-mode .notice-bar strong {
  color: #f0ce70;
}

body.dark-mode .notice-bar strong,
body.dark-mode .notice-bar .marqueep {
  -webkit-text-stroke: 0;
}


/* =========================================================
   HOVER AND KEYBOARD FOCUS — BOTH THEMES
   ========================================================= */

.navigation-bar button:hover,
.navigation-bar button:focus-visible,
.navigation-bar .dropdown-content a:hover,
.navigation-bar .dropdown-content a:focus-visible,
body.dark-mode .navigation-bar button:hover,
body.dark-mode .navigation-bar button:focus-visible,
body.dark-mode .dropdown-content a:hover,
body.dark-mode .dropdown-content a:focus-visible {
  background-color: #d4af37;
  color: #160b24;
}


/* =========================================================
   SMALLER SCREENS
   ========================================================= */

@media (max-width: 800px) {
  .navigation-bar {
    height: auto;
    min-height: 125px;
  }

  .header-top {
    padding: 12px 52px 12px 12px;
  }

  .branding img,
  .navigation-bar h1 {
    top: 0;
  }

  .nav-btns {
    top: 0;
    left: 0;
    padding: 0 4px 7px 12px;
  }

  .govinfo {
    overflow-wrap: anywhere;
  }

  .navigation-bar .dropbtn {
    padding: 7px 4px;
    font-size: 12px;
  }
}

@media (max-width: 550px) {
  .navigation-bar,
  body > section:not(.navigation-bar) {
    max-width: calc(100% - 20px);
  }

  body > section:not(.navigation-bar) {
    padding-right: 18px;
    padding-left: 18px;
  }

  .navigation-bar h1 {
    font-size: 24px;
  }

  .branding img {
    width: 70px;
  }

  .navigation-bar .dropbtn {
    padding: 6px 2px;
    font-size: 11px;
  }
}

/* calendar */

.calendar {
    width: 100%;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-size: 0.75em;
}

.calendar-weekdays > div {
    text-align: center;
    font-weight: bold;
}

.monthbtn {
  display: block;

  padding: 7px 15px;

  color: black;

  background-color: white;

  border: 2px solid #d4af37;

  margin-top: -2px;

  text-decoration: none;

  white-space: nowrap;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 15px;
  font-weight: bold;

  box-sizing: border-box;
}

.monthbtn:hover {
  background-color: #d4af37;
  color: #160b24;
  cursor: pointer;
}

.calendar-day {
    min-height: 50px;
    border: 1px solid #ccc;
    padding: 8px;
    box-sizing: border-box;
}

.outside-month {
    background-color: #e5e5e5;
    color: #999;
}

.calendar-day > span {
    font-weight: bold;
}

.events {
    margin-top: 5px;
}

.event {
    font-size: 0.85em;
}

/* Holiday Table */

.holiday-table {
  width: 100%;

  border-collapse: collapse;

  margin-top: 20px;

  font-family: Georgia, "Times New Roman", serif;

  background-color: white;

  color: #222;
}

.holiday-table th {
  background-color: #6c6872;
  color: white;

  border: 2px solid #d4af37;

  padding: 10px 12px;

  font-size: 16px;
  font-weight: bold;

  text-align: left;
}

.holiday-table td {
  border: 1px solid #d4af37;

  padding: 9px 12px;

  vertical-align: top;
}

.holiday-table tr {
  background-color: #ececec;
}

/* use this vvv only if function is provided for clicking.
/* .holiday-table tr:hover {
  background-color: #eee4f3; *
} *

/* =========================================================
   DARK MODE
   ========================================================= */

/* Page background and default text */
body.dark-mode {
  background-color: #100e14;
  color: #eee9f2;
}

/* Main content panels */
body.dark-mode > section:not(.navigation-bar) {
  background-color: #211b28;
  border-color: #b99845;
}

/* Main heading */
body.dark-mode > section:not(.navigation-bar) h2 {
  color: #f0e4fa;
  border-color: #b99845;
}

/* Section headings */
body.dark-mode > section:not(.navigation-bar) h3 {
  color: #d6b3ef;
  border-color: #b99845;
}

/* Links within page content */
body.dark-mode a {
  color: #d6b3ef;
}

body.dark-mode a:visited {
  color: #bea4d3;
}

body.dark-mode a:hover {
  color: #f0ce70;
}

/* Header */
body.dark-mode .navigation-bar {
  background-color: #100919;
  color: #eee9f2;
  border-color: #b99845;
}

body.dark-mode .navigation-bar h1,
body.dark-mode .navigation-bar p {
  color: #eee9f2;
}

/* Navigation table borders */
body.dark-mode .nav-buttons td {
  border-color: #b99845;
}

/* Navigation buttons, including the theme toggle */
body.dark-mode .navigation-bar button {
  background-color: #100919;
  color: #eee9f2;
  border-color: #b99845;
}

/* Dropdown background */
body.dark-mode .dropdown-content {
  background-color: #100919;
}

/* Dropdown links, including previously visited links */
body.dark-mode .dropdown-content a,
body.dark-mode .dropdown-content a:visited {
  background-color: #100919;
  color: #eee9f2;
  border-color: #b99845;
}

/* Hover and keyboard focus */
body.dark-mode .navigation-bar button:hover,
body.dark-mode .navigation-bar button:focus-visible,
body.dark-mode .dropdown-content a:hover,
body.dark-mode .dropdown-content a:focus-visible {
  background-color: #d4af37;
  color: #160b24;
}

/* Notice bar */
body.dark-mode .notice-bar {
  background-color: #4c2028;
  color: #fff1f1;
  border-color: #b99845;
}

body.dark-mode .notice-bar marquee,
body.dark-mode .notice-bar .marqueep {
  color: #fff1f1;
  -webkit-text-stroke: 0;
}

body.dark-mode .notice-bar strong {
  color: #f0ce70;
  -webkit-text-stroke: 0;
}

.dark-mode .outside-month {
    background-color: black;
    color: #999;
}

.dark-mode .monthbtn {
  color: white;

  background-color: black;

  border: 2px solid #d4af37;

  margin-top: -2px;

  text-decoration: none;

  white-space: nowrap;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 15px;
  font-weight: bold;

  box-sizing: border-box;
}

.dark-mode .monthbtn:hover {
  background-color: #d4af37;
  color: #160b24;
  cursor: pointer;
}


.dark-mode .holiday-table th {
  background-color: #525153;
  color: white;

  border: 2px solid #d4af37;

  padding: 10px 12px;

  font-size: 16px;
  font-weight: bold;

  text-align: left;
}

.dark-mode .holiday-table td {
  border: 1px solid #d4af37;

  padding: 9px 12px;

  vertical-align: top;
}

.dark-mode .holiday-table tr {
  background-color: #6c6872;
  color: #ececec
}

.constitution-table {
  width: 100%;

  border-collapse: collapse;

  margin-top: 20px;

  font-family: Georgia, "Times New Roman", serif;

  background-color: white;

  color: #222;
}

.constitution-table th {
  background-color: #6c6872;
  color: white;

  border: 2px solid #d4af37;

  padding: 10px 12px;

  font-size: 16px;
  font-weight: bold;

  text-align: left;
}

.constitution-table td {
  border: 1px solid #d4af37;

  padding: 9px 12px;

  vertical-align: top;
}

.constitution-table tr {
  background-color: #ececec;
}

.preamble {
  font-style: italic;
}

.dark-mode .constitution-table th {
  background-color: #525153;
  color: white;

  border: 2px solid #d4af37;

  padding: 10px 12px;

  font-size: 16px;
  font-weight: bold;

  text-align: left;
}

.dark-mode .constitution-table td {
  border: 1px solid #d4af37;

  padding: 9px 12px;

  vertical-align: top;
}

.dark-mode .constitution-table tr {
  background-color: #6c6872;
  color: #ececec
}

.login-container {
background: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
width: 50%;
margin: auto;
}
.login-container h3 {
text-align: center;
margin-bottom: 20px;
}
.login-container label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
.login-container input[type="text"],
.login-container input[type="password"] {
width: 95%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 4px;
}
.login-container button {
width: 100%;
padding: 10px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
.login-container button:hover {
background-color: #45a049;
}
.login-container a {
display: block;
text-align: center;
margin-top: 10px;
color: #007BFF;
text-decoration: none;
}
.login-container a:hover {
text-decoration: underline;
}

/* =========================================================
   FLAGS AND COAT OF ARMS
   ========================================================= */
   



.hdtitle {
  text-align: center;
  justify-content: space-between;
  gap: 50px;
}

   .flag {
     width: 100px;
  height: auto;
  position: relative;
  flex: 1;
  border: 1px solid black;
  right: 10px;

}

.countyName {
  flex: 1;
  padding-left: 10px;
}

.coa {
  width: 80px;
  height: auto;
  position: relative;
  left: 10px;
}

.libgardCOA {
  width: 60px;
  height: auto;
  position: relative;
  left: 10px;
}

.diplomacy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.diplomacyleft-image {
  height: auto;
  flex: 1
}

.diplomacyright-image {
  height: auto;
}

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.history-text {
  flex: 1;
}

.history-image {
  width: 300px;
  height: auto;
  border: 2px solid black;
}

.content-text {
  flex: 1;
}

.right-image {
  width: 300px;
  height: auto;
  border: 2px solid black;
}

.contact-table {
  width: 100%;

  border-collapse: collapse;

  margin-top: 20px;

  font-family: Georgia, "Times New Roman", serif;

  background-color: white;

  color: #222;
}

.contact-table th {
  background-color: #6c6872;
  color: white;

  border: 2px solid #d4af37;

  padding: 10px 12px;

  font-size: 16px;
  font-weight: bold;

  text-align: left;
}

.contact-table td {
  border: 1px solid #d4af37;

  padding: 9px 12px;

  vertical-align: top;
}

.contact-table tr {
  background-color: #ececec;
}

.dark-mode .contact-table th {
  background-color: #525153;
  color: white;

  border: 2px solid #d4af37;

  padding: 10px 12px;

  font-size: 16px;
  font-weight: bold;

  text-align: left;
}

.dark-mode .contact-table td {
  border: 1px solid #d4af37;

  padding: 9px 12px;

  vertical-align: top;
}

.dark-mode .contact-table tr {
  background-color: #6c6872;
  color: #ececec
}