@media (max-width: 1460px) and (min-width: 1201px) {
  .banner-area h2 {
    font-size: 65px;
    padding-top: 280px;
    padding-bottom: 80px;
  }
  .wrapper {
    margin: 20px;
    clear: both;
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .block {
    grid-template-columns: 1fr 1fr;
  }
  .grid-item {
    padding-left: 100px;
    padding-right: 100px;
    padding-bottom: 100px;
  }
  .contact-head {
    height: 60px;
  }
  .form {
    padding: 30px;
    margin: 30px;
  }
  .form h2 {
    font-size: 20px;
  }
  .form form {
    margin: 20px 0;
  }
  .form input {
    height: 30px;
    width: 100%;
    font-size: 14px;
  }
  .form .field i {
    font-size: 14px;
  }
  #envelope {
    font-size: 14px;
    top: 10%;
  }
  .form textarea {
    height: 100px;
    font-size: 14px;
  }
  form input[type="submit"] {
    margin-top: 20px;
    font-size: 18px;
  }
  .contact-information {
    font-size: 20px;
    margin: 30px;
    padding: 30px;
  }
  nav a {
    font-size: 20px;
  }
}

@media (max-width: 1270px) and (min-width: 1036px) {
  .logo a {
    position: absolute;
    text-decoration: none;
    font-size: 24px;
    color: #000000;
    letter-spacing: 5px;
    margin-left: 100px;
  }
  nav a {
    font-size: 16px;
    letter-spacing: 3px;
  }
  .banner-area h2 {
    font-size: 60px;
    padding-top: 300px;
    padding-bottom: 70px;
  }
  .block {
    grid-template-columns: 1fr 1fr;
  }
  .grid-item {
    padding-left: 100px;
    padding-right: 100px;
    padding-bottom: 100px;
  }
  .wrapper {
    margin: 20px;
    clear: both;
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .form {
    padding: 30px;
    margin: 30px;
  }
  .form h2 {
    font-size: 20px;
  }
  .form form {
    margin: 20px 0;
  }
  .form input {
    height: 30px;
    width: 100%;
    font-size: 14px;
  }
  .form input {
    height: 30px;
    width: 100%;
    font-size: 14px;
  }
  .form .field i {
    font-size: 14px;
  }
  #envelope {
    font-size: 14px;
    top: 10%;
  }
  .form textarea {
    height: 100px;
    font-size: 14px;
  }
  form input[type="submit"] {
    margin-top: 20px;
    font-size: 18px;
  }
  .contact-information {
    font-size: 20px;
    margin: 30px;
    padding: 30px;
  }
  .footer {
    width: 100%;
    height: 230px;
  }
  .footer_address,
  .footer_billing,
  .footer_contactinfo {
    margin-left: 40px;
    margin-right: 40px;
    margin-top: 20px;
    float: left;
    font-size: 18px;
    font-weight: bold;
  }
  .footer_logo {
    display: none;
  }
}

@media (max-width: 1035px) and (min-width: 891px) {
  .logo a {
    position: absolute;
    text-decoration: none;
    font-size: 20px;
    color: #000000;
    letter-spacing: 5px;
    margin-left: 100px;
  }
  nav a {
    font-size: 16px;
    letter-spacing: 1px;
  }
  .banner-area h2 {
    font-size: 60px;
    padding-top: 300px;
    padding-bottom: 70px;
  }
  .block {
    grid-template-columns: 1fr 1fr;
  }
  .grid-item {
    padding-left: 100px;
    padding-right: 100px;
    padding-bottom: 100px;
  }
  .item {
    height: 150px;
    width: 250px;
  }
  .wrapper {
    margin: 20px;
    clear: both;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .form {
    padding: 30px;
    margin: 30px;
  }
  .form h2 {
    font-size: 20px;
  }
  .form form {
    margin: 20px 0;
  }
  .form input {
    height: 30px;
    width: 100%;
    font-size: 14px;
  }
  .form .field i {
    font-size: 14px;
  }
  #envelope {
    font-size: 14px;
    top: 10%;
  }
  .form textarea {
    height: 100px;
    font-size: 14px;
  }
  form input[type="submit"] {
    margin-top: 20px;
    font-size: 18px;
  }
  .contact-information {
    font-size: 20px;
    margin: 30px;
    padding: 30px;
  }
  .footer {
    width: 100%;
    height: 250px;
  }
  .footer_address,
  .footer_billing,
  .footer_contactinfo {
    margin-left: 40px;
    margin-right: 40px;
    margin-top: 20px;
    float: left;
    font-size: 18px;
    font-weight: bold;
  }
  .footer_logo {
    display: none;
  }
}

