/*
Theme Name: Public Journal
Author: ITS Spiders
Description: Public Theme by ITS Spiders.
Version: 1.0
*/




/*
Global styles.
============================================
*/
p {
  margin: 0.5em;
}
a:focus,
:focus {
  outline: 0;
}




/*
Important styles.
============================================
*/
/*Text meant only for screen readers.*/
.screen-reader-text {
  position: absolute !important;
  margin: 0;
  padding: 0;
}
.screen-reader-text,
.assistive-text {
  text-indent: -99999px;
}

/*Alignment.*/
.alignleft {
  display: inline;
  float: left;
}
.alignright {
  display: inline;
  float: right;
}
.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}


/*
Element styles.
============================================
*/
body,
#main a {
  color: #111111;
}
#main a {
  text-decoration: none;
}


/*
Layout styles.
============================================
*/
html {
  overflow: hidden;
}
html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Futura W01 Light", Helvetica, sans-serif;
}

body.home {
  background-color: #777777;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
}
#ie6 body,
#ie7 body,
#ie8 body {
  background-image: none;
}

html,
body,
#page,
#main {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

#main {
  font-size: 0.9em;
}
body.home #main {
  display: none;
}

#primary {
  position: absolute;
  left: 360px;
  top: 0;
  bottom: 0;
  right: 0;
  overflow: auto;
  padding: 0;
  margin: 0;
}
#content {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 4em;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
}
#primary.has-galley #content {
  padding: 0;
}
#content > iframe {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: 100%;
  max-height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border: 0 none;
  background: #FFFFFF;
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
}

#secondary {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  overflow: auto;
  width: 360px;
  background-color: #222;
  background-color: rgba( 26, 26, 26, 0.94 );
}
#secondary-content {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
body.journal-post-type-issue #secondary,
body.journal-post-type-article #secondary {
  background: #222222;
}

body.journal-page-template-visualizationsoverview #content {
  padding-top: 60%;
}

body.journal-page-template-visualizationsoverview #secondary-content > nav {
  display: table;
  width: 90%;
  height: 100%;
  margin: 0 auto;
}
body.journal-page-template-visualizationsoverview #secondary-content > nav > ul {
  display: table-row;
  height: 100%;
}
body.journal-page-template-visualizationsoverview #secondary-content > nav > ul > li {
  display: table-cell;
  vertical-align: middle;
  height: 100%;
}
body.journal-page-template-visualizationsoverview #secondary-content > nav > ul > li > a {
  display: block;
  width: 80%;
  max-width: 80%;
  min-width: 80%;
  height: 80%;
  margin: 0 auto;
  text-align: center;
  font-weight: bold;
  border: solid 2px rgba(0, 0, 0, 0.5);
  background-position: center;
  opacity: 1;
  -khtml-background-clip: content-box;
  -webkit-background-clip: content-box;
  -moz-background-clip: content-box;
  background-clip: content-box;
  -khtml-border-radius: 0.25em;
  -webkit-border-radius: 0.25em;
  -moz-border-radius: 0.25em;
  border-radius: 0.25em;
  -khtml-background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
}
body.journal-page-template-visualizationsoverview #secondary-content > nav > ul > li:first-child > a {
  width: 90%;
  max-width: 90%;
  min-width: 90%;
  height: 90%;
}
body.journal-page-template-visualizationsoverview #secondary-content > nav > ul > li > a:hover,
body.journal-page-template-visualizationsoverview #secondary-content > nav > ul > li > a:focus {
  opacity: 0.5;
  -webkit-transition: opacity 0.25s;
  -moz-transition: opacity 0.25s;
  -o-transition: opacity 0.25s;
  transition: opacity 0.25s;
}
body.journal-page-template-visualizationsoverview #secondary-content > nav > ul > li > a.featured-image > span {
  visibility: hidden;
}
body.journal-page-template-visualizationsoverview #secondary-content > nav.all-images > ul > li > a.featured-image > span {
  text-indent: -99999px;
  position: absolute;
}
body.journal-page-template-visualizationsoverview #secondary-content > nav > ul > li > a.no-featured-image {
  display: table;
}
body.journal-page-template-visualizationsoverview #secondary-content > nav > ul > li > a.no-featured-image > span {
  display: table-cell;
  height: 100%;
  vertical-align: middle;
  width: 100%;
}
body.journal-page-template-visualizationsoverview #secondary {
  background-color: #FFFFFF;
}

#branding {
  display: none;
}

body.home #branding {
  display: table;
  width: 100%;
  height: 140px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15%;
}
#branding > * {
  display: table-row;
}
#branding > * > * {
  display: table-cell;
}

#branding > *,
#branding > * > * {
  margin: 0;
  padding: 0;
  text-indent: -9999999px;
  height: 100%;
}

#site-title {
  background: url('images/logoclip.png') no-repeat scroll center center transparent;
  width: 352px;
  max-width: 352px;
  min-width: 352px;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
}
#site-description {
  background: url('images/logosub.png') no-repeat scroll 10px center #FFFFFF;
  width: 142px;
  max-width: 142px;
  min-width: 142px;
}
#site-title-divider {
  width: 6px;
  max-width: 6px;
  min-width: 6px;
  border-top: 10px solid #FFFFFF;
  border-bottom: 10px solid #FFFFFF;
  background: rgba(0, 0, 0, 0.35);
}
#site-title-after,
#site-title-left,
#site-title-right {
  background: #FFFFFF;
}
#site-title-left,
#site-title-right {
  width: 5%;
}

