/*
Theme Name: Earthquake Country Alliance 4
Theme URI: https://www.earthquakecountry.org/
Author: Earthquake Country Alliance
Author URI: https://www.earthquakecountry.org/
Description: Earthquake Country Alliance blog theme. 
Version: 4.1 by David Fu based on 3
*/
body {
	height:auto;
/*	background-color: #085D96; */
	background-color: #0b4670;
	margin: 0;
}

* {
	font-family: sans-serif;
}

img {
	max-width: 100%;
	height:auto;
	margin:0 auto;
}
a {
	color: #0b4670;
/*	color: #214497; */
}
a:visited {
	color: #0b4670;
/*	color: #214497; */
}
a:hover {
      color:  #c24700;
}

#sitecontainer {
	padding-top: 15px;
	height: auto;
	overflow: hidden;
	position: relative;
	background-color: white;
}
#header {
	height: auto;
	overflow: visible;
	color: white;
	position: relative;
	/* z-index: 999; */
}

@media screen and (min-width: 975px) {
	#sitecontainer {
		/* min-height: 100vh;*/
		width: 936px;
		padding: 0 20px;
		margin: 0 auto 0 auto;
	}
	#header {
		width: 924px;
		margin: 6px;
	}
}
@media screen and (max-width:974px) and (min-width:600px)  {
	#sitecontainer {
		width: 96vw;
		margin:0 auto;
	}
	#header {
		width: 95vw;
		margin: 0.5vw;
	}
	body {
		background-color: white;
	}
}
@media screen and (max-width:599px) and (min-width:0px)  {
	#sitecontainer {
		width: 96vw;
		margin:0 auto;
	}
	#header {
		width: 95vw;
		margin: 0.5vw;
	}
	body {
		background-color: white;
	}
}

/*-----------------------------------
-------------------------------------
HEADER
------------------------*/
#banner {
	width: 100%;
	height:191px;
	float: left;
	background-color: #0b4670;
/*	background-color: #085D96; */
	border-radius: 5px;
	overflow: hidden;
}
#logoimg {
	float: left;
	width: 316px;
	height: 148px;
	padding: 13px 0;
	margin: 10px 0 7px 0;
}
#bannerimg {
	overflow: hidden;
	height: 191px;
	z-index: 9999;
	background-size: cover;
}
/* #logolarge {
	display: block;
	width: 400px;
	float: left;
	overflow: auto;
}
.typelogo {
	float: left;
	display: block;
	font-size: 3em;
	line-height: 45px;
	font-weight: bold;
	background-color: #085D96;
	padding:0 10px;
	margin: 0 0 5px 0;
} */
.menu-header-menu-container a {
	text-decoration: none;
	color: white;
}
@media screen and (min-width: 975px) {
	#nav-icon3 {display: none;}
	.menucontainer {display: none ! important;}
	/*#logolarge {display: block;}
	#logosmall {display: none;}*/
}
@media screen and (max-width:974px) and (min-width:600px)  {
	.barmenu {
		display: none;
	}
	/*#logolarge {display: block;}
	#logosmall {display: none;}*/
}
@media screen and (max-width:599px) and (min-width:0px)  {
	.barmenu {
		display: none;
	}
	#bannerimg {
		display: none;
	}
	#logoimg {
		margin: 10px auto 7px auto;
	}
	/*#logolarge {display: none;}
	#logosmall {display: block;}*/
}


/********
Nav Button
********/


#nav-icon3 {
	position: absolute;
	right: 10px;
	top: 10px;
	width: 30px;
	height: 30px;
	-webkit-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	transform: rotate(0deg);
	-webkit-transition: .5s ease-in-out;
	-moz-transition: .5s ease-in-out;
	-o-transition: .5s ease-in-out;
	transition: .5s ease-in-out;
	cursor: pointer;
	margin: 7px;
	z-index: 9749;
}

#nav-icon3 span {
	display: block;
	position: absolute;
	height: 6px;
	width: 100%;
	background: #0b4670;
/*	background: #085D96; */
	border-radius: 6px;
	opacity: 1;
	left: 0;
	-webkit-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	transform: rotate(0deg);
	-webkit-transition: .25s ease-in-out;
	-moz-transition: .25s ease-in-out;
	-o-transition: .25s ease-in-out;
	transition: .25s ease-in-out;
}
}

#nav-icon3 span:nth-child(1) {
  top: 0px;
}

#nav-icon3 span:nth-child(2),#nav-icon3 span:nth-child(3) {
  top: 10px;
}

#nav-icon3 span:nth-child(4) {
  top: 20px;
}

