input,
select {
  vertical-align: middle;
}

select,
input {
  font: 99% sans-serif;
}

select,
input {
  color: #444;
}

input[type="checkbox"] {
  vertical-align: bottom;
  *vertical-align: baseline;
}

/* hand cursor on clickable input elements */
label,
input[type="submit"] {
  cursor: pointer;
}

::-moz-selection {
  background: #446f8a;
  color: #fff;
  text-shadow: none;
}
::selection {
  background: #446f8a;
  color: #fff;
  text-shadow: none;
}

@media print {
  * {
    background: transparent !important;
    color: #444 !important;
    text-shadow: none;
  }

  a,
  a:visited {
    color: #444 !important;
    text-decoration: underline;
  }

  a:after {
    content: " (" attr(href) ")";
  } /* Don't show links for images */

  @page {
    margin: 0.5cm;
  }

  p,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h3 {
    page-break-after: avoid;
  }
}

/** Main **/

/* Hack retained to preserve specificity */
select,
input {
  font: 99% sans-serif;
}

/** Actual main **/

.rekisteriseloste {
  color: #00b1eb;
  display: block;
  text-decoration: underline;
  font-weight: bold;
  padding-top: 0px;
  margin-bottom: 20px;
  clear: both;
  width: 100%;
}
label.text {
  margin-top: 15px;
}
label.checkbox {
  display: block;
  float: left;
  margin: 0;
  margin-bottom: 10px;
}
.checkboxes {
  margin-top: 15px;
  margin-bottom: 0;
}
.checkboxes p {
  margin-bottom: 10px;
}
input[type="checkbox"] {
  display: block;
  float: left;
  clear: both;
  margin-right: 1em;
  margin-bottom: 10px;
}
input[type="text"],
input[type="email"],
select {
  width: 100%;
  padding: 5px;
  margin-bottom: 5px;
  border: 1px #f3f5f6 solid;
  background-color: #f3f5f6;
  height: 34px;
}
.red:placeholder {
  color: red;
}
.valitseyksi {
  width: 100%;
  clear: both;
  margin-bottom: 0;
  visibility: hidden;
}
select {
  font-weight: bold;
}
input[type="submit"],
.btn {
  width: 100%;
  border-radius: 8px;
  background: #00b1eb;
  color: white;
  font-weight: bold;
  padding: 13px;
  text-align: center;
  display: block;
  border: 0px white solid;
}
.btn:hover {
  color: white;
}
form#registerform {
  margin-top: 30px;
  margin-bottom: 60px;
}
.readmore {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 591px;
  background-image: url("../images/button_background.png");
  background-repeat: no-repeat;
  height: 144px;
}
.buttonwrapper {
  width: 288px;
  margin: 60px auto;
}
.buttonwrapper a.btn {
  border: #00b1eb 1px solid;
  background: white;
  color: #00b1eb;
}
.rekisteriselosteblock {
  position: absolute;
  top: 96px;
  left: 0px;
  width: 100%;
  background: #f3f5f6;
  max-width: 351px;
  padding: 80px 25px 40px;
  display: none;
}
.rekisteriselosteblock p {
  margin-bottom: 1em;
  font-size: 12px;
}
a.closemodal {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  background-repeat: no-repeat;
  background-position: right center;
  background-image: url("../images/modalclose.png");
  height: 28px;
  padding-right: 38px;
  padding-top: 5px;
  color: #00b1eb;
  font-weight: bold;
  margin: 8px;
}

@media screen and (max-width: 950px) {
  .readmore {
    position: relative;
    bottom: 0;
    right: 0;
    width: 100%;
    background-image: url("../images/button_background.png");
    background-repeat: no-repeat;
    background-position: center;
    height: 144px;
    padding-top: 60px;
  }
  .buttonwrapper {
    width: 288px;
    margin: 0px auto;
  }
  form#registerform {
    margin-top: 30px;
  }
  .rekisteriselosteblock {
    position: absolute;
    bottom: 30vh;
    top: auto;
    width: 100%;
    max-width: 90%;
    background: #f3f5f6;
    margin: 5%;
    padding: 80px 25px 40px;
    display: none;
  }
  .rekisteriselosteblock p {
    margin-bottom: 1em;
    font-size: 12px;
  }
}
