/*
Theme Name: PCWC
Theme URI: https://github.com/tristan-remple/pcwc
Author: Tristan Remple
Author URI: https://aqualunae.ca/
Description: A custom theme for womenscentre.ca
Version: 1.0.2
*/

.grey {
    --off-white: #ffffff;
    --cream: #e9e9e9;
    --beige: #f1f1f1;
    --accent: #bd94be;
    --accent-dark: #4d40a0;
    --dark-grey: #686868;
    --off-black: #000000;
    --aqua: #2cb6cc;
    --text: "Open Sans", sans-serif;
    --header: "Cormorant Garamond", serif;
}

body {
    font-family: var(--text);
    background-color: var(--beige);
    color: var(--off-black);
    font-size: 1em;
    margin: 0 !important;
    width: 100%;
    min-height: 100vh;
}

header {
    background-color: var(--off-white);
    border: none;
    padding: 1rem 0;
    margin-bottom: 0;
}

header .flex-col {
    max-width: calc(100% - 12rem);
}

header a {
    text-decoration: none;
}

footer {
    padding-top: 1rem;
    margin-top: 1.5rem;
}

.foot-menu {
    background-color: var(--dark-grey);
    color: var(--off-white);
    height: 240px;
    padding: 0 2rem;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-around;
}

.foot-menu h3 {
    max-width: 50%;
    width: auto;
}

.foot-text {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    font-size: 12px;
}

footer a {
    color: var(--off-white);
    text-decoration: none;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    background-image: url("./assets/pattern_wood_white_bgimage.jpg")
}

.wp-block-heading, header h1, .comment-reply-title {
    font-family: var(--header);
    color: var(--accent-dark);
}

h1 {
    font-size: 70px;
}

h2 {
    text-align: center;
    font-size: 50px;
    color: var(--accent);
}

h3 {
    font-size: 25px;
}

a {
    color: var(--dark-grey);
}

.float {
    margin: 1rem;
}

a:hover, a:focus {
    color: var(--off-black);
    text-decoration: underline;
}

.flex-row, header {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    width: 100%;
    align-items: center;
}

header.flex-row {
    flex-flow: row nowrap;
    justify-content: flex-start;
}

.flex-col {
    display: flex;
    flex-flow: column nowrap;
}

.text-box {
    padding: 0;
    margin: 0;
    width: 100%;
    font-size: 18px;
}

.text-box p, .text-box .wp-block-columns, .text-box .wp-block-heading, .text-box .wp-block-file, .text-box .wp-block-table, .text-box .wp-block-embed {
    margin: auto;
    padding: 1rem;
    max-width: 80%;
}

.text-box a {
    color: var(--aqua);
    text-decoration: none;
}

.text-box a:hover, .text-box a:focus {
    color: var(--accent-dark);
}

#logo {
    height: 90%;
    width: 250px;
    margin-right: 2rem;
}

.float {
    max-width: 50%;
    float: right;
}

.form-submit {
    text-align: center;
}

#commentform textarea, #commentform input[type=text] {
    padding: 0.25rem;
    background-color: var(--off-white);
    border: 1px solid var(--dark-grey);
    color: var(--off-black);
    width: 80% !important;
}

#commentform textarea:focus, #commentform input[type=text]:focus {
    outline: 2px solid var(--accent);
}

#insert-media-button {
    display: none;
}

.nav-btn {
    display: flex;
    flex-grow: 1;
    padding: 0.5rem;
    margin: 0.5rem;
    color: var(--off-black);
    text-decoration: none;
    align-content: center;
    justify-content: center;
    border: none;
    width: 8rem;
    font-size: 14px;
}

#submit, input[type=submit], .page-btn {
    width: 60%;
    height: 2.5rem;
    border: 1px solid var(--off-black);
    background-color: var(--dark-grey);
    color: var(--beige);
    border-radius: 0.5rem;
    margin: auto 0;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 1rem;
    max-width: 200px;
}

#submit:hover, input[type=submit]:hover,
#submit:focus, input[type=submit]:focus,
.page-btn:hover, .page-btn:focus {
    background-color: var(--accent-dark);
    color: var(--off-white);
    text-decoration: none;
}

.nav-btn:hover, .nav-btn:focus,
.dropdown-item:hover, .dropdown-item:focus {
    text-decoration: none;
    color: var(--accent-dark);
}

