/*
  Theme Name: 911EA Desktop
*/

@import url( 'bernina-fonts.css' );

html, body {
    height: 100%;
    width: 100%;
    margin: auto;
}

body {
    font-family: 'BerninaSansCondensed', Helvetica, sans-serif;
    font-size: 14px;
    color: #333 ;
    background: #eeeeee;
}

a:link,
a:visited {
    color: #33A;
    text-decoration: none;
}

/* Header */

.site-header {
    position: relative;
    top: 0;
    left: 0;
    height: 200px;
}

div.logo-and-title {
    position: relative;
    height: auto;
    margin: auto;
    width: 100%;
    max-width: 1200px;
}

div.header-image {
    width: 316px;
    height: 184px;
    margin-left: 109px;
    margin-top: 30px;
    z-index: 1;
    position: absolute;
    /* background-image: url(https://911ea.org/wp-content/uploads/2016/05/911-ea-logo.jpg); */
    background-image: url(https://911ea.org/wp-content/uploads/2018/03/wtc-health-program-outreach.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.header-text {
    text-align: right;
    background: #2582BE;
    color: #FFFFFF;
    padding: 16px 44px 16px 10px;
    position: relative;
    top: 49px;
    line-height: 90%;
    width: 757px;
    margin: 0px 200px 0px 280px;
}

.header-text h1 {
    font-weight: bold;
    font-size: 34px;
    font-family: 'BerninoSans';
}

.header-text h2 {
    font-family: 'BerninaSansCompressed';
    font-weight: normal;
    font-size: 30px;
    letter-spacing: 2px;
}


/* Wide Featured Image */

.featured-image {
    position: relative;
    background-size: cover;
    max-width: 100%;
    min-width: 1200px;
    height: auto;
    min-height: 317px;
    top: -2px;
    text-align: center;
}

.featured-image img {
    width: 100%;
    position: relative;
    max-width: 1600px;
}


/* General Layout */
.container {
    min-width: 1200px;
    margin: 0 auto;
    position: relative;
    height: auto;
    bottom: 0;
    background: #eeeeee;
}

.main-area {
    border-radius: 8px;
    background: #f8f8f8;
    width: 1080px;
    padding: 40px 0px 80px 0px;
    margin: auto;
    overflow: hidden;
    position: relative;
    top: -60px;
    color: #000;
    text-align: center;
}

.main-area h2 {
    font-family: 'BerninaSansCompressed', Helvetica, sans-serif;
    letter-spacing: 3px;
    font-size: 28px;
}

/* Content Boxes */

#popular-links {
    position: relative;
    width: 1020px;
    margin: auto;
}

.c-box-container {
    background: #FFFFFF;
    padding: 8px 8px 8px 8px;
    display: inline-block;
    border: 1px solid #DDDDDD;
    box-shadow: 0 3px 3px #DDDDDD;
    vertical-align: top;
    position: relative;

    box-sizing: border-box;
}

.large-content-box-container {
    width: 309px;
    height: 300px;
    margin: 0px 15px 40px 14px;
}

.small-content-box-container {
    width: 232px;
    height: 209px;
    margin: 0px 9px 26px 10px;
}

.content-box {
    cursor: pointer;
    background: #FFFFFF;
    width: 99.5%;
    height: 99.5%;
    position: relative;
    margin: auto;
    display: inline-block;
    vertical-align: top;
    overflow: hidden;
}

.content-box h2 {
    font-family: 'BerninaSansCondensed', Helvetica, sans-serif;
    letter-spacing: .4px;
    text-align: left;
    position: relative;
    top: -12px;
    font-size: 16px;
    font-weight: 900;
}

.small-content-box img {
    width: 215px;
    height: 138px;
}

.large-content-box img {
    width: 292px;
    height: 225px;
}

.content-box img {
    position: absolute;
    bottom: 0px;
    left: 0px;
}

.content-box p { /*content box description*/
    color: #faa61b;
    padding-left: 4px;
    padding-top: 6px;
    font-size: 12px;
    text-align: left;
    line-height: 14px;
}

.content-box a:link,
.content-box a:visited {
    text-decoration: none;
    color: #555555;
}

/* Pages */
.page-text {
    text-align: justify;
    margin: auto;
    display: inline-block;
    vertical-align: top;
    position: relative;
    font-family: 'BerninaSansCondensed';
    font-size: 16px;
}



.wide-page {
    width: 861px;
}

