/**
Theme Name: SimRacing Kuopio
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simracing-kuopio
Template: astra
*/

/* HEADER */

/* Alavalikon tyylit */

/* Alavalikossa teksti ei ole kirjoitettu isolla */
body header.site-header .sub-menu .menu-item,
body header.site-header #ast-mobile-header .site-navigation .sub-menu .menu-item a {
    text-transform: none;
}

/* MOBIILIVALIKKO */

/* Mobiilivalikossa keskitetään tekstit */
body header.site-header #ast-mobile-header .site-navigation .menu-item a {
    text-align: center;
}

/* Sub-menun togglen tyyli ja sijainti */
body header.site-header #ast-mobile-header .ast-mobile-header-content ul.main-header-menu>li button.ast-menu-toggle {
    border: 0;
    box-shadow: none;
}

body header.site-header #ast-mobile-header .ast-mobile-header-content ul.main-header-menu>li button.ast-menu-toggle .ast-icon svg {
    margin-left: 2px;
}

/* Sub-menun linkkien edestä svg pois */
body header.site-header #ast-mobile-header #ast-mobile-site-navigation .sub-menu > .menu-item > .menu-link > .ast-icon {
    display:none;
}


/* BODY */

/* Estetään elementtien ylivuotaminen sivulta */
body #page {
    overflow: hidden;
}

/* Ylikirjoitetaan Astran omat padding-tyylit */
body #content .ast-container,
body.ast-separate-container #content .ast-container {
    padding-left: 24px;
    padding-right: 24px;
}

body.ast-separate-container #content .ast-container #primary {
    padding: 0;
}

@media only screen and (min-width: 1201px) {
    body.ast-separate-container #page .ast-article-post,
    body.ast-separate-container #page .ast-article-single,
    body.ast-separate-container #page .ast-author-box,
    body.ast-separate-container #page .ast-404-layout-1,
    body.ast-separate-container #page .no-results {
        padding: 2em;
    }
}

@media only screen and (max-width: 1200px) {
    body.ast-separate-container #page .ast-article-post,
    body.ast-separate-container #page .ast-article-single,
    body.ast-separate-container #page .ast-author-box,
    body.ast-separate-container #page .ast-404-layout-1,
    body.ast-separate-container #page .no-results {
        padding: 0;
    }
}

/* PAINIKKEET */

/* Painikkeisiin kevyt animaatio ja varjostus */
body #page .wp-block-button .wp-block-button__link,
body #page .wp-block-uagb-buttons .wp-block-button__link,
body #page .fluentform button.ff-btn,
body #page .wp-element-button,
body #page .form-submit .submit {
    position:relative;
    transition: all .15s ease-in-out;
}

/* HERO */

/* Tehdään hero-osio matalemmaksi isoilla näytöillä */
@media only screen and (min-width: 2000px) {
    body #page .hero-osio > .wp-block-uagb-container {
        min-height: 1080px;
    }
}

/* Heron sisältöosion koon kasvattaminen pienillä tietokonenäytöillä */
@media only screen and (min-width: 977px) and (max-width: 1220px) {
    body #page .hero-osio .hero-sisalto {
        max-width: 75%;
    }
}

/* Rivityksen kieltäminen pienestä koosta ylöspäin */
@media (min-width: 601px) {
    body #page .hero-osio .hero-sisalto .uagb-heading-text {
        hyphens: none;
    }
}

/* Hero-painikkeet */
body #page .hero-osio .hero-sisalto .hero-painikkeet .uagb-buttons-layout-wrap {
    align-items: flex-start;
}

/* PALVELUT */

/* Estetään palvelukuvan päällä olevan otsikon liikkuminen hover-tilassa */
body #page .kehysosio .wp-block-uagb-image.kehyskuva .uagb-image-heading {
    transform: none;
}

/* KUVAKEHYKSET

/* Listäään palvelukuvan leikattuun muotoon varjostus */
body #page .kehysosio .wp-block-uagb-image.kehyskuva {
    position: relative;
    display: inline-block;
    filter: drop-shadow(4px 0px 16px rgba(0,0,0,1));
    width: auto;
}

/* Leikataan palvelukuva haluttuun muotoon */
body #page .kehysosio .wp-block-uagb-image.kehyskuva img {
    display: block;
    clip-path: polygon(20% 0%, 100% 0%, 100% 80%, 80% 100%, 0% 100%, 0% 20%);
}

/* Luodaan pseudo-elementeillä palvelukuville kehykset */
body #page .kehysosio .wp-block-uagb-image.kehyskuva::before {
    content: "";
    position: absolute;
    inset: -5px;
    clip-path: polygon(20% 0%, 100% 0%, 100% 80%, 80% 100%, 0% 100%, 0% 20%);
    background: var(--ast-global-color-8);
    z-index: -1;
}

body #page .kehysosio .wp-block-uagb-image.kehyskuva::after {
    content: "";
    position: absolute;
    inset: -4px;
    clip-path: polygon(20% 0%, 100% 0%, 100% 80%, 80% 100%, 0% 100%, 0% 20%);
    background: var(--ast-global-color-4);
    z-index: -1;
}

/* HEXAT */

/* Siirretään hex-elementtejä oikealle ruudun ulkopuolelle */
@media only screen and (max-width: 766px) {
    body #page .hex-offset-right::before {
        background-position-x: right -80px;
    }
    body #page .hex-offset-left::before {
        background-position-x: left -80px;
    }
}

