body {
  background-image:url('layout/taivas.jpg');
  background-repeat: no-repeat;
  background-color: #FFFFFF;
  text-align: center;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: Tahoma, Arial;
  font-size: 10.5pt;
  color: #4D4944;
  letter-spacing: 0.07em; 
}

div.vesi {
  background-image: url('layout/vesi.jpg');
  background-repeat: no-repeat;
  height: 300px;
  width: 110%;
  margin: 0;
  padding: 0;
}

div.main {
  background-image: url('layout/main-tausta.png');
  background-repeat: no-repeat;
  width: 1365px;
/*  height: 1185px; */
  text-align: left;
  padding: 0;
  margin: 0 auto 0 auto;
  border: 0;
}

h1 {
  margin: 0;
  padding: 90px 0 0 314px;
  border: 0;
}

h1 img {
  margin: 0;
  padding: 0;
  border: 0;
}

div.vasen {
  width: 208px;
  margin: 90px 0 0 133px;
  padding: 0 0 0 0;
  border: 0;
  float: left;
  text-align: center;
  color: #3D117B;
  font-weight: normal;
}

div.vasen h2 {
  margin: 30px 0 0 0;
  padding: 0;
  font-size: 13pt;
  font-weight: bold;
  font-family: Tahoma, Arial;
  letter-spacing: 0; 
}

div.vasen p {
  margin: 0 0 10px 0;
  padding: 0;
}

div.vasen div.yhteystiedot {
  margin: 0;
  padding: 90px 0 0 0;
  background-image: url('layout/naviraja.png');
  background-repeat: no-repeat;
}


ul.navi {
  list-style-type: none;
  margin: 0 0 0 15px;
  padding: 0;
  border: 0;
  text-align: left;
}

ul.navi li {
  height: 36px;
  width: 188px;

  text-align: center;
  margin: 0 0 0 0;
  padding: 7px 0 0 0;
  border: 0;
}

ul.navi li a {
  margin: 0 40px 0 0;
  padding: 0;
  border: 0;
  text-decoration: none;
  font-weight: bolder;
  color: #3D117B;
  font-size: 12pt;
  font-family: Arial Narrow;
}

ul.navi li a img {
  border: 0;
}

div.maintext {
  margin: 150px 0 0 380px;
  width: 660px;
}

h2 {
  color: #3D117B;
  font-size: 18pt;
/* font-family: Gothic821 Cn BT, Arial Narrow; */
  font-family: Arial Narrow;
  margin: 0 0 30px 0;
  padding: 0;
  text-decoration: none;
}

h2 a {
  color: #3D117B;
  text-decoration: none;
}

h3 {
  color: #3D117B;
  font-size: 12pt;
  font-weight: bold;
  margin: 30px 0 0 0;
  clear: right; 
}


p.floatvasen {
  float: left;
}

p.floatvasen img {
  margin: 0 20px 0 0;
}

a {
  color: #4D4944;
  text-decoration: underline;
}

/* gallerian pikkukuvat */
p.img_small {
  float: left;
  margin: 5pt;
  height: 150px;
}

.clearboth {
  clear: both;
}

p.galleriantaytto {
  height: 140px;
}

p.galleria_navi {
  float: left;
/*  margin-right: 136px; */
  margin-right: 100px;
}

table.kalakanta {
  font-size: 8pt;
/*  background-color: #EAEBF2; */
  background-color: #EFF0F7;
  padding-right: 5px;
}

table.kalakanta tr td, table.kalakanta tr th {
  border-bottom: 1px solid gray;
}

label {
  margin: 0;
  float: left;
  clear: right;
  width: 120pt;
}

label.vasen {
  margin: 0;
  float: none;
}

li img.mallisto {
  margin-top: 5px;
  float: right; 
}

p.mallisto_img {
  float: right;
  clear: right;
  margin: 0;
}

h3.mallisto {
  margin: 40px 0 0 0;
  padding-top: 15px;
/*  border: 1px solid black; */
  clear: none; 
}

p.mallisto_img_vaaka {
  float: right;
/*  clear: right; */
  clear: right;
  margin: 20px 0 0 0;
/*  border: 1px solid red; */
}

img.salkku {
  float: left;
  margin-left: 30px;
}

img.salkkukiinni {
  margin: 20px 0 0 30px;
}

p.pinnat {
  float: left;
  margin: 0 20px 0 0;
  text-align: center;
}

p.mainos {
  color: #FF8000;
  float: right;
  margin: 0 0 30px 30px;
  padding: 5px;
  font-weight: bold;
  font-size: 12pt;
  text-align: center;
}


/* Style the Image Used to Trigger the Modal */
#myImg {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#myImg:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
/*  max-width: 700px;*/
  max-width: 1000px;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption { 
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}
