/*
* Grid V1.0.1
* Copyright 2018, Simo Saarinen
* www.kukunta.com
*/

html {
  font-size: 62.5%;
}

.main {
	flex: 1 0 auto;
	margin: 0;
}

div img {
	vertical-align: bottom;
}

img {
  border-style: none;
}

ul li {
	list-style: none;
}

@font-face {
	font-family: 'NouvelR';
	src: url(../fonts/NouvelRRegular.ttf);
}
@font-face {
	font-family: 'NouvelR';
	src: url(../fonts/NouvelRBold.ttf);
	font-weight: bold;
}
@font-face {
	font-family: 'NouvelR';
	src: url(../fonts/NouvelRLight.ttf);
}
@font-face {
	font-family: 'Courier Prime';
	src: url(../fonts/CourierPrime-Regular.ttf);
	font-weight: 400;
}


.big-shoulders-heads {
  font-family: "Big Shoulders", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

body {
  	font-size: 19px;
  	line-height: 1.6;
  	font-weight: 400;
  	font-family: "PT Sans", sans-serif;;
  	color: #515151;
  	margin: 0;
  	min-height: 100vh;
  	display: flex;
  	flex-direction: column;
}
  
/* Typography
–––––––––––––––––––––––––––––––––––––––––––––––––– */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 2rem;
  font-family: "Big Shoulders", sans-serif;
  font-weight: 600; }
h1 { font-size: 4.0rem; line-height: 1.2; }
h2 { font-size: 3.6rem; line-height: 1.25; }
h3 { font-size: 3.0rem; line-height: 1.3; }
h4 { font-size: 2.4rem; line-height: 1.35; }
h5 { font-size: 2.2rem; line-height: 1.5; }
h6 { font-size: 2.0rem; line-height: 1.6; }

/* Larger than phablet */
@media (min-width: 550px) {
  h1 { font-size: 5.0rem; }
  h2 { font-size: 4.2rem; }
  h3 { font-size: 3.6rem; }
  h4 { font-size: 3.2rem; }
  h5 { font-size: 2.8rem; }
  h6 { font-size: 2.2rem; }
}

/*
p {
  margin-top: 0; }
*/


/* Links
–––––––––––––––––––––––––––––––––––––––––––––––––– */
a { text-decoration: none; color: rgb(0, 110, 182); }

/* Grid
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.hero-main {
  margin: 0 auto;
  width: 80%;
}

.container-main {
  margin: 0 auto;
  width: 100%;
  margin-top: -50px;

}

.container {
  margin: 0 auto;
  max-width: 100%;
}
/*navi*/

.hero {
	width: 100%;
	height: 50px;
	display: flex;
}

.logo {
	width: 100%;
	height: 50px;
	background-color: rgba(15, 15, 15, 0.62);
	z-index: 2000;
	padding: 0 20px;
}

.logo a {
	color: #fff !important;
	font-weight: 400;
	text-transform: uppercase;
}

@media (max-width: 399px) {
	.logo a { font-size: 16px !important; }
}
@media (min-width: 400px){
	.logo a { font-size: 16px !important; }
}
@media (min-width: 780px){
	.logo a { font-size: 18px !important; }
}
@media (min-width: 1040px){
	.logo a { font-size: 22px !important; }
}

.logo li:hover {
	border-bottom: 10px solid #fff;
}

.logo img {
	width: 30vw;
	height: auto;
}

.slogan {
	margin-top: 7%;
	padding-right: 20px;
	z-index: 2500;
	color: #fff;
	font-size: 26px;
}

@media (min-width:37.5em){
}
@media (min-width:50em){
}
@media (min-width:64em){
}

.main-nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

/*
.menu ul {
	display: flex;
	list-style: none;
	padding-left: 0;
	margin: 0;
	width: 100%;
	justify-content: space-around;
}
*/

ul#menu-valikko {
	display: flex;
	list-style: none;
	padding-left: 0;
	width: 100%;
	justify-content: space-around;
}

.menu a {
	color: #414141;
/* 	text-transform: uppercase; */
	font-weight: 400;
}

@media (max-width: 399px) {
	.main-nav a { font-size: 15px; padding: 0 10px; }
	.menu { margin: 0 0 5% 0; }
}

@media (min-width: 400px){
	.main-nav a { font-size: 15px; padding: 0 30px; }
	.menu { margin: 0 0 5% 0; }
}

