:root {
    --header-bar: 60px;
    --font-stack-text: "Open Sans", Helvetica, Arial, sans-serif;
    --font-stack-heading: "Oswald", Helvetica, Arial, sans-serif;

    /* For Chinese sites use system font:
    --font-stack-text: "PingFang TC","Noto Sans TC","微軟正黑體", Arial, sans-serif;
     */

    /* Desktop */
    --custom-title-1-default: 3.052rem;
    --custom-title-2-default: 2.441rem;
    --custom-title-3-default: 1.953rem;
    --custom-title-4-default: 1.563rem;
    --custom-title-5-default: 1.25rem;
    --custom-title-6-default: 1rem;

    /* Tablet */
    --custom-title-1-1365-max: 2.5rem;
    --custom-title-2-1365-max: 2rem;
    --custom-title-3-1365-max: 1.6rem;
    --custom-title-4-1365-max: 1.3rem;
    --custom-title-5-1365-max: 1.1rem;
    --custom-title-6-1365-max: 1rem;

    /* Mobile */
    --custom-title-1-767-max: 2.2rem;
    --custom-title-2-767-max: 1.8rem;
    --custom-title-3-767-max: 1.5rem;
    --custom-title-4-767-max: 1.2rem;
    --custom-title-5-767-max: 1rem;
    --custom-title-6-767-max: 1rem;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-stack-text);
    font-size: 20px;
    color: black;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
    background: #ffffff;
    line-height: 1.5em;
}

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

    html,
    body {
        font-size: 18px;
    }
}

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

    html,
    body {
        font-size: 16px;
    }
}

p,
input,
textarea,
button,
form,
label,
option,
select {
    outline: 0;
    font-size: 1rem;
}

.elementor-editor-active p {
    /* body font in elementor needs this */
    font-size: 1rem;
}

b,
strong {
    font-weight: 600;
}

a:focus {
    outline: none;
    box-shadow: none;
}

blockquote {
    background-color: black;
    color: white;
    padding: 10px;
}

/* Some sites might need this for the overflow problem */
body > div[data-elementor-post-type="page"] {
    overflow-x: hidden;
}

/* Make hero 100% on mobile */
@media screen and (max-width: 767px) {
    .hero-section {
        height: calc(100svh - var(--header-bar));
        min-height: 0;
    }
}

/* Headings style */
.custom-title-1 h1,
.custom-title-1 h2,
.custom-title-1 h3,
.custom-title-1 h4,
.custom-title-1 h5,
.custom-title-1 h6,
.custom-title-1 span,
.custom-title-1 p {
    font-size: var(--custom-title-1-default);
    font-weight: 500;
    font-family: var(--font-stack-heading);
    line-height: 1.2em !important;
}

.custom-title-2 h1,
.custom-title-2 h2,
.custom-title-2 h3,
.custom-title-2 h4,
.custom-title-2 h5,
.custom-title-2 h6,
.custom-title-2 span,
.custom-title-2 p {
    font-size: var(--custom-title-2-default);
    font-weight: 500;
    font-family: var(--font-stack-heading);
    line-height: 1.2em !important;
    letter-spacing: 0.02em;
}

.custom-title-3 h1,
.custom-title-3 h2,
.custom-title-3 h3,
.custom-title-3 h4,
.custom-title-3 h5,
.custom-title-3 h6,
.custom-title-3 span,
.custom-title-3 p {
    font-size: var(--custom-title-3-default);
    font-weight: 500;
    font-family: var(--font-stack-heading);
    line-height: 1.5em !important;
}

.custom-title-4 h1,
.custom-title-4 h2,
.custom-title-4 h3,
.custom-title-4 h4,
.custom-title-4 h5,
.custom-title-4 h6,
.custom-title-4 span,
.custom-title-4 p {
    font-size: var(--custom-title-4-default);
    font-weight: 500;
    font-family: var(--font-stack-heading);
    line-height: 1.5em !important;
}

.related-product .custom-title-4 p {
    font-size: 1.2rem;
}

.custom-title-5 h1,
.custom-title-5 h2,
.custom-title-5 h3,
.custom-title-5 h4,
.custom-title-5 h5,
.custom-title-5 h6,
.custom-title-5 span,
.custom-title-5 p {
    font-size: var(--custom-title-5-default);
    font-weight: 600;
    line-height: 1.5em !important;
    font-family: var(--font-stack-heading);
}

