/*--SASS Setup--*/
/*--Main Style--*/
@font-face {
  font-family: Ebrima;
  src: url("fronts/ebrima.ttf"), url("fonts/ebrima.svg");
}

h1 {
  color: #89c54c;
  font-size: 1.25em;
}

h2 {
  color: #89c54c;
  font-size: 1em;
}

a {
  color: #89c54c;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

* {
  margin: 0;
  padding: 0;
  border: none;
  list-style: none;
  font-family: Ebrima, sans-serif;
  font-size: 16px;
  color: #3f3f40;
  line-height: 175%;
}

html {
  width: 100%;
  height: 100%;
  min-width: 320px;
  overflow-x: hidden;
}

body {
  width: 100%;
  min-height: 100%;
  margin: 0 auto;
  background-attachment: fixed;
  background: #fff;
}

#header {
  max-width: 1300px;
  margin: 0 auto;
  padding: 50px 50px 30px 50px;
}

#header > a {
  float: left;
}

#header > a img {
  height: 50px;
  vertical-align: text-bottom;
}

#header:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}

#header #nav-wrapper:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}

#header #nav-wrapper #nav {
  margin: 0 auto;
  padding-top: 10px;
  list-style: none;
  position: relative;
  border-bottom: solid 2px #3f3f40;
}

#header #nav-wrapper #nav li {
  display: inline;
  margin: 0px 20px 0px 0px;
}

#header #nav-wrapper #nav li a {
  color: #3f3f40;
  font-size: .75em;
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.5s;
  -moz-transition: color 0.5s;
  -webkit-transition: color 0.5s;
  -o-transition: color 0.5s;
}

#header #nav-wrapper #nav li a:hover {
  color: #89c54c;
}

#header #nav-wrapper #nav li:nth-child(6) {
  margin: 0;
}

#header #nav-wrapper #nav .current a {
  font-weight: bold;
  color: #89c54c;
}

#header #magic-line {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background-color: #89c54c;
}

@media (max-width: 960px) {
  #header {
    padding: 40px 40px 30px 40px;
  }
}

@media (max-width: 768px) {
  #header {
    padding: 30px;
  }
  #header > a img {
    height: 40px;
  }
  #header #nav-wrapper #nav li a {
    font-size: .6em;
  }
}

@media (min-width: 641px) {
  #header #nav {
    float: right;
  }
}

@media (max-width: 640px) {
  #header > a {
    float: none;
    display: block;
    text-align: center;
  }
  #header #nav-wrapper {
    border-bottom: solid 2px #3f3f40;
  }
  #header #nav-wrapper #nav {
    width: 270px;
    overflow: visible;
    white-space: nowrap;
    margin: 0 auto;
    border: none;
  }
}

@media (max-width: 480px) {
  #header {
    padding: 30px 30px 20px 30px;
  }
  #header > a img {
    height: 30px;
  }
  #header #nav-wrapper #nav {
    width: 230px;
  }
  #header #nav-wrapper #nav li a {
    font-size: .5em;
  }
  #header #nav-wrapper #nav li:nth-child(5) {
    display: none;
  }
}

#header {
  display: inline-block;
}

/* start commented backslash hack \*/
* html .clearfix {
  height: 1%;
}

#header {
  display: block;
}

/* close commented backslash hack */
#content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 50px;
  overflow: hidden;
}

#content .section-large {
  max-width: 600px;
  margin: 0 auto 50px auto;
}

#content .section {
  margin-bottom: 30px;
}

#content .left-half {
  float: left;
  width: 48%;
  margin-bottom: 50px;
}

#content .right-half {
  float: right;
  width: 48%;
  margin-bottom: 50px;
}

#content .button {
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

#content .button a {
  display: inline-block;
  height: 50px;
  line-height: 50px;
  padding: 0 50px;
  border-radius: 25px;
  -moz-box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  background-color: #89c54c;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.5s;
  -moz-transition: background 0.5s;
  -webkit-transition: background 0.5s;
  -o-transition: background 0.5s;
}

#content .button a:hover {
  background: #3f3f40;
}

#content p, #content h1, #content h2 {
  margin: 0 auto;
  max-width: 600px;
}

@media (max-width: 768px) {
  #content {
    padding: 0 30px;
  }
}

@media (max-width: 640px) {
  #content .left-half {
    width: 100%;
    margin-bottom: 30px;
  }
  #content .right-half {
    width: 100%;
  }
}

