/*
Theme Name: Malmer X Bad Pixel
Author: www.malmer.fi
Author URI: www.malmer.fi
Description: Teeman on toteuttanut © Bad Pixel Oy. | Teeman jälleenmyynti kielletty, ilman kirjallista lupaa.
Version: 0.1
Copyright: Kaikki oikeudet muutoksiin pidätetään © Bad Pixel Oy
*/

@import "css/nav-style.css";


:root {
  --color-bg_1: #ffffff;	/* Valkoinen */
  --color-bg_2: #000000;	/* Musta */
  --color-bg_3: #00369b;	/* Pääväri */
 
  --color-border_1: #ffffff;
  --color-border_2: #000000;
  --color-border_3: #00369b;
  
  --color-font_1: #ffffff;
  --color-font_2: #000000;
  --color-font_3: #00369b;
 
  --color-bg-button_1: #ffffff;
  --color-bg-button_2: #000000;
  --color-bg-button_3: #00369b;

  --effect-color-1: #f0fbff;

  --font-family-1: "Manrope", sans-serif;
  --font-family-2: "Manrope", sans-serif;

  --font-weight-regular: 400; /* regular */
  --font-weight-bold: 700; /* bold */
  
  --full-width-content-with-nav: calc(100%);
}

.bg-1 {
	background: var(--color-bg_1);
}
.bg-2 {
	background: var(--color-bg_3);
}
.bg-3 {
	background: var(--color-bg_3);
}
.bg-4 {
	background: var(--color-bg_3);
}
.bg-5 {
	background: var(--color-bg_5);
}
.color-1 {
	color: var(--color-font_1);
}
.wrapper {
	width: var(--full-width-content-with-nav);
}
.btn.focus, .btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0) !important;
}

/* Wordpress editor styles start */
.entry-content img {
	margin: 0 0 1.5em 0;
	}
.alignleft, img.alignleft {
	margin-right: 1.5em;
	display: inline;
	float: left;
	}
.alignright, img.alignright {
	margin-left: 1.5em;
	display: inline;
	float: right;
	}
.aligncenter, img.aligncenter {
	margin-right: auto;
	margin-left: auto;
	display: block;
	clear: both;
	}
.alignnone, img.alignnone {
	text-align: none;
	}
.wp-caption {
	margin-bottom: 1.5em;
	text-align: center;
	padding-top: 5px;
	}
.wp-caption img {
	border: 0 none;
	padding: 0;
	margin: 0;
	}
.wp-caption p.wp-caption-text {
	line-height: 1.5;
	font-size: 10px;
	margin: 0;
	}
.wp-smiley {
	margin: 0 !important;
	max-height: 1em;
	}
blockquote.left {
	margin-right: 20px;
	text-align: right;
	margin-left: 0;
	width: 33%;
	float: left;
	}
blockquote.right {
	margin-left: 20px;
	text-align: left;
	margin-right: 0;
	width: 33%;
	float: right;
	}
/* Wordpress editor styles end */

/* --------------------------------------------------------------
	NORMALIZE
-------------------------------------------------------------- */
html {
	font-family: sans-serif;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust:     100%;	
}
body {
	margin: 0;
	color: #535353;
}
html, 
body {
  height: 100%;
  min-height: 100%;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
	display: block;
}
audio,
canvas,
progress,
video {
	display: inline-block;
	vertical-align: baseline;
}
audio:not([controls]) {
	display: none;
	height: 0;
}
[hidden],
template {
	display: none;
}
a {
	background-color: transparent;
}
abbr[title] {
	border-bottom: 1px dotted;
}
b,
strong {
	font-weight: 700;
}
dfn {
	font-style: italic;
}
mark {
    background: #121212;
    color: #f9b659;
}
small {
	font-size: 80%;
}
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	top: -0.5em;
}

sub {
	bottom: -0.25em;
}

svg:not(:root) {
	overflow: hidden;
}

figure {
	margin: 0em;
}

hr {
	box-sizing: content-box;
	height: 0;
}

pre {
	overflow: auto;
}

code,
kbd,
pre,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

button,
input,
optgroup,
select,
textarea {
	color: inherit;
	font: inherit;
	margin: 0;
}