#nav-icon3.open span:nth-child(1) {
  top: 10px;
  width: 0%;
  left: 50%;
  background: white;
}

#nav-icon3.open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  background: white;
  
}

#nav-icon3.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  background: white;
 
}

#nav-icon3.open span:nth-child(4) {
  top: 10px;
  width: 0%;
  left: 50%;
  background: white;
  
}
@media screen and (max-width:599px) and (min-width:0px)  {
	#nav-icon3 span {
		background-color: white;
	}
}

/*-----------------------
MENUS
------------------------*/

.menu-item {
	list-style: none;
} 

/********
Main Menu
********/

.menucontainer  {
	font-size: 1.5em;
	width: auto;
	padding-right: 100px;
	height: auto;
	background-color: #0b4670;
	border:2px solid #0b4670;
/*	background-color: #085D96;
	border:2px solid #085D96; */
	position: absolute;
	right: 0;
	display: none;
	overflow: hidden;
	z-index: 1000;
}

#header .menu-item {
	text-decoration: none;
	position: relative;
	font-size: .8em;
	padding: 5px 0;
}

/********
Side Menus
********/

.quarter .menu {
	margin:10px 0;
	padding: 0;
}

.quarter .menu .menu-item {
	margin-top: 5px;
}

.quarter .menu .menu-item a {
	text-decoration: none;
}


.quarter .menu .current-menu-item {
	font-weight: bold;
}
.quarter .menu .current-menu-item .menu-item {
	font-weight: normal;
}

.quarter .menu .current-menu-item .sub-menu,
.quarter .menu .current-menu-ancestor .sub-menu {
	display: block;
}

/********
Footer Menu
********/

#menu-footer-menu {
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
}
#menu-footer-menu .menu-item {
	display: inline-block;
	margin: 0px 5px;
}
#menu-footer-menu a{
	text-decoration: none;
	color:white;
	font-size: .6em;
}


/********
Bar Menu
********/

.barmenu {
	width: 100%;
	height: 25px;
	overflow: visible;
	float: left;
	margin: 5px 0;
	padding: 0;
	background-color: #0b4670;
/*	background-color: #085D96; */
	border-radius: 5px;
}
.barmenu .menu {
	padding-left: 5px; /* changed from 13 to this after update */
	margin: 0;
}
.barmenu a {
	text-decoration: none;
	color:white;
	font-size: 1em;
}
.barmenu .menu-item {
	display: inline-block;
	margin: 0 5px;
}
.barmenu .menu-item:hover {
	background-color: #C24700;
}
	#menu-header-bar-top .menu-item {
		width: 215px; /* with ECA blogs: width: 169px; */
		text-align: center;
	}

#menu-header-bar-top .sub-menu li{
	text-align:center;
}
/*
	#menu-header-bar-top .menu-item:first-child {
		text-align: left;
	}
	#menu-header-bar-top .menu-item:last-child {
		text-align: right;
	}
	#menu-header-bar-bottom .menu-item:first-child {
		text-align: left;
	}
	#menu-header-bar-bottom .menu-item:last-child {
		text-align: right;
	}
*/
	#menu-header-bar-bottom .menu-item {
                width: 117px; /*  139px;  with out alliance*/
                text-align: center;
	}	

	#menu-header-bar-bottom > li.menu-item:last-of-type {
		background-color: #C24700;
		font-weight: bold;
	}

	#menu-header-bar-top .sub-menu .menu-item {
		font-size: 1em;
	}

	#menu-header-bar-bottom .sub-menu .menu-item {
		width: 117px; /*  139px;  with out alliance*/
		text-align: center !important;
		margin-left: 0px;
		font-size: 1em;
		/* padding-left: 10px; */
		padding-left: 0px;
		z-index: 1000;
	}

.barmenu .sub-menu {
	display: none;
	position: absolute;
/*	margin-left: -50px; */
	margin-top: 5px;
}
	#menu-header-bar-top .sub-menu {
		margin-left: -45px;
	}
	#menu-header-bar-bottom .sub-menu {
		margin-left: -40px;
	}


.barmenu .sub-menu .menu-item {
	display:block;	
	background-color: #0b4670;
/*	background-color: #005B94; #DAE8F3;*/
	width:150px;
	padding: 0 15px;
}
.barmenu .sub-menu .menu-item:hover {
/*	background-color: #075384; */
	background-color: #C24700;
}
.barmenu .sub-menu .menu-item a {
	/*color: #085D96;*/
	margin-left: 0px;
}
.barmenu .sub-menu .menu-item a:hover {
	color: white;
}
.barmenu .menu-item-has-children:hover .sub-menu {
	display: block;
}

