body {
  font: normal 15px "Helvetica Neue", sans-serif;
  text-align: justify;
  line-height: 200%;
  color: #787878;
  margin: 0px;
  background-color: #E5E9E6;
}

main {
  width: 100%;
  max-width: 1150px;
  margin: 60px auto 20px auto;
  background-color: #FFF;
  box-shadow: 0 0 3px 0px rgba(0, 0, 0, 0.3);
}

main a {
  text-decoration: none;
  color: #8AB496;
}

h1, h2, .desc {
  font-weight: normal;
  font-size: 100%;
  display: inline-block;
  padding: 0;
  margin: 0;
  margin-bottom: 5px;
}

h1 {
  color: #000;
  font-size: 120%;
  padding-right: 10px;
}

[dir=rtl] h1 {
  padding-right: 0px;
  padding-left: 10px;
}

h2 {
  color: #000;
  padding-right: 5px;
}

[dir=rtl] h2 {
  padding-right: 0px;
  padding-left: 5px;
}

#logo {
  float: left;
  width: 64px;
  height: 100%;
  background-image: url(/images/logo.svg);
  background-position: left;
  background-size: cover;
  background-repeat: no-repeat;
  margin-right: -7px;
}

[dir=rtl] #logo {
  float: right;
  background-image: url(/images/logo_rtl.svg);
  background-position: right;
  margin-right: 0;
  margin-left: -7px;
}

#header {
  position: fixed;
  padding: 0;
  top: 0px;
  width: 100%;
  max-width: 1150px;
  height: 60px;
  line-height: 60px;
  background-color: #8DC994;
  box-shadow: 0 0 3px 0px rgba(0, 0, 0, 0.3);
}

#header h2 {
  text-transform: uppercase;
  font: bold 24px "Avenir Next", "Helvetica Neue", sans-serif;
  padding: 0;
}

#header h2 .button {
  vertical-align: middle;
}

#header .button {
  background-color: #8DC994;
  border: solid 1px transparent;
  color: #FFF;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  padding: 5px 10px 5px 10px;
}

#header .button:hover {
  background-color: #FFF;
  border-color: #8DC994;
  color: #8DC994;
}

#header .side {
  margin-right: 20px;
  margin-bottom: 0;
  padding-top: 0px;
}

[dir=rtl] #header .side {
  margin-right: 0;
  margin-left: 20px;
}

header {
  padding: 0px 30px 15px 30px;
  text-align: left;
  line-height: 150%;
}

[dir=rtl] header {
  text-align: right;
}

header .side {
  float: right;
  margin-left: 10px;
  margin-bottom: 5px;
}

[dir=rtl] header .side {
  float: left;
  margin-left: 0px;
  margin-right: 10px;
}

header::after {
  display: block;
  clear: both;
  content: " ";
}

footer::after {
  display: block;
  clear: both;
  content: " ";
}

.button, .default {
  padding: 5px 10px 5px 10px;
  text-decoration: none;
  border-radius: 5px;
}

.default {
  background-color: #8AB496;
  color: #FFF;
}

.button:hover, .default:hover {
  background-color: #8DC994;
  color: #FFF;
}

.intro {
  margin: 0 2.5% 25px 2.5%;
  padding: 20px;
  background-color: #FDFDFD;
  line-height: 180%;
}

.intro h2 {
  font-size: 85%;
  color: #000;
  line-height: 150%;
}

.intro p {
  padding: 10px 0 0 0;
  margin: 0;
}

.intro p:first-of-type {
  padding: 0;
}

section {
  padding: 25px 7% 15px 7%;
}

article {
  padding-top: 60px;
}

article p, article footer {
  padding: 0 7% 0 7%;
}

article footer {
  text-align: center;
}

b {
  font-weight: normal;
  color: #000;
}

section header {
  padding: 0;
}

figure {
  line-height: 100%;
  text-align: center;
  margin: 0;
}

figure img {
  max-width: 1150px;
  width: 100%;
}

section p {
  font-size: 94%;
  padding: 0 10px 10px 10px;
}

section footer {
  text-align: center;
  padding: 0;
}