button {
	overflow: visible;
}

button,
select {
	text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
	-webkit-appearance: button;
	cursor: pointer;
}

button[disabled],
html input[disabled] {
	cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
	border: 0;
	padding: 0;
}

input {
	line-height: normal;
}

input[type="checkbox"],
input[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

fieldset {
	border: 1px solid #c0c0c0;
	margin: 0 2px;
	padding: 0.35em 0.625em 0.75em;
}

legend {
	border: 0;
	padding: 0;
}

textarea {
	overflow: auto;
}

optgroup {
	font-weight: bold;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

td,
th {
	padding: 0;
}

/* --------------------------------------------------------------
	COOKIE
-------------------------------------------------------------- */
.cc-window.cc-banner {
    max-width: 300px;
    font-size: 0.8em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2em;
    border-radius: 10px;
    margin: 1em;
}
.cc-window.cc-banner .cc-message {
    margin-bottom: 1em;
}
.cc-window.cc-banner .cc-message .cc-link {
    padding: 0em;
}

/* --------------------------------------------------------------
	PERUSSETTI
-------------------------------------------------------------- */

body {
	background: var(--color-bg_1);
}
html, body {
	color: var(--color-font_2);
	font-family: var(--font-family-1);
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust:     100%;
	font-size: 16px; /* Yleiskoko fontille, tähän suhteutettu muut */
	font-weight: var(--font-weight-regular); 
}

.hidden, .hide { display: none !important;}
.text-left {text-align: left;}
.text-right {text-align: right;}
.text-center {text-align: center;}

section {position: relative;}

.footer hr {
    margin: 0.5rem 0;
}

.valistys-10 {	
	height: 10px;
	width: 100%;
}
.valistys-20 {	
	height: 20px;
	width: 100%;
}
.valistys-30 {	
	height: 30px;
	width: 100%;
}
.valistys-40 {	
	height: 40px;
	width: 100%;
}
.valistys-50 {	
	height: 50px;
	width: 100%;
}

hr {
	color: var(--color-border_3)
  }

/* --------------------------------------------------------------
	Fonttien kokoja, suhteutettuna yleiskokoon + Värejä
-------------------------------------------------------------- */

p { 
	font-size: 1.0em; 
	line-height: 1.5; 
}


a, 
a:visited, 
a:active {
	color: var(--color-font_3); 
	text-decoration: underline;
}

a.wp-block-button__link, 
a.wp-block-button__link:visited, 
a.wp-block-button__link:active {
	color: var(--color-font_1); 
	text-decoration: none;
	font-weight: 400;
} 
a.wp-block-button__link:hover {
	color: var(--color-font_1); 
	text-decoration: none;
}

a:focus,
a:hover {
	color: var(--color-bg_3); 
}


.blogi-artikkeli a,
.footer a,
.goback a {text-decoration: none;}

h1 { 
	color: var(--color-font_3); 
	font-family: var(--font-family-2);
}

h2, h3, h4, h5, h6 { 
	color: var(--color-font_3); 
	font-family: var(--font-family-2);
}
.footer h1, .footer h2, .footer h3, .footer h4, .footer h5, .footer h6 {
	color: var(--color-font_1);
}
.footer a, .footer a:hover, .footer a:visited, .footer a:active {
	color: var(--color-font_1);
}

h1 {
	font-size: 2.7em;
    margin: 0.55em 0;
	font-weight: var(--font-weight-bold);
}

h2 {
	font-size: 2.0em;
	margin: 0.7em 0;
	font-weight: var(--font-weight-bold);
}
.pre-footer h2 {
	margin-top: 0px;
}
.pre-footer h3 {
	margin-top: 0px;
	color: #000;
}

h3 {
	font-size: 1.5em;
	margin: 0.5em 0;
	font-weight: var(--font-weight-bold);
}

h4 {
	font-size: 1.9em;
	margin: 0.4em 0;
	font-weight: var(--font-weight-bold);
}

h5 {
	font-size: 1.8em;
	margin: 0.4em 0;
	font-weight: var(--font-weight-bold);
}

h6 {
	font-size: 1.7em;
	margin: 0.3em 0;
	font-weight: var(--font-weight-bold);
}


/* --------------------------------------------------------------
	NAVIGAATIO, kts. css/nav-styles.css
-------------------------------------------------------------- */

.navigaatio-1 .navbar-toggler {
	background: transparent;
	color: #00369b;
}

.navbar-toggler:focus {
	outline: auto;
}
.navigaatio-1 .navbar-toggler-icon {
    background-image: url('img/theme/hamburger.svg') !important;
}
.navigaatio-1 .navbar-collapse.collapse.show .navbar-toggler-icon {
    background-image: url('img/theme/close.svg') !important;
}
.nav {
	transition:all 0.5s ease;
	-webkit-transition: all 0.5s ease;
	-moz-transition: all 0.5s ease;
	-ms-transition: all 0.5s ease;
	-o-transition: all 0.5s ease;
}

/* --------------------------------------------------------------
	HEADER
-------------------------------------------------------------- */
.site-header {
    position: relative;
}

.hero-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.herologo {
    position: absolute;
    top: 20px;
    z-index: 10;
    width: 100%;
    max-width: 300px;
    margin: 2em 0em;
    position: absolute;
	filter: drop-shadow(2px 2px 9px #fff);
}


.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%; /* gradientin korkeus */
    background: linear-gradient(
        to top,
        #ffffff 0%,
        rgba(255,255,255,0) 100%
    );
    pointer-events: none;
}

#logo img {
    width: 100%;
    height: auto;
	max-width: 300px;
    position: relative;
}


/* --------------------------------------------------------------
	FOOTER
-------------------------------------------------------------- */
.footer {
    height: auto;
	min-height: 350px;
    position: relative;
	background: var(--color-bg_3);
}


.footer .footer-inner {
    width: 100%;
	z-index: 1;
    padding-top: 5em;
    padding-bottom: 9em;
}

.footer .footer-inner h2 {
	font-size: 2em;
	font-weight: 400;
	margin-top: 0.2em;
}
.footer .footer-inner h3 {
	font-weight: 300;
}
.footer .footer-inner p {
	color: #ffffff;
}

.footer .footer-inner .fit-p7 {
	padding-left: 7em;
}
@media(max-width: 767px) {
	.footer .footer-inner .fit-p7 {
		padding-left: initial;
	}
}

ul.menu-footer {
	list-style: none;
	padding: 0;
	margin: 0;
}

ul.menu-footer li a {
	font-weight: 400;
}

ul.menu-footer li.current-menu-item a {
	color: #fff;
	font-weight: 800;
}


.footer-footnote {
	background-color: #01318b;
}
.footnote {
	color: var(--color-font_3);
	padding: 0.5em;
}

.footer-footnote .footnote-col-1,
.footer-footnote .footnote-col-2 {
	padding: 0;
}

.footer .footer-inner .logo {
    float: left;
    width: calc(33%);
}

.footer .footer-inner .logo img {
    max-width: 135px;
}

.bp-logo {
    max-width: 70px;
    opacity: 0.7;
    transition: ease .5s all;
    height: 20px;
}

.bp-logo:hover {
    opacity: 1;
    transition: ease .5s all;
}

/* --------------------------------------------------------------
	FRONT
-------------------------------------------------------------- */
.front-section-1 {
	background-color: var(--color-bg_3);
	color: var(--color-font_1);
}

.front-section-2 {
	padding: 3em 0em;
}

.section-single {
	padding: 1em 0em;
}


.tehoste-tausta {
	background: var(--effect-color-1);
}

/* --------------------------------------------------------------
	Efektivärit
-------------------------------------------------------------- */
.font-effect-1 {
	font-weight: var(--font-weight-bold);
	color: var(--color-font_3);
}
.font-effect-2 {
	font-weight: var(--font-weight-bold);
	color: var(--color-font_3);
}

/* --------------------------------------------------------------
	Error 404
-------------------------------------------------------------- */

body.error404 .site-header {
	display: none !important;
}

body.error404 .error-404 {
	padding: 3em 0em 5em;
}

/* --------------------------------------------------------------
	BLOGI / ARCHIVE
-------------------------------------------------------------- */

body.single .site-header {
	display: none !important;
}

body.archive.category .site-header {
	display: none !important;
}

section.blog-home {
	padding: 3em 0em 5em;
}

/*--------------------------------------------------------------
	Listaukset
--------------------------------------------------------------*/

/* Service - palvelut */
.service {
    display: flex;
    gap: 20px;
    align-items: center;
}

.service-img img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;

    border-radius: 14px;
    box-shadow: 5px 5px 0px 0px #00369b;
    display: block;
	max-width: 230px;
}


