@charset "utf-8";
@import url(http://fonts.googleapis.com/css?family=Roboto+Slab);
@import url(http://fonts.googleapis.com/css?family=Open+Sans);
@import url(https://fonts.googleapis.com/css?family=Marck+Script);
/* CSS Document */

body{
  background-color: #F1F1F5;
  font-size: 16px;
  line-height: 32px;
  color: #333;
  word-wrap:break-word !important;
  font-family: 'Open Sans', sans-serif;
}
h1 {
  font-size: 18px;
  line-height: 1.2em;
  margin-right: 25px;
  margin-left: 25px;
  margin-top: 10px;
  font-weight: normal;
  color: #FA0501;
  margin-bottom: 0px;
  border-bottom-width: 1px;
  border-bottom-style: dotted;
  border-bottom-color: #FA0501;
}
p  {
  text-align:justify;
  margin-left: 25px;
  margin-right: 25px;
  margin-top: 0px;
  margin-bottom: 25px;
}
.container {
  max-width: 800px;
  border-radius: 0px;
  padding: 35px;
  min-height: 800px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  margin-right: auto;
  margin-left: auto;
  background-image: url(hm15.png);
  box-shadow: -5px 10px 15px #B2B2B2;
  position: relative;
}
.outer {
  text-align: center;
}
.gallery {
  margin-top: 25px;
  margin-left: 15px;
}
.footer  {
  font-size: 0.8em;
  border-radius: 25px;
  background: rgb(251,207,207); /* Old browsers */
  background: -moz-linear-gradient(top,  rgba(251,207,207,1) 0%, rgba(251,135,135,1) 50%, rgba(251,107,107,1) 51%, rgba(254,104,102,1) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(251,207,207,1)), color-stop(50%,rgba(251,135,135,1)), color-stop(51%,rgba(251,107,107,1)), color-stop(100%,rgba(254,104,102,1))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  rgba(251,207,207,1) 0%,rgba(251,135,135,1) 50%,rgba(251,107,107,1) 51%,rgba(254,104,102,1) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  rgba(251,207,207,1) 0%,rgba(251,135,135,1) 50%,rgba(251,107,107,1) 51%,rgba(254,104,102,1) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  rgba(251,207,207,1) 0%,rgba(251,135,135,1) 50%,rgba(251,107,107,1) 51%,rgba(254,104,102,1) 100%); /* W3C */

filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fbcfcf', endColorstr='#fe6866',GradientType=0 );
  position: absolute;
  bottom: 25px;
  left: 50px;
  right: 50px;
  height: 30px;
}

div.fb-share-button {
  position: absolute;
  bottom: 33px;
  right: 65px;
  z-index: 1000;
}
.logo {
  margin-bottom: 20px;
}
.nav {
  text-transform: none;
  text-align: right;
  overflow: hidden;
  margin-top: 5px;
  margin-right: 20px;
  margin-left: 25px;
  margin-bottom: 0px;
}
.nav li {
  display: inline-block;
  float: right;
  margin-right: 10px;
  list-style-type: none;
  margin-top: 2px;
  margin-bottom: 2px;
  margin-left: 2px;
}
.nav a {;
  color: #FFFFFF;
  display: inline-block;
  padding-top: 4px;
  padding-right: 12px;
  padding-bottom: 4px;
  padding-left: 12px;
  border-radius: 16px;
  font-weight: normal;
  width: 75px;
  text-align: center;
  background: rgb(251,207,207); /* Old browsers */
  background: -moz-linear-gradient(top,  rgba(251,207,207,1) 0%, rgba(251,135,135,1) 50%, rgba(251,107,107,1) 51%, rgba(254,104,102,1) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(251,207,207,1)), color-stop(50%,rgba(251,135,135,1)), color-stop(51%,rgba(251,107,107,1)), color-stop(100%,rgba(254,104,102,1))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  rgba(251,207,207,1) 0%,rgba(251,135,135,1) 50%,rgba(251,107,107,1) 51%,rgba(254,104,102,1) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  rgba(251,207,207,1) 0%,rgba(251,135,135,1) 50%,rgba(251,107,107,1) 51%,rgba(254,104,102,1) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  rgba(251,207,207,1) 0%,rgba(251,135,135,1) 50%,rgba(251,107,107,1) 51%,rgba(254,104,102,1) 100%); /* IE10+ */
  background: linear-gradient(to bottom,  rgba(251,207,207,1) 0%,rgba(251,135,135,1) 50%,rgba(251,107,107,1) 51%,rgba(254,104,102,1) 100%); /* W3C */

filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fbcfcf', endColorstr='#fe6866',GradientType=0 ); /* IE6-9 */
  -webkit-transition: color 0.25s ease-in-out 0s;
  -moz-transition: color 0.25s ease-in-out 0s;
  -ms-transition: color 0.25s ease-in-out 0s;
  -o-transition: color 0.25s ease-in-out 0s;
  transition: color 0.25s ease-in-out 0s;
text-decoration: none;
}
.nav a:hover {
  color: rgb(255,189,191);
}
.nav a:active {
  -webkit-transform:translate(1px,2px);
  -moz-transform:translate(1px,2px);
  -o-transform:translate(1px,2px);
  -ms-transform:translate(1px,2px);
  transform:translate(1px,2px);
}
.gallerynav {
  text-transform: none;
  text-align: right;
  margin-top: 0px;
  margin-right: 25px;
  overflow: hidden;
  margin-left: 25px;
  margin-bottom: 15px;
}
.gallerynav li {
  display: inline-block;
  float: right;
  margin-right: 12px;
  list-style-type: none;
  margin-top: 2px;
  margin-bottom: 15px;
  margin-left: 2px;
}
.gallerynav a {
  color: #FFFFFF;
  display: inline-block;
  padding-top: 0px;
  padding-right: 10px;
  padding-bottom: 0px;
  padding-left: 10px;
  border-radius: 5px;
  font-weight: normal;
  text-decoration: none;
  background-color: rgba(254,104,102,1);
  -webkit-transition: background-color 0.25s ease-in-out 0s;
  -moz-transition: background-color 0.25s ease-in-out 0s;
  -ms-transition: background-color 0.25s ease-in-out 0s;
  -o-transition: background-color 0.25s ease-in-out 0s;
  transition: background-color 0.25s ease-in-out 0s;
}
.gallerynav a:hover {
  background-color: rgb(170,238,255);
}
.yks .yksLink, .kaks .kaksLink, .kolm .kolmLink, .neli .neliLink, .viis .viisLink, .kuus .kuusLink {
  background-color: #0099FF;
  
}
.menu {
  margin-top: 18px;
  margin-right: auto;
  margin-left: auto;
  border-collapse: collapse;
}
.menu th {
  font-weight: normal;
  color: #FA0501;
  text-transform: none;
  text-align: left;
  padding: 3px;
  background: rgba(136,174,235,0.2);
  text-decoration: none;
}
p.markus {
  //font-family: "LiberationSans Italic";
  margin-bottom: 25px;
}
.menu td {
  line-height: 1.1em;
  padding-top: 2px;
  padding-right: 5px;
  padding-bottom: 2px;
  padding-left: 5px;
}
.kontakt  {
  border: 1px dotted #FA0501;
  margin-top: 25px;
  margin-right: 25px;
  margin-left: 25px;
}
.kontakt h1  {
  color: #FA0501;
  border: none;
}

.alignright {
  text-align: right;
}
.alignleft {
  text-align: left;
}
figure {
  display: inline-block;
  vertical-align: top;
  width: 180px;
  margin: 0 5px 5px 5px;
  color: #D5DAEB;
}
figure img {
  border: 1px solid #F00;
  border-radius: 3px;
  background-color: #EBE4E1;
  padding: 4px;
  box-shadow: -2px 2px 4px rgba(0,0,0,.5);  
}
figcaption {
  font-size: 0.7em;
  line-height: 1em;
  text-align: center;
  margin: 3px 0 0 0;
  color: #000000;
}
figure img:hover {
  -webkit-animation-name: suur;
  -webkit-animation-duration: 5s;
  -moz-animation-name: suur;
  -moz-animation-duration: 5s;
  -o-animation-name: suur;
  -o-animation-duration: 5s;
  animation-name: suur;
  animation-duration: 5s;
}
@-webkit-keyframes suur {
  from {
  -webkit-transform: scale(1);  
}
20%, 90% {
  -webkit-transform: scale(1.5);  
}
to {
  -webkit-transform: scale(1);  
}}
@-moz-keyframes suur {
  from {
  -moz-transform: scale(1);  
}
20%, 90% {
  -moz-transform: scale(1.5);  
}
to {
  -moz-transform: scale(1);  
}}
@-o-keyframes suur {
  from {
  -o-transform: scale(1);  
}
20%, 90% {
  -o-transform: scale(1.5);  
}
to {
  -o-transform: scale(1);  
}}
@keyframes suur {
  from {
  transform: scale(1);  
}
20%, 90% {
  transform: scale(1.5);  
}
to {
  transform: scale(1);  
}}
.banner {
  margin-right: auto;
  margin-left: auto;
}
.banner img {
  max-width: 100%;
}
.tunnustus {
  margin-top: 10px;
  margin-right: 10px;
  margin-left: 25px;
  margin-bottom:10px;
}
@media only screen and (max-width: 600px) { 
.container {
  padding: 2px;
  padding-bottom: 20px;
  background-repeat: repeat-x;
  background-image: url(MOB_BC.png);
}
p  {
  text-align:center;
}
h1  {
  text-align:center;
}
.nav {
  margin-right: 25px;
  margin-left: 25px;
  display: -webkit-flex; /* Safari */
  display:flex;    
  -webkit-flex-direction: column-reverse;
  flex-direction: column-reverse;
  text-align:center;
}
.nav li {
  margin-bottom: 0px;
  width: 99%;
}
.nav a {
  width: 90%;
}
.banner {
  margin-top: 15px;
}
.footer  {
  left: 20px;
  right: 20px;
  bottom: 15px;
  height: 31px;
  text-align:left; 
}
.footer p {
  text-align:left; 
}
div.fb-share-button {
  position: absolute;
  bottom: 23px;
  right: 33px;
  z-index: 1000;
}
 .menu {
   font-size: 16px;

}
