/*
Theme Name:   Vilkas 2022 - illdy Child Theme
description: >-
A child theme of the illdy
Author: OSG Agency
Author URI: https://osg.fi/
Template: illdy
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
*/

/* Fonts */
@font-face {
    font-family: "Sabotage";
    src: url("/wp-content/themes/illdy2020-child/layout/fonts/PintassilgoPrints-Sabotage.otf"),
        url("/wp-content/themes/illdy2020-child/layout/fonts/PintassilgoPrints-Sabotage.eot"),
        url("/wp-content/themes/illdy2020-child/layout/fonts/PintassilgoPrints-Sabotage.eot?#iefix") format('embedded-opentype'),
        url("/wp-content/themes/illdy2020-child/layout/fonts/PintassilgoPrints-Sabotage.woff") format('woff'),
        url("/wp-content/themes/illdy2020-child/layout/fonts/PintassilgoPrints-Sabotage.ttf") format('truetype');
}

body {
    max-width: 1920px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

[id] {
    scroll-margin-top: 50px;
}

.margin-none {
    margin-left: 0;
    margin-right: 0;
}

a:hover {
    color: #961d82;
}


input[type=submit]:hover {
    background-color: #961d82;
}

p {
    font-size: 1.4em;
    line-height: 140%;
    text-transform: none;
    font-family: franklin-gothic-condensed, sans-serif;
    font-weight: 400;
    color: #215042;
    margin-top: 20px;
}

h1, h2, h3, h4 {
    margin-bottom: 30px;
}


.no-padding {
    padding: 0;
}

/* Navigation */

#header .top-header {
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #fff;
}

#header .top-header .header-navigation > ul {
    margin-top: 0;
}

#header .top-header .header-navigation ul li a {
    font-size: 1.6em;
    font-weight: 700;
    font-family: franklin-gothic-condensed, sans-serif;
    text-transform: uppercase;
    color: #215042;
}

#header .top-header .header-navigation ul li:hover a, #header .top-header .header-navigation ul li:focus-within a {
    color: #97207A;
    text-decoration: none;
}

#header .is-sticky .top-header {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Front page */

#header .bottom-header.front-page {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 90vh;
    padding: 0;
}


#header.header-front-page {
    background-color: #fdfdf5;
}

#header .bottom-header h1 {
    font-family: franklin-gothic-compressed, sans-serif;
    font-size: 3.6em;
    line-height: 1.1em;
    text-transform: uppercase;
    text-rendering: optimizeLegibility;
    font-weight: 700;
    color: #fff;
    text-shadow: 4px 0px 18px #000000;
}

#header .bottom-header h2 {
    font-size: 1.5em;
    font-family: franklin-gothic-condensed, sans-serif;
    color: #215042;
    font-weight: 600;
    line-height: 1.1em;
}

.pelle-pelatti img {
    transform: translate(0%, 8%);
}

.section-title h2.special {
    font-family: "Sabotage";
    font-size: 5em;
    line-height: 1.1em;
    text-transform: uppercase;
    text-rendering: optimizeLegibility;
    font-weight: 400;
    color: #FEFAE5;
}

.section-title h2 {
    font-family: franklin-gothic-compressed, sans-serif;
    font-size: 4em;
    line-height: 1.1em;
    text-transform: uppercase;
    text-rendering: optimizeLegibility;
    font-weight: 700;
    color: #a64892;
}

#header .bottom-header.blog h2 {
    font-family: franklin-gothic-compressed, sans-serif;
    text-transform: uppercase;
    font-size: 4.5em;
    color: #FEFCF4;
    /* text-shadow: 2px 1px 2px rgba(0, 0, 0, 0.3); */
    text-shadow: 4px 0px 18px #000000;
}

#header .bottom-header.blog p {
    font-size: 2em;
    line-height: 1.15;
    color: #FEFCF4;
    text-shadow: 4px 0px 18px #000000;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


.section-title h3,
#header .bottom-header h3 {
    font-size: 2.8em;
    line-height: 1.1em;
    font-family: franklin-gothic-compressed, sans-serif;;
    color: #215042;
    font-weight: 700;
}

.section-description > p {
    color: #fff;
    text-shadow: 4px 0px 18px #000000;
}

/* .section-title h3,
#header .bottom-header.blog h3 {
    color: #215042;
} */



#contact h2 {
    font-size: 2.2em;
    line-height: 140%;
    font-family: "Lato";
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: black;
    font-weight: normal;
}

a {
    color: #215042;
}

.page-template-page-templates {
    background: #fff;
}

#lomake {
    background: #fdfdf4;
}

