@import url(http://fonts.googleapis.com/css?family=Telex|Cabin+Condensed);

html, body {
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: 'Telex', Arial;
  font-size: 15px;
}

html {
  background: url("../../data/uploads/tausta.png") repeat-x scroll top left transparent;
  background-color: #5f5f5f;
}

body {
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cabin Condensed', arial, helvetica, sans-serif;
}

h2 {
  line-height: 37px;
  font-size: 1.9rem;
  margin: 0 0 24px 0;
}

h3 {
  line-height: 37px;
  font-size: 25px;
  margin: 25px 0 10px 40px;
}

h3.yhteystiedot {
  line-height: 37px;
  font-size: 25px;
  margin: 25px 0 10px 10px;
}

#header {
  position: relative;
  margin: 30px auto 0 auto;
  padding: 0;
  height: 355px;
  width: 1000px;
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid white;
}

#content {
  padding: 20px 40px;
  width: calc(1000px - 80px);
  max-width: calc(100% - 80px);
  margin: 0 auto;
  border-bottom: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid white;
  background-color: #e6e6e6;
  text-align:left;
}

#footer {
  width: 1000px;
  margin: auto;
  padding: 15px;
}

#footer p {
  font-size: 10px;
  color: #fff;
  text-align: left;
}

#header h1 {
  margin: 0;
  padding: 0;
}

/* ******************************************************************** */
/* Clearfix: http://csscreator.com/attributes/containedfloat.php        */
/* ******************************************************************** */
.clearfix:after {
  content: ".";
  height: 0;
  clear: both;
  visibility: hidden;
}

.clearfix {
  display: inline-block;
}

/* Hides from IE-mac */
* html .clearfix {
  height: 1%;
}

.clearfix {}

/* End hide from IE-mac */
a#logo {
  background: url("../../data/uploads/nettisivu_lvi2.jpg") no-repeat scroll left top transparent;
  display: block;
  background-size: cover;
  font-size: 2em;
  height: 355px;
  text-decoration: none;
  text-indent: -1000em;
  width: 1000px;
  float: left;
  margin: 0;
}

#nav {
  display: block;
  width: 1048px;
  height: 52px;
  margin: 0 auto;
}

#nav ul {
  float: left;
  background: url("images/nav.png") repeat-x scroll top left transparent;
  background-color: #9cdeff;
  display: block;
  width: 1000px;
  line-height: 52px;
  float: left;
  list-style: none outside none;
  margin: 0;
  padding: 0;
  height: 52px;
}

#nav li {
  display: block;
  float: left;
  margin: 0;
}

#nav li.index {
  margin-left: 25px;
}

#nav ul li.current a {
  background-color: #555;
  color: #fff;
}

#nav ul li a {
  padding: 0 15px;
  display: block;
  height: 52px;
  color: #ccc;
  text-decoration: none;
}

#nav ul li a:hover {
  background-color: #555;
  display: block;
  height: 52px;
  color: #fff;
  text-decoration: none;
}

#nav #left {
  float: left;
  display: block;
  background: url("images/nav-left.png") repeat-x scroll top left transparent;
  width: 24px;
  height: 52px;
  margin: 0;
}

#nav #right {
  float: right;
  display: block;
  background: url("images/nav-right.png") repeat-x scroll top left transparent;
  width: 24px;
  height: 52px;
  margin: 0;
}

#content p {
  text-align: left;
  margin-bottom: 16px;
}

#content ul {
  text-align: left;
  margin-bottom: 16px;
  padding: 0 20px;
}

#content ul>li>ul {
  text-align: left;
  margin: 5px 0;
  padding: 0 20px;
}

#content img.etusivu {
  border: 8px solid white;
}

#content .gallery {
  margin: 5px 0 10px 40px;
}

#content p.yhteystiedot {
  text-align: left;
  margin: 5px 0 10px 10px;
}

.col-30 {
  width: 27%;
  float: left;
  margin: 0 0 0 3%;
}

.col-70 {
  width: 70%;
  float: left;
}

@media only screen and (max-width: 999px) {
  html, body, #header {
    width: 100%;
  }

  #content {
    width: 90%;
    font-size: 11pt;
    padding: 2px;
    margin: 15px auto;
    background-color: white;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: 20pt;
  }

  p {
    margin 2px;
    padding: 2px;
  }

  #header h1 #logo, #header {
    background-image: url(../../data/uploads/nettisivu_lvi2.jpg);
    height: 150px;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: white;
    margin: auto;
    position: relative;
  }

  .col-70, .col-30 {
    float: none;
    width: 90%;
    margin 2px;
    padding: 2px;
  }

  .col-30 {
    margin-left: 8%;
  }

  #nav {
    width: auto;
    float: none;
    clear: both;
    height: 43px;
    margin: 0;
  }

  #nav ul, ul a, ul li {
    width: 91%;
    float: none;
    clear: both;
    margin-bottom: 3px;
    font-size: 12pt;
    background: url("images/nav.png") repeat-x scroll top left transparent;
    background-color: #fff;
    margin-left: 5%;
  }

  #nav #left, #nav #right {
    display: none;
  }

  #nav li.index {
    margin-left: 0;
    margin: 0;
  }

  #nav ul {
    height: auto;
  }

  a#logo {
    width: 100%;
    margin: auto;
  }

  html {
    background-size: contain;
  }

  .col-70 li {
    background: transparent;
    height: 100%;
    font-size: 11pt;
  }

  #footer {
    width: 100%;
    margin: auto;
    padding-top: 10px;
  }
}