#menu-header-menu #menu-item-878 a {
/*	font-weight: bold;
	color: #C24700;*/
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-header--has-event-search .tribe-events-header__events-bar {
	margin-left: 0;
	width: 100%;
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-header {
	margin: 15px;
	padding: 0;
}

.tribe-common--breakpoint-medium.tribe-common .tribe-common-b1--min-medium {
	font-size: 16px;
	line-height: 1.62;
	margin-left: 15px;
}

.tribe-events-view {
	position: relative;
	background-color: #DAE8F3;
	width: 100%;
/*	margin-top in @media screen below */
}

.tribe-common-l-container {
	padding-top: 20px !important;
	padding-bottom: 20px !important;
}


/*-----------------------
BODY
------------------------*/
	
.um {
	opacity: 1 !important;
}

.boxwrapper {
/*	background-color: #DAE8F3;
	border: 1px solid #0b4670; */
	box-shadow:inset 0px 0px 0px 1px #0b4670;
	float: left;
	width: auto;
	overflow: hidden;
	height: auto;
}
.right {
	float:right;
}
.boxtitle {
	display: block;
	height: 30px;
	line-height: 30px;
	background-color: #0b4670;
/*	background-color: #085D96; */
	color: white;
	font-size: 1em;
}
.boxtitle a {
	color: white;
}
.boxcontent {
/*	background-color: #DAE8F3; */
	color: black;
	/*font-size: 0.8em;*/
	font-size: 15px;
	overflow: hidden;
	/*height: auto;  	has to be auto */
	height: auto;
}

.constrainWidth {
	max-width: calc(100vw - 40px) !important;
}

.video-responsive{
    overflow:hidden;
    padding-bottom:56.25%;
    position:relative;
    height:0;
}
.video-responsive iframe{
    left:0;
    top:0;
    height:100%;
    width:100%;
    position:absolute;
}


@media screen and (min-width: 975px) {
	.full {width: 897px; padding: 0 13px;}
	.threequarter {width:663px; padding: 0 13px;}
	.half {width:429px; padding: 0 13px;}
	.third {width:273px; padding: 0 13px;}
	.quarter {width:195px; padding: 0 13px;}

	.boxtitle {
		padding: 0 13px;
	}
	.boxwrapper {
		margin: 6px;
	}
	.boxcontent {
		padding: 13px;
	}
	.content {
		float: left;
		height: auto;
		width: 936px;
		overflow: hidden;
	}
	.frontpage-right-image{
	  float:right;
	}
	
	.rightsideResponsiveDiv {
		float: right;
		clear: right;
	}
	.responsive-marginleft20 {
		margin-left: 20px;
		margin-right: 0;
	}
	.table-content {
                display: table-cell;
        }
	.tribe-events-view {
		margin-top: 270px;
	}
	#stories-map #stories-map-left {
		display: table-cell;
		width: 60%;
	}
	#stories-map #stories-map-right {
		display: table-cell;
		width: 40%;
	}
	.alignleftthird {
		width: 40%;
		float: left;
		clear: both;
	}
	.alignrightthird {
		width: 40%;
		float: right;
		clear: both;
	}
}
@media screen and (max-width:974px) and (min-width:600px)  {
	.full {width: 93vw; padding: 0 1vw;}
	.threequarter {width:69vw; padding: 0 1vw;}
	.half {width:45vw; padding: 0 1vw;}
	.third {width:29vw; padding: 0 1vw;}
	.quarter {width:21vw; padding: 0 1vw;}

	.boxtitle {
		padding: 0 1vw;
	}
	.boxwrapper {
		margin: .5vw;
	}
	.boxcontent {
		padding: 1vw;
	}
	.content {
		float: left;
		height: auto;
		width: 96vw;
		overflow: hidden;
	}
	.frontpage-right-image{
	  float:right;
	}
	
	.rightsideResponsiveDiv {
		float: right;
		clear: right;
	}
	.responsive-marginleft20 {
		margin-left: 20px;
		margin-right: 0;
	}
	.table-content {
                display: table-cell;
        }
	.tribe-events-view {
                margin-top: 200px;
        }
	#stories-map #stories-map-left, #stories-map #stories-map-right {
                display: block;
                width: 100%;
        }
	.alignleftthird {
		width: 40%;
		float: left;
		clear: both;
	}
	.alignrightthird {
		width: 40%;
		float: right;
		clear: both;
	}
}
@media screen and (max-width:599px) and (min-width:0px)  {
	.full {width: 93vw; padding: 0 1vw;}
	.threequarter {width:93vw; padding: 0 1vw;}
	.half {width:93vw; padding: 0 1vw;}
	.third {width:93vw; padding: 0 1vw;}
	.quarter {width:93vw; padding: 0 1vw;}

	.boxtitle {
		padding: 0 1vw;
	}
	.boxwrapper {
		margin: .5vw;
	}
	.boxcontent {
		padding: 1vw;
	}
	.content {
		float: left;
		height: auto;
		width: 96vw;
		overflow: hidden;
	} 
	.frontpage-right-image{
	   display: block;
    	margin: 0 auto;
	}
	
	.rightsideResponsiveDiv { 
                float: none;
                clear: both;
        }
	.responsive-marginleft20 {
		margin-left: auto;
		margin-right: auto;
	}
	.table-content {
                display: block;
        }
	.tribe-events-view {
                margin-top: 200px;
        }
	#stories-map #stories-map-left, #stories-map #stories-map-right {
                display: block;
                max-width: 100%;
        }
	.alignleftthird {
		width: 80%;
		float: none;
		display: block;
		margin-left: auto !important;
		margin-right: auto !important;
	}
	.alignrightthird {
		width: 80%;
		float: none;
		display: block;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

/* exception case */
@media screen and (min-width:700px) {
	.rightsideResponsiveDiv-Urgent {
                float: right;
                clear: right;
        }
        .responsive-marginleft20-Urgent {
                margin-left: 20px;
                margin-right: 0;
        }
}

@media screen and (max-width:699px) and (min-width:0px) {
	.rightsideResponsiveDiv-Urgent { 
                float: none;
                clear: both;
        }
	.responsive-marginleft20-Urgent {
		margin-left: auto;
		margin-right: auto;
	}
	
}

/*-----------------------
FOOTER
------------------------*/

#footer {
	float: left;
	height: auto;
	overflow: hidden;
	background-color: #0b4670;
/*	background-color: #085D96; */
}	