#footer {
  background-image: url("../images/footer_trim.png");
  background-repeat: repeat-x;
  background-position: top;
  padding: 40px 0 0 0;
  margin-top: 50px;
  clear: both;
}

#footer .wrapper {
  width: 100%;
  background: #3f3f40;
  background-image: url("../images/molecules.png");
  background-repeat: repeat;
  background-position: top;
}

#footer .wrapper .container {
  max-width: 1300px;
  min-height: 140px;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px 50px 0 50px;
  text-align: center;
}

#footer .wrapper .container .smallshow {
  display: none;
}

#footer .wrapper .container img {
  float: left;
}

#footer .wrapper .container p {
  float: left;
  font-size: .75em;
  color: #fff;
  line-height: 50px;
  margin-left: 10px;
}

#footer .wrapper .container span {
  float: right;
  color: #fff;
  text-align: right;
}

#footer .wrapper .container span p {
  width: 100%;
  text-align: right;
  margin: 20px 0 0 0;
  line-height: .25em;
}

#footer .wrapper .container a {
  display: block;
  float: right;
  margin-right: 10px;
  width: 0px;
  height: 50px;
  padding-left: 50px;
  overflow: hidden;
}

#footer .wrapper .container a:first-child {
  margin: 0;
}

#footer .wrapper .container .facebook {
  background-image: url("../images/facebook_light.svg");
}

#footer .wrapper .container .youtube {
  background-image: url("../images/youtube_light.svg");
}

@media (max-width: 768px) {
  #footer .wrapper .container {
    padding: 30px 30px 0 30px;
  }
}

@media (max-width: 640px) {
  #footer p {
    float: right !important;
  }
  #footer span {
    clear: none;
    width: 100%;
  }
  #footer span p:last-child {
    display: none;
  }
  #footer img {
    display: none;
  }
}

/*--Index--*/
#carousel {
  width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
  height: auto;
  position: relative;
  -moz-box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  border-radius: 50px;
}

@media (max-width: 960px) {
  #carousel {
    border-radius: 40px;
  }
}

@media (max-width: 768px) {
  #carousel {
    border-radius: 30px;
  }
}

@media (max-width: 640px) {
  #carousel {
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  #carousel {
    border-radius: 15px;
  }
}

.rslides {
  position: relative;
  list-style: none;
  overflow: hidden;
  width: 100%;
  padding: 0;
  margin: 0;
  z-index: -100;
}

.rslides li {
  -webkit-backface-visibility: hidden;
  position: absolute;
  display: none;
  width: 100%;
  left: 0;
  top: 0;
}

.rslides li:first-child {
  position: relative;
  display: block;
  float: left;
}

.rslides img {
  display: block;
  height: auto;
  float: left;
  width: 100%;
  border: 0;
  border-radius: 50px;
}

@media (max-width: 960px) {
  .rslides img {
    border-radius: 40px;
  }
}

@media (max-width: 768px) {
  .rslides img {
    border-radius: 30px;
  }
}

@media (max-width: 640px) {
  .rslides img {
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .rslides img {
    border-radius: 15px;
  }
}

.rslides_tabs {
  position: absolute;
  bottom: 10px;
  right: 50px;
  z-index: 100;
}

.rslides_tabs li {
  display: inline-block !important;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  display: inline;
  border: solid 1px #3f3f40;
  font-size: 5px;
  text-align: center;
  background-color: #fff;
  border-radius: 5px;
  transition: background 0.5s;
  -moz-transition: background 0.5s;
  -webkit-transition: background 0.5s;
  -o-transition: background 0.5s;
}

.rslides_tabs li:last-child {
  margin: 0;
}

.rslides_tabs li a {
  display: inline-block;
  width: 8px;
  height: 8px;
  font-size: 5px;
  line-height: 5px;
  color: #fff;
}

.rslides_tabs .rslides_here {
  background-color: #89c54c;
}

.rslides_tabs .rslides_here a {
  color: #89c54c;
}

@media (max-width: 960px) {
  .rslides_tabs {
    right: 40px;
  }
}

@media (max-width: 768px) {
  .rslides_tabs {
    right: 30px;
  }
}

@media (max-width: 640px) {
  .rslides_tabs {
    right: 20px;
    bottom: 5px;
  }
}

@media (max-width: 480px) {
  .rslides_tabs {
    right: 15px;
    bottom: 5px;
  }
}

.smallshow {
  width: 200px;
  margin: 20px auto 0 auto;
  border-radius: 100px;
  -moz-box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  display: none;
}

.smallshow img {
  position: relative;
  display: block;
  z-index: -100;
  border-radius: 100px;
  width: 100%;
}

@media (max-width: 640px) {
  .smallshow {
    display: block;
  }
}

@media (max-width: 480px) {
  .smallshow {
    width: 150px;
  }
}

#logos {
  float: left;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

#logos li {
  box-sizing: border-box;
  flex-basis: 12.5%;
  padding: 20px;
}

