/*
 Theme Name:   CounterVortex
 Description:  Dynamic Theme for CounterVortex based on Simple Life
 Author:       Chris Rywalt
 Author URI:   https://crywalt.com
 Template:     simple-life
 Version:      0.0.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  countervortex
*/

/* General layout */
page {
  width: 100vw;
}

.site-header {
  width: 100vw;
  background-color: #B61C1E;
}

.site-content {
  width: 100vw;
  padding-top: 0.5vw;
}

.content-area {
  width: 75vw;
}

.widget-area {
  width: 25vw;
}

.site-main {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: flex-start;
  align-content: flex-start;
}

.subscriptions-table {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: flex-start;
  align-content: flex-start;
}

.subscription-option {
  border: 1px solid gray;
  margin-bottom: 1vw;
  padding: 1vw;
}

.entry-title {
  margin: 0;
}

.daily-report-lead {
  display: block;
  width: 100%;
}

.blog {
//  width: 18vw; 
 // height: 40vh; 
}

.entry-header {
  font-size: 8pt;
  padding: 0;
}

.wp-post-image {
  margin-bottom: 0;
}

.alignright {
  max-width: 100% !important; 
  height: auto !important;
  width: auto !important;
}

.more-headlines {
  display: block;
  width: 100%;
}

.main-title {
  display: block;
  width: 100%;
}

.tile-post {
  width: 36vw; 
  //height: 80vh; 
}

.entry-summary {
  font-size: 8pt;
  overflow: hidden;
}

body {
  font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
}

.float-left {
  float: left;
  margin-right: 10px;
  margin-bottom: 10px;
}

.main-navigation {
  background-color: #6F0011;
}

.main-navigation ul ul a {
    color: White;
    background-color: #6F0011;
}

.main-title {
  font-size: 2em;
  color: #B61C1E;
  text-transform: uppercase; 
}

.more-headlines {
  font-size: 1.5em;
  color: #B61C1E;
  text-transform: uppercase; 
}

a, a:visited, a:hover, a:focus, a:active {
    color: #B61C1E;
}

.menu-item a, .menu-item a:visited, .menu-item a:hover, .menu-item a:focus, .menu-item a:active {
    color: White !important;
}

.page-header {
  margin: 0;
}

.entry-title, .entry-title a {
  color: #B61C1E !important;
  font-weight: bold !important;
}

.entry-title a:hover {
  color: #B61C1E !important;
  text-decoration: underline !important;
}

.widget li:before {
    color: #B61C1E;
}

.entry-summary {
  padding: 0;
}

.region-badge {
  position: relative;
  top: 10px;
  left: 5px;
  background-color: #B61C1E;
  color: White;
  float: right;
  z-index: 99;
  padding: 0 1em;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.region-badge-tag:not(:first-child):before {
  content: ", ";
}

#boxes {
  display: flex;
  align-content: flex-end;
  align-items: center;
  justify-content: center;
  background-color: #B61C1E;
}

#podcast {
  margin: 0 0.5vw;
}

#patreon {
  margin: 0 0.5vw;
}

#paypal {
  margin: 0 0.5vw;
}

#plea {
  margin: 0 0.5vw;
}

.mean-container .mean-bar {
//  width: 10%;
//  float: right;
  background-color: #B61C1E;
}

.link-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.svg-container { 
  display: inline-block;
  position: relative;
  width: 100%;
  padding-bottom: 50%; 
  vertical-align: middle; 
  overflow: hidden; 
  background-color: #aae3e0;
}

.svg-content { 
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
}

.region-list {
  font-size: 1em;
  font-weight: 1000;
}

.back-issue-block {
  margin-bottom: 0.5em;
}

.back-issue-item::after {
   content: "; ";
}

.back-issue-item:last-child:after { 
   content: "";
}

.entry-header, .entry-header h2 {
  border: none;
  padding-bottom: 0;
  padding-left: 0;
  margin-bottom: 0.5vw;
  width: 100%;
  max-width: 100%;
}

.entry-content {
  padding: 0;
}

footer.entry-footer {
  padding: 0;
}

.site-main .post-navigation, nav.pagination {
  padding: 0;
}

.comments-area {
  padding: 0;
}

.site-branding {
  align-items: center;
  margin: 0;
  background-color: #B61C1E;
  text-transform: uppercase;
}

.site-title, .site-title a, .site-title a:hover, .site-description {
  margin: 0;
  color: Black;
  letter-spacing: normal;
  font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
}

.site-description {
  text-transform: none;
  font-style: italic;
  font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
  letter-spacing: normal;
}

.custom-logo {
  margin: 1vw;
  width: 5vw;
}

.entry-meta, .entry-footer {
    clear: both;
    color: #B61C1E;
}

.nav-links i.fa {
    color: #B61C1E;
}

footer#colophon {
  background-color: #6F0011;
}

/* Fix weird inline style where images are incorrectly sized for mobile */
.size-full {
  width: auto !important;
  height: auto !important;
}

