@charset "UTF-8";

body { 
	font-family: 'Poppins', sans-serif !important;
	font-size: 1rem;
	color: #4E5DA7;
	padding-top: 43px;
}
.etusivun-boksit .boksi {
  
}
.btn-primary {
    color: #fff;
    background-color: #4e5da7 !important;
    border-color: #4e5da7 !important;
}

@media screen and (min-width: 691px) {
	body {
		font-size: 1.3rem;
	}
}

a:link, a:visited {
  color:#4E5DA7;
}
a:hover {
  color:#748bff;
  text-decoration: none;
}
a:active {
  color:#000;
}
a:focus, button:focus {
	box-shadow: none;
	outline: none;
}

h1, h2, h3, h4, h5, h6 { 
	width: 100%;
	font-family: 'Poppins', sans-serif !important;
	font-weight: 700;
	text-transform: uppercase;
	padding-bottom: .5em;
	word-break: break-word;
}
h1 {
	font-weight: 700;
}
@media screen and (max-width: 690px) {
	h1 {
		font-size: 2rem;
	}
	h2 {
		font-size: 1.5rem;
	}
	h3 {
		font-size: 1.25rem;
	}
}

p a {
	font-weight: 700;
}

ul.m-blue li {
	color: #4e5da7;
}
ul.m-yellow li {
	color: #ced206;
}
@media screen and (max-width: 691px) {
	ul {
		padding-inline-start: 0;
	}
}

header {
	position: relative;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	min-height: 43px;
	background-color: #4e5da7;
	z-index: 3;
	transition: all .2s ease-out;
}
header ul {
	padding: 0;
	margin: 0;
	list-style: none;
}
@media screen and (min-width: 691px) {
	header ul li {
		display: inline-block;
	}
}
header ul li a {
	display: block;
	height: 100%;
	padding: .3em .5em;
}
.logo-main {
	display: block;
	float: left;
}
.logo-main img {
	max-height: 43px;
	padding: 13px 11px;
}
@media screen and (min-width: 691px) {
	.logo-main {
		display: none;
	}
}
@media screen and (min-width: 861px) {
	.logo-main {
		display: block;
		float: right;
	}
}
.nav li a {
	z-index: 1;
}
.nav li a, .nav li a:link, .nav li a:visited {
	color: #fff;
}
.nav li a:hover {
	color: #f0f1b4;
}
@media screen and (max-width: 690px) {
	.nav {
		display: block;
		position: absolute;
		top: 43px;
		left: 0;
		width: 100%;
		border-bottom: 1px solid rgb(82,92,163,.2);
		background-color: #4e5da7;
		transform: translateX(101%);
		transition: transform .2s ease-in-out;
	}
	.nav.m-active {
		transform: translateX(0%);
	}
	.nav li a {
		display: inline-block;
		position: relative;
	}
}

.nav-btn {
	position: absolute;
	top: 50%;
	right: 20px;
	padding: 0;
	border: none;
	background: transparent;
	transform: translateY(-50%);
}
.nav-btn .line {
	position: relative;
	width: 20px;
	height: 3px;
	background-color: #fff;
	transform-origin: 50% 50%;
	transform: rotate(0deg);
}
.nav-btn .line:nth-of-type(1) {
	top: 0;
	transform: rotate(0deg);
	transition: top .2s .2s, transform .2s 0s;
}
.nav-btn .line:nth-of-type(2) {
	opacity: 1;
	transition: opacity 0s .2s;
}
.nav-btn .line:nth-of-type(3) {
	top: 0;
	transform: rotate(0deg);
	transition: top .2s .2s, transform .2s 0s;
}
.nav-btn.m-active .line:nth-of-type(1) {
	top: 5px;
	transform: rotate(45deg);
	transition: top .2s 0s, transform .2s .2s;
}
.nav-btn.m-active .line:nth-of-type(2) {
	opacity: 0;
}
.nav-btn.m-active .line:nth-of-type(3) {
	top: -5px;
	transform: rotate(-45deg);
	transition: top .2s 0s, transform .2s .2s;
}
.nav-btn .line:not(:last-of-type) {
	margin-bottom: 2px;
}

