/*
Theme Name:   MMAA
Theme URI:    http://www.municipaladministrators.ca/
Description:  Customify Child Theme
Author:       Modern Earth
Author URI:   http://moderneath.net
Template:     customify
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain:  customifychild
*/

/* Some styles are located in the mmaa plugin (public/css) */

/* Some styles are also found in the mmaa plugin */

.content-area p,
.entry-content li {
    max-width: 80ch;


}

.content-area p {
    margin-left: 0;
    margin-right: 0;
}

a {
    text-decoration: underline;
}

nav a,
.readmore-button,
.icon-box-item a,
.cart-item-link {
    text-decoration: none;
}

/* Header */
.primary-menu-ul>.menu-item {
    text-shadow: 1px 1px 3px black;
}

.sub-menu {
    text-shadow: none;
}

.header-search_icon-item svg {
    filter: drop-shadow(1px 1px 1px rgb(0 0 0));
}

/* Page headers */
.page-cover-title {
    text-shadow: 2px 2px 8px var(--black);

}

.header-menu-sidebar.dark-mode .nav-menu-mobile .menu li a:hover {
    color: black;
}

@media (max-width:568px) {
    #page-cover .page-cover-title {
        font-size: 32px;
        text-align: center;
    }
}

.page-cover {
    margin-bottom: 50px;
}

.page-cover::after {
    content: "";
    display: block;
    width: 100%;
    height: calc((100vw * 225) / 2560);
    background-image: url(/wp-content/uploads/2022/10/header-bg-1.png);
    background-size: 100% calc((100vw * 225) / 2560);
    background-repeat: no-repeat;
    background-position: bottom;
    position: relative;
    z-index: 1;
    margin-top: calc((100vw * 225) / 2560 * -1);
}

@media(max-width: 600px) {
    #page-cover {
        background-image: url("https://municipaladministrators.ca/wp-content/uploads/2024/02/banner-default-mobile.webp") !important;
    }
}

/* Buttons */
.wp-block-button__link,
button,
.button,
input[type="submit"],
.wp-block-file__button,
.pmpro_btn {
    border-radius: 8px !important;
    text-transform: uppercase !important;
    font-weight: bold;
    text-decoration: none !important;
}

.wp-block-button:not(.istyle-outline) .wp-block-button__link:hover,
button:hover,
.button:not('.button-outline'):hover,
input[type="submit"]:hover,
.wp-block-file__button:hover,
.tribe-events-c-subscribe-dropdown__button:hover {
    background-color: var(--dark-green) !important;

}

.tribe-events-c-top-bar__nav-link--next,
.tribe-events-c-top-bar__nav-link--prev,
.tribe-events-c-top-bar__nav-link--next:hover,
.tribe-events-c-top-bar__nav-link--prev:hover,
.tribe-events-c-top-bar__nav-link--next,
.tribe-events-c-nav__next[disabled]:hover,
.tribe-events-c-nav__prev[disabled]:hover {
    background-color: transparent !important;
    box-shadow: none !important;
}

.tribe-tickets__rsvp-form-buttons .tribe-common-c-btn {
    padding-top: 0;
    padding-bottom: 0;
}

.button-outline,
.tribe-tickets__rsvp-form-button--cancel {
    background-color: white !important;
    color: var(--dark-blue) !important;
    border: 1px solid var(--dark-blue) !important;
    font-size: 0.8rem;
}

.button-outline:hover {
    background-color: white !important;
    color: var(--dark-green) !important;
    border: 1px solid var(--dark-green) !important;
    font-size: 0.9rem;
    box-shadow: none !important;
}

.mce-widget button,
._minus._button button,
._down._button button,
._up._button button,
.mce-close {
    background-color: white !important;
    border-radius: 2px !important;
    box-shadow: inset 0 0 0 120px rgba(0, 0, 0, .0.5);
    border: 1px outset var(--light-gray);
    color: rgb(89, 89, 89) !important;
}

.mce-widget button:hover,
._minus._button button:hover,
_.down._button button:hover,
_.up._button button:hover,
.mce-close:hover {
    box-shadow: inset 0 0 0 120px rgba(0, 0, 0, .1) !important;
    color: rgb(89, 89, 89) !important;

}

a.wp-element-button {
    color: white;
    text-decoration: none;
}

/* Footer  */
.site-footer {
    background-image: url(/wp-content/uploads/2022/11/ftBG.jpg);
    background-color: var(--dark-blue);
    background-position: top center;
    background-size: cover;
}

@media(max-width: 600px) {
    .site-footer {
        background-image: url(/wp-content/uploads/2024/02/ftBG-mobile.jpg);
        background-size: auto;

    }
}

