:root {
  --navbar-focus-outline: 5px solid white;
}

body {
  height: 85%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  /*font-family: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;*/
  background-image: url('/resources/images/bg.jpg');
  overflow-wrap: break-word;
  /*hyphens: auto;*/
}

.center {
    text-align: center;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.4em;
}
h1 {
  font-size: 32pt;
  text-align: center;
}
h2 {
  font-size: 24pt;
  padding: 1% 2% 0;
}
h3 {
  font-size: 20pt;
  padding: 1% 2% 0;
}

#navbar-logo-image {
	padding-top: 12px;
    padding-left: 12px;
	height: 65px;
    width: 135px;
    position: absolute;
}
#navbar-home-link:focus-visible {
  outline: var(--navbar-focus-outline);
}

#img2 {
	padding-top: 12px;
    padding-left: 12px;
	height: 65px;
    width: 135px;
    position: relative;
    float: left;
    margin-left: 3%;
    margin-top: 1%;
}

#img3{
	padding-top: 12px;
    padding-left: 12px;
	height: 65px;
    width: 135px;
    position: relative;
    float: right;
    margin-right: 3%;
    margin-top: 1%;
}

main {
  margin-top: inherit;
  padding: 2vh 2vw;
  height: auto;
  width: inherit;
  top: 0;
  background-color: white;
  overflow: clip;
  margin-right: 12%;
  margin-left: 12%;
  @media print, screen and (max-width: 40em) {
    margin: 0;
  }
}

a:link {
    color: #2548B1;
  }
a:visited {
  color: #662D91;
}
a:active {
  color: #0F2050;
}

footer {
  background-color: white;
  color: #595959;
  font-family: "DM Sans",Arial,"Helvetica Neue",Helvetica,sans-serif;
  margin: 0;
  padding-top: 1%;
  padding-bottom: .1%;
  p {
    margin-left: 2%;
    margin-right: 2%;
  }
  #first-nation-seals {
    display: flex;
    align-items: center;
    justify-content: center;
    img {
      width: 6%;
      max-width: 80px;
      padding-left: .5%;
      padding-right: .5%;
      margin: auto;
    }
  }
}

.screen-reader-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  text-indent: -10000px;
}

/*** Nav ***/

#skip-to-main {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1em;
  background-color: white;
  border: black thick;
  opacity: 0;
}
#skip-to-main:focus {
  left: 8%;
  top: 3%;
  transform: translateX(-50%);
  opacity: 1;
}

nav {
	background-color: #40263B;
    height: 90px;
    width: 100%;
    border-bottom-style: solid;
    border-width: 8px;
    border-color: #4D42B3;
    top: 0; /* required */
    overflow: auto;
}

/*.navB{*/
/*    display: flex;*/
/*    align-items:center;*/
/*    justify-content:center;*/
/*}*/

#navbar-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  font-size: x-large;
  justify-content: center;
  align-items: center;
  background-color: #40263b;
}

.navbar-list li{
  float: left;
}

.navbarItem1 {
    font-size: 30px;
    text-decoration: none;
    color: white;
    margin-top:24px;
    margin-left: 1%;
    display: inline-block;
}

li .nav-item-outer {
  border: none;
  padding: 0 15px;
  /*display: inline-block;*/
  color: white;
  text-align: center;
  font-size: 20px;
  text-decoration: none;
  list-style-type: none;
  overflow: hidden;
  background-color: #40263b;
  height: 90px;
  width: 100%;
}

ul.dropdown-content li a /* nav item inner */ {
  margin-left: 25px;
  margin-right: 25px;
  border: none;
  padding: 16px 32px;
  border-radius: 20px;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: ease-in-out 0.5s;
}

li.dropdown {
  transition: ease-in-out 0.5s;
  display: inline-block;
}

.dropdown-content {
  transition: ease-in-out 0.5s;
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  width: inherit;
  height: auto;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
  z-index: 10;
  padding-left: 0;
  padding-bottom: 0;
}

.dropdown:hover .dropdown-content, .dropdown:active .dropdown-content, .dropdown:focus-within .dropdown-content {
  transition: ease-in-out 0.5s;
  display: block;
}

.dropdown-content a{
  transition: ease-in-out 0.5s;
  color: black;
  text-decoration: none;
  display: block;
  text-align: left;
  cursor: pointer;
}

.dropdown-content {
  list-style: none;
}

.dropdown-content a:hover, .dropdown-content a:focus-within, .dropdown-content a:active {
  transition: ease-in-out 0.5s;
  color: black;
  background-color: #f1f1f1;
}

/* Print-friendliness */
#print-footer-hr {
  display: none;
  @media print {
    display: block;
    border-top: black 2px dashed;
    border-bottom: none;
  }
}
@media print {
  main {
    background-color: white;
  }
  nav {
    display: none;
  }
  footer {
    #edit-request, #land, #first-nation-seals {
      display: none;
    }
    color: black;
  }
  #print-logo {
    display: block !important;
    background-color: white;
    img {
      width: 15%;
    }
  }
  h1 {
    padding-top: 0;
    margin-top: 0;
  }
}


/* The responsive small screen nav thing */
#navbar-toggle {
  float: right;
  height: 100%;
  position: relative;
  right: 5px;
  aspect-ratio: 1/1;

  input {
    position: absolute;
    opacity: 0;
  }

  label {
    /* center in both directions */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    height: 100%;

    img {
      height: 40%;
      aspect-ratio: 1/1;
    }
  }

  label:has(input:not(:checked)) img#navbar-toggle-opened-icon {
    display: none;
  }
  label:has(input:checked) img#navbar-toggle-closed-icon {
    display: none;
  }
}

#navbar-toggle:has(input:focus-visible) {
  outline: var(--navbar-focus-outline);
}

#navbar-toggle {
  display: none;
}

@media (max-width: 70em) {
  #navbar-toggle {
    display: block;
  }

  nav:has(#navbar-toggle-checkbox:not(:checked)) #navbar-list {
    display: none;
  }

  nav:has(#navbar-toggle-checkbox:checked) {
    #navbar-list {
      display: block;
      position: absolute;
      top: 98px;
      width: 100%;
      z-index: 1;
    }

    #navbar-list > li {
      button {
        height: auto;
        text-align: right;
      }

      text-align: right;
      display: block;
      margin: 1em 0;
    }

    .dropdown-text {
      cursor: pointer;
    }

    .dropdown-content {
      display: none;
    }

    .dropdown:hover .dropdown-content {
      display: none;
    }

    .dropdown:active .dropdown-content, .dropdown:focus-within .dropdown-content {
      display: block;
      position: relative;
      right: 0;
      margin-top: .4em;
    }

    .nav-item-inner {
      margin-right: 0;
    }
  }
}

