* {
  padding: 0;
  margin: 0;
}

body {
  font-family: 'Signika';
  font-size: 18px;
  color: #FFF;
  height: 100%;
  background: url('../images/bg.png') top center repeat-y #1d50c2;
}

p {
  margin-bottom: 22px;
  line-height: 1.4;
}

a {
  color: white;
  font-weight: bold;
  text-decoration: underline;
}

a:visited {
  text-decoration: underline;
}

a:hover {
  text-decoration: underline;
}

.clearfix:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}

.clearfix {
  display: inline-block;
}

html[xmlns] .clearfix {
  display: block;
}

* html .clearfix {
  height: 1%;
}

a#header-link, a#header-link:hover, a#header-link:visited {
  color: white;
  text-decoration: none;
}

#header-bg {
  width: 100%;
  height: auto;
  min-height: 550px;
  background: url('../images/header-bg.png') top center repeat-x;
}

#header {
  width: 100%;
  height: auto;
  min-height: 550px;
  z-index: 1;
  background: url('../images/header-image.jpg') top center no-repeat;
}

#header .title {
  padding-top: 280px;
  width: auto;
  height: auto;
}

#header .title h1 {
  font-size: 57px;
  color: #FFF;
  margin: 0 auto;
  text-align: center;
  display: block;
  padding: 20px 0;
  width: 960px;
  -o-text-shadow: 0px 2px 15px #000;
  -khtml-text-shadow: 0px 2px 15px #000;
  -webkit-text-shadow: 0px 2px 15px #000;
  -moz-text-shadow: 0px 2px 15px #000;
  text-shadow: 0px 2px 15px #000;
  -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=180, Color='#000000')";
  filter: progid:DXImageTransform.Microsoft.Shadow(Strength = 5, Direction = 180, Color = '#000000');
}

#grass {
  width: 100%;
  height: 54px;
  position: relative;
  top: -54px;
  z-index: 5;
  background: url('../images/grass-repeat.png') repeat-x;
}

#main {
  border-top: 1px solid #00aeef;
  width: 100%;
  height: auto;
  min-height: 100%;
  margin-top: -54px;
}

#main .wrapper {
  width: 960px;
  height: auto;
  margin: 0 auto;
}

#content h1 {
  margin: 0 auto;
  text-align: center;
  margin-bottom: 15px;
}

#content p.summary {
  font-size: 22px;
  font-weight: 700;
}

#content .secondary-page {
    margin-top: 80px;
}

#main a.main-button, #main a.secondary-button {
  margin: 0 auto;
  background: url('../images/orange-gradient.png') top repeat-x #e7550c;
  border-bottom: 3px solid #a84700;
  border-top: 1px solid #ff9126;
  color: #FFF;
  text-align: center;
  font-size: 28px;
  font-weight: normal;
  text-decoration: none;
  display: block;
  padding: 20px 25px;
  width: 300px;
  -moz-border-radius: 5px;
  -o-border-radius: 5px;
  -khtml-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  z-index: 10;
}

#main a.main-button:hover, #main a.secondary-button:hover {
  background: #ff7300;
}

#main a.main-button {
  position: relative;
  top: -30px;
}

#main .main-button-replacement {
  position: relative;
  top: -30px;
  padding: 20px 25px;
  margin: 0 auto;
}

#main a.secondary-button {
  margin-top: 0.4em;
  margin-bottom: 1em;
}

#content {
  width: 960px;
  height: auto;
  padding-bottom: 25px;
}

#content h1.allekirjoitukset {
  display: block;
  width: 960px;
  height: 50px;
  background: url('../images/dot-repeat.png') center repeat-x;
}

#content h1.allekirjoitukset span.title-wrap {
  font-size: 48px;
  font-family: 'Signika';
  text-align: center;
  display: block;
  width: 250px;
  margin: 0 auto;
  background: url('../images/bg.png') center repeat-y;
}

#content .text-1 p, #content .text-2 p {
  text-align: center;
}

#content .text-2 p, #content .text-3 p {
  font-size: 20px;
  margin-top: 25px;
}

#content .text-3 {
  margin-left: 1em;
}

#content .text-3 p {
  text-align: left;
}

.snail-mail-address {
  margin-left: 2em;
}

#content div.time-left {
  font-weight: bold;
}
#content div.time-left p.timer {
  margin-top: 0;
  margin-bottom: 0.9em;
  font-size: 24px;
}

#content h1.tukijat {
  display: block;
  width: 960px;
  height: 50px;
  background: url('../images/dot-repeat.png') center repeat-x;
}

#content h1.tukijat span.title-wrap {
  font-size: 38px;
  font-family: 'Signika';
  text-align: center;
  display: block;
  width: 200px;
  margin: 0 auto;
  background: url('../images/bg.png') center repeat-y;
}

#content #tukijat {
  width: 960px;
  height: auto;
  margin: 25px 0;
  clear: left;
}

#content #tukijat a.tukija {
  display: block;
  width: 216px;
  margin: 5px 1px;
  color: #FFF;
  text-align: center;
  text-decoration: none;
  font-size: 48px;
  padding: 10px;
  height: 100px;
  background: #1d50c3;
  -moz-box-shadow: 0 0 2px #153a8f;
  -o-box-shadow: 0 0 2px #153a8f;
  -khtml-box-shadow: 0 0 2px #153a8f;
  -webkit-box-shadow: 0 0 2px #153a8f;
  box-shadow: 0 0 2px #153a8f;
  float: left;
}

#content #tukijat a.tukija img {
  border: 0;
}


#content .väiteluettelo {
  line-height: 1.4em;
}

#content .väiteluettelo a,
#content .väiteluettelo a:visited {
  text-decoration: none;
}

#content .väiteluettelo a:hover {
  text-decoration: underline;
}

#content #ukk-väitteet li {
    margin-bottom: 2.5em;
}


/* for 960px and less */
@media screen and (max-width:960px) {
  #main .wrapper {
    width: 94%;
  }

  #content, #header .title h1, #content #tukijat, #content h1.tukijat, #content h1.allekirjoitukset {
    width: 94%;
    padding: 0 3%;
  }

  #content #tukijat a.tukija {
    width: 40%;
    margin: 1% 2%;
    min-width: 216px;
  }
}

@media screen and (max-width:800px) {
  #header .title h1 {
    font-size: 40px;
  }

  #header .title {
    padding-top: 30%;
    padding-bottom: 10%;
  }

  #header-bg {
    height: 20%;
    min-height: 0;
  }

  #header {
    min-height: 0;
    background-size: 1200px 100%;
    height: 20%;
  }
}

@media screen and (max-width:650px) {
  #content #tukijat a.tukija {
    width: 94%;
  }

  #header .title h1 {
    font-size: 36px;
  }

  #header {
    min-height: 0;
    background-size: 1200px 100%;
    height: 20%;
  }
}

@media screen and (max-width:450px) {
  #main a.main-button, #main a.secondary-button {
    width: 80%;
    font-size: 20px;
  }

  #header .title h1 {
    font-size: 30px;
  }
}
