/*
 Theme Name: Quadrinhos Marotos
 Author: Marcus Brito
 Text Domain: quadrinhosmarotos
*/

/* CSS RESET */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* END CSS RESET */

body {
  background-color: ghostwhite;
  font-family: 'Noto Sans', sans-serif;
  line-height: 1.5;
  --shadow-color: #dfdfe6;
  --shadow-border: 1px solid var(--shadow-color);
  --accent-color: dodgerblue;
  --spacing-default: 16px;
}

a {
  text-decoration: none;
  color: var(--accent-color);
}

a.disabled {
  color: #c7e3ff;
}

header {
  background-color: white;
  position: fixed;
  top: 0;
  width: 100%;
}

.top {
  display: flex;
  height: 48px;
  border-bottom: var(--shadow-border);
  color: var(--accent-color);
  align-items: center;
}

.custom-logo-container {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-left: var(--spacing-default);
}

.custom-logo {
  width: 100%;
  height: auto;
}

.title {
  flex: 1;
  font-size: 18px;
  height: 100%;
  line-height: 48px;
  margin-left: var(--spacing-default);
}

.menu-wide {
  display: none;
}

.menu-expanded-container {
  height: 0px;
  overflow: hidden;
  text-align: right;
  border-bottom: var(--shadow-border);
  transition: height .5s;
}

.menu-expanded > li {
  display: inline-block;
  margin-right: 1em;
  line-height: 48px;
}

.menu-expanded-active .menu-expanded-container {
  height: 48px;
}

.menu-expanded-active #container {
  padding-top: 96px;
}

#menu-toggle {
  display: block;
  height: 100%;
}

#menu-toggle img {
  display: block;
  margin-top: 8px;
  transition: transform .5s;
}

.menu-expanded-active #menu-toggle img {
  transform: rotate(90deg);
}

.nav {
  display: flex;
  height: 48px;
  background-color: white;
  border: var(--shadow-border);
  border-width: 1px 0;
  margin-top: 1em;
}

.nav > a {
  flex: 1;
  text-align: center;
  line-height: 48px;
  font-size: 16px;
}

#container {
  padding-top: 48px;
  transition: padding-top .5s;
}

#main {
  min-height: calc(100vh - 126px);
}

.post-title {
  font-size: 2em;
  margin-bottom: .5em;
  border-bottom: var(--shadow-border);
}

.before-content, .before-comic {
  margin-top: 1em;
}

.comic-section img {
  width: 100%;
  height: auto;
  margin-top: 1em;
}

.after-comic {
  margin-top: 1em;
  text-align: center;
}

.post-section img {
  max-width: 100%;
  height: auto;
}

.post-section {
  margin: 1em;
}

.post-section p {
  margin-bottom: 1em;
}

footer {
  margin: 1em;
  font-size: 10px;
  line-height: 1.5;
}

.menu-footer > li {
  display: inline-block;
}

.menu-footer > li::after {
  content: "|";
}

.menu-footer > li:last-child::after {
  content: "";
}

.gallery {
  margin-top: 1em;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.gallery-item {
  margin: .5em;
  padding: .5em;
  width: 150px;
  background-color: white;
  border-radius: 8px;
  border: var(--shadow-border);

}

.gallery-item img {
  width: 150px;
  height: 150px;
}

.gallery-item figcaption {
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: 1em;
}

#comments {
  margin-top: 1em;
  font-size: 12px;
}

.comments-title {
  font-weight: bold;
  background-color: white;
  border: var(--shadow-border);
  border-width: 1px 1px 0 1px;
  padding: 16px 16px 0 16px;
}

.comment-list {
  background-color: white;
  border: var(--shadow-border);
  border-width: 0 1px 1px 1px;
  padding: 16px 16px 8px 16px;
}

.comments-pagination {
  background-color: white;
  border: var(--shadow-border);
  margin-top: .5em;
  padding: 16px;
}

.comment {
  margin-bottom: 1em;
}

.comment-author {
  display: inline-block
}

.comment-author::after {
  content: "- ";
}

.comment-author .fn {
  display: inline;
  font-weight: bold;
}

.comment-author .says {
  display: none;
}

.comment-meta {
  display: none;
}

.comment-body > p {
  display: inline-block;
}

.comment-respond {
  background-color: white;
  border: var(--shadow-border);
  margin-top: .5em;
  padding: 16px;
}

.comment-reply-title {
  font-weight: bold;
  margin-bottom: .5em;
}

.comment-form > p {
  margin-bottom: .5em;
}

.comment-form label {
  display: block;
  font-weight: bold;
}

.comment-form textarea, .comment-form input {
  width: 100%;
}

.comment-form input[type=submit] {
  width: auto;
}

.social {
  margin-top: 1em;
  text-align: center;
}

.share-button {
  display: inline-block;
}

.share-button-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 4px;
}

.share-button.facebook .share-button-icon {
  background-color: rgb(59, 89, 152);
}

.share-button.twitter .share-button-icon {
  background-color: rgb(85, 172, 238);
}

.share-button.pinterest .share-button-icon {
  background-color: rgb(189, 8, 28);
}

@media(min-width: 350px) {
  .title {
    font-size: 24px;
  }
}

@media(min-width: 540px) {
  #container {
    padding-top: 48px;
  }

  #menu-toggle {
    display: none;
  }

  .menu-wide {
    display: flex;
  }

  .menu-wide > li > a {
    line-height: 48px;
    padding: 0 .5em;
    display: block;
  }

  .menu-wide > li:last-child > a {
    padding-right: var(--spacing-default);
  }

  .menu-expanded-container {
    display: none;
  }
}

@media (min-width: 940px) {
  #container {
    width: 940px;
    margin: 0 auto;
  }

  .nav {
    border-width: 1px;
  }
}