.custom-title-6 h1,
.custom-title-6 h2,
.custom-title-6 h3,
.custom-title-6 h4,
.custom-title-6 h5,
.custom-title-6 h6,
.custom-title-6 span,
.custom-title-6 p {
    font-size: var(--custom-title-6-default);
    line-height: 1.5em !important;
    font-weight: 400;
    font-family: var(--font-stack-heading);
}

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

    .custom-title-1 h1,
    .custom-title-1 h2,
    .custom-title-1 h3,
    .custom-title-1 h4,
    .custom-title-1 h5,
    .custom-title-1 h6,
    .custom-title-1 span,
    .custom-title-1 p {
        font-size: var(--custom-title-1-1365-max);
    }

    .custom-title-2 h1,
    .custom-title-2 h2,
    .custom-title-2 h3,
    .custom-title-2 h4,
    .custom-title-2 h5,
    .custom-title-2 h6,
    .custom-title-2 span,
    .custom-title-2 p {
        font-size: var(--custom-title-2-1365-max);
    }

    .custom-title-3 h1,
    .custom-title-3 h2,
    .custom-title-3 h3,
    .custom-title-3 h4,
    .custom-title-3 h5,
    .custom-title-3 h6,
    .custom-title-3 span,
    .custom-title-3 p {
        font-size: var(--custom-title-3-1365-max);
    }

    .custom-title-4 h1,
    .custom-title-4 h2,
    .custom-title-4 h3,
    .custom-title-4 h4,
    .custom-title-4 h5,
    .custom-title-4 h6,
    .custom-title-4 span,
    .custom-title-4 p {
        font-size: var(--custom-title-4-1365-max);
    }

    .custom-title-5 h1,
    .custom-title-5 h2,
    .custom-title-5 h3,
    .custom-title-5 h4,
    .custom-title-5 h5,
    .custom-title-5 h6,
    .custom-title-5 span,
    .custom-title-5 p {
        font-size: var(--custom-title-5-1365-max);
    }

    .custom-title-6 h1,
    .custom-title-6 h2,
    .custom-title-6 h3,
    .custom-title-6 h4,
    .custom-title-6 h5,
    .custom-title-6 h6,
    .custom-title-6 span,
    .custom-title-6 p {
        font-size: var(--custom-title-6-1365-max);
    }
}

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

    .custom-title-1 h1,
    .custom-title-1 h2,
    .custom-title-1 h3,
    .custom-title-1 h4,
    .custom-title-1 h5,
    .custom-title-1 h6,
    .custom-title-1 span,
    .custom-title-1 p {
        font-size: var(--custom-title-1-767-max);
    }

    .custom-title-2 h1,
    .custom-title-2 h2,
    .custom-title-2 h3,
    .custom-title-2 h4,
    .custom-title-2 h5,
    .custom-title-2 h6,
    .custom-title-2 span,
    .custom-title-2 p {
        font-size: var(--custom-title-2-767-max);
    }

    .custom-title-3 h1,
    .custom-title-3 h2,
    .custom-title-3 h3,
    .custom-title-3 h4,
    .custom-title-3 h5,
    .custom-title-3 h6,
    .custom-title-3 span,
    .custom-title-3 p {
        font-size: var(--custom-title-3-767-max);
    }

    .custom-title-4 h1,
    .custom-title-4 h2,
    .custom-title-4 h3,
    .custom-title-4 h4,
    .custom-title-4 h5,
    .custom-title-4 h6,
    .custom-title-4 span,
    .custom-title-4 p {
        font-size: var(--custom-title-4-767-max);
    }

    .custom-title-5 h1,
    .custom-title-5 h2,
    .custom-title-5 h3,
    .custom-title-5 h4,
    .custom-title-5 h5,
    .custom-title-5 h6,
    .custom-title-5 span,
    .custom-title-5 p {
        font-size: var(--custom-title-5-767-max);
    }

    .custom-title-6 h1,
    .custom-title-6 h2,
    .custom-title-6 h3,
    .custom-title-6 h4,
    .custom-title-6 h5,
    .custom-title-6 h6,
    .custom-title-6 span,
    .custom-title-6 p {
        font-size: var(--custom-title-6-767-max);
    }
}

/* Kenburns effect */

.elementor-widget-image.animate.kenburn.active .elementor-widget-container {
    overflow: hidden;
}

.elementor-widget-image.animate.kenburn.active picture,
.elementor-widget-image.animate.kenburn.active img {
    animation: kenburns 20s ease-in-out both;
}

@keyframes kenburns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }
}

/* Adjust Elementor transitions */

@keyframes customfadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -10%, 0);
        /* less movement for subtler effect */
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes customfadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-10%, 0, 0);
        /* less movement for subtler effect */
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes customfadeInRight {
    from {
        opacity: 0;
        transform: translate3d(10%, 0, 0);
        /* less movement for subtler effect */
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes customfadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 10%, 0);
        /* less movement for subtler effect */
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.fadeInDown {
    animation-name: customfadeInDown !important;
}

.fadeInLeft {
    animation-name: customfadeInLeft !important;
}

.fadeInRight {
    animation-name: customfadeInRight !important;
}

.fadeInUp {
    animation-name: customfadeInUp !important;
}
