body {
  margin: 0;
  padding: 0;
  background: #112848;
  line-height: 133%;
  font-size: 1.1em;
  font-family: "Open Sans", "Droid Sans", "Calibri", sans-serif;
  min-height: 100vh;
  }
  
  
/*Miscellanous custom styling for various elements.*/

  h1, h2, h3 {
  font-family: "Calibri";
  line-height: 125%;
  }
    h4 {
 margin: 0;
  padding: 0;
  }
  
a {
  color: #FEFFE4;
  }

a:hover, a:focus {
  color: #EBE867;
  transition: ease-in 0.1s, ease-out 0.1s;
  }
  
blockquote {
  border-left: #EBE867 3px solid;
  background: #407894;
  padding: 0.1px 0.75rem;
  margin: 0 1.5rem;
  }

hr {
  width: 75%;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  }
  
/*Sticky navigation links at the top of the page.*/
.quick-nav {
  position:fixed;
  z-index: 999;
  width: 100%;
  background: #000f24;
  /*background: rgba(10,0,10,1); */
  text-align: right;
  color: #000;  
  font-size: 0.875em;
  }
  
.navbar {
  padding: 1px 25px;
  }
  
.navbar a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  padding: 5px 4px;
  margin: 0 2px;
  }
  
.navbar a:hover, .navbar a:focus {
  color: #EBE867;
  transition: ease-in 0.1s, ease-out 0.1s;
  }
  

  .button1 {
   border-radius: 4px; 
   font-size: 1em;
   background-color: #E1D472;
   margin: 15px 15px;
   text-align: center;
   font-weight: bold;
   display: inline-block;
  
  }
  
  .button1 a {
  display: inline-block;
  padding: 12px 12px;
  text-decoration: none;
  color: #000;
  margin: 0 2px;
  }
  
    .button1 :hover, .button1 :focus {
  background-color: #FEFFE4;
  transition: ease-in 0.1s, ease-out 0.1s;
  }
  
   .container {
        display: flex;
        align-items: center;
       /* justify-content: flex-start; */
        gap: 10px
    }
    
       .container2 {
        display: flex;
        align-items: center;
        justify-content: flex-end; 
        gap: 4px
    }
    
    
  
/*Header image.*/
.header {
  height: 350px;
  width: 100%;
  background: linear-gradient(rgba(10,0,10,0.5), rgba(10,0,10,0.4)), url(/images/doodles.svg) no-repeat bottom right fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-color: #000;
  }
  

/*Title bar with icon and title/tagline.*/
.title {
  background: #407B94;
  min-height: 60px;
  margin-bottom: -25px;
  text-align: right;
  }
  
.title-text, .title-pic {
  padding:0;
  margin: 0;
  display: inline-block;
  vertical-align: top;
  }
  
/*Contains the text tagline.*/
.title-text {
  padding-right: 1em;
  width: calc(85vw - 110px);
  line-height: 175%;
  margin-top: -3px;
  padding-bottom: 15px;
  color: #fff
  }
  
.title-text h1 {
  padding:0;
  font-size: 1.5rem;
  line-height: 2rem;
  }
  
/*Contains the profile pic. This can be left out and should still look okay.*/
.title-pic {
  height: 100px;
  margin-right: 100px;
  margin-top: -25px;
  border: 5px solid #52587c;
  border-radius: 10px;
  }
  
.title-pic img {
  height: 100%;
  overflow: hidden;
  }
  
/*Contains the main content and sidebar.*/
.page-wrapper {
  padding: 0 100px;
  margin: 0 auto;
  background: #000f24;
  color: #feffe4
}
  
  

/*Contains the sidebar boxes.*/
.sidebar {
  width: 320px;
  margin: 50px 0;
  position: absolute;
  
  }
  
.sidebar h1 {
  font-size: 1.2em;
  background: #407894;
  color: #fff;
  padding: 12px 10px 10px 10px;
  margin: auto;
  }
  
  .sidebar h2 {
    font-size:1.2em;
    background: #407894;
    color: #fff;
    padding: 12px 10px 10px 10px;
    margin: auto;
  }
  
.sidebar a {
  display: block;
  border-left: 3px solid #E1D472;
  background: #E1D472;
  padding: 5px;
  margin: 10px 0;
  color: #000;
  text-decoration: none;
  }
  
