/*
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: 18px;
    }
}

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

body {
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    font-optical-sizing: auto;
    scroll-behavior: smooth;
}

li::marker {
    color: var(--wp--preset--color--accent);
}

h1,
h2,
h3 {
    margin: 0.5rem;
}

section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.heading-before {
    position: relative;
    padding-left: 1rem;

}

.hero h2 {
    font-size: clamp(1.75rem, 2vw, 2.25rem) !important;
    font-weight: 800;
    text-transform: none;

}

.heading-before:before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    display: block;
    background-color: var(--wp--preset--color--accent);
}

li a:hover,
.wp-block-navigation ul li a:hover {
    color: var(--wp--preset--color--accent) !important;
}

.wp-block-navigation ul li a {
    position: relative;
}

.wp-block-navigation ul li a:before {
    position: absolute;
    content: "";
    bottom: 2px;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--wp--preset--color--accent);
    transition: width 0.5s ease;
}

.wp-block-navigation ul li a:hover::before {
    width: 100%;
}

#go-to-top {
    position: fixed;
    height: 30px;
    width: 30px;
    bottom: 20px;
    right: 20px;
    background: transparent;
    border: 1px solid var(--wp--preset--color--primary);
    border-radius: 5px;
    z-index: 150;
    cursor: pointer;
}

#go-to-top:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border: solid var(--wp--preset--color--primary);
    border-width: 0 3px 3px 0;
    transform: translate(-50%, -30%) rotate(-135deg);
}

.accent-button a:hover {
    background: var(--wp--preset--color--accent) !important;
    border: var(--wp--preset--color--accent);
}

@media screen and (max-width: 480px) {
    .contact {
        flex-wrap: wrap;
        flex-basis: 90%;
        justify-content: flex-end;
    }

    .service-menu {
        gap: 0.2rem;
    }

    .no-border div {
        border: none;
    }

    .mail a {
        font-size: smaller;
    }

    .mobile-block-row {
        flex-direction: column;
        flex-wrap: wrap;
    }

    .mobile-block-row > .wp-block-columns {
        width: 100%;
    }

    .mobile-padding {
        padding-left: 0 !important;
        padding-right: 0 !important;
        gap: 2rem;
    }

    .hero {
        border-radius: 0 0 0 50px;
    }

    .mobile-radius,
    .radius-figure img {
        border-radius: 10px 50px 10px 50px !important;
    }
}
