/*
Theme Name: Kooders Theme
Text Domain: Kooders Theme
Version: 1.0
Description: Kooders Theme
Tags: responsive
Author: Kooders
Author URI: https://www.kooders.fi/
*/
:root {
    /* Base colors */
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #ee3577;
    --red: #dc3545;
    --orange: #FF6600;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #767575;
    --gray-dark: #434242;
    --primary: #6f42c1;
    --secondary: #4f4f4f;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #c2c2c2;
    --lightgray: #eeeeee;
    --dark: #434242;
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    /* Font Sizes */
    --font-normal: 1em;
    --font-small: 0.8125rem;
    /* Theme colors */
    --biodiv-purple: #414099;
    --biodiv-green: #008345;
    --biodiv-lightgreen: #00AC5B;
    --biodiv-light: #FFF;
    --biodiv-dark: #000;
    --biodiv-green-transparent: rgba(0, 131, 69, .1);
    --biodiv-lightgreen-transparent: rgba(0, 172, 91, .1);
    --biodiv-light-transparent: rgba(255, 255, 255, .7);
}

.purple { color: var(--biodiv-purple); }
.purplebg { background-color: var(--biodiv-purple); color: var(--biodiv-light); }

.green { color: var(--biodiv-green); }
.greenbg { background-color: var(--biodiv-green); color: var(--biodiv-light); }

.green-transparent { color: var(--biodiv-green-transparent); }
.green-transparentbg { background-color: var(--biodiv-green-transparent); color: var(--biodiv-dark); }

.lightgreen { color: var(--biodiv-lightgreen); }
.lightgreenbg { background-color: var(--biodiv-lightgreen); color: var(--biodiv-light); }

.lightgreen-transparent { color: var(--biodiv-lightgreen-transparent); }
.lightgreen-transparentbg { background-color: var(--biodiv-lightgreen-transparent); color: var(--biodiv-dark); }

.light-transparentbg { background-color: var(--biodiv-light-transparent); }

body {
    color: var(--biodiv-dark);
    font-family: 'Arvo';
}

a{
    color: var(--biodiv-green);
	text-decoration: underline;
}

.wp-caption {
	max-width: 100%;
}

.custom-logo-wrap .wp-block-image, .custom-logo-wrap .wp-block-image img {
	height: 80px;
	width: auto;
	margin-bottom: 0px;
}

section p:last-child {
    margin-bottom: 0px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--biodiv-green);
    font-family: 'Arvo';
}

.form-control, .form-select {
    border-radius: 0px;
}

.btn {
    font-weight: 700;
    border-radius: 0px;
    transition: all 0.4s ease-in-out;
    text-transform: uppercase;
}

.btn-lg {
    padding: 1.5rem 2rem;
    font-size: 2rem;
}

.btn-primary {
    background-color: var(--biodiv-purple);
    color: var(--biodiv-light);
    border-color: var(--biodiv-purple);
}

.btn-primary:hover, .btn-primary:focus, 
.btn-primary:active {
    background-color: var(--biodiv-purple);
    color: var(--biodiv-light);
    border-color: var(--biodiv-purple);
}

/* Header osio */

.pikalinkkiAlue {
    min-height: 10rem;
}

.pikalinkkiAlue .wp-block-button__link {
    font-weight: 700;
    border-radius: 0px;
    transition: all 0.4s ease-in-out;
    text-transform: uppercase;
    background-color: var(--biodiv-purple);
    color: var(--biodiv-light);
    border-color: var(--biodiv-purple);
    padding: 1.5rem 2rem;
    font-size: 2rem;
}

/* Navbar */

.navbar .custom-logo{
    height: 80px;
    width: auto;
}

.navbar-expand-lg .navbar-nav .nav-link {
    color: var(--biodiv-purple);
    font-size: 1.2rem;
}

.navbar-expand-lg .navbar-nav .active .nav-link,
.navbar-expand-lg .navbar-nav .current_page_parent .nav-link {
    color: var(--biodiv-green);
    text-decoration: underline;
}

li.current_page_item > .dropdown-item, .dropdown-item:active {
    background-color: var(--biodiv-green);
    color: var(--biodiv-light);
}