/*.float-left, .size-full, .size-medium, .size-large, .alignnone, .aligncenter, .wp-post-image {*/
.float-left, .size-medium, .size-large, .alignnone, .aligncenter, .wp-post-image {
  /*width: auto !important;*/
  height: auto !important;
  width: 100% !important;
}

.clear {clear: both;}

.daily-report-lead {
 // margin-bottom: -0.5vw;
  padding-left: 0;
  font-size: 14px;
  font-weight: bold;
  color: #B61C1E;
}

blockquote {
  font-size: inherit;
}

.widget_text {
  border: 2px solid White;
}

#custom_html-3, #custom_html-4 {
  background-color: transparent;
  color: #B61C1E;
  border: none;
}

#custom_html-3 a {
  background-color: transparent;
}

#custom_html-4 .widget-title {
  margin-bottom: 0.25vw;
}

#custom_html-3 .widget-title, #custom_html-4 .widget-title {
  text-align: center;
  background-color: transparent;
  color: #B61C1E;
}

#search-2 {
  background-color: transparent;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0.5vw;
  margin-bottom: 0.5vw;
  box-shadow: none;
}

#custom_html-4 {
  padding-top: 0;
  padding-bottom: 0;
  box-shadow: none;
}

#custom_html-4 .widget-title {
  color: White;
}

/* Desktop layout */
@media screen and (min-width: 640px) {
  .type-page {
    width: 100%;
  }

  .tile-blog {
    width: 16vw; 
  }

  .tile-blog .entry-summary p {
    display: none;
  }

  .tile-post {
    width: 34vw; 
  }

  .site-branding {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 1em 1em;
    padding-top: 1vw;
    width: 75%; /* only up to widget-area width */
  }

  .site-branding-text {
    margin-right: 5vw;
  }

  #secondary {
    position: absolute;
    top: 0;
    right: 0;
  }

  .region-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .region-set {
    padding-bottom: 0.5em;
    padding-right: 0.5em;
    width: 50%;
    border-right: 1px solid White;
    border-bottom: 1px solid White;
  }

  .region-set:nth-child(even) {
    border-right: none;
    padding-left: 0.5vw;
  }

  .region-set:nth-child(7), .region-set:last-child {
    border-bottom: none;
  }

  .widget, .widget a, .widget li:before, .widget-title {
    background-color: #B61C1E;
    background-color: #6F0011;
    color: White;
  }

  .small_globe, .small_globe a {
    background-color: #aae3e0;
    border-radius: 45% 45%;
    width: 80%;
    text-align: center;
    margin: auto;
  }

  .small_globe {
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }

  .small_globe_img {
    width: 60%;
  }

  .page-header {
    width: 100%;
  }

  .single-post {
    width: 100%;
  }

  .hentry {
    box-shadow: none;
    margin: 0;
  }

/*
  .entry-title, .entry-title a {
    font-size: 0.6em;
    text-align: justify;
  }
*/

  .entry-summary {
    padding-right: 1em;
  }

  .more-link {
    display: block;
    width: 100%;
    text-align: right;
  }

  .type-post {
    //width: 100%;
    overflow: auto;
  }

  .posts-navigation {
    width: 100%;
  }

  .entry-content {
    width: 100%;
  }

  .comments-area {
    width: 100%;
  }

  .site-footer {
    margin: 0;
    width: 100%;
  }

  .entry-header h2 {
    font-size: 1.5vw;
  }

  header#masthead {
    padding-top: 0;
  }
}

/* Tablet layout */
@media screen and (min-width: 640px) and (max-width: 769px){
  .region-set, .region-set:nth-child(even) {
    width: 100%;
    border-right: none;
    padding-left: 0;
  }
}

/* Mobile layout */
@media screen and (max-width: 640px) {
  header#masthead {
    padding-top: 0;
  }

  .custom-logo {
    width: 50vw;
    margin-top: 0;
  }

  #secondary {
    display: none;
  }

  #page {
    overflow: hidden;
  }

  #primary {
    width: 100vw;
  }

  .row {
    width: 100vw;
    margin: 0;
  }

  /* Not sure why but display: flex causes the whole block to 
     leap to the right. */
  .site-main {
    display: block;
  }

  .container {
    padding: 0;
  }

  .entry-header {
    border-bottom: none;
    margin-bottom: 0;
    padding: 0;
    //padding-left: 1em;
    position: relative;
  }

  .custom-logo-link {
    float: left;
    width: 20vw;
  }

  .mean-container .mean-bar {
    margin-bottom: -25vw;
    background-color: transparent;
  }

  .site-branding {
  }

  .site-branding .custom-logo-link img {
    margin-bottom: 0;
  }

  .site-branding-text {
    display: flex;
    flex-direction: column;
    padding-left: 2vw;
    padding-right: 0;
    padding-bottom: 3vw;
    margin: 0;
    margin-right: 5vw;
  }

  .daily-report-lead {
    margin-top: 0;
  }

  .tile-blog, .tile-post {
    width: 100%; 
  }

  #boxes {
    float: right;
    width: 100%;
    padding: 2vw 0;
  }

  .comments-area {
    width: 100%;
  }
}