.narrow-page {
    width: 763px;
}

.left-floating-image {
    float: left;
    display: inline-block;
    margin-right: 20px;
}

.right-floating-image {
    float: right;
    display: inline-block;
    margin-left: 20px;
}

.treatment-center-image {
    float: right;
    padding-right: 140px;
    padding-top: 1.4em;
    width: 20%;
    height: 20%;
}

.page-text h2 {
    font-family: 'BerninaSansCompressed';
    letter-spacing: 3px;
    font-size: 28px;
    text-align: left;
    margin-top: 60px;
}

.page-text h3 {
    font-weight: normal;
    text-align: left;
    font-family: 'BerninaSansCondensed';
    font-size: 16px;
    font-weight: bold;
}

.page-text h4 {
    font-weight: normal;
}


.page-text h5 {
    font-size: 16px;
    font-weight: normal;
    text-align: center;
}

.page-text a:link, .page-text a:visited {
    color:  #2582BE;
}

.page-text a:hover {
    color:  #faa61b;
}

.page-main-area {
    border-radius: 8px;
    background: #FFFFFF;
    width: 1080px;
    margin: auto;
    overflow: hidden;
    position: relative;
    padding-top: 30px;
    padding-bottom: 100px;
    color: #000;
    text-align: center;
}

.content-column {
    -moz-box-sizing: border-box; 
    padding: 0px 10px 0px 10px;
    position: relative;
}



/* Pages Menu */

.page-nav {
    width: 900px;
    margin: 60px auto;
    font-size: 14px;
}

.page-nav ul {
    position: relative;
    width: 772px;
    font-family: 'BerninaSansCondensed', sans-serif;
    margin: auto;
}

.page-nav ul:before, .page-nav ul:after { 
    content: "";
    display: table;
}

.page-nav ul:after {
    clear: both;
}

.page-nav ul li {
    list-style: none;
    float: left;
    background-color: #2582BE;
    
    margin: 0px 1px 1px 0px;
}

.page-nav ul li a:link,
.page-nav ul li a:visited {
    display: block;
    padding: 10px 18px;
    color: #FFFFFF;
}

.page-nav ul li a:hover {
    color: #faa61b;
    background-color: #03609A;
}

.page-nav ul li:nth-child(-n+6) {
    padding: 0 4.6px;
}

.menu-item {
    text-align: center;
}

.menu-item-734 {
 /*   width: 106px; */
}

/* About Us */

.donate-button {
    height: 46px;
    width: 144px;
    font-size: 30px;
    text-align: center;
    border-radius: 6px;
    font-weight: bold;
    line-height: 45px;
    letter-spacing: 2px;
}

#about-us-donate-button {
    background: rgb(37, 130, 190) none repeat scroll 0% 0%;
    color: rgb(255, 255, 255);
    box-shadow: 2px 2px 6px rgb(249, 166, 26);
    border: 1px solid rgb(170, 170, 170);
    position: absolute;
    top: 59px;
    right: 26px;
}

#about-us-news-items {
    vertical-align: top;
    margin: 30px auto;
    width: 900px;
    text-align: center;
    vertical-align: top;
    display: block;
    left: -16px;
    position: relative;
}

#about-us-address {
    background: rgb(115, 154, 203) none repeat scroll 0% 0%;
    font-family: "BerninoSans";
    color: rgb(255, 255, 255);
    text-align: center;
    position: relative;
    margin: 30px auto;
    padding: 20px;
}

.work-issues-header {
    width: 1080px;
    background: #1d5893;
    padding: 10px 50px;
    color: #ffffff;
    overflow: hidden;
    margin-left: -110px;
    text-align: left;
}

.single-news-item {
    font-weight: bold;
    width:341px;
    height: 180px;
    border: 1px solid #000000;
    text-align: center;
    padding: 10px;
    vertical-align: top;
    display: inline-block;
    margin: 20px;
    font-size: 17px;
    overflow: hidden;
    position: relative;
}

.single-news-item p {
    font-family: 'BerninaSansCondensed';
    font-weight: bold;
}

.featured img {
    width: 100%;
    top: 0px;
    position: absolute;
    left: 0px;
}

.news-item-content {
    position: absolute;
    bottom: -18px;
    width: 94%;
}

.single-news-item a:visited {
    color:  #2582BE;
}

/* Search */