header .parent {
	position: relative;
}
header .parent > a:after {
	position: absolute;
	top: 19px;
	right: 0;
	width: 4px;
	height: 8px;
	content: "";
	background-image: url('../images/arrow_nav_white.svg');
	background-repeat: no-repeat;
	background-size: 4px 16px;
	background-position: 0 0;
	z-index: 2;
	transition: transform .2s ease-in-out;
}
@media screen and (min-width: 691px) {
	header .parent > a {
		position: relative;
		z-index: 2;
	}
}
.inner-nav-toggle-m {
	display: inline-block;
	position: relative;
	left: -8px;
	width: 23px;
	height: 23px;
	vertical-align: text-top;
	border: none;
	background-color: transparent;
	z-index: 2;
}
.inner-nav-toggle-m:after {
	position: absolute;
    top: 34%;
    left: 45%;
	width: 4px;
	height: 8px;
	content: "";
	background-image: url('../images/arrow_nav_white.svg');
	background-repeat: no-repeat;
	background-size: 4px 16px;
	background-position: 0 0;
	transition: transform .2s ease-in-out;
}
.inner-nav-toggle-m.m-active:after {
	transform: rotate(90deg);
}
@media screen and (min-width: 691px) {
	.inner-nav-toggle-m {
		display: none;
	}
}
.inner-nav {
	top: 0;
	left: 0;
	overflow: hidden;
	background-color: #4e5da7;
	z-index: 1;
	transition: opacity .2s ease-in-out, visibility 0s .2s;
}
@media screen and (min-width: 691px) {
	.nav-btn {
		display: none;
	}
	.inner-nav {
		position: absolute;
		margin-top: 43px;
		opacity: 0;
		visibility: hidden;
	}
	.nav .parent:hover .inner-nav {
		opacity: 1;
		visibility: visible;
		transition: opacity .2s ease-in-out, visibility 0s 0s;
	}
	.nav .parent > a:hover:after {
		background-position: 0 100%;
	}
	.nav .parent:hover > a:after {
		transform: rotate(90deg);
	}
}
@media screen and (max-width: 690px) {
	header.active .nav {
		transform: translateX(0%);
	}
	.inner-nav {
		transition: height .2s ease-out;
	}
	.inner-nav.m-active {
		height: 134px;
	}
	.inner-nav a {
		padding-left: 1.5em;
	}
	.nav .parent > a:after {
		display: none;
	}
}

.hero {
	background-position: 50% 50%;
}

p.bubble {
	position: relative;
	top: 50%;
	max-width: 400px;
	text-align: center;
	color: #fff;
	padding: 2em 16%;
	border-radius: 50%;
	transform: translateY(-50%);
}
p.bubble.wide {
	max-width: 500px;
}
p.bubble span {
	position: relative;
	z-index: 1;
}
p.bubble:before {
	position: absolute;
    left: 20px;
    bottom: -10px;
	width: 150px;
	height: 114px;
	content: "";
	background-repeat: no-repeat;
	background-size: 100% 100%;
}
p.bubble.bg-blue-heavy:before {
	background-image: url('../images/bubblepointer_blue.svg');
}
p.bubble.bg-yellow-heavy:before {
	background-image: url('../images/bubblepointer_yellow.svg');
}

p.img-txt {
	font-size: .9rem;
	font-style: italic;
	color: grey;
	text-align: left;
	margin-top: .5em;
}

.container-fluid {
	padding-top: 25px;
	padding-right: 0 !important;
	padding-left: 0 !important;
	padding-bottom: 25px;
}
@media screen and (min-width: 691px) {
	.container-fluid {
		padding-top: 35px;
		padding-bottom: 35px;
	}
}

.bg-blue-light {
	background-color: #F1F7FF;
}
.bg-blue-medium {
	background-color: #E4EEFF;
}
.bg-blue-hard {
	background-color: #DBE9FF;
}
.bg-blue-heavy {
	background-color: #4E5DA7;
}
.bg-yellow-light {
	background-color: #f8f8e6;
}
.bg-yellow-medium {
	background-color: #f2f2d2;
}
.bg-yellow-hard {
	background-color: #f0f1b4;
}
.bg-yellow-heavy {
	background-color: #ced206;
}

#bgimage { 
	height: 400px;
	margin-top: 0;
	background-image: url('headerimage.jpg');
	background-repeat: no-repeat !important;
	background-position: top !important;
}