.footer-statement{
	  margin: 0 auto 0 auto;
	  font-size: 9px;
  	background-color: #0b4670;
/*	background-color: #085D96; */
  color: #fff;
}
@media screen and (min-width: 975px) {
	#footer {
		width: 912px;
		margin: 6px 6px 25px 6px;
		padding: 6px;
	}
  .footer-statement{
    width: 936px; 
	 }
	
}
@media screen and (max-width:974px) and (min-width:600px)  {
	#footer {
		width: 95vw;
		margin: 0.5vw 0.5vw 0.7vw 0.5vw;
		padding: 6px 0;
	}
   .footer-statement{
	padding: 0.5vw 0.5vw 0.5vw 0.5vw;
		margin-top:16px;
	  }
	html{
		background-color: #0b4670;
		/* background-color: #085D96; */
	}
}
@media screen and (max-width:599px) and (min-width:0px)  {
	#footer {
		width: 95vw;
		margin: 0.5vw 0.5vw 0.7vw 0.5vw;
		padding: 6px 0;
	}
	.footer-statement{
		padding: 0.5vw 0.5vw 0.5vw 0.5vw;
		margin-top:16px;
	}

	html{
		background-color: #0b4670;
		/* background-color: #085D96; */
	}
}

/*-----------------------
HEADER
------------------------*/


/*-----------------------
CONTENT
------------------------*/
.entry-content {
	overflow: hidden;
	position: relative;
	width: 100%;
}
.entry-thumbnail {
	width: 20%;
	height:100%;
	padding-right: 2%;
	border-right: 1px solid black;
	display: inline-block;
	float: left;
}
.entry-text {
	height: 100%;
	float: right;
	width: 74%;
	padding-left: 3%;
}
.entry-title {
	margin-top: 0;
}
.alignright {
	float:right;
}
.alignleft {
	float: left;
}
.spacer {
	height: 15px;
	width: 100%;
	float: left;
}
@media screen and (min-width: 975px) {
	.alignright {
	width: 50%;
	}
	.alignleft {
		width: 50%;
	}
	.sectiontext {
		width: 70%;
	}
	.sectionimg {
		width: 50%;
		margin-left: 10px;
	}
}
@media screen and (max-width:974px) and (min-width:600px)  {
	.alignright {
	width: 50%;
	}
	.alignleft {
		width: 50%;
	}
	.sectiontext {
		width: 100%;
	}
	.sectionimg {
		width: 50%;
		margin-left: 10px;
		text-align: center;
	}
	.sectionimg img {
		margin: 0 auto;
	}
}
@media screen and (max-width:599px) and (min-width:0px)  {
	.alignright {
	width: 100%;
	}
	.alignleft {
		width: 100%;
	}
	.sectiontext {
		width: 100%;
	}
	.sectionimg {
		width: 100%;
	text-align: center;
	}
	.sectionimg img {
		margin: 0 auto;
	}
}

