﻿/*
 Theme Name:   MUUTU
 Theme URI:    https://www.muutu.fi
 Description:  Digitoimisto Muutu Custom WP
 Author:       Digitoimisto Muutu
 Author URI:   https://www.muutu.fi
 Template:     Divi
 Version:      6.7.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         responsive-layout
 Text Domain:  divi-child
*/

/* Get Divi gallery to 2019-standard, no huhhu Divi..*/
.et_pb_gallery_item img {
  position: absolute;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
	width:100%;
}
.et_pb_gallery_image {
  padding-top: 70%;
}

/* Mobile menu scrollable fix - cmon Divi WHY U NO 2019??*/
.et_mobile_menu {
  overflow-y:scroll!important;
  max-height:80vh!important;
  -overflow-scrolling:touch!important;
  -webkit-overflow-scrolling:touch!important;
}

/* Oikotie-luokat */
.flex {display:flex!important;}
.mobile, .mobiili {display:none;}
.tablet, .ipad, .pad {display:none;}
.fullsize, .fullwidth, .kokoleveys {size: 100%!important}

/* SlideFix */
.mfp-title, .mfp-counter {display:none}

/* Piilota navigaation hakufunktio*/
#et_top_search {display:none!important}

/* Stick Anything to Top */
div.sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

/* PimpMyHighLight */
::selection{background: #000; color: #fff;}
::-moz-selection{ background: #000; color: #fff;}

/* Products stacked neatly */
.product {
  width:250px;
}

#buttons {
	display:flex!important;
  justify-content: center!important;
}

/* PimpMyNappula */
.et_pb_scroll_top:before { content: "2"; }
.et_pb_scroll_top.et-pb-icon {padding: 4px;-webkit-border-radius: 0%;-moz-border-radius: 0%;border-radius: 0%;right: 0px;}

/* GradientOverlay */
.gradient-overlay:before {
   content:"";
   position:absolute;
   z-index:1;
   background:inherit;
   top:0;
   bottom:0;
   width:100%;
}
.gradient-overlay .et_pb_row {
   z-index:2 !important;
}
.gradient-overlay {
   background-color: transparent;
}
/* GradientOverlay - END */

/* Easy icons - add these to links with e.g. class="icon-email" etc. */
.icon-email::before{font-family: 'ETmodules';content: '\e076';} /* Envelope */
.icon-phone::before{font-family: 'ETmodules';content: '\e090';} /* Phone */
.icon-mobile::before{font-family: 'ETmodules';content: '\e00b';} /* Mobile */
.icon-marker::before{font-family: 'ETmodules';content: '\e081';} /* Marker */
.icon-clock::before{font-family: 'ETmodules';content: '\e06b';} /* Clock */
/* Easy icons - END */

/* Better looking toggle icon with animation */
.et_pb_toggle_title:before {
  font-size: 32px !important ;
  font-family: 'ETmodules';
  content: "\4c" !important; /* Icon for plus sign */
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.et_pb_toggle_open .et_pb_toggle_title:before {
  color: #d2222a!important; /* This is red */
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
/* Better looking toggle icon with animation - END */

/* Services box-shadow + hover */
.services{
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
	-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
	-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
	transition: all 100ms ease-out 0s;
}

.services:hover{
	box-shadow: 0 6px 9px rgba(0, 0, 0, 0.09);
}

/* Services box-shadow + hover  - END */

/* MobiFixit */
@media only screen and (max-width: 1100px){
	.et_pb_button_alignment_right,.et_pb_button_alignment_left{
		text-align:center!important;
	}
	.twocol-nowrap-tablet .et_pb_column{
    width:50%!important;
    margin-right:0%!important;
  }
	.threecol-nowrap-tablet .et_pb_column{
    width:33%!important;
    margin-right:0%!important;
  }
	.fourcol-nowrap-tablet .et_pb_column{
    width:24%!important;
    margin-right:0%!important;
  }
	.fivecol-nowrap-tablet .et_pb_column{
    width:19%!important;
    margin-right:0%!important;
  }

  .tablet {display:initial}
  .desktop {display:none}

}

@media only screen and (max-width: 980px){
  .desktop-tablet {
    display:none;
  }
	.twocol-nowrap-tablet .et_pb_column{
    width:50%!important;
    margin-right:0%!important;
  }
	.threecol-nowrap-tablet .et_pb_column{
    width:33%!important;
    margin-right:0%!important;
  }
	.fourcol-nowrap-tablet .et_pb_column{
    width:24%!important;
    margin-right:0%!important;
  }
	.fivecol-nowrap-tablet .et_pb_column{
    width:19%!important;
    margin-right:0%!important;
}

  /* Mobile menu text + close icon */
  .mobile_menu_bar:after {
    position: relative !important;
    content: 'VALIKKO';
    bottom: 8px;
    left: 2%;
    font-size: inherit;
    color: inherit;
  }

  .mobile_nav.opened .mobile_menu_bar:before {
	  content: '\4d';
	  -webkit-transition: 0.3s;
    transition: 0.3s;
  }

  /* Mobile menu text + close icon - END */

  /* Sisältö 90% */
  .et_pb_row {width: 90%!important;}

  /* Paitsi aloituskuva (ja kaikki .fullscreen elementit - katso oikotie luokat)*/
  #home .et_pb_row {width:100%!important;}

  /* Navigaatio seuraa mobiilissa */
  #main-header {position:fixed!important;}

  /* Oikotie-luokat */
  .reverse {display:flex;flex-direction:column-reverse!important;}
  .smaller {max-width:75%;margin: 0 auto;}

}

@media screen and (max-width: 768px) {
  .mobile{display:initial!important;}
  .tablet{display:none!important;}
}

@media screen and (max-width:500px) {
	.twocol-nowrap-tablet .et_pb_column, .threecol-nowrap-tablet .et_pb_column, .fourcol-nowrap-tablet .et_pb_column, .fivecol-nowrap-tablet .et_pb_column{
    width:100%!important;
  }

  #buttons {
    flex-direction:column!important;
  }
}

/* MobiFixit - END */


/* PerfectText */
body {
  font-size: 100%;
  font-weight: 400;
}

body {
  font-size: 1em;
  /* equivalent to 16px */
  line-height: 1.25;
  /* equivalent to 20px */
}

@media (min-width: 43.75em) {
  body {
    font-size: 1em;
    /* equivalent to 16px */
    line-height: 1.375;
    /* equivalent to 22px */
  }
}

h1 {
  font-size: 2em;
  /* 2x body copy size = 32px */
  line-height: 1.25;
  /* 45px / 36px */
}

@media (min-width: 43.75em) {
  h1 {
    font-size: 2.5em;
    /* 2.5x body copy size = 40px */
    line-height: 1.125;
  }
}

@media (min-width: 56.25em) {
  h1 {
    font-size: 3em;
    /* 3x body copy size = 48px */
    line-height: 1.05;
    /* keep to a multiple of the 20px line height and something more appropriate for display headings */
  }
}

h2 {
  font-size: 1.625em;
  /* 1.625x body copy size = 26px */
  line-height: 1.15384615;
  /* 30px / 26px */
}

@media (min-width: 43.75em) {
  h2 {
    font-size: 2em;
    /* 2x body copy size = 32px */
    line-height: 1.25;
  }
}

@media (min-width: 56.25em) {
  h2 {
    font-size: 2.25em;
    /* 2.25x body copy size = 36px */
    line-height: 1.25;
  }
}

h3 {
  font-size: 1.375em;
  /* 1.375x body copy size = 22px */
  line-height: 1.13636364;
  /* 25px / 22px */
}

@media (min-width: 43.75em) {
  h3 {
    font-size: 1.5em;
    /* 1.5x body copy size = 24px */
    line-height: 1.25;
  }
}

@media (min-width: 56.25em) {
  h3 {
    font-size: 1.75em;
    /* 1.75x body copy size = 28px */
    line-height: 1.25;
  }
}

h4 {
  font-size: 1.125em;
  /* 1.125x body copy size = 18px */
  line-height: 1.11111111;
}

@media (min-width: 43.75em) {
  h4 {
    line-height: 1.22222222;
    /* (22px / 18px */
  }
}

blockquote {
  font-size: 1.25em;
  /* 20px / 16px */
  line-height: 1.25;
  /* 25px / 20px */
}

@media (min-width: 43.75em) {
  blockquote {
    font-size: 1.5em;
    /* 24px / 16px = */
    line-height: 1.45833333;
    /* 35px / 24px */
  }
}
/* PerfectText - END */