
body {
	overflow-x:hidden
}
/*purple background-color: #4a2169; rgb(74, 33, 105)*/
body, html {
height: 100%;
background-color : /*#4A2169*/ #fff;
color: #2A2426;
font-size: 100%;
font-family: sans-serif;
line-height: 1.67em;
margin: 0;
width:auto;
}
.lightmode {
display:flex inline;
}
.colorswitch a {
padding:12px;
}
.colorswitch img {
height:30px;
}
.darkmode {
display:none;
height:1px;
visibility:hidden;
}
.thingstodo #light a:link {
	display:none;
}
.thingstodo a:link, .thingstodo a:visited {
color:#000;
}
.container {
margin : auto;
max-width: 1000px;
width : 95%;
}
.purplebackground {
background-color:#4a2169;
}
/*-------SKIP--------*/
#skip A{
background-color: #4a2169;
border : solid 2px #000;
color : #fff;
top:-1000px;
left:10px;
padding-top : 1em;
padding-bottom : 1.5em;
position: absolute;
line-height: 1.5em;
text-align : center;
text-decoration : none;
-webkit-transition: top 2s ease-out, background 1s linear;
transition: top 2s ease-out, background 1s linear;
width : 6em;
z-index: 100;
}

#skip A:focus {
left: 10px;
outline:0;
position:absolute;
top:10px;
-webkit-transition: top .1s ease-in, background .5s linear;
transition: top .1s ease-in, background .5s linear;
}
/*change the look, search, donate*/
.flexrowspacebetween {
align-items: center;
display:flex;
flex-direction: row;
justify-content: space-between;
padding-bottom:5px;
padding-top:5px;
width:100%;
}

.thingstodo {
align-items: center;
display:flex;
flex-direction: row;
    font-family: "Roboto Slab";
justify-content: flex-end;
}
.thingstodo a:link, .thingstodo a:visited{
display:inline-block;
float:left;
text-align: center;
text-decoration: none;
}
.thingstodo a:hover, .thingstodo a:focus{
background-color: transparent;
color: #4a2169;
}

.screen-reader-text a:link, .screen-reader-text a:visited {
background-color:transparent;
}
.changethelook {
align-items: center;
display:flex;
flex-direction: row;
justify-content: flex-start;
padding:0;
padding-right:15px;
}
#searchdiv label {
position:absolute;
left:-10000px;
top:auto;
width:1px;
height:1px;
overflow:hidden;
}
input {
outline: none;
}
input[type=search] {
-webkit-appearance: textfield;
-webkit-box-sizing: content-box;
font-family: inherit;
font-size: 100%;
}
input::-webkit-search-decoration,
input::-webkit-search-cancel-button {
display: none;
}

#search input[type=search] {
background:/* #4a2169 */ #000 url("https://www.balancefba.org/wp-content/uploads/2023/06/searchfff.svg") no-repeat 8px center;
border: solid 2px #fff;
border-radius: 50px;
-webkit-border-radius: 50px;
-moz-border-radius: 50x;
color: transparent;
cursor: pointer;
padding-top:8px;
transition: all .5s;
-webkit-transition: all .5s;
-moz-transition: all .5s;
width: 30px;
}
#search input[type=search]:focus, #search input[type=search]:hover {
background-color: #fff;
border: solid 2px #4a2169;
box-shadow: 0 0 5px rgba(71,61,79,.5);
-webkit-box-shadow: 0 0 5px rgba(71,61,79,.5);
-moz-box-shadow: 0 0 5px rgba(71,61,79,.5);
color: #4a2169;
cursor: auto;
padding-left: 6px;
width:200px;
}
#search input[type="submit"] {
display:none;
}

/*-------donate--------
.donate {
align-items: center;
display:flex;
flex-direction: row;
font-family: "Roboto Slab";
font-size: 1.7em;
justify-content: flex-end;
}
.donate a:link, .donate a:visited {
background-color: #4a2169;
background-color: #000;
border:solid 1px #000;
border-radius:5px;
color:#fff;
padding: 5px;
text-decoration: none;
}
*/

/*-------logos--------*/
.logos img{
height: 60px;
margin-top:10px;
width:auto;
}

/*to top link*/
.top a:link, .top a:visited {
background-color: #38363A;
border-radius:5px;
color:#fff;
padding: 8px;
text-decoration: none;
}

/*------------------------------------------------------------------------------
# Navigation
------------------------------------------------------------------------------*/
/*
* Links
*/
/*navigation*/
#mega-menu-wrap-primary #mega-menu-primary {
display:flex;
flex-direction: row;
justify-content: space-between;
width:100%;
}
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link{
font-size:1.1em;
min-height: 44px;
}

