/*
Theme Name: Hopedale Unitarian Parish
Theme URI: N/A
Author: Tristan Hixon
Author URI: http://hopedaleunitarian.org
Description: Custom theme for hopedaleunitarian.org
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hup
Tags: one-column, two-columns, left-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
This theme, like WordPress, is licensed under the GPL.
*/

@font-face {
    src: url(https://fonts.gstatic.com/s/materialicons/v41/flUhRq6tzZclQEJ-Vdg-IuiaDsNZ.ttf);
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 400;
  }

.material-symbols-outlined {
    vertical-align: middle;
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

.tribe-events-c-top-bar__nav 
{
    visibility:hidden !important;
    width:0 !important;
}

html
{
        margin: 0 !important;
}

body::before
{
    position:fixed;
    background:url('/images/bg1.png');
    opacity:0.80;
    background-repeat: repeat;
    background-attachment: fixed;
    content:"";
    display:block;
    left:0;
    top:0;
    width:100vw;
    height:100vh;
    z-index:-5;
}

body{
    background:url("/images/hupmainimg.webp");
background-blend-mode: overlay;
    background-repeat: no-repeat;
    background-size:cover;
    background-attachment: fixed;
    background-position:center;
    font-size:min(max(calc(0.66vh + 0.66vw), 12pt), 18pt);
    height:100%;
    width:100%;
    //text-shadow: #235C7F 0 0 0.5px;
    margin: 0 !important;
      font-family: "Playfair Display", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
    z-index:0;
}

body::after{
    content:"";
    position:fixed;
    left:0;
    top:0;
    height:100%;
    border-width:0 1ex 0 2ex;
    border-style:solid;
    border-color:transparent #661A27 transparent #235C7F;
    box-shadow: .1ch .1ch 1ch gray;
}

a
{
    color:firebrick;
}

a:visited
{
    color:#661A27;
}

b
{
    font-weight:700;
}

#mediaViewer
{
    width:90%;
    height:90%;
    box-sizing:border-box;
    padding:0 0 -1px 0;
    transition: all 0.125s;
    overflow-y:hidden;
}

#mediaViewer::backdrop
{
    backdrop-filter: brightness(10%);
    transition: all 0.25s;
}

#mediaClose
{
    border-radius:100%;
    position:fixed;
    right:5%;
    top:5%;
    transform: translateX(86%) translateY(-86%);
    font-size:min(5vh, 5vw);
    height:min(5vh, 5vw);
    width:min(5vh, 5vw);
    line-height:min(5vh, 5vw);
    z-index:5;
    font-family: 'Material Symbols Outlined';
    transition: all 0.125s;
    cursor:pointer;
    background-color: lightgray;
    box-shadow: 0 2px 0.25rem lightslategray;
    font-weight: 400;
    color:darkslategray;
    box-sizing:border-box;
}

#mediaClose:hover
{
    background-color: white;
    color: #494949;
}

#bgimg
{
    position:absolute;
    width:55%;
    right:calc(22.5% - 10ex);
    height:20%;
    min-height:15ch;
    text-align: center;
    top:2%;
}

#bgimg img
{
    height:100%;
    width: auto;
    max-width: 85%;
    display: inline;
    vertical-align: middle;
    filter: drop-shadow(0px 0px 1ch lightgray);
}

.splash
{
    position: fixed;
    border-radius: 0 0 3ex 0;
    background-color:rgba(245, 245, 245, 0.9);
    padding:1ch 1ch 1ch 3.5ch;
    width:20ex;
    font-size:min(max(calc(0.66vh + 0.66vw), 9pt), 17pt);
    height:fit-content;
    margin-bottom:2ch;
    top:0;
    left: 0;
    text-align: center;
    overflow-y: hidden;
    box-shadow: .1ch .1ch 1ch lightgray;
    font-family: "Playfair",sans-serif;
}


.splash a
{
    cursor: pointer;
}

#content
{
    position:absolute;
    right:calc(17.5% - 10ex);
    top:max(24%, 16ch);
    height:fit-content;
    width:65%;
    border: solid 1px lightgray;
    border-radius: 3ex;
    box-sizing: border-box;
    margin:0;
    padding:0 0 calc(2.5% - 2ch) 0;
    background-color:rgba(255,255,255,.70);
    box-shadow: 0px 0px 1ch lightgray;
}

.contentItem
{
    position:relative;
    border: solid 1px lightgray;
    border-radius: 3ex;
    box-sizing: border-box;
    background-color:none;
    padding:0ch calc(min(250px, 20vw) + 2ch) 1ch 2ch;
    width:90%;
    left:5%;
    height:fit-content;
    margin-bottom:2ch;
    overflow-y: hidden;
    box-shadow: .1ch .1ch 0.75ch gainsboro;
    font-family: "Noto Sans",sans-serif;
}

h6
{
    display:inline;
    font-weight:normal;
    color: black;
    font-family: 'Playfair Display', sans-serif;
}

.backgroundImage
{
    position:absolute;
    width:100%;
    height:100%;
    margin:0;
    top:0;
    left:0;
    z-index:-1;
}


.contentItem .subjectText
{
    font-family: "Noto Sans", sans-serif;
    font-size:min(max(calc(0.66vh + 0.66vw), 10pt), 18pt);
    letter-spacing: 0.10ch;
    width:100%;
    font-weight: 400;
    display:block;
    color:#235C7F;
    background-color:#F5F5F5;
    margin:2ch 0 0 0;
    //font-style: italic;
    font-weight:500;
    padding: 0 0 .25ch .5ch;
    box-sizing: border-box;
    border-radius:1% / 100%;
    border: solid 1px silver;
    overflow: hidden;
}

.contentItem .subjectText::before
{
    content:"news";
    display:inline-block;
    font-family: 'Material Symbols Outlined';
    color:#235C7F;
    margin:0 .5ch 0 0;
    vertical-align: bottom;
    transform: scale(1.25);
    font-style: normal;
}

.contentItem:not(.noPosts):nth-of-type(even) img
{
    position:absolute;
    float:right;
    height:100%;
    width:20vw;
    max-width:250px;
    min-width: 75px;
    object-fit:cover;
    object-position: center;
    border-radius: 0 3ex 3ex 0;
    border-left: 1ex solid #661A27;
    margin: 0 0 2ch 2ch;
    top:0;
    right:0;
}

.contentItem:not(.noPosts):nth-of-type(odd) img
{
    position:absolute;
    float:right;
    height:100%;
    width:20vw;
    max-width:250px;
    min-width: 75px;
    object-fit:cover;
    object-position: center;
    border-radius: 0 3ex 3ex 0;
    border-left: 1ex solid #235C7F;
    margin: 0 0 2ch 2ch;
    top:0;
    right:0;
}

.contentItem img, span
{
    border-radius: 3ex;
}

.contentItem p
{
    width:calc(100% - 1ch);
}

.alignright
{
    float:right;
}

.aligncenter
{
    float:center;
}

.alignleft
{
    float:left;
}

.noPosts
{
    box-sizing: border-box;
    padding: 0 2ch 1ch 2ch;
}

.contentItem .innerContent
{
    width:100%;
    margin:2ch 0 1ch 0;
    padding: 0 0 0 1ch;
    box-sizing: border-box;
    background-color:rgba(255,255,255,.70);
    border-radius:1% / 100%;
    border: solid 1px silver;
    font-family: "Noto Sans", sans-serif;
    overflow-y: hidden;
}

.pageItem
{
    padding:2ch 0 2ch 0;
    width:100%;
}

.pageItem img
{
    border: solid 2px lightgray !important;
    position:relative !important;
    float:none !important;
    max-width: 80% !important;
    max-height: none !important;
    border-radius: 3ex !important;
    margin: inherit !important;
    top: inherit !important;
    right: inherit !important;
    left: inherit !important;
    display:block !important;
}



#mobileMenu
{
    position:fixed;
    width:100%;
    top:90%;
    left:0;
    height:10vh;
    line-height: 10vh;
    text-align: center;
    z-index: 10;
    //font-family: sans-serif;
    font-weight: 350;
    font-size: 5vh;
    border: solid 1px lightgray;
    background-color: white;
    box-shadow: 0 2px 0.25rem lightslategray;
    transition: all 0.25s;
    color:darkslategray;
    box-sizing:border-box;
    visibility:hidden;
}

#mobileMenu:hover
{
    color:black;
}

.menu
{
    display: flex;
    align-items: start;
    flex-direction: column;
    position:fixed;
    top:50%;
    transform: translateY(-50%);
    left:0;
    margin:0;
    cursor: default;
    user-select:none;
    z-index:5;
}

#menu a
{
    text-decoration: none;
    color:darkslategrey;
}

#menu a:visited
{
    text-decoration: none;
    color:darkslategrey;
}

#menu a:hover
{
    text-decoration: none;
    color:#494949;
    font-weight:500;
}

.visible
{
    display: block;
}

#preload
{
    position: absolute;
    left:-1000%;
}

.buttonLayerBase
{
    border: solid 1px lightgray;
    border-radius: 0 10% 10% 0 / 0 50% 50% 0;
    width:20ex;
    background-color: #F5F5F5;
    position:relative;
    box-shadow: 0 2px 0.25rem lightslategray;
    margin:0.5ex 0;
    transition: width 0.25s, padding-left 0.25s, font-weight 0.25s;
    //font-family: sans-serif;
    font-size:min(max(calc(0.66vh + 0.66vw), 9pt), 18pt);
    font-weight: 400;
    color:darkslategray;
    box-sizing:border-box;
}
.buttonLayerBase:hover
{
    width:23ex;
    padding-left:3ex;
    transition: all 0.25s;
}
.buttonLayerBase:hover .buttonLayerGlow, #mobileMenu:hover .buttonLayerGlow
{
    top:0px;
    filter: blur(0.75em) opacity(0.5);
    transition: all 0.25s;
}
.buttonLayerBase:active, #mobileMenu:active
{
    box-shadow: 0 0 0.25em lightslategray;
}

.buttonLayerBase:active .buttonLayerGlow, #mobileMenu:active .buttonLayerGlow
{
    border-color: white white white white;
    top:1ex;
    transition: all 0.05s;
}
.buttonLayerGlow
{
    /*font-size:72pt;
    background-color: #88A8FF;
    color: transparent;
    text-shadow: 0px 2px 3px rgba(255,255,255,0.5);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    border-style:solid;
    border-radius: 1em;*/
    border-radius: 0 10rem 10rem 0;
    position:absolute;
    width:100%;
    left:0;
    margin-right:1ex;
    box-sizing: border-box;
    border-width: 2ex;
    border-style: solid;
    border-color: white lightslategray lightslategray white;
    mix-blend-mode:luminosity;
    z-index: 0;
    filter: blur(0.75em) opacity(0.25);
    height:100%;
    top:0px;
    transition: all 0.25s;
    
}

.buttonLayerText
{
    position:relative;
    z-index:2;
    transition: margin-left 0.25s, font-weight 0.25s;
    padding:.75ex 1ex .75ex 3ex;
    text-shadow: 0 -0.5em 0.8em white;
    text-align:left;
    font-size:min(max(calc(0.66vh + 0.66vw), 9pt), 18pt);
}

#innerMenu
{
    position:relative;
    width: 100%;
    left:0;
    top:0;
    display: flex;
    height:fit-content;
    margin-bottom: 2ch;
    flex-basis: 100%;
}

#innerMenu div:first-of-type
{
    border-radius:2.5ex 0 0 0;
}

#innerMenu div:last-of-type
{
    border-radius:0 2.5ex 0 0;
}

#innerMenu div:only-of-type
{
    border-radius:2.5ex 2.5ex 0 0;
}

#innerMenu div
{
    position:relative;
    flex-grow:1;
    background-color:white;
    border-style:solid;
    border-width:1px;
    box-sizing:border-box;
    box-shadow: 0 2px 0.25rem lightslategray;
    border: solid 1px lightgray;
    color:darkslategray;
    text-align: center;
    line-height: 2em;
    //font-family: sans-serif;
    font-weight: 400;
    transition: all 0.25s;
    width:33%;
    padding:0;
    text-shadow: 0 -0.5em 0.8em white;
}

#innerMenu div:hover
{
    color:black;
    transition: all 0.25s;
    font-weight:500;
}
#innerMenu div:hover .buttonLayerGlow
{
    top:0px;
    filter: blur(0.75em) opacity(0.5);
    transition: all 0.25s;
}
#innerMenu div:active
{
    box-shadow: 0 0 0.25rem lightslategray;
}

#innerMenu div:active .buttonLayerGlow
{
    border-color: white white white white;
    top:0.25ex;
    transition: all 0.05s;
}

.activeItemInner
{
    background-color: #a8c2d2 !important;
    color: #172727 !important;
}

.activeItemInner:hover
{
    background-color: #a8c2d2 !important;
    color: black !important;
}

.backArrow
{
    display:inline-block;
    position:relative;
    font-family: 'Material Symbols Outlined';
    font-size:2ch;
    line-height: 0em;
    color: #494949 !important;
    z-index:0;
    top:0.25ch;
    text-decoration: none;
}

.activeItem
{
    background-color: #a8c2d2 !important;
    color:black !important;
    width:23ex;
    padding-left:3ex;
}



.activeItem .buttonLayerGlow, .activeItemInner .buttonLayerGlow 
{
    filter: blur(0.75em) opacity(0.5);
}

#socials
{
    position: relative;
    width:3vw;
    height:fit-content;
    max-width:5ch;
    display: inline-flex;
    flex-direction: column;
    vertical-align: middle;
    margin-top:auto;
}

#socials img
{
    position:relative;
    width:100%;
    transition: all 0.125s;
    margin: 0.25ch 0;
}

#socials img:hover
{
    filter: drop-shadow(-2px 2px 2px gray);
    translate: 2px -2px;
}

#socials img:active
{
    filter: drop-shadow(0px 0px 2px gray);
    translate: 0px 0px;
}

.pageCtrls
{
    position:relative;
    border: solid 1px lightgray;
    border-radius: 5ex;
    box-sizing: border-box;
    background-color:rgba(240,240,240,.85);
    padding:1ch 3ch 1ch 3ch;
    width:90%;
    left:5%;
    height:auto;
    margin-bottom:2ch;
    text-align: center;
    overflow-y: hidden;
    box-shadow: .1ch .1ch 1ch gainsboro;
    font-family: "Playfair",sans-serif;
}


@media only screen and (orientation: portrait)
{
    
    .material-symbols-outlined {
        transform: scale(2);
        padding-right:1ex;
    }

    body
    {
    }

    body::after
    {
        content:"";
        position:fixed;
        left:0;
        top:0;
        height:0;
        border-width:0;
        border-style:none;
        border-color:transparent;
    }

    #bgimg
    {
        width:100%;
        right:0;
        left:0;
    }

    .contentItem
    {
        padding:0ch 1ch 1ch 1ch;
        width:97%;
        left:1.5%;
    }
    
    .contentItem:not(.noPosts) img
    {
        display: none;
    }

    .menu
    {
        top:auto;
        bottom:0;
        width:100%;
        height:60%;
        transition: all 0.25s;
        opacity: 1;
        transform: translateY(-10vh);
    }

    #menu a:hover
    {
        font-weight:400 !important;
    }

    .visible
    {
        height:0 !important;
        opacity: 0;
        transition: all 0.25s;
    }

    #mobileMenu
    {
        visibility: visible;
    }

    .splash
    {
        width:100vw;
        border-radius: 0 0 0 0;
        font-size:calc(2vh + 1vw);
        text-align:center;
        margin:0;
        padding:1ex 0 0 0;
        height:40%;
        box-sizing:border-box;
        z-index:3;
        opacity: 0.95;
        transition: all 0.25s;
    }
    .buttonLayerBase
    {
        flex-grow: 1;
        width:100%;
        border-radius: 0 0 0 0;
        margin:0;
    }
    .buttonLayerBase:hover
    {
        width:100%;
        padding-left:0ex;
        
    }
    .buttonLayerText
    {
        position:relative;
        z-index:2;
        transition: all 0.25s;
        padding:1ex 1ex 1ex 1ex;
        text-shadow: 0 -0.5em 0.8em white;
        font-size:min(max(calc(0.66vh + 0.66vw), 14pt), 18pt);
        text-align:center;
        transform: translateY(calc(50% - 2ex));
        font-size: 3vh;
    }

    .buttonLayerGlow
    {
        border-radius:0;
    }
    #content
    {
        right:1%;
        height:fit-content;
        width:98%;
        padding-bottom:10vh;
    }

    #innerMenu
    {
        flex-wrap:wrap;
    }

    #innerMenu div
    {
        width:50%;
    }

    #innerMenu div:first-of-type:not(:only-of-type)
    {
        border-radius:2.5ex 0 0 0;
    }

    #innerMenu div:last-of-type:not(:only-of-type)
    {
        border-radius:0 0 0 0;
    }

    #innerMenu div:only-of-type
    {
    border-radius:2.5ex 2.5ex 0 0;
    transition:none;
    }

    #innerMenu div:nth-of-type(2)
    {
        border-radius:0 2.5ex 0 0;
    }

    .activeItem
    {    
        padding-left:0;
    }

    #socials
    {
        min-width:3ch;
    }


}