﻿/*
 Theme Name: Carlos
 Template:     Divi
 Version:      6.8.0.6
 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
*/

body { background-color: #7D2E68; }

/*********** Kirsi Mikkosen tyylit ***********/


/* Valitun (eli hiirellä maalatun) tekstin väri. */
::-moz-selection {
   color: #fff;
   background: #7D2E68;
}
::selection {
   color: #fff;
   background: #7D2E68;
}

/* Tee alaotsikko h1:n sisälle span-tagilla. */
h1 span {
   display: block;
   line-height: 1.05;
}
.et_pb_section_first {
   padding-top: 0 !important;
}
.wpcf7-form-control-wrap {
   margin-right: .3rem;
}

.wpcf7-list-item {
   margin-left: 0;
}
.wpcf7-spinner {
   position: absolute;
   right: 0;
   background-color: #82936F !important;   
}
.wpcf7 input[type="checkbox"] {
   margin-left: 0;
}
.wpcf7-form table, .wpcf7-form td {
   border: none !important;
}
.wpcf7-form td {
   width: 50%;
}
.wpcf7-form p {
  text-align: left !important;
}
.wpcf7-form td:first-child {
   padding: 0 2rem 0 0;
}
.wpcf7-form td:last-child {
   padding: 0;
}

/* Evästekäytäntösivu */

#cmplz-cookies-overview .cookies-per-purpose * {
   color: #333 !important;
}
.cmplz-always-active {
   color: #bfffbf !important;
}
#cmplz-document a[target="_blank"]::after {
   display: none;
}

/* Kätke reCAPTCHA-lätkä muualla kuin yhteyslomakkeessa. */
.grecaptcha-badge {
   opacity: 0;
   z-index: 9999999999;
}

/* Tee yläpalkin sisään- ja ulosfeidauksesta pehmeämpää */
#main-header, #main-header li a:before {
   transition: all .3s linear !important;
   /* Palkin varjo pois. */
/* box-shadow: none; */
}

/* Siirrä pääkuva valikon alle. */
html:not(.et-fb-preview--phone, .et-fb-preview--tablet) #et-main-area {
   position: absolute;
   width: 100%;
   top: 0;  
}
#main-header:not(.et-fixed-header) #top-menu > li > a {
   text-shadow: 1px 1px 1px rgba(0,0,0,.8);
   color: #fff;
}

/* Valikkopalkin logo piiloon aloitusnäkymässä */
#main-header:not(.et-fixed-header) .logo_container a {
   pointer-events: none;
}
#main-header:not(.et-fixed-header) #logo {
   opacity: 0;
}
#main-header.et-fixed-header #logo {
   opacity: 1;
}

/* Copyright-footerin tuunausta */
#main-footer, #footer-bottom {
   background-color: transparent;
}
#main-footer {
   position: relative;
}
#footer-bottom {
   position: absolute;
   bottom: 0;
   z-index: 999;
   width: 100%;
}
#footer-bottom .copyright {
  color: #ddd !important;
}


/*
css keyframes based off:
https://tympanus.net/codrops/2012/01/02/fullscreen-background-image-slideshow-with-css3/
*/
/*tested on chrome 24*/
@-webkit-keyframes heartBeat { 
    0% { zoom:100%; }
    15% { zoom:120%; }
    25% { zoom:110%; }
    35% { zoom:120%; }
    100% { zoom:100%; }
}
/*tested on opera 12*/
@-o-keyframes heartBeat { 
    0% { zoom:100%; }
    15% { zoom:120%; }
    25% { zoom:110%; }
    35% { zoom:120%; }
    100% { zoom:100%; }
}
/*
tested on IE9, should work but doesn't :(
https://developer.mozilla.org/en-US/docs/CSS/transform
*/
@-ms-keyframes heartBeat { 
    0% { transform:scale(1); }
    15% { transform:scale(1.2); }
    25% { transform:scale(1.1); }
    35% { transform:scale(1.2); }
    100% { transform:scale(1); }
}
/*tested on FF 18*/
@keyframes heartBeat { 
    0% { transform:scale(1); }
    15% { transform:scale(1.2); }
    25% { transform:scale(1.1); }
    35% { transform:scale(1.2); }
    100% { transform:scale(1); }
}

/* Responsiivisuussäädöt */


/* Vain desktop */
@media only screen and (min-width: 981px)  {
   h1 span {
      font-size: 36.7%;
      letter-spacing: .05em;
   }
   small {
      font-size: 70%;
   }
   #top-menu li {
      padding-right: 17px;
   }
   /* Virheilmoitus hyväksymättömästä tietosuojaselosteesta */
   span[data-name="tietosuojaseloste"] .wpcf7-not-valid-tip {
      display: inline-block;
      position: absolute;
      width: 206px;
      left: 17vw;    
   }  
   .wpcf7-spinner {
      margin-top: .7rem;
   }
}

/* Vain mobiili */