header.header {
    min-height: 10rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.navbar-expand-lg .navbar-nav .dropdown-menu {
    border-radius: 0px;
}

.navbar-toggler {
    border-radius: 0px;
    border: 2px solid var(--biodiv-dark);
    color: var(--biodiv-dark);
    font-size: 2em;
    padding: 0.25rem 0.55rem;
}

/* Yleisiä elementtejä */

.nostokortti {
    width: 100%;
    height: 100%;
    display: inline-block;
    text-decoration: none;
}

.nostokortti .kuvaAlue {
    min-height: 12rem;
    display: flex;
    color: var(--biodiv-purple);
    font-size: 1.5rem;
    font-weight: 700;
}

.linkkikortti {
    color: var(--biodiv-dark);
    height: calc(100% - 1.5rem);
    display: flex;
}

.linkkikortti .korttisisalto {
	margin-top: auto;
	margin-bottom: auto;
}

.blogikortti a {
    text-decoration: none;
    font-size: 1.3rem;
}

.blogikortti .blog-image {
	padding-top: 70%;
	background-size: cover;
	background-position: center;
}

.wp-block-column .wp-block-image {
    text-align: center;
    position: relative;
    display: inline-block;
    height: 15rem;
    width: 100%;
}

.wp-block-column .wp-block-image img {
	max-height: 100%;
	max-width: 100%;
	width: auto;
	height: auto;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
}

.wp-block-column .wp-block-image figcaption {
	padding-top: 15.5rem;
}

/* Footer */

footer {
    border-top: 3px solid var(--biodiv-green);
    color: var(--biodiv-dark);
}

footer #footerLogo img {
    padding: 0rem 25%;
}

footer .navbar-nav {
    text-align: left;
}

footer .navbar-nav a {
    color: var(--biodiv-purple);
    text-decoration: none;
    padding-top: .25rem;
    padding-bottom: .25rem;
    float: left;
}

footer .navbar-nav .current_page_item a {
    color: var(--biodiv-green);
    text-decoration: underline;
}

/* Footer logojen asettelu */
footer #footerLogot .wp-block-image {
    width: auto;
    height: 100px;
    float: left;
    background-color: #FFF;
    margin: 0.5rem;
}
footer #footerLogot .wp-block-image img {
    width: 100%;
    height: 5rem;
    object-fit: scale-down;
}

.card-img {
	max-height: 300px;
	object-fit: cover;
}


.blog-nav a {
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    padding: 1rem;
    font-weight: bold;
    position: relative
}

.blog-nav a:hover {
    background: var(--secondary);
}

.blog-nav .nav-link-prev {
    border-right: 1px solid var(--secondary);
}

.blog-nav .arrow-prev {
    position: absolute;
    left: 1rem;
    top: 1.25rem;
    color: #fff
}

.blog-nav .arrow-next {
    position: absolute;
    right: 1rem;
    top: 1.25rem;
    color: #fff
}


/* Saavutettavuuspalkki */

.kivassaRivissa {
    display: inline-block;
    margin-right: 2rem;
}

.kivassaRivissa:last-child {
    margin-right: 0px;
}

body.suurempi {
    font-size: 1.5em;
}

body.suurempi .site-info {
    font-size: 23px;
}

body.suurempi .navbar-expand-lg .navbar-nav .nav-link {
    font-size: 1.8rem;
}

body.suurempi #menu-onl-valikko,
body.selkoluku.suurempi .top-bar a {
    font-size: 30px;
}

body.suurempi #nav_menu-2,
body.suurin #nav_menu-2 {
    max-height: unset;
}

body.suurempi .top-bar .widget_nav_menu li ul.sub-menu,
body.suurin .top-bar .widget_nav_menu li ul.sub-menu {
    border: 1px solid black;
}

body.suurempi .top-bar .widget_nav_menu li,
body.suurin .top-bar .widget_nav_menu li {
    margin: 0 20px;
}

body.suurin {
    font-size: 2em;
}

body.suurin .navbar-expand-lg .navbar-nav .nav-link {
    font-size: 2.4rem;
}

body.suurin .site-info {
    font-size: 30px;
}

body.suurin #menu-onl-valikko,
body.selkoluku.suurin .top-bar a {
    font-size: 40px;
}

body.suurin .grid-container,
body.suurempi .grid-container {
    max-width: 1200px;
}

