body{
  font: 15px/1.5 verdana;
  padding: 0;
  margin: 0;
  background: #333a56;
}

/* Yleinen */
.container{
  width: 86%;
  margin: auto;
  overflow: hidden;
}

.textcontainer{
  width: 75%;
  margin: auto;
  overflow: hidden;
}

.dark{
  padding:15px;
  background:#333a56;
  color:#ffffff;
  padding-left: 25px;
}

.light{
  padding:15px;
  background:#52658f;
  color:#ffffff;
  padding-left: 25px;
}

.gray{
  padding:15px;
  background:#f9f9f9;
  color:#787878;
}

ul{
  margin: 0;
  padding: 0;
  padding-left: 15px;
}

ul1{
  margin: 0;
  padding: 0;
  padding-left: 15px;
}

/* Header */
header{
  background: #333a56;
  color: #ffffff;
  padding-top: 35px;
  min-height: 70px;
  border-bottom: #ff8d3f 0px solid;
}

header a{
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
}

header li{
  float: left;
  display: inline;
  padding: 0 12px 0 12px;
}

header #logo{
  float: left;
}

header #logo h1{
  margin: 0;
}

header nav{
  float: right;
  margin-top: 14px;
}

header .highlight, header .current a{
  color: #ffffff;
  font-weight: bold;
}

header a:hover{
  color: #cccccc;
}

/* tausta */
#tausta{
  min-height: 260px;
  padding: 150px;
  text-align: center;
  color: #ffffff;
  background: url('../img/up2.jpg') repeat fixed 100%;
  background-size: cover;
}

#tausta h1{
  margin-top: 50px;
  font-size: 55px;
  margin-bottom: 10px;
}

#tausta p{
  font-size: 20px;
}

/* lyhyt tausta */
#lyhyttausta{
  min-height: 200px;
  padding: 100px;
  text-align: center;
  color: #ffffff;
  background: url('../img/up3.jpg') no-repeat fixed;
  background-size: cover;
}

#lyhyttausta h1{
  font-size: 55px;
  margin-bottom: 10px;
}

#lyhyttausta2{
  min-height: 200px;
  padding: 100px;
  text-align: center;
  color: #ffffff;
  background: url('../img/up7.jpg') no-repeat fixed;
  background-size: cover;
}

#lyhyttausta2 h1{
  font-size: 55px;
  margin-bottom: 10px;
}

#lyhyttausta3{
  min-height: 200px;
  padding: 100px;
  text-align: center;
  color: #ffffff;
  background: url('../img/up7.jpg') no-repeat fixed;
  background-size: cover;
}

#lyhyttausta3 h1{
  font-size: 55px;
  margin-bottom: 10px;
}

#lyhyttausta4{
  min-height: 200px;
  padding: 100px;
  text-align: center;
  color: #ffffff;
  background: url('../img/up7.jpg') no-repeat fixed;
  background-size: cover;
}

#lyhyttausta4 h1{
  font-size: 55px;
  margin-bottom: 10px;
}

#lyhyttausta5{
  min-height: 200px;
  padding: 100px;
  text-align: center;
  color: #ffffff;
  background: url('../img/up3.jpg') no-repeat fixed;
  background-size: cover;
}

#lyhyttausta5 h1{
  font-size: 55px;
  margin-bottom: 10px;
}

#arkkitehtuuri {
  z-index: 30;
  text-transform: uppercase;
  margin-bottom: 15px;
}

#arkkitehtuuri a{
  text-decoration: none;
  padding: 20px;
  color: #ffffff;
  background-color: #333a56;
}

#arkkitehtuuri a:hover{
  color: #cccccc;
}

#yhtt {
  z-index: 30;
  margin-bottom: 15px;
}

#yhtt a{
  text-decoration: underline;
  color: #ffffff;
}

#yhtt a:hover{
  color: #cccccc;
}

/* palkki */
#palkki{
  background: #333a56;
  color: #ffffff;
  min-height: 40px;
  border-top: #ff8d3f 0px solid;
  text-align: center;
}

#palkki p{
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
}

#palkki p{
  padding: 0 20px 0 20px;
}


/* sisalto */
#sisalto{
  padding: 20px;
  text-align: center;
  min-height: 500px;
  background-color: #f9f9f9;
}

#main{
  font-family: Helvetica, sans-serif;
  background-color: #f9f9f9;
}

article#vasen{
  float: left;
  width: 45%;
  color: #787878;
  padding: 15px;
}

aside#oikea{
  float:right;
  width:45%;
}

#palv{
  color: #ffffff;
  text-align: center;
  background-color: #52658f;
  font: 18px/2.0 verdana;
  padding: 30px;
}

#palv2{
  color: #ffffff;
  text-align: center;
  background-color: #52658f;
  font: 18px/2.0 verdana;
  padding: 10px;
}



/* footer */
footer{
  padding: 15px;
  color: #ffffff;
  text-align: center;
  font: 14px/1.5 verdana;
  min-height: 50px;
  background-color: #333a56;
}

footer#alt{
  background-color: #333a56;
  color: #ffffff;
}

@media (max-width: 970px) {
  header #logo,
  header nav,
  header nav li,
  article#vasen,
  aside#oikea {
    float: none;
    text-align: center;
    width: 100%;
    padding-left: none;
  }

  article#vasen {
    padding: 0px;
    font-size: 13px;
  }

  aside#oikea{
    font-size: 13px;
  }


  header {
    padding-bottom: 20px;
  }

  #tausta {
    padding: 0px;
    max-height: 50px;
  }

  #tausta h1{
    font-size: 35px;
    margin-top: none;
  }

  #tausta p {
    font-size: 15px;
  }

  #lyhyttausta {
    padding: 10px;
    min-height: 120px;
  }

  #lyhyttausta h1{
    font-size: 35px;
  }

  #lyhyttausta2 {
    padding: 10px;
    min-height: 120px;
  }

  #lyhyttausta2 h1{
    font-size: 35px;
  }

  #lyhyttausta3 {
    padding: 10px;
    min-height: 120px;
  }

  #lyhyttausta3 h1{
    font-size: 35px;
  }

  #lyhyttausta4 {
    padding: 10px;
    min-height: 120px;
  }

  #lyhyttausta4 h1{
    font-size: 35px;
  }

  #lyhyttausta5 {
    padding: 10px;
    min-height: 120px;
  }

  #lyhyttausta5 h1{
    font-size: 35px;
  }

  #palv {
    font-size: 10px;
  }

  #palv2 {
    font-size: 12px;
  }

  .light {
    padding: 5px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .dark {
    padding: 5px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .container {
    width: 100%;
  }

  .container p {
    margin-left: 5px;
    margin-right: 5px;
  }

  .container h2 {
    margin-left: 5px;
    margin-right: 5px;
  }

  .container h3 {
    margin-left: 5px;
    margin-right: 5px;
  }

  .textcontainer {
    width: 100%;
  }

  .textcontainer p {
    margin-left: 5px;
    margin-right: 5px;
  }

  .textcontainer h2 {
    margin-left: 5px;
    margin-right: 5px;
  }

  .textcontainer h3 {
    margin-left: 5px;
    margin-right: 5px;
  }

  footer {
    font-size: 12px;
  }
}

@media (max-width: 550px) {

  header li {
    display:flex;
    padding-left: 30px;
  }

  header h1{
    float: left;
    padding-left: 30px;
    padding-bottom: 10px;
  }

}