#logos li a img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: -100;
  opacity: 0.5;
  filter: alpha(opacity=50);
  transition: opacity 0.5s;
  -moz-transition: opacity 0.5s;
  -webkit-transition: opacity 0.5s;
  -o-transition: opacity 0.5s;
}

#logos li a:hover img {
  opacity: 1;
  filter: alpha(opacity=100);
}

@media (max-width: 960px) {
  #logos li {
    padding: 30px;
    flex-basis: 20%;
  }
}

@media (max-width: 768px) {
  #logos {
    width: 100%;
    margin: 0;
  }
  #logos li {
    flex-basis: 25%;
  }
}

@media (max-width: 480px) {
  #logos li {
    flex-basis: 33%;
    padding: 20px;
  }
}

/*--About--*/
#images {
  width: 100%;
  margin-bottom: 30px;
}

#images li {
  display: inline-block;
  width: 22%;
  margin-right: 4%;
  border-radius: 150px;
  -moz-box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
}

#images li:last-child {
  margin: 0;
}

#images li img {
  display: block;
  margin: 0 auto;
  width: 100%;
  border-radius: 150px;
  position: relative;
  z-index: -100;
}

@media (max-width: 640px) {
  #images li {
    width: 30%;
    margin-right: 5%;
  }
  #images li:nth-child(3) {
    margin: 0;
  }
  #images li:nth-child(4) {
    display: none;
  }
}

#formula {
  padding: 10px !important;
  border-radius: 60px !important;
  margin-bottom: 20px;
}

/*--Team--*/
#team h2 {
  font-size: 1.5em;
}

#team > li {
  float: left;
  clear: both;
}

#team > li .wrapper {
  float: left;
  width: 18%;
  margin-right: 2%;
  border-radius: 150px;
  -moz-box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
}

#team > li .wrapper img {
  display: block;
  border-radius: 150px;
  width: 100%;
  position: relative;
  z-index: -100;
}

#team > li span {
  display: block;
  float: left;
  width: 80%;
  margin-top: 10px;
}

#team > li span p, #team > li span h1, #team > li span h2 {
  max-width: none;
}

#team > li .social_buttons {
  overflow: hidden;
  float: left;
  margin-top: 20px;
}

#team > li .social_buttons li {
  display: inline-block;
  margin: 0 5px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  overflow: hidden;
  border-radius: 25px;
  background-color: #89c54c;
  white-space: nowrap;
  -moz-box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  transition: all 0.5s;
  -moz-transition: all 0.5s;
  -webkit-transition: all 0.5s;
  -o-transition: all 0.5s;
}

#team > li .social_buttons li a {
  float: left;
  color: #3f3f40;
  font-size: 1em;
  text-decoration: none;
  padding-left: 50px;
  background-repeat: no-repeat;
  line-height: 50px;
  background-position: bottom left;
}

#team > li .social_buttons li:hover {
  text-decoration: none;
}

#team > li .twitter {
  background-image: url("../images/twitter.svg");
}

#team > li .facebook {
  background-image: url("../images/facebook.svg");
}

#team > li .linkedin {
  background-image: url("../images/linkedin.svg");
}

#team > li .website {
  background-image: url("../images/website.svg");
}

#team > li .blog {
  background-image: url("../images/blog.svg");
}

@media (max-width: 960px) {
  #team > li {
    margin-bottom: 20px;
  }
  #team > li:last-child {
    margin-bottom: 0;
  }
}

@media (min-width: 960px) {
  #team > li
span {
    width: 60%;
  }
}

@media (min-width: 641px) {
  #team > li:nth-child(2n+2) {
    text-align: right;
  }
  #team > li:nth-child(2n+2) .wrapper {
    float: right;
    margin-right: 0;
    margin-left: 2%;
  }
  #team > li:nth-child(2n+2) span {
    float: right;
  }
  #team > li:nth-child(2n+2) .social_buttons {
    float: right;
  }
  #team > li:nth-child(2n+2) .social_buttons li {
    text-align: right;
  }
  #team > li:nth-child(2n+2) .social_buttons li a {
    padding-right: 50px;
    padding-left: 0;
    float: right;
    background-position: bottom right;
    background-repeat: no-repeat;
  }
  #team .social_buttons li:hover {
    width: 250px;
  }
}