/* Gutenberg block - 4 boksia */
.boxes-4 .box-outer {
	position: relative;
	margin: 1.5em;
	-webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;	
} 
.boxes-4 .box-outer:hover {
	transform: scale(1.02);
} 
.boxes-4 .box-inner a, .boxes-4 .box-inner a:visited, .boxes-4 .box-inner a:hover, .boxes-4 .box-inner a:active {
	color: var(--color-font_1);
} 
.boxes-4 h2  {
	color: var(--color-font_1);
	font-size: 1.8em;
} 
.boxes-4 .box-inner .icon {
	position: absolute;
	height: 90px;
    width: 90px;
    top: -2.7em;
	margin: auto;
	left: 0;
	right: 0;
	border-radius: 100em;
	background: var(--color-bg_3);
	box-shadow: 1px 2px 3px var(--color-bg_3);
	display: flex;
    align-items: center;
    justify-content: center;
	color: var(--color-font_3);
} 
.boxes-4 .box-inner .icon img {
	width: 50%;
	height: auto;
}


/* --------------------------------------------------------------
	Napit, buttonit & taulukot
-------------------------------------------------------------- */

/* BTN 1 */
.btn-1 {
	letter-spacing: 3px;
    background-color: var(--color-bg-button_3);
    border: 0px solid var(--color-bg-button_1);
    color: var(--color-bg_1);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    padding: 15px 30px;
	text-align: center;
    -webkit-border-radius: 0px;
    border-radius: 0px;	
	margin: 0.75em 0;
	display: flex;
    flex-direction: column;
	font-size: 0.7em;
	text-transform: uppercase;

	-webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;	
}
.btn-1.btn:focus-visible {
    color: var(--color-bg_1);
    background-color: var(--color-bg-button_3);
    border: 0px solid var(--color-bg-button_1);
    outline: 0;
    box-shadow: none;

	-webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;		
}
.btn-1.btn-check:checked+.btn, .btn-1.btn.active, .btn-1.btn.show, .btn-1.btn:first-child:active, :not(.btn-check)+.btn-1.btn:active {
    color: var(--color-bg_1);
    background-color: var(--color-bg-button_3);
    border: 0px solid var(--color-bg-button_1);
}
.btn-1:hover {
    background-color: var(--color-bg-button_3);
    border: 0px solid var(--color-bg-button_1);
    color: var(--color-bg_1);
    font-weight: var(--font-weight-bold);

    -webkit-filter: brightness(70%);
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;	
}

