/* GLOBAL RESETS */
* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box; }

/* HEADINGS */
h1 {
    font-size: 3em; /* 48px / 16px = 3em */
    line-height: 1em;
    margin: .5em 0;}
h2 {
    font-size: 2.25em; /* 36px / 16px = 2.25em */
    line-height: 1.1em;
    margin: .5em 0;}
h3 {
    font-size: 1.5em; /* 24px / 16px = 1.5em */
    line-height: 1.2em;
    padding-left: 1em;
    margin: .5em 0;}
h4 {
    font-size: 1.3125em; /* 21px / 16px = 1.3125em */
    line-height: 1.3em;
    margin: .5em 0;}
h5 {
    font-size: 1.125em; /* 18px / 16px = 1.125em */
    line-height: 1.4em;
    margin: .5em 0;}
h6 {
    font-size: 1em; /* 16px / 16px = 1em */
    line-height: 1.5em;
    margin: .5em 0;}
p {
    font-family: 'Lato', sans-serif;
}

/* GRID SECTIONS */
body { 
    margin: 0;
    background-color: #98a5ad;
    font-family: "Avenir", Arial, sans-serif;
    line-height: 1.5em;
    color: rgba(0, 0, 0, 0.8);}

.container {
    margin: auto 1em;
    max-width: 900px;
    margin: auto;}

.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11em, 1fr));
    grid-column-gap: 0;
    margin: 0 auto;
    max-width: 1300px;}

.overicon .button {
    padding-bottom: 3em;}

/* HEADERS */
.header {
    padding: 0;
    background-image: url(../img/homeherophoto.jpg);
    color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    height: 700px;
    -webkit-animation: myfirst 3s;
    animation: myfirst 3s;}

.header2 {
    background-image:url(../img/populationhero.jpg);}

.header3 {
    background-image:url(../img/header3.jpg);}

.header4 {
    background-image:url(../img/diethero.jpg);}

.header5 {
    background-image:url(../img/controlhero.jpg);}

.header .container {
    display: flex;
    justify-content: space-between;}

.header a {
    color: #ffffff;
    text-decoration: none;}

.site-nav h2 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.5em;
    font-weight: normal;
    line-height: 1.2;
    margin: 0.75em 0;
    display: none;}

.headertitle h2 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    text-align: center;}

.headertitle {
    text-align: center;
    position: absolute;
    left: 54%;}

.headertitle img {
    height: 70px;
    opacity: 0.75;}

.headericon {
    height: 70px;
    opacity: .75;}

.header .site-nav ul,
.header .site-nav li {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: right;}

.header .site-nav ul {
    float: right;
    margin: 2.5em 0 0 0;
    background-color: rgba(172, 112, 62, 0.5);
    padding-left: 60px;}

.header .site-nav li a {
    display: block;
    padding: 0.15em 1em;
    margin: 0 0.5em;}

