* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  color: #1b1b1b;
  margin: 0;
  padding: 0;
  }

h1, h2, p {
  padding: 0.5rem 2rem;
}

body {
  min-height: 100%;
  position: relative;
}

/* Style the header  */
header {
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  height:20%;
  padding: 0.5rem 1rem;
  flex-grow: 0;
}

header img {
  width: 5rem;
  height: 5rem;
}

/* Style the header logos and links */
.agency-info h1, .agency-info a {
  color: #1b1b1b;
  text-decoration: none;
  font-size: 1.4rem;
}

.agency-info h2 {
  text-transform: uppercase;
  font-size: 1.06rem;
  font-weight: 500;
}

/* Nav styles */
.sub-nav{
  background-color: #243413;
  color: #f0f0f0;
  height: 3.5rem;
}

nav, footer, aside {
  background-color: #f0f0f0;
  flex-grow: 0;
}

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2.5rem;            /* Footer height */
  flex-grow: 0;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-around;
  padding: 2rem;
}

nav ul li a{
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.5rem;
  flex: auto;
  text-align: center;
  text-decoration: none;
}

/* main styles */
html {
  height: 100%;
  height: -webkit-fill-available;
}

.outer-container {
  display: flex;
  height: 100vh;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  flex-direction: column;
  justify-content: flex-space;
}

.middle {
  flex-grow: 1;
  height: 100%;
}

main {
  display:flex;
  flex-direction: row;
  justify-content: flex-start;
  flex: 1;
  height: 100%;
  padding: 0;
  margin: 0;
}

section {
  padding: 2rem 5rem;
  width: 70%;
  margin: auto;
  height: 100%;
}

aside {
  margin: auto;
  padding: 0px;
  margin: 0px;
  width:23%;
  height: 100%;
}

.side-nav {
  padding-top: 22%;
  height: 100%;
  width: 85%;
}

.side-nav p, img {
  padding-top: 1px;
  padding-bottom: 1px;
  padding-left: 20px;
}

.side-nav ul {
  display: block;
  text-align: left;
}

.side-nav li{
  padding: 0.75rem 0.4rem;
}

.bottom-nav ul {
  display: flex;
  justify-content: center;
}

address{
  text-align: center;
  font-size: 0.8rem;
}

#iaa {
  border: 1px dotted darkslategrey;
  font-size: 14px;
  font-weight: 550;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
  padding: 10px;
  width: 60%;
}

/* Add media queries for responsiveness - when the screen is 500px wide or less, stack the links on top of each other */
@media screen and (max-width: 750px) {
  header{
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  h1, h2, p{
    text-align: center;
  }
  .main-container {
    flex-direction:column-reverse;
  }
  .outer-container {
    height: 100%;
    min-height: 100%;
  }
  aside{
    width: 100%;
  }
  .side-nav {
    width: 100%;
    text-align: center;
  }
  aside nav{
    background-color: white;
  }
  aside a{
    color: #f0f0f0;
  }
  section{
    padding: 1rem 0.5rem;
  }
  .side-nav ul {
    text-align: center;
  }
}