@media (max-width: 890px) {
  .logo a {
    position: absolute;
    text-decoration: none;
    font-size: 20px;
    color: #000000;
    letter-spacing: 3px;
    margin-left: 100px;
  }
  nav a {
    font-size: 14px;
    letter-spacing: 1px;
  }
  nav {
    float: center;
    line-height: 30px;
    padding-top: 5px;
  }
  li {
    clear: both;
    list-style: none;
  }
  ol {
    padding: 5px;
  }
}
@media (max-width: 1025px) and (min-width: 891px) {
  .block {
    grid-template-columns: 1fr 1fr;
  }
  .grid-item {
    padding-left: 80px;
    padding-right: 80px;
    padding-bottom: 80px;
  }
  .item {
    height: 150px;
    width: 250px;
  }
  .referenssit h2 {
    font-size: 30px;
  }
}

@media (max-width: 891px) {
  .block {
    grid-template-columns: 1fr;
  }
  .grid-item {
    padding-left: 80px;
    padding-right: 80px;
    padding-bottom: 80px;
  }
  .item {
    height: 150px;
    width: 250px;
  }
  .referenssit h2 {
    font-size: 30px;
  }
}

@media (max-width: 1025px) and (min-width: 701px) {
  .banner-area h2 {
    font-size: 60px;
    padding-top: 300px;
    padding-bottom: 70px;
  }
  .content-area-head h2,
  .ref-area-head h2,
  .contact-head h2 {
    font-size: 30px;
  }
  .content-area p {
    font-size: 25px;
  }
  .wrapper {
    margin: 20px;
    clear: both;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .form {
    padding: 30px;
    margin: 30px;
  }
  .form h2 {
    font-size: 20px;
  }
  .form form {
    margin: 20px 0;
  }
  .form input {
    height: 30px;
    width: 100%;
    font-size: 14px;
  }
  .form .field i {
    font-size: 14px;
  }
  #envelope {
    font-size: 14px;
    top: 10%;
  }
  .form textarea {
    height: 100px;
    font-size: 14px;
  }
  form input[type="submit"] {
    margin-top: 20px;
    font-size: 18px;
  }
  .contact-information {
    font-size: 20px;
    margin: 30px;
    padding: 30px;
  }
  .footer {
    background-color: #000000;
    width: 100%;
    height: 340px;
  }
  .footer_partnerlogo {
    float: left;
    margin-left: 40px;
    margin-right: 40px;
    margin-top: 20px;
  }
  .footer_address,
  .footer_billing,
  .footer_contactinfo {
    margin-left: 40px;
    margin-right: 40px;
    margin-top: 20px;
    float: left;
    font-size: 18px;
    font-weight: bold;
  }
  .footer_logo {
    display: none;
  }
}