/*IMPORTANT - change this in mega menu*/
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
color:#fff;
}
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link {
background-color:#fff;
border-bottom: orange;
color:#000;
}
/*standard links*/
A:link, A:visited {
background-color: transparent;
color : #4a2169;
}

A:hover, A:focus {
background-color: #4a2169;
color : #fff;
text-decoration: none;
}

.buttonlink a:link, .buttonlink a:visited {
	background-color:#4a2169;
	border:solid 2px #4a2169;
	border-radius:5px;
	color:#fff;
	padding:15px;
	text-decoration:none;
}
.buttonlink a:hover, .buttonlink a:focus {
	background-color:#fff;
	border:solid 2px #4a2169;
	color:#4a2169;	
} 
footer .buttonlink {
float:right;
}


.borderbottom {
border-bottom: solid 2px #000;
}
.borderbottom5px {
border-bottom: solid 5px #4a2169;
}
.fullwidth {
width:100%
}
.padding10px {
padding-bottom: 10px;
padding-top: 10px;
}


/*------------------------------------------------------------------------------
# Social
------------------------------------------------------------------------------*/
.socialmedia {
display:flex;
flex-direction: row;
justify-content: center;
margin-top:50px;
}

.socialmedia img {
height : 30px;
}

.socialmedia ul {
list-style-type: none;
background-color: transparent;
margin : 0;
padding : 0;
}
.socialmedia li {
float : left;
}
.socialmedia A:link, .socialmedia A:visited {
padding : 5px;
padding-left : 15px;
padding-right : 15px;
background-color: transparent;
color : #fff;
text-decoration: none;
font-size : 1.3em;
}








#heroimage img {
width : 100%;
}
#heroimage {
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    position: relative;
    width: 100vw;
}

#heroimage img {
display: block;
height: auto;
margin:0;
width: 100%;
}
/*full width group block*/
.alignfull {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
	padding: 20px;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


#content {
margin : auto;
max-width: 60em;
padding: 3em;
padding-bottom: 0;
padding-top: 0px;
}

aside#secondary.widget-area {
	border-top-color:transparent;
}


.invisible, .menu-hidden-description-parent {
position : absolute;
top : -1000px;
width:1px;
height:1px;
overflow:hidden;
}


/*----------HTML-----------*/
h1, h2, h3 {
color: #446202;
color: #000;
font-weight : normal;
line-height: 1.5em;
text-wrap: balance;
}
h1 {
font-size : 3em;
text-align: center;
line-height: 1.2em;
margin-top:0;
}
h2 {
font-size: 2em;
text-align : left;
}
h3 {
clear : both;
font-size: 1.75em;
text-align : left;
}
h4 {
color : #5c2882;
font-size: 1.25em;
font-weight : normal;
}
h5 {
font-weight : normal;
font-size: 1.1em;
color : #5c2882;
}

img {
max-width: 100%;
}
p {
line-height: 1.67em;
}
#content {
font-size: 1.1em;
line-height: 1.67em;
}

#content ul, #content ol {
padding : 2em;
padding-top : 0em;
margin : 0;
}
#content ul li, #content ol li {
margin-top : .5em;
}
hr {
clear : both;
margin-top : 30px;
margin-bottom : 30px;
height : 5px;
border : none;
background-color: #4a2169;
}

.site-footer {
border-top: solid 5px #4a2169;
color: #4a2169;
line-height: 2em;
padding : 1.5em;
}
.footercolumns {
align-items: center;
display:flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
}
footer .column {
background-color: #38363A;
border:solid 2px #fff;
color:#fff;
margin-bottom: 30px;
padding:1em;
padding-left:1.5em;
padding-right:1.5em;
text-align: center;
width: 30%;
}
footer .column a:link, footer .column a:visited {
background-color: #fff;
border:solid 2px #fff;
border-radius:3px;
color: #38363A;
padding: 4px;
text-decoration: none;
}
footer .column a:hover, footer .column a:focus {
background-color: #38363A;
color: #fff;
}
#totop a:link, #totop a:visited {
background-color: #38363A;
border:solid 2px #fff;
border-radius:3px;
color: #fff;
float:right;
padding: 5px;
text-decoration: none;
}
#totop a:hover, #totop a:focus {
background-color: #fff;
border:solid 2px #38363A;
color: #38363A;
}
address {
font-style: normal;
margin:0;
padding:0;
}
.wp-block-column {
text-wrap: balance;
}
.floatleft {
float : left;
}
.floatright {
float : right;
}
.margintop15 {
margin-top : 15px;
}