.collapse {
  margin: 15px 6% 0 6%;
  padding: 5px 0 0 0;
  background-color: #FDFDFD;
}

.collapse header {
  padding: 15px 25px 15px 25px;
}

.collapse a {
  color: inherit;
}

.collapse p a {
  color: #8AB496;
}

.thumbs {
  padding-bottom: 15px;
}

.thumbs p {
  padding: 5px 7% 20px 7%;
}

.thumbs figure {
  padding-bottom: 10px;
}

.thumb {
  padding: 5px;
  margin: 7px;
  border: none;
  background-color: #FFF;
  width: 20%;
  min-width: 100px;
  max-width: 186px;
  box-shadow: 0 0 3px 0px rgba(0, 0, 0, 0.3);
}

figure iframe {
  position: absolute;
  left: 0;
  top: 0;
  border: none;
  width: 100%;
  height: 100%;
}

figure .cover {
  position: absolute;
  width: 100%;
  height: 100%;
}

.me {
  display: block;
  width: 80px;
  height: 80px;
  background-image: url(/images/me2@2x.jpg);
  background-size: 80px 80px;
  background-repeat: no-repeat;
  border-radius: 50%;
  margin: 0 auto 20px auto;
}

#footer {
  padding-top: 70px;
  width: 100%;
  text-align: center;
  font-size: 12px;
  line-height: 150%;
  padding-bottom: 20px;
}

.key {
  display: inline-block;
  background-color: #444;
  color: #FFF;
  border-radius: 4px;
  border: solid 1px #DDD;
  direction: ltr;
  font-size: 11px;
  line-height: 21px;
  padding: 1px 8px 1px 4px;
  margin: 0 3px 0 3px;
  min-width: 28px;
}

.parallax {
  overflow: hidden;
  margin-bottom: 35px;
}

.layer {
  position: relative;
  margin: 0 0 0 -575px;
  left: 50%;
  top: -88px;
  width: 1150px;
  height: 500px;
  
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: top;
}

.layer:first-of-type {
  float: left;
}

.layer div {
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.layer div:first-child {
  position: relative;
}

.message {
  text-align: center;
  margin: 0 auto;
  
  padding: 18px;
  max-width: 100%;
  background-color: #EAF9ED;
  color: #444;
  font-size: 14px;
  line-height: 150%;
}

.message p {
  margin: 0;
  display: inline-block;
  text-align: left;
}

[dir=rtl] .message p {
  text-align: right;
}

.message-triangle {
  width: 30px;
  height: 14px;
  margin: 0 auto;
  padding-bottom: 10px;
  background-image: url(/images/message_triangle.svg);
  background-repeat: no-repeat;
  background-size: 30px 14px;
}

.popover {
  display: none;
  position: absolute;
  z-index: 100;
  margin: 0;
  padding: 0;
  line-height: 200%;
  
  bottom: 0;
  height: 0;
  right: -30px;
}

[dir=rtl] .popover {
  right: auto;
  left: -30px;
}

.popover-content {
  overflow: scroll;
  border-radius: 5px;
  background-color: #FFF;
  box-shadow: 0 0 2px 0px #000;
}

.popover-triangle {
  width: 32px;
  height: 16px;
  position: absolute;
  background-image: url(/images/triangle.png);
  background-size: 32px 16px;
  
  top: -16px;
  right: 45px;
}

[dir=rtl] .popover-triangle {
  right: auto;
  left: 45px;
}

#language .popover-content {
  padding: 5px 0 5px 0;
  min-height: 100px;
  max-height: 300px;
}

#language a {
  display: block;
  text-align: right;
  font-size: 18px;
  color: #787878;
  width: 170px;
  padding: 3px 20px 3px 10px;
  border-radius: 0px;
  line-height: 125%;
}

[dir=rtl] #language a {
  text-align: left;
  padding: 3px 10px 3px 20px;
}

#language a:hover {
  background-color: #F3F3F3;
}

@media (-webkit-min-device-pixel-ratio: 2) {
  .popover-triangle { background-image: url(/images/triangle@2x.png); }
  .me { background-image: url(/images/me2@2x.jpg); }
}