/* .section-title.lomake h2 {
    color: #FEFAE5;
    font-size: 3em;
    font-family: franklin-gothic-condensed, sans-serif;
    text-transform: none;
} */

/* .section-title.lomake p,
.section-title.reseptit p {
    color: #FEFAE5;
} */

.default-button {
    display: inline-block;
    text-align: center;
    padding: 10px 25px;
    margin: 10px 0;
    border: 2px solid #a64892;
    background: #a64892;
    border-radius: 30px;
    font-size: 1em;
    font-weight: 700;
    color: #FEFAE5;
}

.default-button:hover, .default-button:focus {
    border: 2px solid #a64892;
    background: transparent;
    color:#a64892;
    text-decoration: none;
}

.custom-button {
    display: inline-block;
    text-align: center;
    padding: 10px 25px;
    margin: 10px 0;
    border: 2px solid #215042;
    background: #215042;
    border-radius: 30px;
    font-size: 1em;
    color: #FEFAE5;
}

.custom-button:hover {
    border: 2px solid #FEFAE5;
    background: #215042;
    color: #FEFAE5;
    text-decoration: none;
}

/* div.wpcf7-mail-sent-ok {
    border: none;
    color: black;
    font-size: 1.4em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea {
    width: 100%;
    padding: 5px 10px 20px;
    border: 1px solid #fff;
    outline: 0;
    font-family: "Lato";
    resize: none;
    display: inline-block;
    vertical-align: -webkit-baseline-middle;
    font-size: 1em;
    letter-spacing: 0.04em;
    color: black;
    line-height: 2em;
    background-color: #fff;
}

input::-webkit-input-placeholder,
::-moz-placeholder,
:-ms-input-placeholder,
:-moz-placeholder {
    font-family: "Lato";
    text-transform: uppercase;
    color: black;
    padding-top: 20px;
}

.comment-form #input-submit,
input[type=submit] {
    background-color: #000000;
    padding: 0 60px;
}

.wpcf7-text.product-amount {
    width: 100px;
    padding: 5px 10px 5px;
    line-height: 1em;
    margin-bottom: 10px;
    text-align: center;
}

.wpcf7-text.product-order {
    max-width: 450px;
}


.product-list-submit {
    text-align: center;
}

.product-list-submit>.wpcf7-submit {
    margin-top: 40px;
}

.wpcf7 label {
    color: black;
} */


#reseptit {
    text-align: center;
    background: #fdfdf4;
}

#materiaalit {
    text-align: center;
}

.section-title {
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 60px 0;
}

.section-title figure {
    display: inline-block;
    margin: 5px;
    max-width: 100%;
}


/* Recipes-template */

#header .bottom-header.blog {
    padding: 60px 0 180px;
}

#header.header-blog {
    background-color: #3b3a36;
}

/* .recipes {
    margin: 60px 0px;
} */

.recipe-card {
    position: relative;
    max-width: 300px;
    margin-right: 20px;
    margin-bottom: 10px;
    display: inline-block;
    vertical-align: top;
    text-align: center;
}

.recipe-image {
    position: relative;
}

.recipe-image a {
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 3;
}

.recipe-image img {
    max-width: 100%;
    border: 2px solid #FEFAE5;
}

.recipe-image img.cold {
    position: absolute;
    right: -25px;
    top: -15px;
    height: 120px;
    border: unset;
}

.recipe-image img.veggie {
    position: absolute;
    display: block;
    bottom: -15px;
    background: #fdfdf4;
    border: unset;
    border-top-right-radius: 50px;
    padding: 12px 13px 8px 10px;
    max-width: 130px;
    left: -15px;
}

.recipe-name {
    padding: 1.2em 0 2em;
}

.recipe-name span {
    display: block;
    font-family: franklin-gothic-compressed, sans-serif;
    font-size: 0.9em;
    font-weight: 700;
    text-transform: uppercase;
    color: #2b4c3c;
}

.recipe-name a {
    font-family: franklin-gothic-compressed, sans-serif;
    font-size: 1.8em;
    font-weight: normal;
    color: #2b4c3c;
}

/* Single recipe -tamplate */

.recipes-single {
    margin: 30px 0px 0px;
    display: block;
}

.recipes-single .warm {
    background: #fdfcf3;
    padding: 1.5em 1.5em 4rem;
}

.recipes-single .warm img {
    position: absolute;
    right: 20px;
    top: 40px;
    max-width: 110px;
}

.recipes-single .cold {
    background: #eefbff;
    padding: 2.5em 1.5em 4rem;
}

.recipes-single .cold img {
    position: absolute;
    top: -55px;
    right: 0;
    max-width: 110px;
}

.recipe-servings {
    display: inline-block;
}