#home-nav {
  position: absolute;
  right: 0;
  top: 15%;
}

#home-nav #access li {
  float: none;
  background-color: #333;
  background-color: rgba( 51, 51, 51, 0.94 );
  margin: 24px;
  width: 300px;
}

#home-nav #access li a {
  padding: 12px;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  color: #f89e0c;
  font-size: 1.1em;
}

#home-nav #access li a:hover {
  color: #cd0000;
}

#access {
  float: left;
}

#access .menu-wrapper {
  float: left;
}

/*Default menus.*/
#menu-wrapper-normal {
  display: block;
}
#menu-wrapper-mobile {
  display: none;
}

#access .menu {
  float: left;
}
#access ul {
  float: left;
}
#access ul,
#access li {
  margin: 0;
  padding: 0;
  list-style: none;
}
#access li {
  display: block;
  float: left;
}
#access li a {
  display: block;
  padding: 1em;
  font-size: 1em;
  text-decoration: none;
  line-height: 1em;
  color: #f89e0c;
  -webkit-transition: color 0.25s;
  -moz-transition: color 0.25s;
  -o-transition: color 0.25s;
  transition: color 0.25s;
}
#access li a:hover,
#access li a:focus {
  color: #CD0000;
}

#footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: auto;
  color: #eee;
  background-color: #fff;
}
.above-footer,
#page .above-footer {
  bottom: 50px;
}
#external {
  height: 50px;
  float: right;
}
#footer img {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  height: 100%;
  padding: 5px;
  float: right;
  width: auto;
}
#footer-logo img {
  vertical-align: top;
}

#issue-header {
  margin-left: 12px;
}
.issue-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: center/cover;
  overflow: auto;
  padding-bottom: 60px;
}
.issue-nav .ui-accordion-header {
  background-color: #f0b818;
  color: #fff;
  font-weight: 300;
  margin: 0 0 12px;
  padding: 12px;
  position: relative;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 18px;
}
.issue-nav .ui-accordion-header:hover {
  cursor: pointer;
}
.issue-nav .ui-accordion-header:focus {
  outline: none;
}
.issue-nav .ui-accordion-header-active {
  margin-bottom: 0;
}
.issue-nav .ui-accordion-content {
  background-color: #fff;
  margin: 0 12px 0 12px;
  padding: 12px 12px 6px;
}
.issue-nav .article-group {
  padding: 0;
  margin: 0;
}
.issue-nav .article {
  margin-bottom: 6px;
}
.issue-nav .article a {
  font-weight: 700;
  font-size: 14px;
}
.issue-nav .article a:hover {
  opacity: 1;
  color: #f0b818;
}
.issue-nav .article > a:hover > span {
  color: #000;
}
.issue-nav .article > a > span {
  font-weight: 300;
  display: block;
  color: #999;
}
.article-excerpt {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #eee;
  color: #666;
  z-index: 9999999;
  padding: 12px;
  overflow-y: scroll;
}
.article-excerpt span {
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
  padding: 12px 12px 24px 36px;
}
.article-excerpt p {
  margin: 0;
}
#issue-contents:before {
  content: 'Contents:';
  font-size: 28px;
  line-height: 48px;
  color: #eee;
  font-family: Georgia, Times, serif;
  font-style: italic;
  font-weight: 700;
  margin-left: 12px;
}
#issue-header > a {
  color: #ddd;
}
#issue-header > a:hover {
  color: #f0b818;
}

/*
Media queries.
============================================
*/
@media only screen and (max-width: 1280px) {
  /*Tablet*/
}

@media only screen and (max-width: 760px) {
  /*Phone*/
  /*Logo Bar*/
  body.home #branding {
    height: 70px;
  }
  #site-title {
    width: 176px;
    min-width: 176px;
    max-width: 176px;
  }
  #site-title-divider {
    width: 3px;
    min-width: 3px;
    max-width: 3px;
    border-top-width: 3px;
    border-bottom-width: 3px;
  }
  #site-description {
    width: 71px;
    min-width: 71px;
    max-width: 71px;
    background-position: 5px center;
    -webkit-background-size: 75%;
    -moz-background-size: 75%;
    background-size: 75%;
  }
  #external {
    height: 40px;
  }
  #access li a {
    padding: 0.5em;
  }
  /*Switch menues.*/
  #menu-wrapper-normal {
    display: none;
  }
  #menu-wrapper-mobile {
    display: block;
    width: 100%;
  }
  #home-nav {
    left: 0;
    top: 0;
    right: 0;
    bottom: 70px;
    overflow: scroll;
  }
  #home-nav * {
    width: 100%;
  }
  #home-nav #access ul {
    float: none;
  }
  #home-nav #access li {
    width: 100%;
    margin: 24px 0;
  }
  #external {
    height: 35px;
  }
  #access li a {
    padding: 0.3em;
  }
  body.home #branding {
    bottom: 0;
  }
  
  body.journal-post-type-issue #primary,
  body.journal-post-type-article #primary {
    display: none;
  }
  body.journal-post-type-issue #secondary,
  body.journal-post-type-article #secondary {
    position: static;
    width: 100%;
    height: 100%;
  }
  .issue-nav .ui-accordion-content {
    margin: 0 42px 0 12px;
  }
  .issue-nav .ui-accordion-header {
    margin-right: 30px;
  }
  .issue-nav .ui-accordion-header:after {
    content: '';
    border-top: 21px solid transparent;
    border-bottom: 21px solid transparent;
    border-left: 21px solid #f0b818;
    position: absolute;
    top: 0;
    right: -21px;
  }
}