/*
Theme Name: DV Theme
Theme URI: ://
Author: Kyle Boyle
Author URI: ://
Description: Theme for DataViz sites.
Version: 1.0
License: None
License URI: ://
Text Domain: dvtheme
Tags: 
*/

html {
  margin: 0;
  line-height: 1.15;
}
body {
  margin: 0;
  background-color: #f8f8f8;
  font-family: 'helvetica-neue', 'helvetica neue', 'helvetica', 'arial', 'sans-serif';
  font-size: 1.2rem;
  font-weight: 300;
  color: #181818;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 4px 8px;
  font-weight: inherit;
}
h1 { font-size: 3.67em; }
h2 { font-size: 3em; }
h3 { font-size: 2.5em; }
h4 { font-size: 2em; }
h5 { font-size: 1.67em; }
h6 { font-size: 1.33em; }
a {
  text-decoration: none;
  color: #3090e8;
}
a:visited {
  color: #1060a0;
}
p {
  margin: 0;
}
strong, b {
  font-weight: bolder;
}
blockquote a { /* fake as button */
  padding: 8px;
  border-radius: 4px;
  border-style: outset;
  border-width: 3px;
  border-color: #3090e8;
  color: #f8f8f8;
  background-color: #3090e8;
}
blockquote a:visited {
  color: #f8f8f8;
}
blockquote a:active {
  border-style: inset;
}
ol {
  margin: 0;
}
.clear {
  clear: both;
}



/* top banner (contains logo, name, and links to pages) */
.banner-content {
  width: 100%;
  height: 72px;
  padding: 4px 0;
  background-color: #3c3c3c;
  white-space: nowrap;
}
img.title {
  height: 64px;
  padding: 4px 20px;
}

/* top menu list of links */
/* global styles */
#show-hide-menu {
  display: none;
}
#menu-check-label {
  display: none;
}
ul.top-menu-list {
  margin: 0;
  list-style: none;
  white-space: normal;
}
ul.top-menu-list a {
  color: #e0e0e0;
  text-decoration: none;
}
ul.top-menu-list li:hover > a {
  color: #3090e8;
}
ul.sub-menu {
  padding: 0;
  list-style: none;
}
/* for mobile */
@media screen and (max-width: 759px) {
  #menu-check-label {
    display: block;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    font-size: 40px;
    color: #e0e0e0;
    text-align: center;
    cursor: pointer;
  }
  .top-menu-wrapper {
    display: none;
    position: absolute;
    box-shadow: 0 6px 16px #404040;
  }
  #show-hide-menu:checked ~ .top-menu-wrapper {
    display: block;
  }
  .top-menu-wrapper {
    top: 72px;
    right: 0px;
    left: 0px;
    padding: 12px;
    background-color: #3c3c3c;
    z-index: 20;
  }
  ul.top-menu-list {
    padding-left: 12px;
    text-align: left;
  }
  ul.top-menu-list > li {
    margin: 4px;
  }
  ul.top-menu-list ul.sub-menu {
    text-align: left;
    padding-left: 16px;
    margin-top: 2px;
  }
}
/* for larger screens/windows */
@media screen and (min-width: 760px) {
  .overflow-container { /* prevents right side overflow, but allows dropdown overflow */
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 80px;
    overflow: hidden;
  }
  .overflow-container:hover {
    height: 240px; /* should be enough to contain about 3 dropdown items */
  }
  .top-menu-wrapper {
    display: inline-block;
    font-weight: bold;
  }
  ul.top-menu-list > li {
    display: block;
    position: relative;
    float: left;
    z-index: 10; /* so hover works when it's positioned above the body content */
  }
  ul.top-menu-list > li > a > div {
    padding: 28px;
  }
  /* sub list */
  ul.top-menu-list ul.sub-menu {
    display: none;
    position: absolute;
    top: 72px;
    right: 0px;
  }
  ul.top-menu-list li:hover ul.sub-menu {
    display: block;
  }
  ul.sub-menu li {
    background-color: #3c3c3c;
  }
  ul.sub-menu > li > a > div {
    min-height: 32px;
    padding: 12px 4px;
    border-bottom: solid 1px #303030;
    text-align: center;
  }
}



/* body content */
.body-content {
  width: 100%;
}
.page p {
  padding: 4px 12px;
}
.body-section {
  position: relative;
  height: 100%;
  width: 100%;
  box-shadow: 0 4px 12px #404040;
  background-color: #f8f8f8;
  background-image: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.body-section .widget-container {
  height: 100%; /* placeholder, get some real properties from the code to be deleted */
  text-align: center;
}
.body-section .widget-container:only-of-type { /* for one widget */
  width: 100%; /* change to accomodate padding */
}
.body-section .widget-container:first-of-type:nth-last-of-type(2n), /* for first of two widgets */
.body-section .widget-container:nth-of-type(2n):last-of-type { /* for second of two widgets */
  width: 50%;
  float: left;
}
.body-section .widget-container:first-of-type:nth-last-of-type(3n), /* first of 3 widgets */
.body-section .widget-container:nth-of-type(2n):nth-last-of-type(2n), /* middle of 3 widgets */
.body-section .widget-container:nth-of-type(3n):last-of-type { /* last of 3 widgets */
  width: 33%;
  float: left;
}
.body-section .widget-container p {
  padding: 4px 12px;
  margin-right: 0;
}
.body-section .widget-container ol {
  padding-top: 2px;
}
.body-section .widget-container ol p {
  padding: 4px;
}
.body-section .widget-container img {
  /* display: block; */
  height: auto;
  max-height: 90%;
  max-width: 90% !important; /* override stupid inline wordpress styles */
  /* margin: 5% auto; */
}
.body-section ol li {
  padding: 4px;
}
/* for mobile */
@media screen and (max-width: 576px) {
  .page p {
    width: 96%;
    padding: 12px 2%;
  }
  .body-section .widget-container:first-of-type:nth-last-of-type(2n), /* for first of two widgets */
  .body-section .widget-container:nth-of-type(2n):last-of-type { /* for second of two widgets */
    width: 100%; /* change to accommodate padding? */
    float: none;
  }
  .body-section .widget-container:first-of-type:nth-last-of-type(2n), /* first of 3 widgets */
  .body-section .widget-container:nth-of-type(n):nth-last-of-type(n), /* middle of 3 widgets */
  .body-section .widget-container:nth-of-type(2n):last-of-type { /* last of 3 widgets */
    width: 100%;
    float: none;
  }
  .body-section .widget-container p {
    width: 96%;
    padding: 24px 2%;
  }
}


/* full page */
.page-full {
  position: relative;
  width: 100%;
  min-height: 500px;
  height: 100%;
}

/* center text */
.center {
  text-align: center;
}


/* footer content */
footer.footer-content {
  height: 200px;
  width: 100%;
  background-color: #3c3c3c;
  color: #e0e0e0;
}
.footer-text { /* this must by static so that the image is positioned relative to .body-section */
  padding: 16px;
}

.social-menu-wrapper {
  padding: 0;
}
ul.social-menu-list {
  padding-left: 32px;
  margin: 0;
  list-style: none;
}
ul.social-menu-list a {
  color: #e0e0e0;
}
ul.social-menu-list a:hover {
  color: #3090e8;
}
