/*
 Theme Name:   Vihreät 2022
 Theme URI:    http://vihreat.fi
 Description:  A WordPress theme for Vihreät
 Author:       Vihreät
 Author URI:   http://vihreat.fi
 Template:     Divi
 Version:      1.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

/**
 * 1. Fonts
 */
@font-face {
    font-family: 'Krana Fat';
    font-display: swap;
    font-style: normal;
    font-weight: 1000;
    src: local(""),
    url('assets/fonts/krana_fat_bold.woff') format("woff"),
    url('assets/fonts/krana_fat_bold.ttf') format("ttf"),
    url('assets/fonts/krana_fat_bold.eot') format("eot")
}

@font-face {
    font-family: 'IBM Plex Sans';
    font-display: swap;
    font-style: normal;
    font-weight: 400;
    src: local(""),
    url('assets/fonts/ibm_plex_sans.woff') format("woff"),
    url('assets/fonts/ibm_plex_sans.ttf') format("ttf")
}

@font-face {
    font-family: 'IBM Plex Sans';
    font-display: swap;
    font-style: italic;
    font-weight: 400;
    src: local(""),
    url('assets/fonts/ibm_plex_sans_italic.woff') format("woff"),
    url('assets/fonts/ibm_plex_sans_italic.ttf') format("ttf")
}

@font-face {
    font-family: 'IBM Plex Sans';
    font-display: swap;
    font-style: normal;
    font-weight: 700;
    src: local(""),
    url('assets/fonts/ibm_plex_sans_bold.woff') format("woff"),
    url('assets/fonts/ibm_plex_sans_bold.ttf') format("ttf")
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-display: swap;
    font-style: italic;
    font-weight: 700;
    src: local(""),
    url('assets/fonts/ibm_plex_mono_bold.woff') format("woff"),
    url('assets/fonts/ibm_plex_mono_bold.ttf') format("ttf")
}

/* Set default heading font */
h1, h2, h3, h4, h5, h6,
.bebasneue, .kranafat, .vihreat-otsikko, .vihreat-otsikko > * {
    font-family: Krana Fat, Amiri, sans-serif;
    font-weight: 400;
    line-height: 1;
}

/* Set body font weight from Divi default 500 to normal 400 */
body {
    font-family: IBM Plex Sans, Amiri, Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

/* Set main menu font weight from Divi default 600 to normal 400 */
#main-header .nav a, #main-header .menu a, #main-header .mobile_nav a {
    font-weight: 400;
}

.et_pb_fullwidth_header_subhead {
    font-family: Krana Fat, Amiri, sans-serif;
}

/**
 * 2. Navigations
 */

/* Navigation dropdown padding fix */
.nav li ul.sub-menu, .nav li ul.sub-menu li,
#et-secondary-nav.menu li ul.sub-menu, #et-secondary-nav.menu li ul.sub-menu li {
    padding: 0;
}

.nav ul li a:hover, .et_mobile_menu li a:hover {
    background-color: #fff;
    opacity: 1;
    position: relative;
    transition: all 0.4s ease-in-out 0s;
}

#top-menu a {
    left: 0;
    position: relative;
}

.nav ul li a:hover {
    color: #045a1c !important;
    left: 5px !important;
}

/**
 * 3. Sidebar
 */

/* Custom cta-btn in sidebar widget */
#sidebar .vihreat-cta-btn,
.et_pb_widget_area_right .vihreat-cta-btn {
    color: #284734;
}

#sidebar .vihreat-cta-btn a,
.et_pb_widget_area_right .vihreat-cta-btn a {
    display: inline-block;
    background-color: #fff;
    border-color: #284734;
    border-radius: 2em;
    border-style: solid;
    border-width: 2px;
    color: #284734;
    margin: 0.5em 0;
    padding: 0.5em 0;
    text-align: center;
    width: 100%;
}

#sidebar .vihreat-cta-btn a:hover,
.et_pb_widget_area_right .vihreat-cta-btn a:hover {
    background-color: #284734;
    border-color: #284734;
    border-radius: 2em;
    border-style: solid;
    border-width: 2px;
    color: #fff;
}

/* Style widget title */
#sidebar .widgettitle,
.et_pb_widget_area_right .widgettitle {
    border-bottom: solid 2px;
    margin-bottom: 25px;
}

/* Style widget menu items */
#sidebar .et_pb_widget ul li,
.et_pb_widget_area_right ul li {
    background-color: #ebebec;
    border-left: 3px solid #284734;
    padding: 10px 10px 10px 15px;
}

#sidebar .et_pb_widget ul li:hover,
.et_pb_widget_area_right ul li:hover {
    border-left-color: #009639;
}

/**
 * 4. Logo
 */

/* Fix strange logo grow and menu overlap */
#logo {
    max-width: 200px;
}

/**
 * 9. Miscellaneous
 */

/* Padding fix */
/* Remove this when bug fixed... */
.vihreat-fullwidth-header-p-padding-fix p {
    padding-bottom: 1em;
}

/* Fix a bug with Divi button module: can't set text color using Theme Customizer */
/* Remove this when bug fixed... */
.et_pb_button {
    color: #ffffff !important;
}

#footer-info a {
    font-weight: normal;
    cursor: pointer;
}

@media print {
    .widget_ff_widget {
        display: none;
        visibility: hidden;
    }
}