/* Puhelinkoot */
@media only screen and (max-width: 980px)  {
   h1 span {
      font-size: 20.5%;
   }
   small {
      font-size: 85%;
   }
   .wpcf7-spinner {
      margin-top: .5rem;
   }
   /* ®- ja ™-merkit mobiilissa. */
   sup {
      bottom: .4em;
   }
   /* Lue lisää -tuunaukset */
   #palvelut .et_pb_accordion {
      margin-bottom: 1rem !important;
   }
   /* Complianz-napit erilleen toisistaan mobiilissa. */
   .cmplz-buttons button {
      margin-bottom: .5rem !important;
      display: block !important;
   }
   .cmplz-link.privacy-statement {
      padding-left: 1rem;
   }     
   /* Virheilmoitus hyväksymättömästä tietosuojaselosteesta */
   span[data-name="tietosuojaseloste"] .wpcf7-not-valid-tip {
      display: inline-block;
      position: absolute;
      width: 30vw;
      top: -5vw;
      left: 62vw;
   }   
}


/* Näillä voi jyrätä mobiilimenun värejä. */

/* Hampurilainen */
#main-header .mobile_menu_bar::before {
   color: #fff !important;
}

/* Viiva avatun mobiilivalikon yläreunassa */
.et_mobile_menu {
   border-top: 3px solid #7D2E68;
}

#et_mobile_nav_menu a {
   text-transform: uppercase;
   letter-spacing: 1.5px;
   font-size: .75rem;
   font-weight: 700;
}

/* Korosta tämänhetkinen sivu valikossa myös mobiilissa */
#mobile_menu .current_page_item > a {
   color: #7D2E68;
}

/* Vain mobiili; näyttö pystyasennossa */
@media only screen and (max-width: 980px) and (orientation: portrait) {
   
}

/* Vain mobiili; näyttö vaaka-asennossa */
@media only screen and (max-width: 980px) and (orientation: landscape) {
   
}

@media only screen and (min-width: 1920px) {
   .home #kirsi {
      background-position: right 5vw center !important;
   }
}

@media only screen and (min-width: 1081px) {
   #main-header:not(.et-fixed-header) {
      background: linear-gradient(0deg, rgba(27,29,65,0) 0%, rgba(27,29,65,0.52) 38%, rgba(27,29,65,0.7) 100%);   
      background-color: transparent;
      -moz-box-shadow: 0 1px 0 rgba(0,0,0,0);
      -webkit-box-shadow: 0 1px 0 rgba(0,0,0,0);
      box-shadow: 0 1px 0 rgba(0,0,0,0);
   }
   /* Yläpalkin taustan sumennus */
   #main-header.et-fixed-header {
      -webkit-backdrop-filter: saturate(180%) blur(13px) !important;
      backdrop-filter: saturate(180%) blur(13px) !important;
   }
   /* Sykkivä sydänlogo */
   #logo:hover {
     -webkit-animation:heartBeat 0.8s ease infinite 0s;
     -moz-animation:heartBeat 0.8s ease infinite 0s;
     -o-animation:heartBeat 0.8s ease infinite 0s;
     -ms-animation:heartBeat 0.8s ease infinite 0s;
     animation:heartBeat 0.8s ease infinite 0s;
   }   
}
@media only screen and (max-width: 1080px) {
   #main-header {
      background: linear-gradient(0deg, rgba(27,29,65,0) 0%, rgba(27,29,65,0.52) 38%, rgba(27,29,65,0.7) 100%);   
      background-color: transparent !important;
      -moz-box-shadow: 0 1px 0 rgba(0,0,0,0);
      -webkit-box-shadow: 0 1px 0 rgba(0,0,0,0);
      box-shadow: 0 1px 0 rgba(0,0,0,0);
   }
   /* Sykkivä sydänlogo */
   #logo {
      margin-left: -5vw;
     -webkit-animation:heartBeat 0.8s ease infinite 0s;
     -moz-animation:heartBeat 0.8s ease infinite 0s;
     -o-animation:heartBeat 0.8s ease infinite 0s;
     -ms-animation:heartBeat 0.8s ease infinite 0s;
     animation:heartBeat 0.8s ease infinite 0s;
   }   
}


/********* Kirsi Mikkosen tyylit päättyvät *********/


/* 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;
}

/* SlideFix */
.mfp-title {display:none}

/* Piilota navigaation hakufunktio*/
#et_top_search {display:none!important}

/* 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 */

/* 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);
}

/* Lisää sulkunappi haitareihin. */
.et_pb_accordion_item.et_pb_toggle_open .et_pb_toggle_title:before {
   display: block;
   content: "\e04f";
}

/* Mistä leveydestä alaspäin näytetään hampurilaisvalikko. */
@media only screen and (max-width: 1080px) {
   #top-menu-nav {
      display: none;
   }
   #et_mobile_nav_menu {
      display: block
   }
}

@media only screen and (max-device-width : 980px)  {
    /* Navigaatio seuraa mobiilissa */
   #main-header {
      position:fixed!important;
   }
   /* Mobile menu close icon */
   .mobile_nav.opened .mobile_menu_bar:before {
      content: '\4d';
      -webkit-transition: 0.3s;
      transition: 0.3s;
   }
}

/* Lightbox-näkymän sulkurasti hiukan kirkkaammaksi. */
.mfp-close {
	opacity: .6 !important;
}
.mfp-close:hover {
	opacity: 1 !important;
}
