* {
  box-sizing: border-box;
  margin: 0;
  font-family: ubuntu;
  font-size: 16pt;
}
body {
  background: #fafafa;
  margin: 0 auto;
  padding: 0;
  line-height: 1.6;
  max-width: 100%;
  color: #333;
}
/* Jos selain ei tue gridiä, se käyttää näitä */
main {
  max-width: 1400px;
  margin: 0 auto;
}
article {
  margin: 1rem 0;
}
/* Yläpalkki */
header {
  margin: 0px;
  padding: 0 0 0 0;
  min-height: 0px;
  width: 100%;
  text-align: center;
  vertical-align: middle;
  text-shadow: 2px 2px 2px rgba(0,0,0,0.3);
  color: white;
}
/* Ticson info */
.info,
.contact {
  margin: auto;
  padding: 50px;
  width: 100%;
  text-align: center;
}
.contact > a {
  font-size: 16pt;
  color: #444;
}
.contact > a:hover {
  color: #000;
}
div.contact-form {
  margin: 30px auto;
  max-width: 760px;
  text-align: left;
}
div.contact-form > p {
  display: inline;
  width: 250px;
  float: left;
  vertical-align: top;
  padding: 5px 20px 0 0;
}
input, textarea {
  display: inline;
  font-family: Ubuntu;
  font-size: 18pt;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 20px;
  width: 450px;
}
input[type=submit] {
  display: inline;
  background-color: #309739;
  color: #fff;
  border-radius: 10px;
  border: 0px;
  margin: 0px 250px 0px 0px;
  padding: 10px;
  width: 200px;
}
input[type=submit]:hover {
  opacity: 0.8;
}

.productwrapper {
  margin-top: 100px;
  padding: 50px;
  width: 100%;
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 2px rgba(0,0,0,0.3);
}
.productimgfooter {
  margin-top: 0px;
  width: 100%;
  height: auto;
  text-align: center;
  background-color: inherit;
}
.footer {
  width: 100%;
  background-color: #333;
  margin: 0;
  padding: 20px;
  vertical-align: baseline;
  text-align: center;
}
.footer > p,
a {
  color: #ccc;
  font-size: 12pt;
}
a:hover {
  color: #fff;
}
h1 {
  padding: 0em 0 20px 0;
  font-size: 3em;
}
h2 {
  font-size: 2em;
  padding-bottom: 20px;
}
h3 {
  font-size: 1.5em;
}
p {
  max-width: 1200px;
  margin: auto;
  padding-bottom: 20px;
}
p.headlineinfo {
  display: inline;
  vertical-align: middle;
}
img {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

@supports (display: grid) {
  main {
    max-width: 10000px;
    margin: 0;
  }
  article {
    margin: 0;
    background-color: #eee;
  }
  article.productspecs {
    background-color: inherit;
  }
  .productgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
   }
  .productspecsgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(452px, 1fr));
    grid-gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
  }
}
.productgrid > article {
  background: linear-gradient(to top right, #dfdfdf, #ffffff);
  text-align: center;
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.productspecsgrid > article {
  text-align: left;
}
.productmenu {
  display: flex;
  flex-flow: column;
  text-align: center;
  border: 0px solid black;
  border-radius: 20px;
  padding: 1rem;
}
.productspecs {
  display: flex;
  flex-flow: column;
  text-align: center;
  border: 0px solid black;
  border-radius: 0px;
  padding: 1rem;
}
.productspecs > img {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 0px;
  vertical-align: top;
}

.contact-small {
	font-size: 16pt;
}

.contact-small > a {
	
	font-size: 16pt;
	color: white;
	opacity: 0.8;
}
.contact-small > a:hover {
	opacity: 1;
}
.productmenu > img {
  align-self: center;
  display: block;
  border-radius: 50%;
  margin-bottom: 30px;
  opacity: 1;
}
.productmenu > h2 {
  margin-bottom: 0px;
  font-size: 1.0em;
}
.productmenu > p {
  margin-top: 0;
  padding: 0px;
  font-size: 0.75em;
}
a.button,
a.button-inline {
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  margin: 40px auto 0px auto;
  padding: 10px;
  border: 0px;
  border-radius: 10px;
  width: 220px;
  font-size: 0.75em;
  color: #fff;
  text-align: center;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}
a.button:hover {
  opacity: 0.8;
}
a.button-inline {
  display: inline;
  width: 100%;
}

/* Taustavärit elementeille */
header,
.greenbg,
#greenbg {
  background: linear-gradient(to top right, #309739, #3ab845);
}
.orangebg,
#orangebg {
  background: linear-gradient(to top right, #f09825, #fcb84a);
}
.redbg,
#redbg {
  background: linear-gradient(to top right, #d32828, #f04040);
}
.whitebg,
#whitebg {
  background: linear-gradient(to top right, #aaaaaa, #e9e9e9);
  color: #222;
  text-shadow: none;
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.bluebg,
#bluebg {
  background: linear-gradient(to top right, #2864d3, #3474eb);
  text-shadow: none;
}
/* Responsiivisuus mobiililaitteilla */
@media (max-width: 768px) {
  .productmenu {
    border-radius: 0px;
  }

  p.headlineinfo {
    display: block;
    margin-top: 0px;
  }
  .productspecsgrid > article {
    text-align: center;
  }
  .productspecsgrid {
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  }
  div.contact-form {
    margin: auto;
    text-align: left;
  }
  p {
	  font-size: 0.75em;
  }
  div.contact-form > p,
  input,
  textarea,
  input[type=submit] {
    display: inline-block;
    width: 100%;
	font-size: 0.75em;
  }
input[type=submit] {
  margin: 0px;
}
a.button,
a.button-inline {
  width: 100%;

}
.productspecs > img {
	width: 100%;
}
h1 {
	font-size: 1.25em;
}
h3 {
  font-size: 1.25em;
}

}