@media (max-width: 700px) and (min-width: 561px) {
  .valikkolista {
    position: absolute;
    display: none;
    margin-top: 31px;
  }
  .valikkonappi {
    position: absolute;
    display: block;
    width: 50px;
    height: 31px;
    border: 0px;
    margin-left: 500px;
  }
  .banner-area h2 {
    font-size: 50px;
    padding-top: 300px;
    padding-bottom: 70px;
  }
  .content-area-head h2,
  .ref-area-head h2,
  .contact-head h2 {
    font-size: 30px;
  }
  .content-area p,
  .content-area h2 {
    font-size: 25px;
  }
  .wrapper {
    margin: 20px;
    clear: both;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .form {
    padding: 30px;
    margin: 30px;
  }
  .form h2 {
    font-size: 20px;
  }
  .form form {
    margin: 20px 0;
  }
  .form input {
    height: 30px;
    width: 100%;
    font-size: 14px;
  }
  .form .field i {
    font-size: 14px;
  }
  #envelope {
    font-size: 14px;
    top: 10%;
  }
  .form textarea {
    height: 100px;
    font-size: 14px;
  }
  form input[type="submit"] {
    margin-top: 20px;
    font-size: 18px;
  }
  .contact-information {
    font-size: 20px;
    margin: 30px;
    padding: 30px;
  }
  .footer {
    height: 330px;
    width: 100%;
  }
  .footer_address,
  .footer_billing,
  .footer_contactinfo,
  .footer_partnerlogo {
    margin-left: 40px;
    margin-right: 40px;
    margin-top: 20px;
    float: left;
    font-size: 16px;
    font-weight: bold;
  }
  .footer_logo {
    display: none;
  }
  .loginform img {
    width: 150px;
  }
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }
  th {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  tr {
    margin: 0 0 1rem 0;
  }
  tr:nth-of-type(odd) {
    background: #bebebe;
  }
  td {
    border: none;
    border-bottom: 1px solid #000000;
    position: relative;
    padding-left: 50%;
    text-align: left;
  }
  td:before {
    position: absolute;
    top: 0;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
  }
  td:nth-of-type(1):before {
    content: "ID";
  }
  td:nth-of-type(2):before {
    content: "Aikaleima";
  }
  td:nth-of-type(3):before {
    content: "Nimi";
  }
  td:nth-of-type(4):before {
    content: "E-Mail";
  }
  td:nth-of-type(5):before {
    content: "Puhelinnumero";
  }
  td:nth-of-type(6):before {
    content: "Yhteydenotto";
  }
  td:nth-of-type(7):before {
    content: "Kontaktoitu";
  }
  td:nth-of-type(8):before {
    content: "Tietojen päivitys";
  }
}
@media (max-width: 560px) and (min-width: 361px) {
  .logo a {
    display: none;
  }
  .logo {
    height: 100px;
    width: 30%;
  }
  .valikkolista {
    position: absolute;
    display: none;
    margin-top: 31px;
    margin-left: 100px;
  }
  .valikkonappi {
    position: absolute;
    display: block;
    width: 50px;
    height: 31px;
    border: 0px;
    margin-left: 320px;
  }
  .banner-area h2 {
    font-size: 50px;
    padding-top: 250px;
    padding-bottom: 70px;
  }
  .content-area-head h2,
  .ref-area-head h2,
  .contact-head h2 {
    font-size: 25px;
  }
  .content-area p {
    font-size: 20px;
  }
  .block {
    grid-template-columns: 1fr;
  }
  .grid-item {
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 50px;
  }
  .item {
    height: 100px;
    width: 200px;
  }
  .referenssit h2 {
    font-size: 20px;
  }
  .wrapper {
    margin: 20px;
    clear: both;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .form {
    padding: 30px;
    margin: 30px;
  }
  .form h2 {
    font-size: 20px;
  }
  .form form {
    margin: 20px 0;
  }
  .form input {
    height: 30px;
    width: 100%;
    font-size: 14px;
  }
  .form .field i {
    font-size: 14px;
  }
  #envelope {
    font-size: 14px;
    top: 10%;
  }
  .form textarea {
    height: 100px;
    font-size: 14px;
  }
  form input[type="submit"] {
    margin-top: 20px;
    font-size: 16px;
  }
  .contact-information {
    font-size: 18px;
    margin: 30px;
    padding: 30px;
  }
  .footer {
    height: 550px;
    width: 100%;
  }
  .footer_address,
  .footer_billing,
  .footer_contactinfo,
  .footer_partnerlogo {
    margin-left: 40px;
    margin-right: 40px;
    margin-top: 20px;
    float: left;
    font-size: 14px;
    font-weight: bold;
  }
  .footer_logo {
    display: none;
  }
  .loginform img {
    width: 110px;
  }
  .loginform input {
    width: 80%;
  }
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }
  th {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  tr {
    margin: 0 0 1rem 0;
  }
  tr:nth-of-type(odd) {
    background: #bebebe;
  }
  td {
    border: none;
    border-bottom: 1px solid #000000;
    position: relative;
    padding-left: 50%;
    font-size: 14px;
    text-align: left;
  }
  td:before {
    position: absolute;
    top: 0;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
  }
  td:nth-of-type(1):before {
    content: "ID";
  }
  td:nth-of-type(2):before {
    content: "Aikaleima";
  }
  td:nth-of-type(3):before {
    content: "Nimi";
  }
  td:nth-of-type(4):before {
    content: "E-Mail";
  }
  td:nth-of-type(5):before {
    content: "Puhelinnumero";
  }
  td:nth-of-type(6):before {
    content: "Yhteydenotto";
  }
  td:nth-of-type(7):before {
    content: "Kontaktoitu";
  }
  td:nth-of-type(8):before {
    content: "Tietojen päivitys";
  }
}
@media (max-width: 360px) {
  .logo a {
    display: none;
  }
  .logo {
    height: 100px;
    width: 30%;
  }
  .valikkolista {
    position: absolute;
    display: none;
    margin-top: 31px;
  }
  .valikkonappi {
    position: absolute;
    display: block;
    width: 50px;
    height: 31px;
    border: 0px;
    margin-left: 220px;
  }
  .banner-area h2 {
    font-size: 40px;
    padding-top: 250px;
    padding-bottom: 70px;
  }
  .content-area-head h2,
  .ref-area-head h2,
  .contact-head h2 {
    font-size: 25px;
  }
  .content-area p {
    font-size: 20px;
  }
  .block {
    grid-template-columns: 1fr;
  }
  .grid-item {
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 40px;
  }
  .item {
    height: 100px;
    width: 200px;
  }
  .referenssit h2 {
    font-size: 20px;
  }
  .wrapper {
    margin: 20px;
    clear: both;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .form {
    padding: 30px;
    margin: 30px;
  }
  .form h2 {
    font-size: 18px;
  }
  .form form {
    margin: 20px 0;
  }
  .form input {
    height: 30px;
    width: 80%;
    font-size: 12px;
  }
  .form .field i {
    font-size: 12px;
  }
  #envelope {
    font-size: 12px;
    top: 10%;
  }
  .form textarea {
    height: 100px;
    font-size: 12px;
    width: 80%;
  }
  form input[type="submit"] {
    margin-top: 20px;
    font-size: 14px;
  }
  .contact-information {
    font-size: 14px;
    margin: 30px;
    padding: 30px;
  }
  .footer {
    height: 550px;
    width: 100%;
  }
  .footer_address,
  .footer_billing,
  .footer_contactinfo,
  .footer_partnerlogo {
    margin-left: 40px;
    margin-right: 40px;
    margin-top: 20px;
    float: left;
    font-size: 14px;
    font-weight: bold;
  }
  .footer_logo {
    display: none;
  }
  .loginform img {
    width: 80px;
  }
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }
  th {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  tr {
    margin: 0 0 1rem 0;
  }
  tr:nth-of-type(odd) {
    background: #bebebe;
  }
  td {
    border: none;
    border-bottom: 1px solid #000000;
    position: relative;
    padding-left: 50%;
    font-size: 12px;
    text-align: left;
  }
  td:before {
    position: absolute;
    top: 0;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
  }
  td:nth-of-type(1):before {
    content: "ID";
  }
  td:nth-of-type(2):before {
    content: "Aikaleima";
  }
  td:nth-of-type(3):before {
    content: "Nimi";
  }
  td:nth-of-type(4):before {
    content: "E-Mail";
  }
  td:nth-of-type(5):before {
    content: "Puhelinnumero";
  }
  td:nth-of-type(6):before {
    content: "Yhteydenotto";
  }
  td:nth-of-type(7):before {
    content: "Kontaktoitu";
  }
  td:nth-of-type(8):before {
    content: "Tietojen päivitys";
  }
  td:nth-of-type(9):before {
    content: "Poista rivi";
  }
}