.site-footer::before {
    background-image: url(/wp-content/uploads/2022/10/wave-footer.png);
    content: "";
    display: inline-block;
    width: 100%;
    height: calc((100vw * 150) / 2560);
    background-size: 100% calc((100vw * 150) / 2560);
    background-repeat: no-repeat;
    background-position: top;
    position: relative;
    z-index: 1;

}

.site-footer .widget-area .widget_block {
    margin-bottom: 0.5em;
}

.site-footer .widget-area .widget_block h2 {
    margin-bottom: 1em;
}

.widget-area .widget .wp-block-social-links li {
    margin-bottom: 0;
}

/* the homepage */
.entry-content li.wp-block-post {
    margin-left: 0;
}

.tribe-events-widget-events-list__view-more-link.tribe-common-anchor-thin {
    font-size: 1rem;
    text-decoration: underline;
    border-bottom: 0 !important;
}

.tribe-events-widget-events-list__view-more-link.tribe-common-anchor-thin:hover {
    border-bottom: 0 !important;
    color: var(--dark-green) !important;
    text-decoration: underline;

}

.item--wc_cart .cart-icon .cart-qty .customify-wc-total-qty {
    background-color: var(--green) !important;
}

/* directory avatars */
.pmpro_member_directory_avatar img {
    object-fit: cover;
    object-position: top;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
}

/* registry tables */
.table-wrapper {
    clear: both;
}

.dataTables_wrapper .dataTables_length label {
    display: flex;
    gap: 1em;
    align-items: baseline;
    margin-top: 1em;
}


.dataTables_wrapper .dataTables_length label select {
    min-width: 4em;
}

.dataTables_filter {
    margin-bottom: 1em;
    margin-top: -1em;
}


/* new credit system */
.credit-prompt textarea {
    height: 6.5rem;
}

table.add-credits td,
table.add-credits th {
    padding: 1em 0.5em
}

col {
    min-width: 6em;
}

col.credit-category,
col.credit-prompt {
    min-width: 10em;
}

col.credit-length {
    width: 8em;
}

col.credit-delete {
    min-width: 4em;
}

.add-credits [readonly] {
    opacity: 0;
}

.add-credits textarea {
    min-height: 0;
}

.add-credits select {
    margin-bottom: 5px;
}

.wp-block-table table {
    box-sizing: border-box;
}

/* Accordion CSS */
.wp-block-themeisle-blocks-accordion {
    border: 1px solid black;
    margin: 1em 0;
}

.wp-block-themeisle-blocks-accordion:not(.is-style-default) .wp-block-themeisle-blocks-accordion-item__title {
    border: var(--border-width) var(--border-style) currentColor;
    padding: 1em;
}

.wp-block-themeisle-blocks-accordion-item__title {
    position: relative;
    z-index: 2;
    color: var(--title-color);
    background: var(--title-background);
    padding: var(--padding);
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: grid;
    grid-template-columns: auto min-content;
    align-items: center;
}

.wp-block-themeisle-blocks-accordion:not(.has-icon)>.wp-block-themeisle-blocks-accordion-item:not([open])>.wp-block-themeisle-blocks-accordion-item__title::after {
    transform: rotate(45deg) translate(-25%, 0%);

}

.wp-block-themeisle-blocks-accordion:not(.has-open-icon)>.wp-block-themeisle-blocks-accordion-item[open]>.wp-block-themeisle-blocks-accordion-item__title::after {
    transform: rotate(225deg) translate(0%, -45%);

}

.wp-block-themeisle-blocks-accordion:not(.has-icon)>.wp-block-themeisle-blocks-accordion-item:not([open])>.wp-block-themeisle-blocks-accordion-item__title::after,
.wp-block-themeisle-blocks-accordion:not(.has-open-icon)>.wp-block-themeisle-blocks-accordion-item[open]>.wp-block-themeisle-blocks-accordion-item__title::after {
    content: "";
    justify-self: end;
    align-self: center;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    width: 8px;
    height: 8px;
}

.wp-block-themeisle-blocks-accordion-item__content {
    padding-top: 1em;
    border-top: 1px solid gray;
    padding: 1em
}

/* product loop fix for columns */
.wc-block-product-template.is-flex-container>li {
    flex-basis: 100%;
}

@media (min-width: 600px) {
    .wc-block-product-template.is-flex-container.is-flex-container.columns-4>li {
        width: calc(25% - .9375em);
        flex-basis: calc(25% - .9375em);
        max-width: calc(25% - .9375em);
    }
}

/* Woocommerce */
.add_to_cart_button {
    background-color: #014F6E;
}

.add_to_cart_button:hover {
    color: white;
    box-shadow: inset 50px 50px 50px rgba(0, 0, 0, 0.3)
}

.woocommerce-invalid #checkout-checkbox {
    outline: 2px solid red;
    outline-offset: 2px;
}