/*
 Theme Name:   Astra Child Theme
 Description:  Customising Astra Child Theme
 Author:       DrKim
 Author URI:   https://qymspace.gitlab.io/portfolio
 Template:     astra
 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:  astra-child
*/

/* Shorted versions of articles */
.summarize {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.button-export {
    align-self: flex-end;
}

.prevent-submit .wp-block-jetpack-contact-form-container,
.wp-block-jetpack-contact-form-container form {
    height: 100% !important;
}

.templates-placeholder {
    display: none !important;
}

form:has(div.additional-instructions) button[type="submit"] {
    display: none !important;
}


/* Search page for desktop */
article.post-640,.search-root-container {
    margin:0px !important;
    padding:0px !important;
}
/*
Search page styling for phones
*/
@media screen and (max-width: 767px) {

    /* Your mobile styles here */
    article.post-640,.search-root-container {
        margin:0px !important;
        padding:0px !important;
    }
    article.post-640 .uagb-ifb-image-content {
        max-width: 64px !important;
        max-height: 64px !important;
    }

    /* Pattern for elements within UAGB root containers */
    .wp-block-uagb-container.uagb-is-root-container [class*="uagb-block-"] {
        padding: 0px !important;
    }

    .wp-block-uagb-container[class*="uagb-block-"] {
        margin: 0px !important;
    }
    
    /* Login page  and membership account page*/
    article.post-661, article.post-654, article.post-657, article.post-658{
        margin:0px 0px !important;
    }


}
/* Special styles for big screen */
@media screen and (min-width: 768px) {
    article.post-661,article.post-654, article.post-657, article.post-658{
        margin:0px 15% !important;
    }
}
@media screen and (max-width: 1200px) {
    /* hide search text and replace with icon */
    .site-logo-img{
        max-width:48px;
    }
}

/* Make the search icon more prominent in pages where astra has shown a mobile menu already*/
nav#ast-mobile-site-navigation ul#ast-hf-mobile-menu li.menu-item:last-child .menu-link {
    max-width: 100px;
    background: #FF9635;
    text-align: center;
    margin-left: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: white !important;
    border-radius: 20px;
}

nav#ast-mobile-site-navigation ul#ast-hf-mobile-menu li.menu-item:last-child:hover .menu-link {
    background-color: #007991;
    color: #FF9635;
}

/* Loader styles */
/* * {
    border: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
} */

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(149, 143, 204, 0.952);
    /* semi-transparent white */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Ensure it's above other content */
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}


/* Add dark mode support for the overlay */
@media (prefers-color-scheme: dark) {
    .loader-overlay {
        background-color: rgba(0, 0, 0, 0.9);
        /* semi-transparent black */
    }
}

:root {
    --hue: 223;
    --bg: hsl(var(--hue), 90%, 90%);
    --fg: hsl(var(--hue), 90%, 10%);
    --primary: hsl(var(--hue), 90%, 50%);
    --trans-dur: 0.3s;
    /* font-size: calc(16px + (32 - 16) * (100vw - 320px) / (2560 - 320)); */
}

body {
    /* background-color: var(--bg);
    color: var(--fg); */
    /* display: flex;
    font: 1em/1.5 sans-serif;
    height: 100vh;
    transition:
        background-color var(--trans-dur),
        color var(--trans-dur); */
}

.bike {
    z-index: 100000 !important;

    display: block;
    /* margin: auto; */
    width: 16em;
    height: auto;
}

.bike__body,
.bike__front,
.bike__handlebars,
.bike__pedals,
.bike__pedals-spin,
.bike__seat,
.bike__spokes,
.bike__spokes-spin,
.bike__tire {
    animation: bikeBody 3s ease-in-out infinite;
    stroke: var(--primary);
    transition: stroke var(--trans-dur);
}

.bike__front {
    animation-name: bikeFront;
}

.bike__handlebars {
    animation-name: bikeHandlebars;
}

.bike__pedals {
    animation-name: bikePedals;
}

.bike__pedals-spin {
    animation-name: bikePedalsSpin;
}

.bike__seat {
    animation-name: bikeSeat;
}

.bike__spokes,
.bike__tire {
    stroke: currentColor;
}

.bike__spokes {
    animation-name: bikeSpokes;
}

.bike__spokes-spin {
    animation-name: bikeSpokesSpin;
}

.bike__tire {
    animation-name: bikeTire;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: hsl(var(--hue), 90%, 10%);
        --fg: hsl(var(--hue), 90%, 90%);
    }
}

/* Animations */
@keyframes bikeBody {
    from {
        stroke-dashoffset: 79;
    }

    33%,
    67% {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -79;
    }
}

@keyframes bikeFront {
    from {
        stroke-dashoffset: 19;
    }

    33%,
    67% {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -19;
    }
}

@keyframes bikeHandlebars {
    from {
        stroke-dashoffset: 10;
    }

    33%,
    67% {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -10;
    }
}

@keyframes bikePedals {
    from {
        animation-timing-function: ease-in;
        stroke-dashoffset: -25.133;
    }

    33%,
    67% {
        animation-timing-function: ease-out;
        stroke-dashoffset: -21.991;
    }

    to {
        stroke-dashoffset: -25.133;
    }
}

@keyframes bikePedalsSpin {
    from {
        transform: rotate(0.1875turn);
    }

    to {
        transform: rotate(3.1875turn);
    }
}

@keyframes bikeSeat {
    from {
        stroke-dashoffset: 5;
    }

    33%,
    67% {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -5;
    }
}

@keyframes bikeSpokes {
    from {
        animation-timing-function: ease-in;
        stroke-dashoffset: -31.416;
    }

    33%,
    67% {
        animation-timing-function: ease-out;
        stroke-dashoffset: -23.562;
    }

    to {
        stroke-dashoffset: -31.416;
    }
}

@keyframes bikeSpokesSpin {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(3turn);
    }
}

@keyframes bikeTire {
    from {
        animation-timing-function: ease-in;
        stroke-dashoffset: 56.549;
        transform: rotate(0);
    }

    33% {
        stroke-dashoffset: 0;
        transform: rotate(0.33turn);
    }

    67% {
        animation-timing-function: ease-out;
        stroke-dashoffset: 0;
        transform: rotate(0.67turn);
    }

    to {
        stroke-dashoffset: -56.549;
        transform: rotate(1turn);
    }
}


/* Search app */
/* Searchbox */
.search-box {
    padding:0px !important;
    margin:0px !important;
}
@media screen and (max-width: 767px){
    /* Dont show left placeholder  */
    .search-box {
        max-width: 100% !important;
    }
}

@media screen and (min-width: 767px){
    /* Dont show left placeholder  */
    .search-box {
        max-width: 75% !important;
        align-self: flex-end !important;
    }

}

/* search input */
.search-input{
    border-width: 3px !important;
    border-style: solid !important;
    border-color: #2b2929 !important;
    background: #FAFAFA !important;
}

/* blog page */
/* Add margin to blog list */
.post-2288 > .entry-content > div > .uagb-container-inner-blocks-wrap{
    margin: 10px 10px!important;
}