.comment-notes {
    font-weight: bold;
}

.comment-form-url, .comment-form-cookies-consent {
    display: none !important;
}

.wp-block-group {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.wp-block-group > .wp-block-group {
    flex-direction: column;
}

.wp-block-image {
    margin: 1rem;
    flex-shrink: 0;
    max-width: 80%;
    vertical-align: bottom;
    margin: 1rem 10%;
}

.wp-block-image > img {
    width: 100%;
}

h2 {
    text-align: center;
}

header h2 {
    text-align: left;
}

.tag {
    background-color: var(--dark-cream);
    color: var(--off-black);
    text-decoration: none;
    padding: 0.25rem 1.5rem;
    border: 2px solid var(--dark-cream);
    margin: 0.25rem;
}

.tag:hover {
    background-color: var(--accent);
    border-color: var(--off-black);
}

#tag-box {
    justify-content: flex-start;
}

.text-medium {
    width: 60%;
}

.bottom {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
}

.dropdown {
    height: 1.5rem;
    overflow: visible;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
}

.dropdown-header, .dropdown-item {
    width: 100%;
    text-align: center;
    color: var(--off-black);
}

.dropdown-header {
    margin-bottom: 0.5rem;
}

.dropdown-item {
    display: none;
    color: var(--off-black);
    text-decoration: none;
    z-index: 3;
    padding: 0.5rem;
    position: relative;
    left: -0.5rem;
    background-color: var(--cream);
}

.dropdown-item:hover, .dropdown-item:focus {
    display: block;
    z-index: 4;
}

.dropdown:hover .dropdown-item, .dropdown:focus .dropdown-item,
.dropdown-header:hover .dropdown-item, .dropdown-header:focus .dropdown-item {
    display: block;
}

.wp-block-columns {
    display: flex;
    flex-flow: row nowrap;
    width: 100%;
    justify-content: center;
    gap: 0;
}

.wp-block-column {
    width: 30%;
    background-color: var(--beige);
    border: 4px solid var(--cream);
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem;
    font-size: 16px;
}

.wp-block-column p, .wp-block-column .wp-block-heading {
    width: 90%;
    max-width: 90%;
}

.wpcp-carousel-content-wrapper:has(.wpcp-swiper-dots) {
    margin-bottom: 0;
}

.wpcp-carousel-section .wpcp-single-item img,
.wp-post-image {
    width: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 19 / 6;
    height: auto;
}

.sponsor {
    background-color: #FFFFFF00;
    border: none;
    align-items: center;
}

.wp-block-table td, .wp-block-table tr, .wp-block-table th {
    border: none;
}

.top-divider {
    background-color: var(--off-white);
    height: 80px;
    padding-bottom: 80px;
    position: relative;
    top: -5px;
    margin-bottom: 2rem;
}

.top-divider::after {
    background-color: var(--dark-grey);
    height: 80px;
    width: 100%;
    content: "";
    display: inline-block;
    margin-top: 80px;
}

.wp-block-separator {
    width: 80%;
    border-width: 1px;
}

#header-menu-mobile {
    display: none;
}

#header-menu-large {
    display: flex;
}

@media screen and (max-width: 800px) {
    header .flex-col {
        max-width: 100%;
    }

    .text-medium {
        width: 90%;
    }

    #pseudo-background {
        height: 50vh;
        object-fit: cover;
    }

    #bg-fade {
        display: none;
    }

    #home-blurb {
        z-index: 5;
        width: 80%;
        position: static;
    }

    #home-row {
        position: relative;
        top: 1rem;
        flex-direction: column;
        width: 100vw;
    }

    .home-section {
        width: auto;
    }

    .foot-menu {
        flex-flow: column nowrap;
    }

    .foot-menu h3 {
        max-width: 80%;
    }

    #header-menu-mobile {
        display: flex;
        width: 100%;
    }

    #header-menu-large {
        display: none;
    }

    header {
        display: flex;
        flex-flow: column nowrap;
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    .dropdown {
        height: auto;
        background-color: var(--cream);
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .dropdown-item, .dropdown-header {
        padding: 0.5rem 0;
    }

    .text-box p, .text-box .wp-block-columns, .text-box .wp-block-heading, .text-box .wp-block-file, .text-box .wp-block-table, .text-box .wp-block-embed {
        max-width: 95%;
    }
}