/**
* Theme Name: Davis Foundation Fix - WIP
* Description: Trying to restore the previous appearance
* Template: fcwebbuilder
*/

@import url("https://www.kwdfoundation.org/wp-content/themes/fcwebbuilder/style.css");

#main a {
  font-weight: bold;
  text-decoration: underline;
}
#main a:hover {
  text-decoration: none;
}
#main a.learn-more {
  text-transform: uppercase;
  font-weight: normal;
  font-size: 0.75em;
}
p,
li {
  font-size: 1.5em;
}
body.home p {
  font-size: 1.6em;
}
.centered {
  text-align: center;
}
div#page {
  background: #327291
    url(https://www.kwdfoundation.org/wp-content/themes/davis/images/davis-bg-blue.jpg)
    top center repeat;
}
hgroup.custom-header-text,
div#middle {
  display: none;
}
div#custom-logo {
  margin: 0;
  max-width: 525px;
  padding: 1em;
  box-sizing: border-box;
}
div#header-top {
  width: calc(100% - 525px - 2em);
  position: absolute;
  bottom: 1em;
  right: 1em;
  box-sizing: border-box;
}

article.hentry {
  margin: 0;
}

div#main-wrapper {
  position: relative;
  width: 100%;
}
#main {
  padding: 2vw 4vw;
  box-sizing: border-box;
  min-height: calc(100vh - 320px);
}

footer.entry-meta {
  display: none;
}

/* Footer */
footer#colophon {
  background: #327291
    url(https://www.kwdfoundation.org/wp-content/themes/davis/images/davis-bg-blue-180.jpg)
    top center repeat;
  min-height: 157px;
}

div#site-info {
  padding: 1em 0;
  opacity: 0.7;
}
div#site-info p {
  font-size: 1em;
}
div#hosted-by {
  margin-bottom: 1em;
}
div#hosted-by a {
  height: 32px;
  display: block;
  opacity: 0.5;
}
div#hosted-by img {
  height: 100%;
}

aside.widget,
aside.widget h3.widget-title {
  background-image: url("https://www.kwdfoundation.org/wp-content/themes/fcwebbuilder/images/bg_translucent-black-5.png");
}
aside.widget h3.widget-title {
  font-weight: normal;
}

aside#custom_html-2.widget {
  padding-bottom: 2%;
  margin: 0 auto 2em;
  width: 90%;
  box-sizing: border-box;
  float: none;
}
.home aside#custom_html-2.widget {
  margin-bottom: 0;
}
aside#custom_html-2 h3 {
  text-align: center;
  font-size: 1.5em;
  text-transform: uppercase;
}
aside#custom_html-2 p {
  font-size: 1.25em;
  line-height: 1.35em;
}

section#primary {
  width: 100%;
  position: relative;
  float: none;
  margin: 0 auto;
  padding: 0;
}
body.home .entry-content {
  padding: 2em 4em 0;
  box-sizing: border-box;
}

ul > li {
  list-style: square;
}
li {
  margin-top: 1em;
}
ul.list {
  margin: 2em auto 0;
  padding: 0;
  max-width: 50em;
}

ul.list li {
  list-style-type: none;
  display: inline-block;
  margin: 0;
  padding: 0;
}

.button a,
ul.list li a {
  padding: 1em 2em;
  margin: 0.5em;
  display: block;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-weight: normal;
  font-size: 1em;
  background: linear-gradient(to bottom, #8cc7e4 0%, #296686 100%);
}

#main ul.list a {
  font-weight: normal;
  line-height: 1.25em;
  text-decoration: none;
}

.button a:hover,
ul.list li a:hover {
  background: #327291;
  text-decoration: none;
}

#main .button a {
  display: inline-block;
  margin: 0;
  text-decoration: none;
}
.button {
  text-align: center;
}

.inset {
  margin: 1em 0 0 3vw;
}

header.entry-header {
  text-align: left;
  margin-bottom: 1em;
}
h1.entry-title {
  padding: 0;
  margin: 0;
  font-size: 2.5em;
}
h2 {
  font-size: 2em;
  font-family: "primary";
}

body.home header.entry-header {
}

nav#top-access li.menu-item-has-children:hover {
  background-color: #327291 !important;
}