.autowidth {
	width: auto;
}

/*-----------------------
PAGES
------------------------*/
.contactuscontent {
	padding-top: 50px;
}

.section {
	width: 100%;
	overflow: hidden;
}
h3 {
	display: block;
	padding-bottom: 5px;
	border-bottom:2px black solid;
}

.sectionimg {
	float:right;
	position: relative;
}
.caption {
	max-width: 100%;
	font-size: .8em;
}
.source {
	max-width: 100%;
	font-size: .8em;
}
.sectiontext ol, .sectiontext ul, .section ol, .section ul {
	padding-left: 20px;
	margin-top:0;
}

/* ADDED FOR IMAGE MAP*/

#cal_map {
/*        float: right;*/
/*        margin-right: 15px;*/
	margin-left: auto;
	margin-right: auto;
        margin-top: 20px;
        width: 215px;
        height: 244px;
	background: url(img/calimapnav.gif);        
	position: relative;
}


#cal_map #map_overlay {
        width: 215px;
        height: 244px;
        position: absolute;
        top: 0px;
        left: 0px;
        z-index: 2;
}

.map_overlay {
        position: absolute;
        z-index: 1;
        display: none;
}

.map_overlay_info {
        position: absolute;
        z-index: 3;
        display: none;
        color: white;
        padding: 2px;
        font-size: 10.5px;
        font-family: Helvetica, Arial,sans-serif;
        cursor: pointer;
}


/* homepage image */
.content .boxwrapper .boxcontent.quarter{
	min-height: 270px ! important;
}


/*  seven step menu */

#menu-seven-steps-menu-1 .menu-item-4380,.menu-item-4381,.menu-item-4382{
	font-size: 20px; font-weight: bold;
	padding: 20px 0px 5px 0px;
}
.menu-item-4380 a,.menu-item-4381 a,.menu-item-4382 a{
  color:black;
}

.quarter .menu .sub-menu {
	display: none;
	padding-left: 20px;
}

/*w3.css*/

.w3-card{border:1px solid #ccc}
.w3-card-2,.w3-example{box-shadow:0 2px 4px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12)!important}
.w3-card-4,.w3-hover-shadow:hover{box-shadow:0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19)!important}
.w3-card-8{box-shadow:0 8px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19)!important}
.w3-card-12{box-shadow:0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19)!important}
.w3-card-16{box-shadow:0 16px 24px 0 rgba(0,0,0,0.22),0 25px 55px 0 rgba(0,0,0,0.21)!important}
.w3-card-24{box-shadow:0 24px 24px 0 rgba(0,0,0,0.2),0 40px 77px 0 rgba(0,0,0,0.22)!important}


.cs-padding-1{padding:1px;}
.cs-padding-2{padding:2px;}
.cs-padding-4{padding:4px;}
.cs-padding-8{padding:8px;}
.cs-padding-16{padding:16px;}
.cs-padding-32{padding:32px;}
.cs-padding-64{padding:64px;}
.cs-padding-128{padding:128px;}
.cs-bold {
    font-weight: bold;
}
/* for display media */
.display-img{
	float:left;
  width: 25%;
  display:table-cell; vertical-align:middle; text-align:center;
}


.display-text{
	float: right;
	width: 70%;
}


.no-dec{
text-decoration: none;
}

/* for the category list */
li.current-cat{
font-weight: bold;
}

/*li a {
text-decoration: none;
}*/
li.cat-title{
    font-weight: bold;
    list-style-type: none;
  margin-top: 10px;
}
li.cat-title a{
 color:black;
}

li.cat-item{
  list-style-type: none;
  margin-top: 5px;
  margin-left: 15px;
}


/*
adding for flex
*/
.container {  
	padding: 10px;
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 10px;
	justify-content: space-around;
	align-items:start;
	align-content: center;
	flex-direction: row;
  }
  .item {
	padding: 10px;
	/* background-color: rgba(111,41,97,.3);
	border: 2px solid rgba(111,41,97,.5); */
	margin-bottom: 10px;
  }
  .item-nehrp {
	/* padding: 10px; */
	/* background-color: rgba(111,41,97,.3);
	border: 2px solid rgba(111,41,97,.5); */
	margin-bottom: 10px;
	width: 130px;
	height: 100px;
	margin-top: 20px;
  }
  .logo{
	width: 80px;
	height: 80px;
  }
  
  .push {
	margin-left: auto;
  }