.sidebar a:hover, .sidebar a:focus {
  background: #FEFFE4;
  transition: ease-in 0.1s, ease-out 0.1s;
  }
  
.sidebar, .main {
  display: inline-block;
  }

/*Contains main content boxes.*/
.main {
  margin: 50px 100px 50px 350px;
  width: auto;
  width: calc(100vw - 550px);
  }
  
  .main h2 {
  font-size: 1.2em;
  background: #407B94;
  color: #fff;
  padding: 12px 10px 10px 15px;
  margin: auto;
  border-bottom:#E1D472  8px solid;
  }
  
  .flex-container-v {
  display: flex;
  flex-direction: column;
  min-height: 50rem;
  align-items: flex-start;
  justify-content: flex-start;
}
  .flex-container-h {
  display: flex;
  flex-direction: row;
  min-width: 50rem;
  align-items: flex-start;
}
  
  .grid-container {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto auto auto auto;
  justify-content: flex-start;
  align-content: center;
}

.item1 {
  grid-row: 1 / span 1;
}
item1b {
  grid-row: 1 / span 19;
}
.item2 {
  grid-row: 2 / span 1;
}
.item3 {
  grid-row: 3 / span 1;
}
.item4 {
  grid-row: 4 / span 1;
}
.item5 {
  grid-row: 5 / span 1;
}
.item6 {
  grid-row: 6 / span 1;
}
  
  .bottom {
    text-align: right;
  }
  
/*Basic container type for subsections of main and sidebar divs*/
.box {
  margin-bottom: 15px;
  }
  
/*Inner content div for boxes. Padding goes here so sidebar headers etc can keep their no-margin look.*/
.inner {
  background:  #112848;
  padding: 10px 25px;
  }

.inner img {
  max-width: 100%; /*Prevent image overflow.*/
  height: auto;
  border-radius: 5px; /*Give images in content rounded corners.*/
  }
  
  .box img {
            float: left;
            margin: 10px;
        }
  
.box, .title-pic img {
  border-radius: 5px;
  overflow: hidden; /*Force inner divs to conform to rounded corners.*/
  }
  
  
/*Footer section.*/
.footer {
  background: #000f24;
  color: #feffe4;
  padding: 50px 50px 50px 50px;
 /* padding: 5px 20px;*/
  font-size: 1em;
  padding-bottom: 10px;
  }
  
.footer a {
  color: #000;
  font-weight: bold;
  }
  
   /*  .footer a:hover, .footer a:focus {
  color: #EBE867;
  transition: ease-in 0.1s, ease-out 0.1s;
  } */
  

/*Individual column of the footer. You can have 3 of these at the current given width.*/
.footer-column {
  width: 25%;
  margin: 5px 20px;
  display: inline-block;
  vertical-align: top;
  align-items: center;
  }


/*Adapt to narrower screens.*/
@media(max-width: 900px) {
  .page-wrapper {
    padding: 0 50px;
    }
  
  .sidebar {
    width: 25vw;
    }
    
  .main {
    margin: 50px 0 50px calc(25vw + 30px);
    width: calc(75vw - 150px);
    }
    
  .title-pic {
    margin-right: 7vw;
    }
    
  .title-text {
    padding-left: 1vw;
    padding-right: 2vw;
    }
  
  }
  
/*Mobile layout.*/
@media(orientation: portrait) {  
  .page-wrapper {
    padding-top: 0.1px;
    padding-bottom: 0.1px;
    }
  
  .sidebar, .main {
    display: block;
    margin: 0 auto;
    position: static;
    width: 100%;    
    }
    
  .sidebar {
    margin-top: 50px;
    }
    
  .main {
    margin-top: 30px;
    margin-bottom: 30px;
    }
    
    
  }
  
/***
For really narrow screens which cause the title text to wrap. 
You may need to adjust the width at which this kicks in to fit 
your own title.
***/
@media(max-width: 500px) {
  .header {
    height: 60vw;
    }
  
  .title {
    padding-right: 0;
    }
  
  .title-text {
    margin-top: -5px;
    }
    
  .title-text h1 {
    font-size: 6vw;
    line-height: 75%;
    }
    
  .title {
    height: calc(auto - 25px);
    }
    
  .page-wrapper {
    padding: 0.1px 7vw;
    }
    
  /*For extra narrow screens where the columns would get too skinny.*/
  .footer-column {
    display: block;
    width: 100%;
    margin: 0 auto;
    }
  }