/*
THIS STYLE IS FOR ARTICLES WITH COLLAPSABLE SIDEBAR NAVIGATION
*/

*, *:before, *:after {
  -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}

body {
	margin: 0;
  background: #334433;
  font-family: "Trebuchet MS", Helvetica, sans-serif;
}

.homelink {
  text-align: right;
  margin: .5em;
  margin-collapse: collapse;
  color: white;
  font-size: 10px;
}

.homelink a {
  color: #EEFFEE;
  text-decoration: none;
  font-size: 10px
}

.homelink a:hover {
  color: #DDEEDD;
}

.header {
  margin: .5em;
  text-align: center;
  /*background: linear-gradient(to bottom, #b3efe6 0%,#0d4a70 50%,#1e4408 51%,#4F2920 100%);*/
  /*background: linear-gradient(180deg, #DDEEDD, #88A189);*/
  background: #EEFFEE;
  border: 5px solid #EEFFEE;
  padding: 0;
  overflow:auto;
}

.header img{
  display: inline-block;
  float: right;
  height: 150px;
  margin: auto;
}

.header h1{
  width: 85%;
}

.header a{
  text-decoration: none;
  color: #334433;
}

.page {
  position: relative;
  margin: .5em;
}

/*
NAVIGATION
*/

#toggle {
/* Toggle for mobile */
  display: none;
}

.navigation {
  position: absolute;
  top: 0;
  left: 0;
  width: 18.75em;
}

.navigation ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.navigation a, .navigation label{
  display: block;
  padding: 10px 10px 10px 28px;
  background: #A3BFA4;
  color: white;
  box-shadow: inset 0 -1px #88A189;
  text-decoration: none;
  font-weight: bold;
}

.navigation a:hover, .navigation label:hover{
  background: #88A189;
}

.menu ul {
  /* by default hide all sub menus */
  display: none;
}

.menu ul a, .menu ul label {
  background: #88A189;
  box-shadow: inset 0 -1px #798F78;
}

.menu ul a:hover, .menu ul label:hover{
  background: #798F78;
}

.menu ul ul a, .menu ul ul label {
  background: #798F78;
  box-shadow: inset 0 -1px #667A66;
}

.menu ul ul a:hover, .menu ul ul label:hover {
  background: #667A66;
}

.menu input[type=checkbox] {
  /* hide native checkbox */
  position: absolute;
  display: none;
}

.menu label::before {
  left: 6px;
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  position: absolute;
  background: url(images/menux.png);
  background-size: 16px 16px;
  transition: transform 250ms;
}

.menu input[type=checkbox]:checked + label::before {
  transform: rotate(45deg);
}

.menu input[type=checkbox]:checked + label + ul,
.menu input[type=checkbox]:checked + label:nth-of-type(n) + ul {
  /* use label:nth-of-type(n) to fix a bug on safari (<= 8.0.8) with multiple adjacent-sibling selectors*/
  /* show children when item is checked */
  display: block;
}

/*
MAIN ARTICLE SPACE
*/

.article {
  margin-left: 19.5em;
  border: 1px solid  #ccc;
  padding: .75em 1.25em;
  background: white;
}

/* HEADERS */

.article h1 {
  margin: 10px 0;
}

.article h2 {
  text-align: center;
  color: #444444;
  margin: 8px 0;
}

.article h3 {
  margin: 7px 0;
}

.article h4 {
  margin: 5px 0;
}

.article h5 {
  font-size: 12pt;
  margin: 5px 0;
  color: #666666;
}

.article h6 {
  font-size: 12pt;
  margin: 5px 0;
  color: #333333;
}

/* BLOCKQUOTES */

blockquote {
  background: #EEEEEE;
  border-left: 10px solid #BBB;
  margin: 1.5em 10px;
  padding: 0.5em 10px;
  quotes: "\201C""\201D""\2018""\2019";
}
blockquote:before {
  color: #BBB;
  content: "\201C";
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
}
blockquote cite {
color: #666666;
font-size: 14px;
display: block;
margin-top: 5px;
}

blockquote cite:before {
content: "\2014  ";
}

/* LINKS */

.article a {
  color: #546E54;
}

.article a:hover{
  color: #486148;
}

/*
TABLES
*/

table, tr, th, td {
  border: 1px solid black;
  padding: 2px;
}

table {
  width: 100%;
}

th {
  font-weight: bold;
  background-color: #BBB;
}

tr:nth-child(2n){
  background-color: #DDD;
}

/*
ASIDES
****** TO BE USED FOR EXAMPLES ETCETERA
*/

aside{
  width: 95%;
  margin: 10px auto;
  padding: 8px;
  background-color: #F5E9D3;
  border: 1px solid #919191;
}

aside h2{
  font-size: 20px;
  margin: 8px 0;
}

/*
IMAGES
*/

.article img {
  display: block;
  max-width:100%;
  max-height: 100%;
  margin: 10px auto;
}

/*
EASIER CAPTIONS
*/

p.caption {
  text-align: center;
  font-size: 10pt;
}

/*
image sizing for figures
*/

.interactive-figure img {
  max-height: 80vh;
}

/*
A BUTTON FOR GENERAL USE
*/

.button-group {
  display: flex;
}

.button-group > .button {
  margin: 0 5px;
}

