/*
Theme Name: coloring theme
Author: #
Author URI: #
Description: coloring theme for coloring pages
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

html {
    scroll-behavior: smooth;
}


/* Animate.css basic animations */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeIn {
    animation-name: fadeIn;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__delay-1s {
    animation-delay: 0.2s;
}

.animate__delay-2s {
    animation-delay: 0.4s;
}

.animate__delay-3s {
    animation-delay: 0.6s;
}

.animate__delay-4s {
    animation-delay: 0.8s;
}


/* First block full screen section */

#first-block {
    height: calc(100vh - 86px);
    /* Exact header height adjustment */
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

#first-block .overlay {
    z-index: 1;
}

#first-block .container {
    z-index: 2;
}

#first-block .btn-primary {
    z-index: 3;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}


/* Scroll button animation */

.scroll-btn {
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

.scroll-btn:hover {
    transform: translateY(5px);
}
}

body {
    font-family: 'Lato', sans-serif !important;
    /* background-color managed by Theme Config → theme_config_dynamic_css() */
}

.navbar-brand,
h1,
h2,
h3 {
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

h2 {
    position: relative;
    line-height: 2rem !important;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: coral;
    border-radius: 2px;
}

.navbar-nav .dropdown-toggle::after {
    border: none !important;
}

.alignleft {
    float: left;
    margin: 10px;
}

.navbar-nav .nav-link,
.navbar-nav .dropdown-toggle {
    position: relative;
}

.navbar-nav .nav-link::after,
.navbar-nav .dropdown-toggle::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #0d6efd;
    transition: width 0.3s ease, left 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .dropdown-toggle:hover::after {
    width: 100%;
    left: 0;
}

.rank-math-breadcrumb p {
    margin: 0;
}

/* .btn-primary colors managed by Theme Config → theme_config_dynamic_css() */


/* Scroll to top button */

/* First #scrollToTop block - colors managed by Theme Config → theme_config_dynamic_css() */

#scrollToTop.show {
    opacity: 1;
}

#scrollToTop.hide {
    opacity: 0;
}

@media (max-width:769px) {
    .alignleft {
        float: unset;
        display: flex;
        margin: auto;
    }
}

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

.aligncenter {
    margin: auto;
}

.aligncenter,
.alignnone {
    display: grid;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    max-width: var(--max-width);
    margin: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 1.25rem;
    max-width: var(--max-width);
    margin: auto;
}

.position-md-absolute {
    position: static;
}

.translate-md-middle {
    transform: unset;
}

@media (min-width: 768px) {
    .position-md-absolute {
        position: absolute !important;
    }
    .translate-md-middle {
        transform: translate(-50%, -50%) !important;
    }
}

.social-icons a {
    text-decoration: none;
}

.social-icons a[aria-label="facebook"] i {
    color: #1877F2;
}

.social-icons a[aria-label="pinterest"] i {
    color: #E60023;
}

.social-icons a[aria-label="youtube"] i {
    color: #FF0000;
}

.social-icons a[aria-label="instagram"] i {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-icons a[aria-label="deviantArt"] i {
    color: #05CC47;
}

.social-icons a[aria-label="tiktok"] i {
    color: #000000;
}

.social-icons a:hover i {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.social-icons {
    text-align: center;
}

.social-icons a {
    margin: 10px;
    transition: all 0.3s ease;
}

.social-icons i {
    font-size: 2rem;
}

.toggle-icon {
    transition: transform .3s ease;
}

button.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.collapsed-content {
    max-height: 70px;
    overflow: hidden;
    position: relative;
}

.collapsed-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(rgba(255, 255, 255, 0), white);
}

.read-more-btn .arrow-icon {
    display: inline-block;
    margin-left: 0.3em;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.read-more-btn.expanded .arrow-icon {
    transform: rotate(180deg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .6rem;
    max-width: var(--max-width);
    margin: auto;
}


/* Scroll-to-Top button */

#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
    z-index: 1000;
}

#scrollToTop.show {
    display: flex;
    opacity: 1;
}

#scrollToTop.hide {
    opacity: 0;
}

.chev {
    display: inline-block;
    transition: transform 200ms ease;
}

[aria-expanded="true"] .chev {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    .chev {
        transition: none;
    }
}

.svg-box {
    position: relative;
    cursor: pointer;
}


/* Black overlay */

.svg-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.25s ease;
    pointer-events: none;
}

.svg-box:hover::after {
    background: rgba(0, 0, 0, 0.5);
    /* 50% black */
}


/* Fly button */

.svg-box .coloring-fly {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    border: 0;
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
    transform: translate(-20px, -20px) scale(.6);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s ease, opacity .2s ease;
    z-index: 2;
    /* above overlay */
}

.svg-box:hover .coloring-fly {
    transform: translate(calc(130% - 24px), calc(180% - 24px)) scale(1);
    opacity: 1;
    pointer-events: auto;
}