.nav a:hover {
    color: #000000;}

.site-id img {
    padding: 10px 10px 0px 10px;
    height: 20%;
    width: auto;}

.site-id h2 {
    display: none;}

.active2 a {
    color: #adb7bd;}

/* FOOTER */
.footer {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    background-color: #98A5AD;}

.footer .site-nav ul,
.footer .site-nav li {
    margin: 0;
    padding: 0;
    list-style: none;
    font-weight: 100;}

.footer .site-nav ul {
    display:inline-block;
    justify-content: center;}

.footer .site-nav li a {
    display: block;
    color: #ffffff;
    text-decoration: none;
font-size: .75em;}

.footer .site-nav li a:hover {
    color: #000000;}

.footer img {
    width: 50%;
    margin-top: 30%;
    margin-left: 50px;}

.colcenter, .colcenter2 {
    text-align: center;
    padding-bottom: 2em;}

.colcenter {
    background-color: #BCC9D1;}

.colcenter2 {
    background-color: #AC703E;}

/* MENU NAVICON */
.header .site-nav .menu-button {
  display: none;}

.menu-button h1 {
  display: none;}

.header .site-nav .menu-button.navicon {
  color: rgba(255, 255, 255, 1);
  position: relative;}

.header .site-nav .menu-button.navicon:hover {
  cursor: default;}

.header .site-nav .menu-button.navicon:after {
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 1);
  content: "☰";
  font-size: 1.4em;
  margin-top: -0.05em;
  margin-left: 0.5em;
  margin-right: 0.5em;
  width: 1em;
  height: 1em;
  line-height: 1em;
  display: block;
  transition: all 0.1s ease;
  transform: rotate(0);}

.header .site-nav.expanded .menu-button.navicon {
  color: rgba(255, 255, 255, 1);}

.header .site-nav.expanded .menu-button.navicon:after {
  content: "✕";
  transform: rotate(90deg);
  transition: all 0.5s ease;}

/* SECTIONS */
section {
  padding: 3em 0;}

.body {
  padding: 3em 1em;
  background: #ffffff;}

.body .row {
    margin-left: 2em;
    margin-right: 2em;}

.bodyleft {
    margin-top: auto;
    margin-bottom: auto;
    padding-right: 2em;}

.bodyright {
    margin-top: auto;
    margin-bottom: auto;
    padding-left: 2em;}

.bodyright h4 {
    color: #AC703E;}

.overview {
    background-color: #ffffff;
    padding-bottom: 1em;}

.overgray {
    background-color: #BCC9D1;}

.overorg {
    background-color: #AC703E;}


/* PAGES */
.subphoto {
    position: relative;
    top: 15%;
    right: 7%;}

.subphoto2 {
    position: relative;
    top: 5%;
    right: 7%;}

#subpage {
    background-color: #ffffff;}

.floater .column {
    text-align: center;
    margin-top: 4em;
    margin-bottom: 4em;}

.floater h6 {
    font-weight: 200;}

#name {
    width: 50%;}

#method {
    -webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	width: 090%;
    height: 200px;}

#controlgraph {
    width: 50%;
    height: auto;
    margin-right: auto;
    margin-left: auto;}

.overview:last-child {
    padding-bottom: 0;}


/* BUTTONS */
button {
  font-size: inherit;}

button,
a.button {
  display: inline-block;
  color: #ffffff;
  padding: 0.75em 1em;
  margin: 0.5em 0;
  border: none;
  cursor: pointer;
  line-height: 1em;
  text-decoration: none;}

button:hover,
a.button:hover {
  color: #000000;
  text-decoration: none;}

.arrow {
  border: solid #ffffff;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);}

.email input[type=text] {
    border: 1px solid rgba(222, 216, 228, 1);
    font-size: 13px;}

/* IMAGES */
img {
    max-width: 100%;
    height: auto;}

.overicon img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 3em;}

.overicon img:first-child {
    border-radius: 50px;}

.icon {
    height: 110px;
    width: auto;
}


/* TEXT */
.bodyleft h4 {
    color: #AC703E;
    font-family: 'Montserrat', sans-serif;}

.overicon p {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-right: 1em;
    padding-left: 1em;}

.overicon ul {
    margin-left: 40px;}

.overicon h4 {
    text-align: center;
    margin-top: 2em;}

.bodytitle {
    position: relative;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 1em;
    text-align: center;}

.bodytitle h1 {
    font-family: 'Lato', sans-serif;
    font-size: 7em;
    color: #000000;}

.bodytitle h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    font-weight: 200;
    color: #AC703E;
    margin-bottom: -1.5em;}

.bodytitle h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    font-weight: 200;
    color: #AC703E;}

.bottomh3 {
    margin-top: -1.5em;
    padding: 0;}

.hide {
    visibility: hidden;}

.overgray ul li {
    list-style: none;
    color: #ffffff;
    margin-left: -50px;}

.ullist li {
    font-size: 1.5em;
    font-weight: 700;}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    width: 100%; 
    height: 100%;
    background-color:rgba(200, 200, 200, .90);
	text-align: center;
    z-index: 1;
    left: 0;
    top: 0;}

.modal span {
    cursor: pointer;}

.modal-content {
    margin: 10% auto 15% auto;
    background-color:rgba(172, 112, 62, 0.8);
    width: 50%; 
	font-family: 'Lato', sans-serif;}

.modalcontainer {
    padding: 20px;}

.modalcontainer h1,
.modalcontainer label {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: #ffffff;}

.modalcontainer p {
    color: #060606;}

input[type=text], input[type=email] {
    display: inline-block;
    margin: 10px 0 20px 0;
    padding: 15px;
    width: 95%;
    height: 0;
    border: none;
    background: rgba(255, 255, 255, 1);
	font-family: 'Lato', sans-serif;}

.modalbtn {
    font-size: 14px;
	padding: 4px 10px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    background-color: #ffffff;
    color: #AC703E;
    border: none;
	font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    cursor: pointer;}

.modalbtn:hover {
    background-color: #AC703E;}

.modalbtn:active {
    color: #ffffff;}

.cancel-btn {
    padding: 14px 20px;
  	width: 100%;
    background-color:rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;}
 
.close-btn {
    position: absolute;
    right: 50px;
    top: 50px;
    font-size: 40px;
    font-weight: bold;
    color: #ffffff;
	font-family: 'Lato', sans-serif;}

.clearfix:after {
    content: "";
    clear: both;
    display: table;}

.clearfix button {
    color: #ffffff;
    background-color: #060606;}

.clearfix button:hover {
    color: #ffffff;
    background-color: #808080;}

.clearfix button:active {
    color: #000000;
    background-color: #ffffff;}

/* ACCORDION */
.accordion {
  background-color: #939597;
  color: #000;
  cursor: pointer;
  padding: 20px;
  width: 94%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .9em;}

.active, .accordion:hover {
  background-color: #c9cacb;}

.panel {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;}

.panel-a {
    padding: 0 18px;
    display: none;
    background-color: #f2f2f2;
    overflow: hidden;}

.panel p {
    text-align: left;
    color: #ffffff;
}

.accordion:after {
    content: '\005E';
    transform: rotate(180deg);
    color: #4F3674;
    font-weight: bold;
    float: right;
    margin-left: 5px;
    color: #D6A800;}

.active:after {
    content: "\292B";
    color: #4F3674;}

.acc1 {
    background-color: #f2f2f2;}


/* ANIMATION */
#line {
    position: absolute;
    width: 320px;
    height: auto;
    margin-left: -100px;
    margin-top: 100px;
    overflow: hidden;}

#damage #line {
    margin-top: 200px;
    margin-left: -210px;}

#diet #line {
    margin-top: 196px;
    margin-left: -210px;}

#piggybank {
    height: 250px;}

.animate-slide-up,
[data-sectionstate="inactive"] .animate-slide-up {
  -webkit-transition: all 1s ease-out;
  -o-transition: all 1s ease-out;
  transition: all 1s ease-out;
  opacity: 0;
  -webkit-transform: translate(0, 100px);
  -ms-transform: translate(0, 100px);
  transform: translate(0, 100px);}

[data-sectionstate="active"] .animate-slide-up {
  opacity: 1;
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  transform: translate(0, 0);}

.animate-scale-in,
[data-sectionstate="inactive"] .animate-scale-in {
  -webkit-transition: all .75s ease-out;
  -o-transition: all .75s ease-out;
  transition: all .75s ease-out;
  opacity: 0;
  -webkit-transform: scale(0.5);
  -ms-transform: scale(0.5);
  transform: scale(0.5);}

[data-sectionstate="active"] .animate-scale-in {
  opacity: 1;
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);}

.animate-scale-in1,
[data-sectionstate="inactive"] .animate-scale-in1 {
  -webkit-transition: all 1s ease-out;
  -o-transition: all 1s ease-out;
  transition: all 1s ease-out;
  opacity: 0;
  -webkit-transform: scale(0.5);
  -ms-transform: scale(0.5);
  transform: scale(0.5);}

[data-sectionstate="active"] .animate-scale-in1 {
  opacity: 1;
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);}

.animate-scale-in2,
[data-sectionstate="inactive"] .animate-scale-in2 {
  -webkit-transition: all 1.25s ease-out;
  -o-transition: all 1.25s ease-out;
  transition: all 1.25s ease-out;
  opacity: 0;
  -webkit-transform: scale(0.5);
  -ms-transform: scale(0.5);
  transform: scale(0.5);}

[data-sectionstate="active"] .animate-scale-in2 {
  opacity: 1;
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);}

.animate-scale-in3,
[data-sectionstate="inactive"] .animate-scale-in3 {
  -webkit-transition: all 1.5s ease-out;
  -o-transition: all 1,5s ease-out;
  transition: all 1.5s ease-out;
  opacity: 0;
  -webkit-transform: scale(0.5);
  -ms-transform: scale(0.5);
  transform: scale(0.5);}

[data-sectionstate="active"] .animate-scale-in3 {
  opacity: 1;
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);}

.animate-drop-in,
[data-sectionstate="inactive"] .animate-drop-in {
  -webkit-transition-delay: 1s;
  -o-transition-delay: 1s;
  transition-delay: 1s;
  -webkit-transition: all 1s ease-out;
  -o-transition: all 1s ease-out;
  transition: all 1s ease-out;
  opacity: 0;
  -webkit-transform: translate(0, -50px);
  -ms-transform: translate(0, -50px);
  transform: translate(0, -50px);}

[data-sectionstate="active"] .animate-drop-in {
  opacity: 1;
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  transform: translate(0, 0);}


/* REFERENCES*/
#refer {
    background-color: #ddd;
    margin: 3em 3em;
    text-align: center;}

.refer2 img {
    width: 200px;}

.refer {
  text-align: center;
  text-transform: uppercase;
  font-size: 65px;
  font-weight: 400;
  letter-spacing: 3px;
  line-height: 0.8;
  font-family: 'Avenir', Arial, sans-serif;
  color: #AC703E;
  border-top: 1px solid #AC703E;
  border-bottom: 1px solid #AC703E;
  padding-top: .5em;
  padding-bottom: .5em;}

.refer span {
  font-family: 'Avenir', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 25px;
  color: black;
  padding-bottom: 3em;}

.return {
    text-decoration: none;
    color: black;}

.return:hover {
    color: #AC703E;}

.reflink {
    text-decoration: none;
    color: #AC703E;}

.reflink:hover {
    color: #ffffff;}


/* RETURN TO TOP BUTTON-W3 SCHOOLS */
#top {
  display: none;
  position: fixed; 
  bottom: 20px; 
  right: 30px; 
  z-index: 99; 
  border: none;
  outline: none; 
  background-color: rgba(172, 111, 62, .75);
  color: white;
  cursor: pointer; 
  padding: 16px; 
  border-radius: 25px; 
  font-size: 18px;}

#top:hover {
  background-color: rgba(188, 201, 209, .75);}


/* MEDIA/QUERIES */
/*MOBILE */
@media (min-width: 300px) {
    .bodytitle h1 {
        font-size: 3.5em;}
    
    .bodytitle h4 {
        padding-bottom: 15px;}
    
    .bodytitle h3 {
        padding-top: 15px;}
    
}
@media (max-width: 420px) {
    .headertitle {
       right: 10px;}
    
    .headertitle h2 {
        font-size: 2em;}
    
    .bodytitle {
        margin: 0;
        align-content: center;}
    
    .bodytitle h1 {
        font-size: 3em;}
    
    .bodyright {
        padding-left: 0;}
    
}
@media (max-width: 768px) {
    .header .site-nav .menu-button {
       display: block;
       text-align: right;
       margin-top: 1.3em;
       cursor: pointer;}
    
    .header .site-nav ul {
       display: none;}
    
    .header .site-nav.expanded ul {
       display: block;
       text-align: right;
       margin: 0.5em 3em 1.5em 0;}
    
    .header .site-nav.expanded ul li a {
       padding: 0.15em 0;
       margin: 0;
       color: rgba(255, 255, 255, 1);}
    
    .headericon {
        margin-top: -3em;}
    
    .header5 {
        background-image:url(../img/controlhero.jpg);
        background-position: right;}
    
    .overgray, .overorg {
        padding-top: .5em;
        padding-bottom: 1em;}
    
    .bodyleft h4 {
        text-align: center;}
    
    #overlinks {
        display: none;}
    
    #swapped {
        display: flex;
        flex-direction: column-reverse;}
    
    .subphoto {
        position: inherit;}
    
    .subphoto2 {
        position: inherit;}
    
    .bodyright h4, p {
        text-align: center;}
    
    .bodyleft {
        padding: 0;}
    
    .fwcol {
        width: 300px;
        height: auto;}
    
    .body .row {
        display:block;
        align-items: center;
        justify-content: center;}
 
    .overview .row {
        display:block;
        align-items: center;
        justify-content: center;}
    
    .footer img {
        width: 20%;
        margin: 0;}
    
    .site-nav h2 {
        display: none;}
    
    .footer .row {
        display: block;
        text-align: center;}
    
    .footer img {
        padding: 0;
        margin-top: .5em;}
    
    .hide.button {
        visibility: visible;
        display: block;
        text-align: center;}
    
    #linevert {
        display: inline-grid;
        position: absolute;
        width: auto;
        height: 320px;
        margin-top: -200px;
        margin-left: 170px;
        overflow: hidden;}
    
    #damage #linevert {
        margin-left: 200px;}
    
    #line {
        display: none;}
    
    .headertitle {
        position: absolute;
        display: block;
        text-align: center;
        margin-left: -11.5em;
        margin-top: 2em;
        margin-right: 0;}
    
    .modalcontainer h1 {
        font-size: 1.75em;}
    
    input[type=text], input[type=email] {
        width: 50%;}
    
    .modalcontainer label {
        padding-right: 10px;}
    
    .modalbtn {
        width: 40%;}
    
    .animate-scale-in1,
    [data-sectionstate="inactive"] .animate-scale-in1 {
        -webkit-transition: all 1s ease-out;
        -o-transition: all 1s ease-out;
        transition: all 1s ease-out;
        opacity: 0;
        -webkit-transform: scale(0.5);
        -ms-transform: scale(0.5);
        transform: scale(0.5);}

    [data-sectionstate="active"] .animate-scale-in1 {
        opacity: 1;
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);}

    .animate-scale-in2,
    [data-sectionstate="inactive"] .animate-scale-in2 {
        -webkit-transition: all 1s ease-out;
        -o-transition: all 1s ease-out;
        transition: all 1s ease-out;
        opacity: 0;
        -webkit-transform: scale(0.5);
        -ms-transform: scale(0.5);
        transform: scale(0.5);}

    [data-sectionstate="active"] .animate-scale-in2 {
        opacity: 1;
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);}
    
    .animate-scale-in3,
    [data-sectionstate="inactive"] .animate-scale-in3 {
        -webkit-transition: all 1s ease-out;
        -o-transition: all 1s ease-out;
        transition: all 1s ease-out;
        opacity: 0;
        -webkit-transform: scale(0.5);
        -ms-transform: scale(0.5);
        transform: scale(0.5);}

    [data-sectionstate="active"] .animate-scale-in3 {
        opacity: 1;
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);}  
}

@media (min-width: 768px) {
    #linevert {
        display: none;}
    
        .bodytitle h1 {
        font-size: 4.5em;}
}


/*TABLET */
@media (max-width: 980px) {
    
    .bodytitle h4, h3 {
        font-size: 2em;}
    
    .bottomh3 {
        margin-top: -1.2em;}
    
    .dietline {
        left: 40%;}
    
    .footer {
        margin-left: 1.5em;
        margin-right: 1.5em;}
}

@media (min-width: 980px) {
    .bodytitle h1 {
        font-size: 5.5em;}
}