.button {
  display: inline-block;
  width: 60%;
  margin: 4px auto;
  padding: 5px;
  background-color: #88A189;
  background: linear-gradient(180deg, #DDEEDD, #88A189);
  border-radius: 3px;
  border: 1px solid #334433;
  text-align: center;
  color: white;
  font-size: 15px;
}

.button:hover {
  background-color: #334433;
  background: linear-gradient(180deg, #88A189, #334433);
  border: 1px solid #334433;
  color: white;
}

/*
A BUTTON FOR NEXT/PREVIOUS OPTIONS
*/


.button.prev a, .button.next a {
  text-decoration:none;
  display: inline-block;
  width: 30%;
  margin: 4px auto;
  padding: 5px;
  background-color: #88A189;
  /*background: linear-gradient(180deg, #DDEEDD, #88A189);*/
  border-radius: 3px;
  border: 1px solid #334433;
  text-align: center;
  font-size: 15px;
}

.small.button.prev a, .small.button.next a {
  font-size: 30px;
  color: #88A189;
  width: auto;
  padding: 0;
  /*border-radius: 100%;*/
  margin: 0 auto;
  background-color: white;
  border:none;
}

.button a:hover {
  background-color: #667D67;
  /*background: linear-gradient(180deg, #88A189, #334433);*/
  border: 1px solid #334433;
  color: #334433;
}

.button.prev a{
  float: left;
}

.button.next a{
  float: right;
}

.container{
  overflow: auto;
}

.small.container {
  margin: -10px auto  -7px;
  }


/*
FOOTER COPYRIGHT NOTICE
*/

.footer {
margin-left: 312px;
font-size:10px;
color:#DDEEDD;
padding:10px 0;
text-align: center;
}

.footer a
{
color:#CCFFCC;
text-decoration: none;
}

/*
COLLAPSING INFORMATION LIST
FOR PROVISIONS ETC
*/

ul.provisions{
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.provisions a{
  display:none;
}

ul.provisions li a{
  display: inline;
  margin: 0;
  padding: 0;
  background: none;
  text-decoration: none;
  font-size: 12pt;
  box-shadow: none;
  color: #3C7339;
}

ul.provisions li a:hover{
  color: purple;
  background: none;
  box-shadow: none;
}

.provisions input[type=checkbox] {
  /* hide native checkbox */
  position: absolute;
  opacity: 0;
}

.provisions a, .provisions label {
  position: relative;
  display: block;
  padding: 18px 41px 18px 18px;
  background: #DDEEDD;
  box-shadow: inset 0 -1px #CCDDCC;
  color: #334433;
  font-size: 15pt;
}

.numbered label{
  padding-right: 130px;
}

.provisions a:hover, .provisions label:hover {
  background: #CCDDCC;
  box-shadow: inset 0 -1px #BBCCBB;
}

/*
REQUIRED ICON
*/

.required label::after {
  right: 18px;
  content: '!';
  color: white;
  text-align: center;
  display: inline-block;
  width: 23px;
  height: 23px;
  position: absolute;
  /*background-size: 23px 23px;*/
  background-color: #3C7339;
  border-radius: 100%;
}

/*
GOALS 1-9 ICONS
*/

.numbers {
  color: #576E54;
  font-size: 18pt;
  display: inline;
  position: absolute;
  right: 16px;
}

/*
SUB MENU TOGGLE
*/

.provisions ul {
  /* by default hide all sub menus */
  display: none;
  padding: 10px;
}

.provisions input[type=checkbox]:checked + label + ul,
.provisions input[type=checkbox]:checked + label:nth-of-type(n) + ul {
  /* use label:nth-of-type(n) to fix a bug on safari (<= 8.0.8) with multiple adjacent-sibling selectors*/
  /* show children when item is checked */
  display: block;
}

/*
**************************
SCREEN SIZE RESPONSE RULES
**************************
*/

@media screen and (max-width: 47.5em ){
  .navigation {
    position:static;
    width: 100%;
    margin-bottom: .5em;
  }
  .article {
    margin: 0;
  }
  .footer {
    margin: 0;
  }
  .numbers{
    display: none;
  }

  h1 {
    font-size: 26px;
  }

  .header {
    position: relative;
    overflow: hidden;
    z-index: -2;
    /*background-color: #EEFFEE;*/
  }

  .header h1 {
    /*position: absolute;*/
    top: 0px;
    height: 100%;
    width:100%;
    margin: 0;
    /*background-color: #EEFFEE;   */
    padding: 10px;
    text-align: center;
    box-shadow: inset 0 0 0 1000px rgba(238, 255, 238,.5);
/*    opacity:0.6;
    filter:alpha(opacity=60);*/
  }

  .header a {
    color: #334433;

  }

  .header img {
    width: 100%;
    height: auto;
    bottom: -75px;
    right: 0;
    overflow: hidden;
    position:absolute;
    z-index: -1;
  }

/*
DROP DOWN MENU FOR SMALL SCREENS
*/

  .navigation {
    position:static;
    width: 100%;
    margin-bottom: .5em;
    height: 0px;
    overflow: hidden;
  }

  #toggle {
    position:absolute;
    appearance:none;
    cursor:pointer;
    left:-100%;
    top:-100%;
  }

  #toggle + label {
    display: block;
    width: 100%;
    padding: 10px 10px 10px 28px;
    background: #CCDDCC;
    color: #445544;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    box-shadow: inset 0 -1px #88A189;
    margin: 0 auto;
  }
  #toggle + label:after {
    content:"SHOW MENU"
  }

  #toggle:checked ~ .navigation{
    height: auto;
  }

  #toggle:checked + label:after {
    content:"HIDE MENU";
    color: #334433;
  }
}