@media only screen and (min-width: 780px) {
  .main-nav a { font-size: 15px; padding: 0 30px; }
  .menu { margin: 10px 0 3% 0; }
}

@media only screen and (min-width: 1040px) {
  .main-nav a { font-size: 17px; padding: 0 30px; }
  .menu { margin: 5px 0 3% 0; }
}

.main-nav a:hover {
	text-decoration: underline;
}

.pageon {
	border-bottom: 10px solid #fff;
}

/*hero*/


/*singlehero*/

.heroimage {
	width: 100%;
	height: 100vh;
	background-color: rgb(0, 110, 182);
	flex-direction: row;
	position: relative;
}

.herofoto img {
	width: 100%;
}

.herotext {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.herotext.on-off {
	margin-top: 15%;
}

h1.mainhidden {
/* 	margin-top: 25%; */
	padding: 15px;
	background-color: rgba(0, 110, 182, 0.6);
	color: #fff;
	position: absolute;
	left: 10px;
	right: 10px;
	top: 90px;
}
@media (max-width: 399px) {
	.herotext, .herotext.on-off { padding: 15% 5% 5% 5%; }
	.herotext h1 { font-size: 8vw; }
	h1.mainhidden { display: block; }
	.herotext.on-off { display: none; }
}
@media (min-width: 400px){
	.herotext, .herotext.on-off { padding: 15% 5% 5% 5%; }
	.herotext h1 { font-size: 8vw; }
	h1.mainhidden { display: block; }
	.herotext.on-off { display: none; }
}
@media (min-width: 780px){
	.herotext, .herotext.on-off { padding: 15% 5% 5% 5%; }
	.herotext h1 { font-size: 6vw; }
	h1.mainhidden { display: none; }
	.herotext.on-off { display: block; }
}
@media (min-width: 1040px){
	.herotext, .herotext.on-off { padding: 8% 5% 5% 5%; }
	.herotext h1 { font-size: 5vw; }
	h1.mainhidden { display: none; }
	.herotext.on-off { display: block; }
	
}

.herotext h1, h1.mainhidden {
	line-height: 1em;
	color: #fff;
/* 	padding-left: 25px; */
}

.mainhero1 {
	width: 100%;
	height: auto;
	background-color: #fff;
}

.mainhero2 {
	width: 100%;
	height: auto;
	display: flex;
	flex-direction: row;
	background-color: #fff;
	padding: 5%;
}

.mainhero3 {
	display: flex;
	background-color: #fff;
	padding: 5%;
}

.mainhero4 {
	display: flex;
	flex-direction: column;
	background-color: #fff;
	padding: 5%;
}

.mainquote {
	height: auto;
	background-color: #fff;
	margin: 5% auto 0 auto;
}

@media (max-width: 399px) {
  .cd-image, .cd-text { width: 100%; padding: 0; }
  .cd-text { border-top: 1px solid #414141; border-left: none; margin-top: 40px; padding-top: 40px; }
  .mainhero3 { flex-direction: column; flex-direction: column; }
  .mainquote { width: 90%; }
}

@media (min-width: 400px){
  .cd-image, .cd-text { width: 100%; padding: 0; }
  .cd-text { border-top: 1px solid #414141; border-left: none; margin-top: 40px; padding-top: 40px; }
  .mainhero3 { flex-direction: column; flex-direction: column; }
  .mainquote { width: 90%; }
}

@media only screen and (min-width: 780px) {
  .cd-image, .cd-text { width: 100%; padding: 0; }
  .cd-text { border-left: 1px solid #414141; border-left: none; margin-top: 40px; padding-top: 40px; }
  .mainhero3, .mainhero1 { flex-direction: column; }
  .mainquote { width: 80%; }
}

@media only screen and (min-width: 1040px) {
  .cd-image, .cd-text { width: 48%; padding: 0 25px; }
  .cd-text { border-left: 1px solid #414141; border-top: none; margin-top: 0; padding-top: 0; }
  .mainhero3, .mainhero1 { flex-direction: row; }
  .mainquote { width: 70%; }
}

.cd-text p {
	margin: 0;
}

/*feature*/

.bread {
	display: flex;
	flex-direction: row;
	width: 80%;
	margin: 0 auto;
}

.recordmain {
	width: 100%;
}

.samples {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}

.panel {
	width: 25%;
	height: auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background-color: #fff;
}

.paneltext {
	padding: 20px;
}

.panel img {
	width: 100%;
	height: auto;
}

.event {
	margin: 8% 5%;
	margin-top: 100px;
	padding: 0 5px;
}

.event-image {
	width: 100%;
	height: 400px;
	margin: 0 auto;
	text-align: center;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.event-image img {
	width: 80%;
	height: auto;
}

.about {
	margin: 0;
}

.about img {
	width: 100%;
	height: auto;
}

.features-main {
	width: 100%;
	display: flex;
	flex-flow: column;
	align-items: center;
}

.features-main img {
	width: 80%;
	height: auto;
	margin: 8% 0;
}

ul.mod, .mod {
	display: grid;
	justify-content: space-between;
	list-style-type: none;
	padding-inline-start: 0;
	margin: 5%;
/* 	padding: 0 50px; */
}

@media (max-width: 399px) {
	ul.mod { grid-template-columns: repeat(1, 1fr); gap: 50px 5%; }
}
@media (min-width: 400px){
	ul.mod { grid-template-columns: repeat(1, 1fr); gap: 50px 5%; }
}
@media (min-width: 780px){
	ul.mod { grid-template-columns: repeat(2, 1fr); gap: 50px 5%; }
}
@media (min-width: 1040px){
	ul.mod { grid-template-columns: repeat(3, 1fr); gap: 50px 5%; }
}

.mod img, .news-list img {
	width: 100%;
	height: auto;
}

.rec-info {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	list-style-type: none;
	padding-inline-start: 0;
}

@media (max-width: 399px) {
	.rec-info { flex-direction: column; margin-top: 65px; padding: 0 10px; }
}
@media (min-width: 400px){
	.rec-info { flex-direction: column; margin-top: 65px; padding: 0 10px; }
}
@media (min-width: 780px){
	.rec-info { flex-direction: row; margin-top: 90px; padding: 0 30px; }
}
@media (min-width: 1040px){
	.rec-info { flex-direction: row; margin-top: 90px; padding: 0 50px; }
}

.rec-info img {
	width: 100%;
	height: auto;
}

.news-list {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	margin: 8% auto 0 auto;
}

@media (max-width: 399px) {
	.news-list { width: 95%; }
}
@media (min-width: 400px){
	.news-list { width: 95%; }
}
@media (min-width: 780px){
	.news-list { width: 80%; }
}
@media (min-width: 1040px){
	.news-list { width: 80%; }
}

.news-post {
	margin-bottom: 5%;
	padding-bottom: 50px;
	position: relative;
/* 	border-bottom: 1px solid #616161; */
}

.news-post a {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.news-image {
	width: 35%;
	padding-top: 200px;
	background-position: center;
    -webkit-background-size: cover;
    background-repeat: no-repeat;
}

.news-image-exe {
	font-size: 14px;
}

.news-image-single {
	width: 80%;
	margin: 0 auto;
}

.news-title {
	width: 55%;
	display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.news-title:after {
  content: "";
  background: #616161;
  position: absolute;
  bottom: 0;
/*   left: calc(100% - 90%); */
  left: 0;
  height: 1px;
  width: 100%;
}

.news-title h5, .news-title h6 {
	font-weight: 400;
}

a .news-title {
	color: #09334e;
}

 a:hover .news-title {
 	color: rgb(0, 110, 182);
}

.news-title-single {
	width: 100%;
	text-align: center;
}

.news-text {
	margin: 0 auto;
}

@media (max-width: 399px) {
	.news-text, .news-text figure { width: 100%; }
	.news-title-single { margin: 0 0 30px 0; }
}
@media (min-width: 400px){
	.news-text, .news-text figure { width: 100%; }
	.news-title-single { margin: 30px 0 30px 0; }
}
@media (min-width: 780px){
	.news-text, .news-text figure { width: 80%; }
	.news-title-single { margin: 80px 0 50px 0; }
}
@media (min-width: 1040px){
	.news-text, .news-text figure { width: 80%; }
	.news-title-single { margin: 120px 0 50px 0; }
}

.news-text figure {
	margin: 0 auto 100px auto;
}

.tree {
	margin-bottom: 5%;
	position: relative;
}

.tree ul li {
	list-style-type: none !important;
/* 	padding-left: 5%; */
}

.tree a {
	color: #414141;
	list-style: none;
}

.tree a:hover {
	border-bottom: 5px solid #414141 ;
}


@media (max-width: 399px) {
	.half { width: 98%; }
	.qart { width: 98%; flex-direction: column; }
/* 	.tree { margin: 6% 4%; } */
}
@media (min-width: 400px){
	.half { width: 98%; }
	.qart { width: 40%; flex-direction: column; }
/* 	.tree { margin: 6% 4%; } */
}
@media (min-width: 780px){
	.half { width: 49%; }
	.qart { width: 20%; flex-direction: column; }
/* 	.tree { margin: 6% 4%; } */
}
@media (min-width: 1040px){
	.half { width: 49%; }
	.qart { width: 20%; flex-direction: column; }
/* 	.tree { margin: 8% 5%; } */
}

.qart h6, .tree h6 {
	margin: 0;
	font-weight: 400;
	text-align: center;
}

.qart h6.name, .tree h6.name {
	padding: 5px;
	background-color: #414141;
	color: #fff !important;
	text-align: center;
	border-top: 1px solid #fff;
}

.tree p {
	margin: 0;
}

.group {
	padding: 10px 0;
	text-align: center;
	border-bottom: 1px solid #414141;
}


.bye {
	background-color: #437fb8;
	color: #fff;
	padding: 0 5px;
	margin-bottom: 5%;
	display: flex;
	flex-direction: row;
	justify-content: space-evenly;
	align-items: baseline;
}

.depth-3 {
  box-shadow: 0 0px 15px 0 rgba(0, 0, 0, 0.3);
  -webkit-transition: background-color 1s;
   transition: background-color 1s;
}

.depth-5 {
  box-shadow: 0 30px 60px 0 rgba(0, 0, 0, 0.1);
  -webkit-transition: background-color 1s;
   transition: background-color 1s;
}

.moretext {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}

.moretext-hdl {
	font-size: 20px;
	font-weight: 600;
	text-transform: uppercase;
	text-align: center;
	padding: 0 8px 8px;
}

.moretext-hdl:before {
	content: '';
	height: 20px;
	width: 2px;
	background-color: #0d2c31;
	display: block;
	margin: -10px 0 0 calc(50% - 1px);
	margin-top: 10px;
}

.space {
	padding-top: 10%;
}

.last {
	margin-bottom: 10%;
}

.narrow {
	margin: 4% auto 0 auto;
}

@media (max-width: 399px) {
	.narrow { width: 100%; }
}
@media (min-width: 400px){
	.narrow { width: 100%; }
}
@media (min-width: 780px){
	.narrow { width: 80%; }
}
@media (min-width: 1040px){
	.narrow { width: 80%; }
}

.next-col {
	display: flex;
	width: 100%;
	justify-content: space-around;
	margin-top: 40px;
}

.previ a, .nexxt a {
	font-size: 18px;
	padding: 5px 12px;
	border: 2px solid #1e3799;
}

/*footerstuff*/

.copyright {
	width: 100%;
	margin-top: 4%;
	padding-top: 20px;
	height: 60px;
	text-align: center;
	background-color: #fff;
	font-size: 14px;
	color: #212121;
	border-top: 1px solid #e6e6e6;
}

#uptop {
	height: 30px;
	width: auto;
	margin-right: 20px;
	background-color: transparent;
	position: fixed;
	right: 0;
	bottom: 20px;
	opacity: 0;
	-webkit-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}

.upagain {
/*
	background-color: #212121;
	
	border-radius: 50%;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    -o-border-radius: 50%;
*/
	text-align: center;
	width: 35px;
	height: 35px;
	line-height: 35px;
    float: right;
}

.upagain a {
	color: #717171;
}

/*wpstuff*/
:where(.wp-block-columns) {
    margin-bottom: 0 !important;
}

.wp-block-image :where(figcaption) {
    margin-bottom: 1em;
    margin-top: -50px !important;
    margin-left: 25px;
    color: #fff;
    font-size: 14px;
}

ul.wp-block-list a {
	color: #fff;
}

ul.wp-block-list a:hover {
	border-bottom: 5px solid #fff;
}

:where(.wp-block-columns.has-background) {
	padding: 10px !important; 
}

ul, menu, dir {
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 0 !important;
}