/* BTN 2 */
.btn-2 {
	letter-spacing: 2px;
    background-color: var(--color-bg-button_3);
    border: 2px solid var(--color-border_3);
    color: var(--color-font_3);
    font-weight: var(--font-weight-regular);
    cursor: pointer;
    padding: 15px 20px;
	text-align: center;
    -webkit-border-radius: 0px;
	margin: 0.75em 0;
	display: flex;
    flex-direction: column;
	font-size: 1.0em;
	/*text-transform: uppercase;*/

	border-radius: 0em;

	-webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;	
}
.btn-2.btn:focus-visible {
    color: var(---color-font_1);
    background-color: var(--color-bg-button_3);
    border: 2px solid var(--color-bg-button_3);
    outline: 0;
    box-shadow: none;

	-webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;		
}
.btn-2.btn-check:checked+.btn, .btn-2.btn.active, .btn-2.btn.show, .btn-2.btn:first-child:active, :not(.btn-check)+.btn-2.btn:active {
    color: var(--color-font_1);
    background-color: var(--color-bg-button_3);
    border: 2px solid var(--color-bg-button_3);
}
.btn-2:hover {
    background-color: var(--color-bg-button_3);
    border: 2px solid var(--color-bg-button_3);
    color: #ffffff;
    font-weight: var(--font-weight-regular);

	transform: scale(1.05);

    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;	
}

