section, nav, article, aside, header, figure, figcaption, footer, main{   
    display: block; 
}

* {
	padding: 0;
	margin: 0;
	border: 0;
}

html{
    overflow-x: hidden;
}

#container{
    width: 900px;
    margin: auto;
    font-family: 'Lato', sans-serif;
}

header{
    background: #f5f5f0;
    padding: 15px 180px 10 200px;
    height: 110px;
    position: fixed;
    z-index: 1;
    margin: 0 -601.5rem;
  /* add back section padding (1.5rem) */
    padding: 0.25rem 1.5rem;
  /* border has to be solid, not RGBa */
  /* 9600px or equiv (600rem = 9600/16) */
  border-left: 600rem solid #f5f5f0;
  border-right: 600rem solid #f5f5f0;
    
}
    .mrsloth {
        position:absolute;
        margin:10px;
    }
    .mrsloth > i {
        position: absolute;
        display: inline-block;
        width: 0;
        height: 0;
        line-height: 0;
        border: 47.5px solid #6d5e45;
        border-radius: 47.5px;
        left: 0px;
        top: 0px;
    }
    .mrsloth > i+i {
        position: absolute;
        display: inline-block;
        width: 0;
        height: 0;
        line-height: 0;
        border: 42.75px solid #b6a58a;
        border-radius: 42.75px;
        left: 4.75px;
        top: 9.5px;
    }
    .mrsloth > i+i+i {
        position: absolute;
        display: inline-block;
        width: 0;
        height: 0;
        line-height: 0;
        border: 11.875px solid transparent;
        border-radius: 11.875px;
        border-left: 11.875px solid #908065;
        border-top: 11.875px solid #908065;
        left: 9.5px;
        top: 38px;
    }
    .mrsloth > i+i+i+i {
        position: absolute;
        display: inline-block;
        width: 0;
        height: 0;
        line-height: 0;
        border: 11.875px solid transparent;
        border-radius: 11.875px;
        border-right: 11.875px solid #908065;
        border-top: 11.875px solid #908065;
        left: 61.75px;
        top: 38px;
    }
    .mrsloth > i+i+i+i+i {
        position: absolute;
        display: inline-block;
        width: 0;
        height: 0;
        line-height: 0;
        border: 4.75px solid #3c3935;
        border-radius: 4.75px;
        left: 14.25px;
        top: 42.75px;
    }
    .mrsloth > i+i+i+i+i+i {
        position: absolute;
        display: inline-block;
        width: 0;
        height: 0;
        line-height: 0;
        border: 4.75px solid #3c3935;
        border-radius: 4.75px;
        left: 71.25px;
        top: 42.75px;
    }
    .mrsloth > i+i+i+i+i+i+i {
        position: absolute;
        display: inline-block;
        width: 0;
        height: 0;
        line-height: 0;
        border-top: 4.75px solid #252523;
        border-bottom: 4.75px solid #252523;
        border-left: 9.5px solid #252523;
        border-right: 9.5px solid #252523;
        border-radius: 9.5px / 4.75px;
        left: 38px;
        top: 52.25px;
    }
    .mrsloth > i+i+i+i+i+i+i+i {
        position: absolute;
        display: inline-block;
        width: 0;
        height: 0;
        line-height: 0;
        border: 19px solid #3c3935;
        border-top: none;
        border-bottom-right-radius: 19px;
        border-bottom-left-radius: 19px;
        left: 28.5px;
        top: 71.25px;
    }

    #fade-in{
        -webkit-animation-name: one;
        -moz-animation-name: one;
        -webkit-animation-duration: 5s;
        -moz-animation-duration: 5s;
    }

    @-webkit-keyframes one{
        from{
            opacity: 0;
            margin-top: 0px;
        }
        to{
            opacity: 1;
            margin-top: 10px;
        } 
    }
    @-moz-keyframes one{
        from{
            opacity: 0;
            margin-top: 0px;
        }
        to{
            opacity: 1;
            margin-top: 10px;
        } 
    }
    /*end sloth*/

    h1{
        width: 320px;
        float: left;
        padding-left: 110px;
    }
    /*HEADER ANIMATION*/
    .bgclip {
        background:url(images/rainforest.jpg);
        background-repeat:repeat-x;
        background-position:0 0;
        font-size:50px;
        text-transform:uppercase;
        text-align:left;
        font-family:'Raleway', sans-serif;
        font-weight: 900;
        color:transparent;
        -webkit-font-smoothing:antialiased;
        -webkit-background-clip:text;
        -moz-background-clip:text;
        background-clip:text;
        -webkit-text-fill-color:transparent;
        margin:0;
        -webkit-animation:BackgroundAnimated 15s linear infinite;
        -moz-animation:BackgroundAnimated 15s linear infinite;
        animation:BackgroundAnimated 15s linear infinite;
    }
    @keyframes BackgroundAnimated {
        from {
            background-position:0 0
        }
        to {
            background-position:100% 0
        }
    }
        @-webkit-keyframes BackgroundAnimated {
        from {
            background-position:0 0
        }
        to {
            background-position:100% 0
        }
    }
        @-moz-keyframes BackgroundAnimated {
        from {
            background-position:0 0
        }
        to {
            background-position:100% 0
        }
    }

    nav{
        float: left;
        margin: 85px 4px 0px 170px;
    }
    nav ul{
        list-style-type: none;
    }

    nav ul li{
        display: inline;
        font-size: 20px;
        font-weight: 600;
        padding: 18px;
    }

    nav ul li a{
        text-decoration: none;
        position: relative;
        color: #315037; 
    }
    li a:before{
        content: "";
        position: absolute;
        left: -10%;
        bottom: 0;
        width: 100%;
        height: 2px;
        background-color: #315037;
        transition: all .3s; 
        visibility: hidden;
    }
    li a:hover:before {
        visibility: visible;
        left: 10%;
        transition: all .3s;
    }

