/*
Theme Name: MyFive
Theme URI: https://frontendtanfolyam.hu/
Author: FrontendTanfolyam
Author URI: https://frontendtanfolyam.hu/pocsik-emese-frontend-fejleszto/
Description: Basic Block Theme by Emese Pocsik
Tags: one-column, custom-colors, custom-menu
Version: 1.0
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myfive
*/
@media screen and (max-width: 1199px) {
    body {
        font-size: 16px;
    }
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
}

body.parent-pageid-60 header.wp-block-template-part,
body.parent-pageid-70 header.wp-block-template-part,
body.home header.wp-block-template-part {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

h2.has-text-align-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.pre-heading {
    text-transform: uppercase;
    font-weight: bold;
}

.featured {
    hyphens: auto;
    line-height: 0.8;
    font-family: var(--wp--preset--font-family--heading);
    font-size: 9vw;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #e3e9ff;

    color: transparent !important;
    position: relative;

    width: 100%;
    max-width: 100%;
    margin-bottom: -7vw;



    background-image: linear-gradient(45deg, transparent 37.50%, #d8ddef 37.50%, #d8ddef 50%, transparent 50%, transparent 87.50%, #d8ddef 87.50%, #d8ddef 100%);
    background-size: 5.66px 5.66px;


    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

}

.wp-block-cover .featured {
    mix-blend-mode: overlay;
    opacity: 0.5;
}

.pll-switcher-select {
    margin: 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

iframe {
    margin: 0;
    display: block;
}

header .wp-block-search input {
    margin: 0;
    max-width: 180px;
}

.wp-element-button {
    transition: all 0.2s ease-in-out;
}

.wp-element-button:hover {
    transform: translateY(-3px);
}

.wp-block-button:not(.is-style-outline) .wp-element-button:hover {
    box-shadow: 0 3px 0 0 rgba(0, 0, 0, 0.4);
}

.wp-block-button.is-style-outline .wp-element-button:hover {
    box-shadow: 0 3px 0 0 var(--wp--preset--color--primary);
}

.wp-block-post-template figure {
    overflow: hidden;
}

.wp-block-cover__image-background,
.wp-block-post-template figure a img {
    transition: all 0.3s ease-in-out;
    transform-origin: bottom;
}

.wp-block-cover:has(.wp-block-read-more):hover .wp-block-cover__image-background,
.wp-block-post-template figure a:hover img {
    transform: scale(1.05);
}



@media only screen and (max-width: 1024px) {
    #home-slider .wp-block-cover {
        min-height: auto !important;
        padding: 0 !important;
    }

    #home-slider .wp-block-group {
        xposition: absolute;
        xbottom: -100%;
        height: 100%;
        padding: 1rem !important;
        aspect-ratio: 1;
    }

    #home-slider swiper-slide {
        aspect-ratio: 1;
    }

    header {
        --wp--preset--spacing--l: 1rem;
    }

    header .is-layout-flex {
        gap: 1rem;
    }
}

.language-switcher {
    position: relative;
    cursor: pointer;
}

.language-switcher ul {
    position: absolute;
    left: -1rem;
    margin: 5px 0 0 0;
    padding: 1rem 1rem;
    box-shadow: 0px 0px 2px rgba(85, 85, 100, 0.15), 0 4px 10px rgba(85, 85, 100, 0.15);
    transition-duration: 0.2s !important;
    min-width: max-content !important;
    border: none !important;
    background: #fff;
    z-index: 100;
    color: inherit;
    border-radius: 4px;
}

.language-switcher li {
    list-style: none;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.language-switcher li a {
    color: inherit;
}

.language-switcher img {
    width: 20px;
    height: auto;
    margin-right: 5px;
}

.language-switcher summary {
    list-style: none;
}

.language-switcher summary:hover {
    color: var(--wp--preset--color--primary);
}

.language-switcher summary::-webkit-details-marker {
    display: none;
}

@media screen and (min-width: 1024px) {
    main .is-style-narrow {
        max-width: var(--wp--style--global--wide-size) !important;
    }
}

#services .wp-block-columns .wp-block-group {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.8s ease, opacity 0.8s ease;
}

#services .wp-block-columns .wp-block-cover__inner-container:hover > .wp-block-group {
    max-height: 400px;
    opacity: 1;
}

.wp-block-button.is-style-read-more a {
    padding: 0;
    background: transparent;
}