/* =========================================================
   GENERAL PAGE STYLES
   ========================================================= */

body {
  margin: 0;
  background-color: #bebcc0;
  color: #222;

  font-family: Georgia, "Times New Roman", serif;
}




/* =========================================================
   FIXED NOTICE BAR
   ========================================================= */

.notice-bar {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  box-sizing: border-box;

  background-color: #7e2b2b;
  color: white;

  border-bottom: 2px solid #d4af37;

  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;

  text-align: right;

  z-index: 2000;
}

.notice-bar strong {
  color: #d4af37;
}

.notice-bar marqueep {
  color: #d4af37;
}


/* =========================================================
   MAIN HEADER / NAVIGATION CONTAINER
   ========================================================= */

.navigation-bar {
  background-color: #160b24;
  color: white;

  width: 985px;
  max-width: calc(100% - 40px);

  height: 125px;

  margin: 30px auto 0;

  padding: 0;

  border: 2px solid #d4af37;

  box-sizing: border-box;

  box-shadow: none;

  position: relative;

  z-index: 1000;
}


/* =========================================================
   UPPER PART OF HEADER
   ========================================================= */

.header-top {
  min-height: 92px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 6px 12px 4px;

  box-sizing: border-box;
}


/* =========================================================
   BRANDING / LOGO AREA
   ========================================================= */

.branding {
  display: flex;
  align-items: center;

  gap: 10px;
}


/* crest/logo image */
.branding img {
  width: 80px;
  height: auto;
  position: relative;
  top: 15px;

  display: block;
}


/* kingdom name */
.navigation-bar h1 {
  margin: 0;

  color: white;
  position: relative;
  top: 15px;

  font-size: 31px;
  line-height: 0.9;
  letter-spacing: 1px;
  text-align: left;

  text-transform: uppercase;

  text-shadow: none;
}

.navigation-bar h1 span {
  display: block;
}

/* =========================================================
   GOVERNMENT INFORMATION
   ========================================================= */

.navigation-bar p {
  margin: 0;

  align-self: flex-end;

  padding-right: 135px;

  color: white;
  position: relative;
  top: 28px;
  font-size: 13px;

  text-align: right;

  white-space: nowrap;
}


/* =========================================================
   NAVIGATION TABLE / BUTTON ROW
   ========================================================= */
.nav-btns {
  display: flex;
  justify-content: flex-end;
  
position: relative;
top: -7px;
left: -1px;
}

.nav-btns table {
  border-collapse: collapse;
}

.nav-buttons {
  width: auto;
  margin-left: auto;
  padding: 0;

  border-collapse: collapse;
  border-spacing: 0;

  table-layout: auto;

  box-sizing: border-box;
}


/* remove default table cell spacing */
.nav-buttons td {
  padding: 0;
  margin: 0;

  vertical-align: bottom;

  border: 2px solid #d4af37;

  box-sizing: border-box;
}


/* remove duplicate outside borders because the header
   already has its own left and right borders */
.nav-buttons td:first-child {
  border-left: none;
}

.nav-buttons td:last-child {
  border-right: none;
}


/* =========================================================
   NAVIGATION BUTTONS
   ========================================================= */

.navigation-bar button {
  position: relative;

  display: block;

  width: 100%;
  height: 100%;

  background-color: #160b24;
  color: white;

  /*
     Borders are handled by the table cells so that every
     button remains perfectly contained inside the table.
  */
  border: 2px solid #d4af37;
  align-self: flex-end;
  padding: 5px 20px;

  margin: 0 0 0;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 15px;
  font-weight: bold;

  white-space: nowrap;
  
  cursor: pointer;

  box-sizing: border-box;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}


/* navigation button hover */
.navigation-bar button:hover {
  background-color: #d4af37;
  color: #160b24;
  
}


/* =========================================================
   DROPDOWN BUTTON
   ========================================================= */

.dropdown {
  position: relative;

  display: block;

  width: 100%;
  height: 100%;
  
}


/* =========================================================
   DROPDOWN MENU
   ========================================================= */

.dropdown-content {
  display: none;

  position: absolute;

  top: 100%;
  left: 0;

  width: 100%;
  min-width: max-content;

  background-color: #160b24;
  

  z-index: 1500;
}


/* dropdown links */
.dropdown-content a {
  display: block;

  padding: 7px 15px;

  color: white;

  background-color: #160b24;

  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;
}


/* dropdown hover */
.dropdown-content a:hover {
  background-color: #d4af37;
  color: #160b24;
}


/* show dropdown while hovering */
.dropdown:hover .dropdown-content {
  display: block;
}


/* =========================================================
   OPTIONAL MARQUEE INSIDE HEADER
   ========================================================= */

.notice-bar marquee {
  display: block;

  background-color: transparent;
  color: white;

  margin: 0;
  width: 100%;
  padding: 7px 10px;

  box-sizing: border-box;

  font-family: Arial, sans-serif;
  font-size: 12px;
}

.notice-bar marquee strong {
  color: white;
  -webkit-text-stroke: 1px black;
  font-size: 15px;
}

.marqueep {
  color: white;
  -webkit-text-stroke: .5px black;
  display: inline;
  font-size: 15px;
}



/* =========================================================
   MAIN CONTENT AREA
   ========================================================= */

body > section:not(.navigation-bar) {
  width: 985px;
  max-width: calc(100% - 40px);

  margin: 0 auto;

  padding: 28px 30px;

  background-color: white;

  border-left: 2px solid #d4af37;
  border-right: 2px solid #d4af37;

  box-sizing: border-box;

  box-shadow: none;
}


/* =========================================================
   MAIN PAGE HEADING
   ========================================================= */

body > section:not(.navigation-bar) h2 {
  margin-top: 0;
  margin-bottom: 18px;

  color: #271433;

  font-size: 30px;

  border-bottom: 3px solid #d4af37;

  padding-bottom: 7px;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

body > section:not(.navigation-bar) h3 {
  color: #542477;

  margin-bottom: 10px;

  border-bottom: 1px solid #d4af37;

  padding-bottom: 3px;
}


/* =========================================================
   LINKS
   ========================================================= */

a {
  color: #542477;
}

a:hover {
  color: #d4af37;
}



/* =========================================================
   RESPONSIVE HEADER
   ========================================================= */

@media (max-width: 800px) {

  .header-top {
    flex-direction: column;

    align-items: flex-start;

    gap: 10px;

    padding: 12px;
  }

  .navigation-bar p {
    align-self: flex-start;
    
    text-align: left;

    white-space: normal;
  }

  /*
     Keep the entire table inside the header at smaller
     screen sizes.
  */
  .nav-buttons {
    width: auto;
    margin-left: auto;
    table-layout: fixed;
  }

  .navigation-bar button {
    padding: 7px 4px;

    font-size: 12px;

    white-space: normal;
  }

}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 550px) {

  .navigation-bar {
    max-width: calc(100% - 20px);
  }

  body > section:not(.navigation-bar) {
    max-width: calc(100% - 20px);

    padding-left: 18px;
    padding-right: 18px;
  }

  .navigation-bar h1 {
    font-size: 24px;
  }

  .branding img {
    width: 70px;
  }

  .navigation-bar button {
    font-size: 11px;

    padding: 6px 2px;
  }

}