.btn-2 a {
	text-decoration: none;
}

.wp-block-button.is-style-outline {
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;	
}

.wp-block-button.is-style-outline:hover {
	transform: scale(1.05);

    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;		
}


.wp-block-button__link {
	letter-spacing: 2px;
    color: #fff;
    background-color: var(--color-font_3);
	font-weight: var(--font-weight-bold);
    border-radius: .6em;
    font-size: 1em;
	margin: 0.75em 0;
	-webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;	
}
.wp-block-button__link:hover {
    transform: scale(1.03);
	-webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;	
}


/* --------------------------------------------------------------
	LOMAKKEET & Placeholderit
-------------------------------------------------------------- */
:placeholder,
::placeholder,
::-ms-input-placeholder,
input:placeholder,
input::placeholder { color: #757575;}


/* Yleiset inputit */
input, textarea {
	border: 1px solid var(--color-border_3);
	margin: 0.2em 0em;
}
input[type="submit"]{
	background: var(--color-bg-button_3);
	color: var(--color-font_1);
	padding: .5em 1em;
	border: 1px solid var(--color-border_3);
	border-radius: 0.6em;
	letter-spacing: 2px;
}


/* Yhteydenotto 1 lomake */

.yhteydenotto-1 {
	max-width: 800px;
	margin: 2em auto;
}

.yhteydenotto-1.split {
	display: flex;
	flex-direction: column;
	flex-flow: wrap;
}

.modal-content .yhteydenotto-1 {
	margin: 0;
	max-width: 100%;
}

.yhteydenotto-1 .col-50 {
	width: 50%;
}
.yhteydenotto-1 .col-100 {
	width: 100%;
}

.yhteydenotto-1 input, .yhteydenotto-1 textarea {
    width: 100%;
    margin: .2em auto;
    font-size: .9em;
    padding: 0.9em 1em;
    border: 1px solid var(--color-border_3);
    max-height: 150px;
    color: #757575;
    border-radius: .6em;
}

.yhteydenotto-1 label {
	font-size: 1.0em;
    margin: 0.5em 0;
    font-weight: var(--font-weight-regular);
}

.yhteydenotto-1 input:focus,
.yhteydenotto-1 textarea:focus {
	border: 1px solid var(--color-bg-button_3);
}

.yhteydenotto-1 input[type="submit"] {
    background: var(--color-bg-button_3);
    color: #ffffff;
    padding: 0.8em 0.5em;
    border-radius: 0em;
    max-width: 240px;
    border-radius: .6em;
}

/* custom checkbox styling for contact form 7 checkbox */
.yhteydenotto-1 span.wpcf7-list-item {
	display: inline-block;
	margin: 0em 0.5em;
}
.yhteydenotto-1	.wpcf7 .wpcf7-list-item {
	display: block;
	margin-bottom: 10px;
}
.yhteydenotto-1 .wpcf7-checkbox label {
	position: relative;
	cursor: pointer;
}
.yhteydenotto-1 .wpcf7-checkbox input[type=checkbox] {
	position: absolute;
	visibility: hidden;
	width: 30px;
	height: 30px;
	top: 0;
	left: 0;
}

.yhteydenotto-1 select {
	width: 100%;
	border: 1px solid var(--color-border_3);
	padding: 0.5em 0.5em;
	font-size: 0.9em;
    color: #757575;
}

.yhteydenotto-1 .wpcf7-checkbox input[type=checkbox] + span:before {
	display: block;
	position: absolute;
	content: '';
	border-radius: 0;
	height: 30px;
	width: 30px;
	top: 0px;
	left: 0px;
	border: 1px solid var(--color-bg-button_3);
}
.yhteydenotto-1 .wpcf7-checkbox input[type=checkbox] + span:after {
	display: block;
	position: absolute;
	content: "\2713";
	height: 30px;
	width: 30px;
	top: 0;
	left: 0;
	visibility: hidden;
	font-size: 18px;
	text-align: center;
	line-height: 30px;
}
.yhteydenotto-1 .wpcf7-checkbox input[type=checkbox]:checked + span:before {
	background: transparent;
}
.yhteydenotto-1 .wpcf7-checkbox input[type=checkbox]:checked + span:after {
	visibility: visible;
}
.yhteydenotto-1 .wpcf7-list-item-label {
	margin-left: 40px;
	display: inline-block;
}

.response-box {
    /* display: none; */
    width: 100%;
    height: auto;
    background: #f3f3f3;
    margin: 1em 0em;
    padding: 0.5em 1em;
    border: 1px solid #ff7317;
}

.disable-button {
	background: rgb(128 128 128 / 50%) !important;
	pointer-events: none !important;
}

/* --------------------------------------------------------------
	MUUT
-------------------------------------------------------------- */

.pre-footer {
	padding: 4em 0em;
}

.copyright {
	color: #ffffff;
}


/* ----- Neljä styling columnia gutenberg omalla columnilla ----- */
.stylebox-1 {
    display: flex;
    flex-direction: column;
    border: 2px solid #00369b;
    border-radius: .6em;
    padding: 1em;
	min-height: 230px;
}
/* ulompi 4-sarakkeen wrapper */
.columns-4 {
    display: flex;
    flex-wrap: wrap;
}

/* jokainen pääcolumn (2 per rivi käytännössä) */
.columns-4 > .wp-block-column {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* sisempi columns joka sisältää 2 laatikkoa */
.columns-4 .wp-block-columns {
    display: flex;
    flex: 1;
    width: 100%;
}

/* itse kortit */
.columns-4 .stylebox-1 {
    flex: 1;
    display: flex;
    flex-direction: column;

    padding: 20px;
    box-sizing: border-box;
}

/* jotta sisältö venyy nätisti */
.columns-4 .stylebox-1 > * {
    margin-top: auto;
}
@media(max-width: 991px) {
	.columns-4 {
		flex-direction: column;
	}
}
@media (max-width: 768px) {
    .columns-4 {
        flex-direction: column;
    }

    .columns-4 .wp-block-columns {
        flex-direction: column;
    }
}




/* Tooltip */
.info-tooltip-button {
	width: 20px;
	height: 20px;
	border-radius: 100em;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-color: var(--color-bg-button_3);
	color: var(--color-font_1);
}
.lomake label .info-tooltip-button {
	margin-left: 0.3em;
}



/* WP BLOCK NAPPI */
.wp-block-button.is-style-fill .wp-block-button__link {
    color: #fff;
    background-color: var(--color-border_3);
    border-radius: 9999px;
    box-shadow: none;
    text-decoration: none;
    padding: calc(0.467em + 2px) calc(1.333em + 2px);
    font-size: 1.125em;
}
.wp-block-button.is-style-fill a.wp-block-button__link:hover {
    color: #fff;
}

.wp-block-button.is-style-outline .wp-block-button__link {
    box-shadow: none;
    text-decoration: none;
    padding: calc(0.467em + 2px) calc(1.333em + 2px);
    font-size: 1.125em;
}
.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color), .wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color) {
    color: var(--color-font_3);
}


/* --------------------------------------------------------------
	MOBILE / RESPONSIVE
-------------------------------------------------------------- */

@media(max-width: 767px) {
	.mobile-text-center {
		text-align: center;
	}
}
@media(max-width: 600px) {
	.xs-mobile-center {
		text-align: center;
		margin: auto;
	}
}



/* ---------------
	Scale Up
--------------- */

/* Mini devices ( 576 px and up) */	
@media (min-width: 576px) { }

/* Small devices (tablets, 768px and up) */	
@media (min-width: 768px) {	}

/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) { }

/* Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) { }



/* ---------------
	Scale Down
--------------- */

/* Large devices (desktops, 1200px and down) */
@media (max-width: 1200px) { }

/* Medium devices (desktops, 992px and down) */
@media (max-width: 991.9px) { }

/* Small devices (tablets, 767px and down) */	
@media (max-width: 767px) {
	h1 { font-size: 2.2em;}
	h2 { font-size: 1.7em;}
}

/* Micro devices (575.9px and down) */	
@media (max-width: 599px) {	}
@media (max-width: 781px) and (min-width: 600px){ }

/* Micro devices (575.9px and down) */	
@media (max-width: 575.9px) { }

/* Super mini devices (477px and down) */	
@media (max-width: 477px) { }