#pg1, #pg3 {
    height: auto;
}

h2{
    color: #3E6545;
    clear: both;
}
h2 a{
    padding-top: 150px;
}
section{
    padding: 20px;
}
/*HOME PAGE*/
#pg1{
    padding-top:150px;
    clear:both;
}
#pg1 article{
    width: 800px;
}
#pg1 h3{
    color: #6d5e45;
    padding: 5px 15px;
}
/*SLIDER*/
#slider{
    width: 430px;
    margin: auto;
    padding: 20px 0;
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
}
#slider:hover{
    filter:grayscale(0%);
    -webkit-filter:grayscale(0%);
    -moz-filter:grayscale(0%);
}
@keyframes slidy {
0% { left: 0%; }
20% { left: 0%; }
25% { left: -100%; }
45% { left: -100%; }
50% { left: -200%; }
70% { left: -200%; }
75% { left: -300%; }
95% { left: -300%; }
100% { left: -400%; }
}

body { margin: 0; } 
div#slider { overflow: hidden; }
div#slider figure img { width: 20%; float: left; }
div#slider figure { 
    position:relative;
    width: 500%;
    left: 0;
    text-align: left;
    font-size: 0;
    animation: 30s slidy infinite; 
}

/*END SLIDER*/
/*END HOMEPAGE*/

/*ABOUT PAGE*/
#pg2{
    padding-top: 200px;
    height: 600px;
}
#left, #right, #center{
    width: 250px;
    float: left;
    margin: auto;
    padding: 18px;
}

/*Flip Cards*/ 
/* entire container, keeps perspective */
#left, #right, #center{
    margin: auto;
	perspective: 1000;
}
	/* flip the pane when hovered */
	#left:hover .flipper, #left.hover .flipper {
		transform: rotateY(180deg);
	}
    #right:hover .flipper, #right.hover .flipper {
		transform: rotateY(180deg);
	}
    #center:hover .flipper, #center.hover .flipper {
		transform: rotateY(180deg);
	}

#left, #right, #center, .front, .back {
	width: 250px;
	height: 300px;
}

/* flip speed goes here */
.flipper {
    background: white;
	transition: 0.6s;
	transform-style: preserve-3d;
	position: relative;
}

/* hide back of pane during swap */
.front, .back {
    background: white;
    padding: 5px;
	backface-visibility: hidden;
	position: absolute;
	top: 0;
	left: 0;
}

/* front pane, placed above back */
.front {
	z-index: 2;
	/* for firefox 31 */
	transform: rotateY(0deg);
}

/* back, initially hidden pane */
.back {
	transform: rotateY(180deg);
}
/*END ABOUT PAGE*/

/*FACTS PAGE*/
#pg3{
    padding-top: 150px;
}

#info h3 {
    margin-top: 10px;
    color:#3E6545; 
    font-size: 18px;
    padding:0;
    clear: both;
    
}
#info p {
    width: 440px;
    padding: 0px 10px 10px 0px;
    float: left;
    clear: left;
}
#info ul li {
    list-style-image: url(images/green_leaf_icon.png);
    margin-left: 45px;
    width: 390px;
    float: left;
    clear: left;
}
.additional_info{
    margin-left: 45px;
    padding: 0px 5px;
}

#info image{
    width: 375px;
    float: right;
    clear: left;
}

.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes flipInY {
  from {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
    transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
    opacity: 0;
  }

  40% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
    transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  60% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
    transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
    opacity: 1;
  }

  80% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
    transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
  }

  to {
    -webkit-transform: perspective(400px);
    transform: perspective(400px);
  }
}

@keyframes flipInY {
  from {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
    transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
    opacity: 0;
  }

  40% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
    transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  60% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
    transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
    opacity: 1;
  }

  80% {
    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
    transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
  }

  to {
    -webkit-transform: perspective(400px);
    transform: perspective(400px);
  }
}

.flipInY {
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
  -webkit-animation-name: flipInY;
  animation-name: flipInY;
}


/*END FACTS*/
footer{ 
    background: #f5f5f0;
    height: 60px; 
    padding: 15px;
    color: #315037;
     margin: 0 -601.5rem;
  /* add back section padding (1.5rem) */
        padding: 0.25rem 1.5rem;
  /* border has to be solid, not RGBa */
  /* 9600px or equiv (600rem = 9600/16) */
    border-left: 600rem solid #f5f5f0;
    border-right: 600rem solid #f5f5f0;
}

#fb{
    background-image: url(images/social_facebook.png);
    background-repeat: no-repeat;
    padding-bottom: 20px;
    height: 32px;
    width: 32px;
    float: right;

}
#insta{
    background-image: url(images/social_instagram.png);
    background-repeat: no-repeat;
    height: 32px;
    width: 32px;
    float: right;
}