/* ELLIPSES */

/* Pakotetaan ellipsien absoluuttinen sijainti pysymään rivin sisällä */
body #page .ellipse-rivi {
    position:relative;
}

/* Ellipset nurkissa */
body #page .ellipse-top-left::before {
    content: "";
    position: absolute;
    width: 1080px;
    height: 1080px;
    top: 10%;
    left: 100px;
    transform: translate(-50%, -50%);
    background-image: url('http://simracingkuopio.fi/wp-content/uploads/2026/04/simracing-kuopio-ellipse2.svg');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: -1;
}

body #page .ellipse-bottom-left::before {
    content: "";
    position: absolute;
    width: 1080px;
    height: 1080px;
    bottom: 10%;
    left: 100px;
    transform: translate(-50%, 50%);
    background-image: url('http://simracingkuopio.fi/wp-content/uploads/2026/04/simracing-kuopio-ellipse2.svg');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: -1;
}

body #page .ellipse-top-right::before {
    content: "";
    position: absolute;
    width: 1080px;
    height: 1080px;
    top: 10%;
    right: 100px;
    transform: translate(50%, -50%);
    background-image: url('http://simracingkuopio.fi/wp-content/uploads/2026/04/simracing-kuopio-ellipse2.svg');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: -1;
}

body #page .ellipse-bottom-right::before {
    content: "";
    position: absolute;
    width: 1080px;
    height: 1080px;
    bottom: 10%;
    right: 100px;
    transform: translate(50%, 50%);
    background-image: url('http://simracingkuopio.fi/wp-content/uploads/2026/04/simracing-kuopio-ellipse2.svg');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: -1;
}

/* HINNASTO */

@media only screen and (min-width: 977px) and (max-width: 1199px) {
    body #page .hinnasto-laatikot {
        row-gap: 32px;
        column-gap: 32px;
    }
}

body #page .hinnasto-laatikot .hinta {
    margin-top: auto;
}

/* YHTEYSTIEDOT */
body #page .yhteystiedot .uagb-heading-text {
    color: var(--ast-global-color-8);
}

body #page .yhteystiedot .wp-block-uagb-icon-list .uagb-icon-list__wrap {
    align-items: center;
}

/* LOMAKKEET */

/* Input-kentiltä otetaan pois pakotettu korkeus */
body #page .fluentform input[type="text"], 
body #page .fluentform input[type="number"], 
body #page .fluentform input[type="email"], 
body #page .fluentform input[type="url"], 
body #page .fluentform input[type="password"], 
body #page .fluentform input[type="search"], 
body #page .fluentform input[type=reset], 
body #page .fluentform input[type=tel], 
body #page .fluentform input[type=date], 
body #page .fluentform select {
    height: auto;
}

/* Painikkeiden hover- ja focus-tilan varjon värin korjaus */
body #page .fluentform button.ff-btn:hover,
body #page .fluentform button.ff-btn:focus,
body #page .form-submit .submit:hover,
body #page .form-submit .submit:focus {
    box-shadow: 0px 0px 0px 1px var(--ast-global-color-8);
}

/* Tietosuojaseloste-kohta */
body #page .fluentform .ff-el-tc {
    margin-bottom: 12px;
}

body #page .fluentform .ff-el-tc a {
    color: #ffffff;
}

body #page .fluentform .ff-el-tc a:hover,
body #page .fluentform .ff-el-tc a:focus {
    color: var(--ast-global-color-7);
}

/* MISC */

/* Kappale-lohkossa M- ja L-fonttikoon muuttaminen */
body #page p.has-large-font-size {
    font-size: 24px !important;
}

@media only screen and (max-width: 767px) {
    body #page p.has-large-font-size {
        font-size: 22px !important;
    }
    body #page p.has-medium-font-size {
        font-size: 18px !important;
    }
}

/* Murupolku */

body #page .ast-breadcrumbs .trail-items {
    text-transform: uppercase;
    margin-bottom: 12px;
}

body #page .ast-breadcrumbs .trail-items a {
    color: #ffffff;
}

body #page .ast-breadcrumbs .trail-items a:hover,
body #page .ast-breadcrumbs .trail-items a:focus{
    color: var(--ast-global-color-7);
}


/* FOOTER */

/* Alleviivataan footerissa olevat linkit */
body footer.ast-custom-footer a:not(.wp-block-button__link) {
    text-decoration: underline;
}

/* Tehdään yhteystiedot-sarakkeista vain sisältöjen levyisiä */
body footer.ast-custom-footer .yhteystieto-solut-wrapper > .wp-block-uagb-container {
    width: auto;
}

/* Footerissa desktop-näkymässä yhteystieto-otsikoiden sijoittaminen vasempaan reunaan*/ 

@media only screen and (min-width: 977px) {
    body footer.ast-custom-footer .yhteystieto-solut-wrapper .uagb-heading-text {
        text-align: left;
    }
}


/* Mobiilissa sisältöjen keskitys */
@media only screen and (max-width: 976px) {
    body footer.ast-custom-footer .wp-block-heading,
    body footer.ast-custom-footer p {
        text-align: center;
    }
    body footer.ast-custom-footer .wp-block-social-links {
        justify-content: center;
    }
}