nav#top-access a {
  padding: 0.5em 0.75em;
}
nav#top-access a:hover {
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.1);
}
nav#top-access ul ul {
  width: 200%;
  background-color: #327291;
}

div.column1,
div.column2.fc-grant-year,
div.column2.fc-grant-category,
h2.fc-grant-criteria span:first-of-type,
h2.fc-grant-criteria br {
  display: none;
}
h2.fc-grant-criteria,
body.fc-grant div#year-end-total,
article.fc-grant {
  margin: 0 2vw;
}
div.column2.fc-grant-amount {
  left: 80%;
  position: absolute;
  top: 0;
  width: 20% !important;
  padding: 1.1em 1em 0 0;
  box-sizing: border-box;
  font-size: 1.3em;
}
div.twoColumnTbl .column2.fc-grant-amount {
  text-align: right;
}
div.twoColumnTbl .column1,
div.twoColumnTbl .column2 {
  width: 100%;
}
body.fc-grant h1.entry-title {
  padding: 0 0.5em 0 0;
}
article.fc-grant > header > h1 {
  font-size: 1.5em;
  line-height: 1.25em;
  margin-bottom: 0;
  width: 80%;
  font-family: "primary";
  font-weight: normal;
}
article.fc-grant > header > h1 span {
  display: block;
}
h2.fc-grant-criteria {
  font-size: 2em;
  font-weight: normal;
  margin-bottom: 1em;
}
h2.fc-grant-criteria p {
  font-size: 0.7em;
}
div.twoColumnTbl.fc-grant-info-tbl {
  margin: 0.25em 0 0;
}
div.twoColumnTbl.fc-grant-info-tbl + p {
  margin: 0;
  width: 80%;
  font-size: 1.1em;
  line-height: 1.25em;
  font-style: italic;
}
article.fc-grant {
  width: calc(100% - 4vw);
  padding: 1em;
  box-sizing: border-box;
  border-bottom: none;
}
article.fc-grant:nth-of-type(odd) {
  background: #f6f6f6;
}
div#year-end-total {
  width: calc(100% - 4vw);
  padding: 0 0 2em;
  float: left;
  position: relative;
}
div#year-end-total span.grantsamount-total {
  display: block;
  padding: 0.5em 0.9em 0 0;
  text-align: right;
  font-size: 1.5em;
}
div#year-end-total span.criteria {
  padding-right: 0.75em;
}
div#year-end-total span.criteria:before {
  content: "Program Area ";
}
div#year-end-total span.criteria:after {
  content: ":";
}
body.fc-grant h1.entry-title span:before {
  content: "Recent ";
}

div#fc-to-top {
  bottom: 1.5em;
  right: 1.5em;
  width: 60px;
  height: 60px;
  padding: 0;
  background: rgba(50, 114, 145, 0.2)
    url("https://www.kwdfoundation.org/wp-content/themes/davis/images/direction-arrow.svg")
    no-repeat center / 35px;
  border-radius: 50%;
  text-indent: -9999px;
  -moz-transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
  -o-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

div#fc-to-top:hover {
  background: rgba(50, 114, 145, 1)
    url("https://www.kwdfoundation.org/wp-content/themes/davis/images/direction-arrow.svg")
    no-repeat center / 35px;
  opacity: 0.75;
}

/* recent grants */

div.tablet1 {
  margin: 1em auto;
  max-width: 600px;
  padding: 0.5em 1em 1.25em;
  background-color: #f8f8f8;
}
table#t1 {
  margin: 0 !important;
}
table#t1 thead tr th.t1 {
  text-align: left !important;
  font-weight: normal;
  background-color: #f8f8f8 !important;
}

table#t1 tbody tr td {
  padding: 1em !important;
  background-color: transparent !important;
  text-align: left !important;
}
table#t1 tbody tr:last-of-type td#n1 {
  text-align: right !important;
  font-weight: bold;
  padding: 1em !important;
}

table#t1 tbody tr td#n2 {
  text-align: center !important;
  font-size: 0.9em;
}
table#t1 tbody tr td#n3 {
  font-size: 0.9em;
  text-align: right !important;
}
table#t1 tbody tr:last-of-type td#n2,
table#t1 tbody tr:last-of-type td#n3 {
  font-size: 1em;
  font-weight: bold;
}

