/* Responsive Style: Similar look, but responsive */
/* HS 2019 */

@import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic,700,700italic);

/* Mobile First Layout */
/* Non-mobile layout at the bottom of this file */

body {
	font-family: 'Source Sans Pro', sans-serif;
	font-size:16px;
	font-style: normal;
	font-weight: normal;
	margin: 0;
	padding: 0;
	color: #5C5C5C;
	background-color: #d5d5d7;
	box-sizing: border-box;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  /* Side nav is hidden on mobile */
  grid-template-rows: 1fr 1fr 30px;
  grid-template-areas:
    'header'
    'main'
    'footer';
	grid-gap: 0;
  height: 100vh;
	margin: 0px auto;
	max-width: 830px;
	min-width: 200px;
}

/* Mobile-first side nav styles */
.sidenav {
  grid-area: sidenav;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 188px;
  position: fixed;
  overflow-y: auto;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
	background-color: #839837;
  z-index: 2;
  /* Needs to sit above the hamburger menu icon */
  transform: translateX(-245px);
  transition: all .6s ease-in-out;
}

/* The active class is toggled on hamburger and close icon clicks */
.sidenav.active {
  transform: translateX(0);
}

/* Only visible on mobile screens */
.sidenav__close-icon {
  position: absolute;
  visibility: visible;
  top: 8px;
  right: 12px;
  cursor: pointer;
  font-size: 20px;
  color: #ddd;
}

/* Hamburger menu icon, stays fixed on mobile for any possible scrolling */
.menu-icon {
  position: fixed;
  display: flex;
  top: 5px;
  left: 10px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 1;
  cursor: pointer;
  padding: 12px;
  background-color: #DADAE3;
}



/* Give every child element its grid name */
.header {
  grid-area: header;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-evenly;
	padding: 10px;
	background: #42453D url(../img/header_bg2.png) repeat-x;
}

/* Make room for the menu icon on mobile */
.header__text {
	order: 2;
	text-align: center;
}

.header__img {
	order: 1;
}

.header h1 {
    margin: 20px 0px 0px 0px;
    font-size: 180%;
    color: #e4e3c7;
}

.header p {
    margin: 2px 0 2px 0px;
    font-size: 110%;
    font-weight: normal;
    color: #e4e3c7;
}

.main {
  grid-area: main;
  background-color: #ffffff;
	text-align: left;
	padding: 30px;
}

.main h1 {
    margin-top : 20px;
    margin-bottom : 20px;
    color : #839837;
    font-size: 180%;
}

.main h2 {
    margin-top : 20px;
    margin-bottom : 20px;
    border-bottom : dotted #839837;
    font-weight: bold;
}

.main ul {
    list-style-type: square;
    margin-left : 0px;
    padding-left : 20px;
    list-style-position : outside;
}

.main li {
    margin-left : 0px;
    margin-top : 0.5em;
}

.main h2, .main p {
	margin: 1em 0px 1em 0px;
}

.main a {
    color : #839837;
}

.main em {
    font-weight: bold;
    font-style: normal;
}

.footer {
  grid-area: footer;
	text-align: center;
	background: #42453D url(../img/footer_bg.gif) repeat-x;
	color: #FFFFFF;
	padding: 6px 0;
	height: 1.5em;
}

.footer p {
	margin: 0;
	padding: 0;
}


.sidenav {
	text-align : center;
	color: #5C5C5C;
}

.sidenav__list {
  padding: 0;
  margin-top: 20px;
  list-style-type: none;
}

.sidenav__list-item {
  padding: 10px 20px;
  color: #ddd;
}

.sidenav__list-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.sidenav__list-item > a {
	font-size: 120%;
	color: #5C5C5C;
	text-decoration: none;
}

/* Non-mobile styles, 750px breakpoint */
@media only screen and (min-width: 46.875em) {

  /* Assign grid instructions to our parent grid container */
  .grid-container {
    grid-template-columns: 188px 1fr;
		grid-template-rows: 160px 1fr 30px;
    grid-template-areas:
      "header header"
      "sidenav main"
      "footer footer"
  }

	.header {
		flex-direction: row;
	}

	.header__text {
		margin-left: 0;
		order: 1;
	}
	.header__img {
		order: 2;
	}
	.header h1 {
		margin-top: -20px;
	}

	.main {
		margin-right: 30px;
	}

  .sidenav {
    position: relative;
    /* Fixed position on mobile */
    transform: translateX(0);
		box-shadow: none;
		background: #839837 url(../img/menu_bg.png) repeat-y;;

  }

	.menu-icon {
		visibility: hidden;
	}

  .sidenav__close-icon {
    visibility: hidden;
  }
}

/* From CSS-tricks */
.dont-break-out {

  /* These are technically the same, but use both */
  overflow-wrap: break-word;
  word-wrap: break-word;

  -ms-word-break: break-all;
  /* This is the dangerous one in WebKit, as it breaks things wherever */
  word-break: break-all;
  /* Instead use this non-standard one: */
  word-break: break-word;

  /* Adds a hyphen where the word breaks, if supported (No Blink)
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto; */

}