.pixels250 {
	height: 250px;
}

.container {
	max-width: 1100px;
}

.btn-link {
	color: #4E5DA7;
}

.btn {
	font-size: 1.3rem;
}

.card {
	border: none;
}

.card-body {
	font-size: 1rem;
}

.smalltext, .smalltext2 {
	display: inline-block;
	line-height: .8rem;
	padding-right: 15px;
	padding-left: 15px;
}
.smalltext {
	font-size: .5rem;
	word-break: break-word;
}
.smalltext2 {
	font-size: .8rem;
}

.legaltext {
	display: inline-block;
	line-height: 1.3rem;
	font-size: 1rem;
}

.card-header {
	border-bottom: none;
	background-color: rgba(0,0,0,0);
}

.image-double-container {
	position: relative;
	max-width: 500px;
	height: 300px;
	margin: auto;
}
#imagefront {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
}

#imagebehind {
	position: absolute;
	top: 0;
	left: 0;
}

.cookiealert {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	font-size: 12px;
	color: #ecf0f1;
	margin: 0 !important;
	border-radius: 0;
	background-color: #4E5DA7;
	opacity: 0;
	visibility: hidden;
	z-index: 999;
	transform: translateY(100%);
	transition: all .5s ease-out;
}
.cookiealert.show {
	opacity: 1;
    visibility: visible;
	transform: translateY(0%);
	transition-delay: 1s;
}
.acceptcookies {
	font-size: 15px;
	color: #fff;
	padding: 5px 10px;
	border: 1px solid #fff;
	background-color: #4E5DA7;
}
.btn.acceptcookies:hover {
	color: rgb(82,92,163);
	border: 1px solid #fff;
	background-color: #fff;
	transition: all .15s ease-out;
}
.cookiealert a {
	text-decoration: underline;
	color: #fff;
}
.cookiealert .acceptcookies {
	margin-left: 10px;
	vertical-align: baseline;
}

.row {
	margin-right: 0;
	margin-left: 0;
}

.img-statistics {
	max-width: 690px;
	margin: 0 auto;
}

.img-aftereffects {
	max-width: 330px;
	width: 100%;
}

.iframe-container {
	position: relative;
	width: 100%;
	height: auto;
}
.responsive-iframe {
	position: relative;
	width: 100%;
	min-height: 600px;
	height: auto;
	border: none;
}

@media screen and (min-width: 768px) {
	.desktop-whitespace {
		white-space: nowrap;
	}
}

.video-parent {
	text-align: center;
}
video {
	max-width: 100%;
	height: auto;
}
video.half {
	margin: 0 0 1em 0;
}
@media screen and (min-width: 768px) {
	video.half {
		margin: 0 10px 1em 10px;
	}
}

@media screen and (min-width: 426px) {
	.desktop-center {
		text-align: center;
	}
}

@media (max-width: 960px) {
	.smaller-intablet {
		font-size: .9rem;
	}
	.smaller-inphone {
		font-size: 1rem;
	}
}
@media (max-width: 766px) {
	.footer-links {
		background-color: #f9f9f9;
	}
	.smaller-intablet {
		font-weight: normal;
	}
}
@media (max-width: 560px) {
	.image-double-container {
		height: 240px;
	}
	.smaller-inphone {
		font-size: 1rem;
	}
	.smaller-intablet {
		font-weight: bold;
		font-size: 1rem;
	}
	.pixels250 {
		height: 250px;
	}
}
@media (max-width: 480px) {
	.image-double-container {
		height: 200px;
	}
}



.riskiryhmaimage {
    background-image: url('../images/headerimage_riskiryhmat.jpg');
    height: 300px;
    background-size: 80%;
    background-repeat: repeat-x;
    background-position-x: -80px;
}
@media screen and (max-width: 1500px) {

.riskiryhmaimage {
    height: 250px;
    background-size: 80%;
}
}

@media screen and (max-width: 1240px) {

.riskiryhmaimage {
    height: 200px;
    background-size: 80%;
}
   
}

@media screen and (max-width: 1010px) {

.riskiryhmaimage {
    height: 200px;
    background-size: auto 200px;
    background-position-x:-380px;
}
   
}