table#t1 tbody tr.table-noalt,
table#t1 tbody tr.table-alternate {
  background: none repeat scroll 0 0 transparent !important;
}
table#t1 tbody tr td#n1 {
  padding: 0 !important;
}
table#t1 tbody tr td#n2,
table#t1 tbody tr td#n3 {
  color: #444;
}
table#t1 thead tr th.t4 {
  background: none !important;
  color: #444 !important;
  font-size: 1.25em !important;
  line-height: 1.25em !important;
  padding: 0.25em 0 0.5em !important;
  text-align: left !important;
  font-weight: normal !important;
}
table#t1 tbody tr td#n1 a {
  padding: 1em;
  display: block;
  background: linear-gradient(to bottom, #8cc7e4 0%, #296686 100%);
  color: #fff;
  font-weight: normal;
  margin-bottom: 2px;
  text-decoration: none;
}
table#t1 tbody tr td#n1 a:hover {
  background: #327291;
  color: #fff;
  text-decoration: none;
}
table#t1 {
  empty-cells: hide;
}

/* Responsive */
@media (max-width: 75em) {
  div#main {
    border: none;
  }
  h1#site-title {
    font-size: 3.3em;
  }
}

@media (max-width: 768px) {
  body.home .entry-content {
    padding: 1em;
  }
  body.home p {
    font-size: 1.2em;
  }
  ul.list li {
    display: block;
  }
}

@media (max-width: 768px) {
  li#menu-item-72 > a,
  li#menu-item-74 > a {
    display: none;
  }

  nav#top-access,
  nav#top-access ul ul li,
  nav#access ul ul li {
    text-align: center;
  }
  nav.primary-menu,
  nav#top-access.primary-menu {
    max-width: unset;
    right: -1em;
    width: 100vw;
    top: -85px;
    position: absolute;
  }

  nav.primary-menu.open {
    background-color: #327291;
  }
  nav.primary-menu:before,
  nav#top-access.primary-menu:before {
    background-color: #327291;
    border-radius: 0;
    padding: 1.5em 1em 1.5em 2.5em;
    background-position: 15% -6.9em;
  }

  nav.primary-menu ul.menu,
  nav#top-access.primary-menu ul.menu {
    width: 100%;
  }

  nav.primary-menu.open ul.menu,
  nav#top-access.primary-menu.open ul.menu {
    display: block;
    top: 3.4em;
  }
  nav.primary-menu ul.menu li,
  nav#top-access.primary-menu ul.menu li {
    width: 100%;
    font-size: 1em;
  }
  nav#top-access ul {
    background-color: #327291;
  }
  nav#top-access ul ul {
    display: block;
    width: 100%;
    position: initial;
  }
  nav#top-access ul ul a {
    width: 100%;
    padding: 0.5em;
    box-sizing: border-box;
  }
  nav#top-access a,
  nav#top-access ul ul a {
    font-size: 1.5em;
    text-transform: uppercase;
    border-bottom: 1px #fff solid;
    font-weight: bold;
  }
  nav#top-access .current-menu-item > a,
  nav#top-access .current-menu-ancestor > a,
  nav#top-access .current_page_item > a,
  nav#top-access .current_page_ancestor > a {
    font-weight: bold;
  }
}

@media (max-width: 480px) {
  p,
  li {
    font-size: 1.2em;
  }
  ol > li,
  ul > li {
    padding: 0;
  }
  h1.entry-title {
    font-size: 2em;
    text-align: center;
    line-height: 1.1em;
  }
  h2,
  h2.fc-grant-criteria {
    font-size: 1.5em;
  }

  article.fc-grant > header > h1 {
    font-size: 1.1em;
    width: 100%;
  }
  div.twoColumnTbl.fc-grant-info-tbl {
    margin: 0;
  }
  div.column2.fc-grant-amount {
    position: relative;
    width: 100% !important;
    padding: 0.1em 0;
    left: 0;
    font-size: 1em;
  }
  div.twoColumnTbl .column2.fc-grant-amount {
    text-align: left;
  }
  h2.fc-grant-criteria p {
    font-size: 0.6em;
  }
}