#search-results {
    width: 100%;
    height: 100%;
    margin: 60px auto;
    min-height: 300px;
    text-align: center;
    padding-bottom: 100px;
}

.search-result-item {
    padding-bottom: 5px;
    width: 800px;
    margin-bottom: 20px;
    display: inline-block;
    vertical-align: top;
}

.search-result-thumb { 
    width: 138px;
    height: 138px;
    float: left;
    position: relative;
    left:0px;
    margin-right: 10px;
    overflow: hidden;

}

.search-result-thumb img {
    max-height: 100%;
    position: relative;
    left: -20%;
    width: auto;
}

.search-result-text {
    padding: 5px 5px 5px 5px;
    text-align: left;
    margin-top: -10px;
}

.search-result-text h4 {
    margin-top: -10px;
    font-weight: normal;
}

.search-result-item a:link,
.search-result-item a:hover,
.search-result-item a:visited{
    color: #2582BE;
}

/* Navigation above the footer */
#nav-bottom {
    background: #2582BE;
    position: relative;
    left: 0px;
    bottom: 0px;
    height: auto;
    min-height: 300px;
    min-width: 1200px;
    max-width: 100%;
    color: #FFFFFF;
    font-family: 'BerninaSansCondensed', Helvetica, sans-serif;
    font-style: normal;
    font-size: 16px;
    padding-top: 30px;
    margin-top: -90px;
    text-align: center;
    background-size: cover;
}

#nav-bottom a:link, a:visited {
    color: #FFF;
}

#widget-container {
    margin-left: 70px;
}

.textwidget p {
    margin-bottom: -12px;
}

.footer-links {
    margin-top: -8px;
}

.widget {
    list-style-type: none;
}

.bot_quarter {
    position: relative;
    margin: 10px;
    padding: 0px 0px 8px 0px;
    width: 210px;
    min-height: 150px;
    text-align: left;
    display: inline-block;
    white-space: normal;
    vertical-align: top;
}

#widget-container a:hover {
    color:  #faa61b;
}

.bot_quarter li h2{
    font-size: 16px;
    font-weight: normal;
}

#search form input {
    width: 148px;
}

/* Footer */
.site-footer {
    text-align: center;
    text-decoration: none;
    width: 100%;
    color: #FFFFFF;
    position: absolute;
    left: 0px;
    bottom: 0px;
    padding-bottom: 4px;
    font-size: 14px;
}

#footer-donate-button {
    background: rgb(249, 166, 26) none repeat scroll 0% 0%;
    color: #ffffff;
    box-shadow: 2px 2px 6px rgb(255, 255, 255);
    border: 1px solid rgb(170, 170, 170);
    position: relative;
}

    .modal a, .modal a:visited {
      color: #2582BE
    }
    .modal a:hover {
      color: rgb(249, 166, 26)
    }
    .modal {
      font-family: 'Alfa Slab One', cursive;
      height: 100vh;
      width: 100vw;
      display: flex;
      flex-direction: column;
      justify-content: center;
      position: absolute;
      z-index: 10;
      text-align: center;
      padding: 2rem;
      box-sizing: border-box;
      display: none;
    }
    .modal::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      background: rgba(0, 0, 0, .5);
      width: 100%;
      height: 100%;
    }
.modal #close-button {
    font-size: 2em;
    background: #2582BE;
    border-radius: 50%;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    cursor: pointer;
    position: relative;
    left: calc(100% - 1.8em);
    top: 0.3em;
    z-index: 1;
}
    .modal .mask {
      height: 100%;
      width: 100%;
      position: absolute;
      background: #000000;
      opacity: 0.5;
    }
    .modal .modal-content {
    max-width: 900px;
    background: #ffffff;
    margin: 0 auto;
    border-radius: 5px;
    padding: 2em;
    position: relative;
    overflow: auto;
    padding-right: 17px;
    padding-bottom: 0;
    box-sizing: content-box;
    margin-bottom: 2rem;
      
    }
.modal-content img {
    position: relative;
    top: -2.7rem;
    z-index: 0;
    max-width: 100%;
}
.modal-content a {
    display: block;
    position: absolute;
    width: 46%;
    height: 20%;
    top: 60%;
    left: 22%;
}
    ::-webkit-scrollbar {
      display: none;
    }
    .town-hall-announcement {
      display: block;
      margin: 1em auto;
    }

    @media (max-width: 776px) {
      .town-hall-announcement {
        width: 100%;
      }
    }