@media (max-width: 640px) {
  #team > li {
    margin-top: 20px;
  }
  #team > li .wrapper {
    float: none;
    margin: 0 auto;
    width: 50%;
  }
  #team > li span {
    clear: both;
    width: 100%;
  }
  #team > li:last-child {
    margin-bottom: 80px;
  }
  #team .social_buttons li:hover {
    background-color: #3f3f40;
  }
}

/*--Media--*/
#articles {
  width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

#articles li {
  float: left;
  width: 20%;
  text-align: left;
}

@media (max-width: 960px) {
  #articles li {
    width: 25%;
  }
}

@media (max-width: 768px) {
  #articles li {
    width: 33%;
  }
}

@media (max-width: 640px) {
  #articles li {
    width: 50%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  #articles li {
    width: 100%;
  }
}

#videos {
  display: block;
  text-align: center;
}

#videos object, #videos iframe {
  background-color: #3f3f40;
  background-image: url("../images/loader.gif");
  background-position: center;
  background-repeat: no-repeat;
}

/*--Gallery--*/
#gallery ul li {
  display: inline-block;
  width: 13%;
  margin-right: 1.5%;
  -moz-box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  border-radius: 100px;
}

#gallery ul li a img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 100px;
  position: relative;
  z-index: -100;
}

@media (min-width: 641px) {
  #gallery ul li:nth-child(7), #gallery ul li:nth-child(13n+20) {
    margin-right: 0;
  }
  #gallery ul li:nth-child(13n+8) {
    margin-left: 7%;
  }
}

@media (max-width: 640px) {
  #gallery ul li {
    width: 23%;
    margin-right: 2.66%;
  }
  #gallery ul li:nth-child(4), #gallery ul li:nth-child(7n+11) {
    margin-right: 0;
  }
  #gallery ul li:nth-child(7n+5) {
    margin-left: 12%;
  }
}

/*--Contact--*/
#contact_image {
  width: 300px;
  margin: 0 auto 30px auto;
  -moz-box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  border-radius: 150px;
}

#contact_image img {
  display: block;
  width: 100%;
  border-radius: 150px;
  position: relative;
  z-index: -100;
}

@media (max-width: 960px) {
  #contact_image {
    width: 250px;
  }
}

@media (max-width: 768px) {
  #contact_image {
    width: 200px;
  }
}

@media (max-width: 640px) {
  #contact_image {
    width: 150px;
  }
}

form {
  width: 600px;
  display: block;
  margin: 0 auto;
}

form span {
  width: 260px;
  display: block;
  float: left;
}

form span input {
  width: 100%;
}

form span:first-child {
  margin-right: 50px;
}

form input, form textarea {
  transition: background 0.5s;
  -moz-transition: background 0.5s;
  -webkit-transition: background 0.5s;
  -o-transition: background 0.5s;
}

form input:focus, form textarea:focus {
  outline: none;
  background: #3f3f40;
  color: white;
}

form input {
  -webkit-appearance: none;
  padding: 0 15px;
  height: 50px;
  width: 570px;
  margin-bottom: 10px;
  -moz-box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  border-radius: 25px;
  background-color: #eee;
}

form textarea {
  -webkit-appearance: none;
  padding: 10px 15px;
  width: 570px;
  max-width: 570px;
  -moz-box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 10px 0px rgba(0, 0, 0, 0.25);
  border-radius: 25px;
  background-color: #eee;
  overflow: auto;
}

form #submit-button {
  -webkit-appearance: none;
  display: block;
  width: auto;
  padding: 0 50px;
  margin: 20px auto 0 auto;
  background: #89c54c;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

form #submit-button:hover {
  background-color: #3f3f40;
}

@media (max-width: 960px) {
  form {
    width: 500px;
  }
  form span {
    width: 210px;
  }
  form input, form textarea {
    width: 470px;
    max-width: 470px;
  }
}

@media (max-width: 768px) {
  form {
    width: 450px;
  }
  form span {
    width: 185px;
  }
  form input, form textarea {
    width: 420px;
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  form {
    width: 430px;
  }
  form span {
    width: 400px;
  }
  form input, form textarea {
    width: 400px;
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  form {
    width: 260px;
  }
  form span {
    width: 230px;
  }
  form input, form textarea {
    width: 230px;
    max-width: 230px;
  }
}