.allergies {
    text-align: right;
    padding: 0;
    margin-bottom: 10px;
}

.special {
    display: inline-block;
}

.special img {
    width: auto;
    max-height: 35px;
    padding-left: 5px;
}

/* Materials -template */

#materiaalit {
    background: #fefdf4;
}

#materiaalit img {
    max-width: 100%;
    height: auto;
}

.material-images {
    padding: 30px 0px 10px;
}

.wp-caption-text {
    margin-bottom: 20px;
    margin-top: 10px;
    font-size: 1.2em;
    color: #215042;
    font-family: franklin-gothic-condensed, sans-serif;
}

#materiaalit a:hover {
    color: #961d82;
}

#materiaalit a img:hover {
    outline: 2px solid #961d82;
}

/* Aikataulu */

#aikataulu {
    background-color: #fefdf4;
}

.col-sm-12.schedule {
    margin: 0 auto;
    float: none;
}

.col-sm-12.schedule>p {
    padding: 0 10px;
}

.bg-green {
    background: #215042;
    border: 2px solid #215042;
    display: block;
    margin: 20px auto;
    border-radius: 20px;
    padding: 5px 10px;
}

.bg-green p {
    color: #FEFAE5;
}

.bg-transparent {
    background: transparent;
    border: 3px solid #a64892;
    display: block;
    margin: 0 auto;
    padding: 5px 10px;
}

.bg-transparent-separator {
    width: 55%;
    border-right: 3px solid #a64892;
    height: 20px;
}

.bg-transparent strong {
    color: #a64892;
}

/* Ruokatietäjä */

#ruokatietaja {
    background-position: bottom left;
    padding: 0% 0 50%;
    background-size: cover;
    position: relative;
}

#ruokatietaja:before {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
    background: url("layout/images/front-page/Vilkas-viikko-bg.jpg");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
}

/* Webinaari */

#webinaari {
    background-color: #fefdf4;
}

/* Footer */

.logo {
    margin: 15px 0px 20px;
}

.logo img {
    max-width: 100%;
}

.contact-info:nth-child(1),
.contact-info:nth-child(4) {
    margin: 0px 0px 20px;
}

.contact-info:nth-child(3),
.contact-info:nth-child(5) {
    margin: 0px 0px 30px;
}

.contact-info h2 {
    font-size: 2em;
    line-height: 140%;
    font-family: "Gill Sans UltraBold";
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #FDF8F8;
    font-weight: normal;
    text-align: center;
}

.contact-info p {
    font-size: 1.1em;
    font-family: franklin-gothic-condensed, sans-serif;
    line-height: 140%;
    color: #0F362A;
    margin: 10px 0;
}

.single-contact .widget {
    display: flex;
    justify-content: center;
}

.company-info {
    margin: 75px 0 150px;
    text-align: center;
}

.company-info p {
    line-height: 180%;
    text-transform: uppercase;
}


#footer {
    width: 100%;
    background-color: #fefdf4;
    padding: 40px 0 0px;
}

#footer img {
    max-width: 50%;
}

.bottom-footer {
    padding: 40px 0;
    text-align: center;
    background-color: #242320;
}

a.button {
	background: #961d82;
	margin-bottom: 0;
}

a.button:hover {
	background: #5f0950
}


/* Media queries */

@media only screen and (min-width: 992px) and (max-width: 1200px) {
    #header .top-header .header-navigation ul li a {
        font-size: 1.3em;
    }
}

@media only screen and (min-width: 768px) {
    .recipes-single {
        display: flex;
    }

    .recipes-single .warm,.recipes-single .cold {
        padding: 2.5em;
    }

    .recipes-single .warm {
        margin-right: 15px;
    }

    .recipes-single .warm img {
        max-width: 100%;
    }

    .recipes-single .cold {
        margin-left: 15px;
    }

    .recipes-single .cold img {
        position: absolute;
        top: -75px;
        right: 0;
        max-width: 140px;
    }
}

@media only screen and (min-width: 992px) {
    #header .bottom-header.blog {
        padding: 280px 0 240px;
    }

    .responsive-menu.active>ul {
        display: none;
    }

    .col-sm-12.schedule {
        max-width: 70%;
    }

    body #header .bottom-header.blog .category:before {
        border-width: 0px 15px 46px 0px;
        margin-left: -35px;
        margin-top: -10px;
    }

}

@media only screen and (max-width: 1200px) {
    .pelle-pelatti img {
        max-width: 95%;
        transform: translate(5%, 45%);
    }
}