body.selkoluku,
body.selkoluku h1,
body.selkoluku h2,
body.selkoluku h3,
body.selkoluku h4,
body.selkoluku h4.widget-title,
body.selkoluku .site div aside h4.widget-title,
body.selkoluku .sidebar .widget h4.widget-title,
body.selkoluku .top-bar a,
body.selkoluku footer.site-info,
body.selkoluku #text-5,
body.selkoluku .eedee-gutenslider-autocaption,
body.selkoluku li .cat-post-title,
body.selkoluku li.cat-item,
body.selkoluku #rmp-menu-wrap-4913 .rmp-menu-item-link {
    font-family: 'Roboto', sans-serif;
}

body.selkoluku .top-bar a {
    font-size: 1.1rem;
}

body.selkoluku li.cat-item a,
body.selkoluku li .cat-post-title,
body.selkoluku li.cat-item,
body.selkoluku h1,
body.selkoluku h2,
body.selkoluku h3,
body.selkoluku h4,
body.selkoluku h4.widget-title,
body.selkoluku .site div aside h4.widget-title,
body.selkoluku .sidebar .widget h4.widget-title {
    color: var(--biodiv-dark);
}

body.selkoluku .nostokortti .kuvaAlue {
    background: var(--biodiv-light)!important;
    border: 1px solid var(--biodiv-lightgreen);
}

body.selkoluku .light-transparentbg {
    background-color: var(--biodiv-light);
}

body.selkoluku footer.site-info a:hover,
body.selkoluku footer.site-info a:focus,
body.selkoluku footer.site-info a:active {
    color: #FFF;
    text-decoration: underline;
}

body.selkoluku .woocommerce-mini-cart__empty-message,
body.selkoluku li.product .price,
body.selkoluku div.product form.cart .button {
    color: #000 !important;
}

/* Back to Top */
#backToTop {
    position: fixed;
    right: 0px;
    bottom: 20px;
    padding: 10px 15px;
    font-size: 22px;
    background-color: var(--biodiv-purple);
    color: #FFF;
    border-radius: 0px;
    border: 1px solid var(--biodiv-light);
    transition: all 0.3s ease;
    z-index: 100;
}

#backToTop:hover {
    padding: 10px 30px 10px 15px;
}

#backToTop.hiding {
    right: -80px;
}

#backToTop svg {
    height: 30px;
    fill: white;
}

#backToTop:hover svg {
    animation: bouncingIcon 1s;
}

@media (max-width: 1400px) {
    footer #footerLogo img {
        padding-left: 0px;
    }
    
    .blogikortti a {
    	font-size: 1rem;
    }
}

@media (max-width: 991px) {
    .wpml-ls-legacy-list-horizontal {
        width: 100%;
    }

    .pikalinkkiAlue .wp-block-button__link {
        padding: 0.5rem 0.75rem;
        font-size: 1.2rem;
    }

    footer #footerLogo img {
        padding: 0px;
    }

    footer #footerLogot .wp-block-image {
        width: 25%;
        margin: 0px;
    }
}

@media (max-width: 767px) {
    .blogikortti .blog-image {
    	padding-top: 30%;
    }
}

/*
* https://daneden.github.io/animate.css/
*/

@-webkit-keyframes bouncingIcon {
    from,
    20%,
    53%,
    80%,
    to {
        -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    40%,
    43% {
        -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        -webkit-transform: translate3d(0, -15px, 0);
        transform: translate3d(0, -10px, 0);
    }
    
    70% {
        -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        -webkit-transform: translate3d(0, -10px, 0);
        transform: translate3d(0, -5px, 0);
    }
    
    90% {
        -webkit-transform: translate3d(0, -4px, 0);
        transform: translate3d(0, -4px, 0);
    }
}

/* Fonts */
@font-face {
	font-family: 'Arvo';
	src: url('assets/fonts/Arvo-Regular.ttf');
	font-weight: 400;
}

@font-face {
	font-family: 'Arvo';
	src: url('assets/fonts/Arvo-Italic.ttf');
    font-style: italic;
	font-weight: 400;
}

@font-face {
	font-family: 'Arvo';
	src: url('assets/fonts/Arvo-BoldItalic.ttf');
    font-style: italic;
	font-weight: 700;
}

@font-face {
	font-family: 'Arvo';
	src: url('assets/fonts/Arvo-Bold.ttf');
	font-weight: 700;
}