/* Background data (Original source: https://subtlepatterns.com/grid-me/) */
/* Animations */
@-webkit-keyframes bg-scrolling-reverse {
  100% {
    background-position: -50px -50px;
  }
}
@-moz-keyframes bg-scrolling-reverse {
  100% {
    background-position: -50px -50px;
  }
}
@-o-keyframes bg-scrolling-reverse {
  100% {
    background-position: -50px -50px;
  }
}
@keyframes bg-scrolling-reverse {
  100% {
    background-position: -50px -50px;
  }
}
@-webkit-keyframes bg-scrolling {
  0% {
    background-position: -50px -50px;
  }
}
@-moz-keyframes bg-scrolling {
  0% {
    background-position: -50px -50px;
  }
}
@-o-keyframes bg-scrolling {
  0% {
    background-position: -50px -50px;
  }
}
@keyframes bg-scrolling {
  0% {
    background-position: -50px -50px;
  }
}

html {
    color: #aaa;
}

/* Main styles */
body {
  display: flex;
  align-items: center;
  justify-content: start;
  flex-direction: column;
  margin-top: auto;
  font: 400 16px/1.5 exo, ubuntu, "segoe ui", helvetica, arial, sans-serif;
  text-align: center;
  -webkit-animation: bg-scrolling-reverse 0.92s infinite;
  /* Safari 4+ */
  -moz-animation: bg-scrolling-reverse 0.92s infinite;
  /* Fx 5+ */
  -o-animation: bg-scrolling-reverse 0.92s infinite;
  /* Opera 12+ */
  animation: bg-scrolling-reverse 0.92s infinite;
  /* IE 10+ */
  -webkit-animation-timing-function: linear;
  -moz-animation-timing-function: linear;
  -o-animation-timing-function: linear;
  animation-timing-function: linear;
}

p {
  text-align: justify;
}

a{
  color: white;
}

.nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2rem;
}

a#switch-theme {
  text-align: center;
}

/* light theme */
[data-theme="light"]{
  color: #999;
  background: url("static/gridme.png") repeat 0 0;
}

[data-theme="light"] p {
    color: #333;
}

[data-theme="light"] a {
  color: rgb(159, 80, 7);
}

[data-theme="light"] a:hover {
  background-color: rgb(159, 80, 7);
  color: #fff;
}

/* dark theme */
[data-theme="dark"]{
  color: #aaa;
  background: url("static/gridme-dark.png") repeat 0 0;
}

[data-theme="dark"] p {
    color: #bbb;
}

[data-theme="dark"] a {
  color: rgb(0, 212, 212);
}

[data-theme="dark"] a:hover{
  background-color: rgb(0, 212, 212);
  color: #000;
}

h2 > a {
  font-family: monospace;
  font-size: 4rem;
  font-weight: 400;
  font-style: normal;
  text-decoration: none;
  color: #999;
}

h2 > a:visited{
  font-size: 4rem;
  font-weight: 100;
  font-style: normal;
  text-decoration: none;
}

h2 > a:hover{
    text-decoration: underline;
}

h2 {
  line-height: 3rem;
  margin-top: 4rem;
}

h3 {
    font-size: 2rem;
    margin-bottom: 0;
}

h4 {
    background-color: #aaa;
    color: #444;
    font-size: 1.2rem;
}

.month-label{
  margin: 0;
  font-family: monospace;
  font-size: 1rem;
  font-style: italic;
  font-weight: 500;
  color: #dadada;
}

main {
    max-width: 800px;
}

a.floating-link{
  position: fixed;
  bottom: 2rem;
  right: 1rem;
  padding: 1rem;
}

[data-theme="light"] a.floating-link {
  background-color: rgba(230, 230, 230, 0.5);
}

[data-theme="light"] a.floating-link:hover{
  background-color: rgb(159, 80, 7);
  color: #fff;
}

[data-theme="light"] a.floating-link:active{
  background-color: rgba(159, 80, 7, 0.438);
  color: #fff;
}

[data-theme="dark"] a.floating-link {
  background-color: rgba(57, 57, 57, 0.5);
}

[data-theme="dark"] a.floating-link:hover{
  background-color: rgb(0, 212, 212);
  color: #000;
}
[data-theme="dark"] a.floating-link:active{
  background-color: rgba(0, 212, 212, 0.438);
  color: #000;
}

footer {
    margin: 2rem 0 4rem 0;
}

footer > p {
    text-align: center;
    margin: 0;
    color: #888;
}

.posts-container > ul{
    list-style: none;
    margin: 0;
    padding: 0 2rem;
}

#index {
  list-style: none;
  text-align: left;
}

.cenas-container {
    display: flex;
    flex-direction: row;
    align-content: space-between;
    justify-content: center;
    gap: 0rem;
}

.cenas {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    list-style: none;
    text-align: left;
    width: auto;
}

.cenas > li {
  white-space: nowrap;
  font-family: monospace;
}

.glossario-container {
    display: flex;
    flex-direction: column;
    align-content: space-between;
    justify-content: center;
    gap: 0rem;
}

.glossario {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    list-style: none;
    text-align: left;
    /* max-width: 90%; */
    flex: 1;

}

.glossario > li {
  font-family: monospace;
  width: auto;
  max-width: 95%;
  text-align: justify;
  padding-left: 2rem;
  text-indent: -2rem;
}

.glossario span {
  font-weight: 500;
  color: #dcdcdc;
}

.glossario-label{
  margin: 0 0 1rem 0;
  font-family: monospace;
  font-size: 1rem;
  font-style: italic;
  font-weight: 500;
  color: #dadada;
}

span.lang {
  font-style: italic;
  font-weight: 100;
  margin-right: 1rem;
}

span.eng::after{
  content: "(eng.)";
}

span.pt::after{
  content: "(pt.)";
}

.scene_title {
  font-weight: 800;
  font-size: 1.2rem;
}

.posts-list>li {
  padding-top: 1px;
}

.scene-snapshot {
  max-width: 100%;
}

@media (max-width: 740px) {
  main {
    max-width: 90%;
    padding: 0 1rem;
  }

  .posts-container > ul{
    padding: 0;
  }

  .cenas-container {
    flex-direction: column;
    gap: 0;
  }

  .cenas {
    width: auto;
    margin-bottom: -1rem;
    padding-left: 1rem;
  }

  .scene-snapshot {
    max-width: 94%;
  }

  img {
    max-width: 95%;
  }
}