@media only screen and (max-width: 992px) {
    .open-responsive-menu {
        padding: 15px;
    }

    .open-responsive-menu .fa {
        color: #215042;
    }

    .open-responsive-menu:focus .fa {
        color: #961d82;
    }

    .responsive-menu ul li a {
        width: 100%;
        padding: 12px;
        display: block;
        border-bottom: 1px solid #809880;
        background: rgba(33, 80, 66, 0.9);
        font-family: franklin-gothic-condensed, sans-serif;
        font-size: 1.4em;
        text-transform: uppercase;
        color: #FCFAFA;
        text-align: center;
    }

    .responsive-menu ul li a:hover {
        background: rgba(150, 29, 130, 0.8);
    }

    .header-has-sticky-menu .responsive-menu {
        margin-top: 0;
        overflow-y: hidden;
        background: transparent;
    }

    #header .top-header {
        padding-top: 0px;
        padding-bottom: 0px;
    }

    #header .top-header img {
        max-height: 50px;
    }

    body #header .bottom-header {
        padding-top: 3%;
        padding-bottom: 25%;
    }

    .pelle-pelatti img {
        max-width: 100%;
        transform: translate(30%, 80%);
    }

    body #header .bottom-header h1 {
        font-size: 3.6em;
        line-height: 130%;
    }


    body #header .bottom-header h2 {
        font-size: 1.3em;
        line-height: 120%;
    }

    .section-title h2,
    .section-title.lomake h2,
    .contact-info h2 {
        font-size: 2.4em;
    }

    .section-title h2.special {
        font-size: 3em;
    }

    p {
        font-size: 1.2em;
    }


}



@media only screen and (max-width: 767px) {

    body #header .bottom-header {
        padding-top: 10%;
        padding-bottom: 5%;
    }

    .pelle-pelatti img {
        max-width: 40%;
        transform: translate(0%, 8%);
    }

    #header .bottom-header.blog {
        padding: 60px 0 100px;
    }

    body #header .bottom-header h1 {
        font-size: 2.5em;
        line-height: 130%;
    }

    p {
        font-size: 1.1em;
    }

    .section-title {
        padding: 20px 0;
    }

    body #header .bottom-header h2 {
        font-size: 1.2em;
    }

    .section-title h2,
    .section-title.lomake h2,
    .contact-info h2 {
        font-size: 1.9em;
        line-height: 100%;
    }

    #header .bottom-header.blog h2 {
        font-size: 1.6em;
    }

    #header .bottom-header.blog p {
        font-size: 1.2em;
    }

    .section-title h3,
    #header .bottom-header h3 {
        font-size: 1.6em;
    }

    #contact h2 {
        font-size: 1.6em;
    }

    .recipe-name a {
        font-size: 1.5em;
        line-height: 100%;
    }

    #footer {
        text-align: center;
    }
}

@media only screen and (max-width: 425px) {

    body #header .bottom-header {
        padding-top: 3%;
        padding-bottom: 5%;
    }

    .pelle-pelatti img {
        max-width: 65%;
        transform: translate(0%, 8%);
    }

    #header .bottom-header.blog {
        padding: 60px 0 100px;
    }

    body #header .bottom-header h1 {
        font-size: 2.5em;
        line-height: 130%;
    }

    p {
        font-size: 1.1em;
    }

    .section-title {
        padding: 20px 0;
    }

    .section-title h2,
    .section-title.lomake h2,
    body #header .bottom-header h2,
    .contact-info h2 {
        /* font-size: 1.5em; */
        line-height: 100%;
    }

    .section-title h2.special {
        font-size: 2em;
    }

    /* #header .bottom-header.blog h2 {
        font-size: 1.6em;
    }

    .section-title h3,
    #header .bottom-header h3 {
        font-size: 1.2em;
    } */

    .section-title p,
    .contact-info p,
    .header_description,
    div.wpcf7-mail-sent-ok,
    #kiitos p,
    #kiitos>ul {
        font-size: 1em;
        line-height: 115%;
    }

    #contact h2 {
        font-size: 1.6em;
    }

    .recipe-card {
        margin-right: 0;
    }

    .recipe-card .recipe-cold {
        right: 10px;
    }

    .recipe-card .recipe-cold img {
        height: 90px;
    }

    .recipe-name {
        padding: 0.7em 0;
    }

    .recipe-name a {
        font-size: 1.1em;
        line-height: 100%;
    }

    /* .bottom>p {
        padding: 5px 0px 10px;
        font-size: 0.8em;
    } */

}


@media only screen and (min-width: 1200px) {

#header .bottom-header.blog {
    padding: 340px 0 230px;
}

#header .bottom-header.blog h2 {
    max-width: 60%;
    margin: 0 auto
}

.recipes-single .warm,.recipes-single .cold {
    padding: 3.5em;
}

}
