/* SET main background color and FONT globally */
html, h2 {
    background-color: #E8E1CE;
    font-family: "Gt sectra";
}

/* SET search input field width to better fit within 3-column layout */
#search-input {
    width: 50%;
    min-width: 125px;
}

.clearfix > table td:not(:first-child) {
    width: 25%;
}

/* SET the invisibility of the workaround site-title link (changed that it goes to WP version of this site) */
#site-title {
    position: fixed;
    width: auto;
    height: 100px;
    font-size: 64px;
    top: 1pt;
    left: 25%;
    right: 15%;
    white-space: nowrap;
    overflow: hidden;
    z-index: 999 !important;
   opacity: 0.0 !important;
}

#about-link > a {
    position: fixed;
    font-size: calc(0.6vw + 0.75em);
    top: 20pt;
    left: 4vw;
    font-weight: 100 !important;
    z-index: 999 !important;
    color: #f1eee5 !important;
}

#about-link > a:link { 
  text-decoration: none; 
} 
#about-link > a:visited { 
  text-decoration: none; 
} 
#about-link > a:hover { 
  text-decoration: none; 
} 
#about-link > a:active { 
  text-decoration: none; 
}

.site-page-pagination {
    display: none;
}

header > nav {
    padding: 0;
    z-index: 250 !important;
    width: 100%;
    max-width: none;
    background-color: #384a42;
    margin-top: 90px;
}

header {
    z-index: 250 !important;
    width: 100% !important;
    max-width: none;
}

.resource-list > .item > .resource-link > img {
    float: left;
    z-index: -1 !important;
}

.resource-list {
    margin-top: 25pt;
}

ul.resource-list .resource:first-child {
    padding-top: 0px;
}

ul.resource-list .resource {
    padding-top: 29px;
   display: inline-block;
    width: 310px;
}

/* FIX up site-title positioning for clickability */
.site-title {
    display: block !important;
    margin-left: calc(30%  + 4vw)!important;
    margin-right: 60% !important;
    min-width: 450px;
    white-space: nowrap;
}

.site-title > a {
    min-width: 450px;
    width: 450px;
    letter-spacing: 1rem;
    white-space: nowrap;
    max-height: 5px !important;
    /*display: none;*/
}

.site-page-pagination {
    margin-top: 15px;
}

/* PUSH navigation items to the right within the header.
ALSO set the top-margin to negative 17 to push up a little higher. */
header > nav {
    margin-top: -30px !important;
    display: inline-block;
    float: right;
}

/* CHANGED font color for all hyperlinks in #content id'd DIV container */
#content a {
    color: #384a42;
}

/* TEMPORARILY hide searchbox  - may put back onto display when plans change for having it up in header */
#search {
    display: none;
    top: 50px;
    right: 0px;
}

/* FORMAT search box body */
#search-body {
    width: 100%;
    text-align:  center;
}

#search-body > input {
    width: 52vw;
    margin-right: 10px;
    font-size: 12pt;
}

.sorting > button, #search-body > button, .site-page-pagination > a {
    background-color: #384a42;
    color: #E8E1CE !important;
    border-radius: 5px;
    padding: 5px;
}

p a {
    color: #384a42 !important;
}

p {
    margin-top: 0;
    font-weight: 50 !important;
    line-height: 1.4
    font-size: 1.2em;
}

p a:link {
    text-decoration: underline;
    text-decoration-style: dotted;
}

p, .navigation {
    font-family: "Gt sectra";
}

header nav::before {
    top: 17px;
    margin: 5px;
    margin-right: 2vw;
    z-index: 1;
}

/*.open::before {
    top: -25px;
    right: 3px !important;
}*/

.navigation > li {
    font-weight: 100 !important;
    font-size: 41px;
    background-color: #384a42;
    text-align: center;
    padding: 10px;
    border: none;
}

.navigation > li > a {
    /*margin-left: 10pt;*/
    text-align: center;
}

.navigation {
    margin-top: 15px !important;
    overflow: hidden;
    max-width: 1800px !important;
    height: 2000px;
}

body {
    background-color: rgba(0,0,0,0);
}

#content {
    margin: 75px auto; /*calc(1vw * 3);*/
    width: 100%;
    min-height: 800px;
    color: #384a42;
    text-align: justify;
    max-width: 1650px;
    margin-top: 150px;
}

#content .resource {
    text-align: left !important;
}

#content > h2 {
    margin: 0;
    margin-bottom: 5px;
    display: block;
}

#content > .blocks > h2 {
    margin: 0;
    display: none;
}

browse-controls > .pagination {
    font-size: 12pt;
}

.advanced-search {
    margin-top: 5px;
    background-color: #384a42 !important;
    color: #E8E1CE !important;
    height: 40px;
    padding: 8px;
    line-height: 25px;
    border-radius: 5px;
    font-size: 12pt;
}

.browse-controls {
    max-height: 100px;
}

.item > h4 > a {
    color: inherit;
}

/* SET header background color and other properties */
header {
    background: url("https://nwn.dhinitiative.org/wp-content/uploads/2019/07/NewWorldNature_HorizontalLogo_Beige.png");
    background-repeat: no-repeat;
    background-size: calc(10vw + 200px);
    background-position: 50% 50%;
    background-color: #384a42;
    color: #E8E1CE;
    position: fixed;
    top: 0;
    width: 100%;
    height: 84px;
}

header > h1:first-child {
   /* margin: auto;*/
    position: relative;
}

.container {
    padding: 0 !important;
    position: fixed;
    width: 100%;
    top: 0 !important;
    max-width: inherit;
}

.site-title {
    display: flex;
    opacity: 0.0;
    font-size: 21pt;
    width: 290px;
    margin-left: 50%;
    margin-top: -5px;
    padding: 0 !important;
}

.site-title > a {
    width: 100%;
}

.open {
     margin-top: -35px !important;
}

.open > .navigation {
     display: block !important;
     width: 100% !important;
     padding-top: 10%;
     min-height: 1000px;
}

@media screen and (max-width: 800px) {
    
     .navigation {
        margin-top: 25px !important;
        width: 100%;
    }

    header {
        background-size: 250px;
    }

    .site-title {
        margin-left: 30% !important;
        margin-right: 60% !important;
    }

    .open > .navigation {
        margin-top: 67px !important;
    }
}

@media screen and (min-width: 800px) {
  header nav:before {
    content: "";
    border: 1px solid #dedede !important;
    border-radius: 2px;
    display: inline-block;
  }
}

.closed > .navigation {
    display: none;
}

header nav>ul>li:last-child {
    border: none;
}