/*----------HOVER SHADOW---------------*/
.hvr-float-shadow {
display: inline-block;
vertical-align: middle;
-webkit-transform: translateZ(0);
transform: translateZ(0);
box-shadow: 0 0 1px rgba(0, 0, 0, 0);
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-moz-osx-font-smoothing: grayscale;
position: relative;
-webkit-transition-duration: 0.3s;
transition-duration: 0.3s;
-webkit-transition-property: transform;
transition-property: transform;
}
.hvr-float-shadow:before {
pointer-events: none;
position: absolute;
z-index: -1;
content: '';
top: 100%;
left: 5%;
height: 10px;
width: 90%;
opacity: 0;
background: -webkit-radial-gradient(center, ellipse, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 80%);
background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 80%);
/* W3C */
-webkit-transition-duration: 0.3s;
transition-duration: 0.3s;
-webkit-transition-property: transform, opacity;
transition-property: transform, opacity;
}
.hvr-float-shadow:hover, .hvr-float-shadow:focus, .hvr-float-shadow:active {
-webkit-transform: translateY(-5px);
transform: translateY(-5px);
outline : none;
/* move the element up by 5px */
}
.hvr-float-shadow:hover:before, .hvr-float-shadow:focus:before, .hvr-float-shadow:active:before {
opacity: 1;
-webkit-transform: translateY(5px);
transform: translateY(5px);
/* move the element down by 5px (it will stay in place because it's attached to the element that also moves up 5px) */
}


/*-----------CLASSES----------------*/
.aligncenter {
text-align: center;
}
.balance {
text-wrap: balance;
}
.clearboth {
clear: both;
}
.floatleft {
float : left;
margin-right : 30px;
}
.margin-bottom30 {
margin-bottom: 30px;
}
.width100 {
width : 100%;
}

/*-----------------blog---------------------
.entry-footer {
border-bottom : solid 3px #38363A;
border-top : dotted 5px #796c86;
padding-bottom: 1em;
padding-top: 1em;
}
article:last-child {
border-bottom : none;
}*/
/*-----------------HOME---------------------*/
/*home page*/
.home h1 {
	font-size: 3em;
	margin-top:0; 
}

body.home .homepagecontent {
margin : auto;
max-width: 1000px;
width : 95%;
}
/*center sponsor logos on home page*/
.unitedway, .ontario {
width: 330px;
}
.wp-block-group__inner-container.is-layout-constrained.wp-block-group-is-layout-constrained {
margin:auto;
width: 860px;
}

/*-----------SPONSORS------------------*/
#sponsors {
width : 800px;
margin-left : auto;
margin-right : auto;
}

#sponsors ul {
list-style-type : none;
}

#sponsors li {
float : left;
width : 300px;
margin : 30px;
}
.widget-area {
border-top:solid 2px #000;
padding:0;
padding-top: 1em;
}
/*hides theme toggle to show mega menu */
.menu-toggle {
display:none;
}
/*-------------------MOBILE / SMALL DEVICES--------------------*/
@media only screen and (max-width: 1000px) {
#banner .flexrowspacebetween {
display:flex;
flex-direction: column;
}
.logos {
margin-bottom: 30px;}

/*-------------------MOBILE / SMALL DEVICES--------------------*/
@media only screen and (max-width: 700px) {
html { 
font-size : 1.1em;
}
#searchdiv {
justify-content: center;
margin-left:120px;
}

.thingstodo {
flex-direction: column;
padding-bottom: 10px;
}
/* X closes mobile navigation*/
#mega-menu-wrap-primary:has(.mega-menu-open) #mega-menu-primary[data-effect-mobile^="slide_"] + button.mega-close {
    background-color:#000;
    border-radius:40px;
    }
.donate{
flex-direction: column;
padding-bottom: 10px;
}
/* Javascript driven class change for menu */

#primary-menu {
display: none;
}

#bigcontainer {
width: 100%;
max-width: 100%;
}
.container {
width : 96%;
max-width: 96%;
margin-left : auto;
margin-right : auto;
}
#banner, #a11y {
flex-direction: column;
}




/*-------SEARCH--------*/
#searchdiv {
margin-right: 0px;
width : 100%;
}

#a11y {
flex-direction: column;
padding-bottom : 30px;
width : 100%;
}
.changethelook {
float:none;
justify-content: center;
border : solid 1px transparent;
}

#content {
width: 79%;
max-width: 79%;
padding: 2%;
padding-top: 0;
line-height: 1.5em;
}

h1, h2, h3 {
text-align: center;
}
.home h1 {
font-size: 1.8em;
}
h2 {
font-size: 1.5em;
}
#content ul {
padding : 1em;
}
#content ol {
padding : 0;
margin : 0;
}


.margintop35 {
padding-top : 2em;
}
.wp-block-column p{
margin:0;
text-wrap: balance;
}

.footercolumns {
flex-direction: column;
flex-wrap: wrap;
max-width: 100%;
}
footer .column {
width: 100%;
}


	}
