﻿/*
 Theme Name: Carlos
 Template:     Divi
 Version:      6.8.0.7
 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
*/


/********** Metsäpalvelu Nissisen tyylit *************/

body { backgound-color: rgba(44,55,19); }

/* Valitun (eli hiirellä maalatun) tekstin väri. */
::-moz-selection {
   color: #fff;
   background: #476325;
}
::selection {
   color: #fff;
   background: #476325;
}

/* Älä salli sivuttaisskrollausta pääsisältöalueessa. */
#et-main-area {
   overflow-x: hidden;
}

/* Pääotsikon alaotsikko h1:n sisällä.
   Tee alaotsikko h1:n sisälle span-tagilla. */
h1 span {
   display: block;
}

#et-main-area {
   position: absolute;
   width: 100%;
   top: 0;  
}

/* Tee yläpalkin sisään- ja ulosfeidauksesta pehmeämpää */
#main-header, #main-header li a, .et_pb_toggle_title, .et_pb_toggle_title::before {
   transition: all .3s linear !important;
   /* Palkin varjo pois. */
/* box-shadow: none; */
}

/* Yläpalkin taustan sumennus */
#main-header.et-fixed-header {
   backdrop-filter: saturate(180%) blur(13px);
}

#main-header:not(.et-fixed-header) {
   background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 48%, rgba(0,0,0,0.5) 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);
}
#main-header:not(.et-fixed-header) #top-menu a {
   color: #fff !important;
   text-shadow: 0.04em 0.04em 0.12em rgba(0,0,0,0.8);
}
#main-header:not(.et-fixed-header) #logo {
   opacity: 0;
   pointer-events: none;
}

/* 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;
  font-family: 'Newsreader',Georgia,"Times New Roman",serif;
}

/* Alavalikko leveämmäksi */
#top-menu .sub-menu {
   width:  360px !important;
}
#top-menu li li a {
   width: 100%;
}
.sub-menu li {
   min-width: 180px;
}


/* Piilota gallerian kuvalaskuri- ja tekstipalkki */
.mfp-bottom-bar { display: none }


/* Responsiivisuussäädöt */


/* Vain desktop */
@media only screen and (min-device-width : 981px)  {
   h1 img {
      width: 36%;
   }
   h1 span {
      font-size: 20%;
      line-height: 1.05;
   }   
   .align_center {
      align-items: center;
      display: flex;
   }
   .align_end {
      align-items: flex-end;
      display: flex;
   }       
}

/* Vain mobiili */

@media only screen and (max-device-width : 980px)  {
   #logo {
      transform: scale(1.24);      
      -webkit-transform:scale(1.24, 1.24);       
   }   
   h1 img {
      width: 60%;
   }
   h1 span {
      font-size: 50%;
      line-height: 1.4em;
      margin-top: 1rem;
   }   
}

/* Mistä leveydestä alaspäin näytetään hampurilaisvalikko.
   Vaihda default-arvoa 980 tarpeen mukaan. */
@media only screen and (max-width: 1280px) {
   #top-menu-nav {
      display: none;
   }
   #et_mobile_nav_menu {
      display: block
   }
}

/* Näillä voi jyrätä mobiilimenun värejä. */

/* Hampurilainen */
.mobile_menu_bar::before {
   color: #fff !important;
}

/* Viiva avatun mobiilivalikon yläreunassa */
.et_mobile_menu {
   border-top: 3px solid #476325;
}


/* Vain mobiili; näyttö pystyasennossa */
@media only screen and (max-device-width : 980px) and (orientation: portrait) {
   
}

/* Vain mobiili; näyttö vaaka-asennossa */
@media only screen and (max-device-width : 980px) and (orientation: landscape) {
   
}


/********** Metsäpalvelu Nissisen 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: 1280px) {
   #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;
}
