body {
  overflow-wrap: break-word;
}

.skip-to-main-content-link {    /*Allows screen reader users to access main content easily, as soon as they press the tab key*/
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1em;
  background-color: black;
  color: white;
  opacity: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14pt;
}

.skip-to-main-content-link:focus {
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
}

header {
  padding-top: 15px;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 15px;
  background-color: #c8102e;
  text-align: center;
}

header img {    /*scales the header image down if needed*/
  max-width: 100%;
  height: auto;
}

/*FOR TOPNAV: The aria-label in the navigation bar (in the body) identifies the navigation region to screen reader users. nav is not a section div like header, footer, main where you can use solely a tag and it will be recognized.*/

#topnav {
  padding: 14px 20px 6px 20px;  /*top right bottom left*/
  text-align: right;
  font-size: 12pt;
  font-family: "Source Sans Pro", sans-serif;
}

#topnav ul {
  margin: 0;
  padding: 0;
}

#topnav li {
  list-style-type: none;
  display: inline-block;  /*keeps each rectangular unit intact; does not word-wrap, etc.*/
  margin-left: 10px;
}

#topnav a {
  color: #c8102e;
  text-decoration: none;
  background-color: #f7f7f7;
  border: 1px solid #c8102e;
  border-radius: 4px;
  padding: 6px 12px;
  display: inline-block;
}

#topnav a:link {
  color: #c8102e;
  text-decoration: none; /*Takes underline away from link text*/
  }

#topnav a:visited {
  color: #c8102e;
  text-decoration: none; /*Takes underline away from link text*/
  }

#topnav a:hover,
#topnav a:focus-visible {
  background-color: #c8102e;
  font-weight: normal;
  color: white;
}

#topnav a:active {
  background-color: #c8102e;
  color: white;
}

main {
  background-color: white;

  padding-top: 20px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 10px;

  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 10px;

  max-width: calc(100% - 50px);

  font-family: "Source Sans Pro", sans-serif;
  font-size: 14pt;
}

main a:link       { color: #c8102e }
main a:visited    { color: #54585A }
main a:hover      { font-weight: bold }
main a:focus-visible  { font-weight: bold }
main a:active     { color: #54585A }

h1 {
  font-size: 36pt;
  font-family: "League Gothic", sans-serif;
  margin-bottom: 0;
}


h2 {
  font-size: 24pt;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: bold;
  margin-top: 24pt;
  margin-bottom: 0;
}

h3 {
  font-size: 20pt;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: bold;
  margin-top: 20pt;
  margin-bottom: 0;
}

h4 {
  font-size: 15pt;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: bold;
  margin-top: 18pt;
  margin-bottom: 0;
}

h3 + h4 {  /*changes styling for h4 that follows immediately after h3*/
   margin-top: 12pt;
}

p {
  margin-top: 6pt;
  margin-bottom: 8pt;
}

h4 + p {   /*changes styling for p immediately after h4*/
  margin-top: 0;
}

.info-note {
  border-left: 4px solid #c8102e;
  background-color: #f7f7f7;
  padding: 10px 14px;
  margin-top: 14pt;
  margin-bottom: 18pt;
}

.info-note span {
  display: block;
  margin-top: 8pt;
}

h3 + .info-note {  /*changes styling for info-note when following h3*/
  margin-top: 6pt;
}

footer {  
  clear: both;  
  text-align: center;  
  padding-top: 5px;  
  padding-bottom: 15px;
  background-color: #c8102e;
  font-size: 12pt;  
  line-height: 1.25;  
  font-family: "Source Sans Pro", sans-serif;
  color: white;
}

footer a:link {
  color: white;
  text-decoration: none;
  }

footer a:visited {
  color: white;
  text-decoration: none;
  }

footer a:hover {
  color: white;
  text-decoration: underline;
  }

footer a:focus-visible {
  color: white;
  text-decoration: underline;
  }

footer a:active {
  color: white;
  text-decoration: underline;
  }

footer ul li {
  list-style-type: none;
  display: inline;  /*CREATES HORIZONTAL LIST*/
}

footer ul {
  margin: 0;
  padding: 0;
  font-family: "Source Sans Pro", sans-serif;
}
