@import url(/styles/fonts.css);

html {
  font-size: 16px;
}

body {
  background: url('https://64.media.tumblr.com/a2ad65a327981dd82f681115d55ea3ab/147bfebdf112f180-2c/s400x600/888a1694494e22dce4c760f6b23c57dd936409b6.gif');
  background-color: rgba(0, 0, 0, .5);
  background-blend-mode: darken;
  color: white;
  text-align: center;
  margin: 4rem 0;
  font-family: 'Courier New', Courier, monospace;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  &.leitor-ativo {
    overflow-y: hidden;
  }
}
/* INDEX HOMEPAGE */
#topics {
  font-family: 'Courier New', Courier, monospace;
  width: fit-content;
  margin: 0 auto;
  border: 1px solid white;
  padding: 1rem;
  font-size: 1.2rem;
  min-width: 20vw;
  background-color: black;

  a {
    color: inherit;
    display: block;
    margin-bottom: 1rem;

    &:hover {
      text-decoration: underline;
      color: rgb(10, 158, 10);
    }

    &:last-child {
      margin-bottom: 0;
    }

    &[href=""]{
      text-decoration: line-through;
    }
  }
}

#buttons{
  position: absolute;
  bottom: 20%;
  left: 10%;
  padding: .5rem;
  /* border: 1px solid white; */
  width: 80%;
  border-top: 2px solid white;

  img{
    border-radius: 0;
  }
}

.yin {
  font-size: 10rem;
  line-height: 90%;
  margin: 0rem auto 1rem;
  background-color: black;
  width: fit-content;
}

img {
  user-select: none;
  -webkit-user-drag: none;
  /* border: 1px solid rgb(39, 39, 39); */
  border-radius: 4px;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: rgb(80, 255, 80);
  /* color: rgb(181, 255, 181); */

  &:hover {
    color: rgb(10, 158, 10);
  }
}

.voltar {
  position: fixed;
  display: block;
  width: fit-content;
  top: 1rem;
  left: 1rem;
  text-decoration: none;
  color: white;
  border: 1px solid white;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s, color 0.3s;
  background-color: #000;

  &:hover {
    background-color: white;
    color: black;
  }
}

article a:not(.no-arrow)::after,
.leitor a:not(.no-arrow)::after {
  content: ' ↗';
  font-size: 1rem;
}

article {
  max-width: 55vw;
  margin: 2rem auto;
  padding: 1rem;
  line-height: 1.6;
  border: 1px solid white;
  text-align: left;
  background-color: black;

  & *:first-child {
    margin-top: 0;
  }

  p {
    margin-bottom: 1rem;
  }

  img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
  }


  a.page {
    color: rgb(83, 229, 255);

    &::after {
      content: ' 🗏';

    }

    &:hover {
      color: rgb(15, 144, 184);
    }
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 1rem 0 .5rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: normal;

  &+*:not(h1, h2, h3, h4, h5) {
    margin-top: 0;
  }
}

h1 {
  font-size: 4rem;
  font-family: serif !important;
  font-weight: 400;
  margin: 2rem auto;
  width: fit-content;
  background-color: black;
  padding: 0 1rem;
}

h2 {
  font-size: 2rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 500;
}

h3 {
  font-size: 1.6rem;
}

h1:has(pre) {
  font-size: 1rem;
}

.leitor {
  padding: 1rem 2rem;
  position: fixed;
  width: 60vw;
  height: 90vh;
  top: 5vh;
  left: 20vw;
  background-color: black;
  border: 1px solid white;
  overflow-y: scroll;
  box-sizing: border-box;
  z-index: 1;
}

.leitor-bg {
  background-color: rgba(0, 0, 0, .7);
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
}

.leitor {
  z-index: 10;

  h1 {
    font-size: 2rem;
    text-decoration: underline;
  }

  h2 {
    font-size: 1.5rem;
    text-align: left;

    &::after {
      content: none;
    }
  }

  h3 {
    font-size: 1rem;
  }

  text-align: left;
}

.leitor-bg .closebtn {
  position: absolute;
  top: .5rem;
  left: 25vw;
}

button {
  background-color: black;
  border: 1px solid white;
  color: white;
  padding: .3rem .6rem;
  cursor: pointer;

  &:hover {
    background-color: white;
    color: black;
  }
}

ul {
  margin: 0;
  display: block;

}

p:has(+ul),
h2:has(+ul) {
  /* margin-bottom: 0; */
}

#indice {
  background-color: #111;
  border-radius: 8px;
  padding: .5rem 2rem;
}

table {
  border-spacing: 0;

  td {
    border: 1px solid white;
    padding: .2rem .5rem;
    margin: 0;
  }
}

q {
  font-style: italic;
}

section:not(:last-child) {
  margin-bottom: 2rem;
}

h2 {
  text-align: center;
  margin-bottom: 1rem;

  &::after {
    content: "";
    display: block;
    background-color: white;
    width: 100%;
    height: 1px;
  }
}

.grid {
  display: grid;
  gap: 1rem;

  p:first-of-type {
    margin-top: 0;
  }

  img {
    margin: 0;
  }
}

.g2-1 {
  grid-template-columns: 2fr 1fr;
}

.g1-2 {
  grid-template-columns: 1fr 2fr;
}

.g1-1 {
  grid-template-columns: 1fr 1fr;
}

#joojsite {
  display: flex;
  width: 100vw;
  justify-content: space-around;
  position: absolute;
  bottom: 2px;
  animation: roll 12s infinite linear;
  background-color: black;
  box-shadow: 100vw 0px black;

  div {
    text-shadow: 100vw 0;
  }

  div:nth-child(odd) {
    color: cyan;
  }

  div:nth-child(even) {
    color: rgb(255, 95, 121);
  }
}

@keyframes roll {
  from {
    left: 0;
  }

  to {
    left: -100vw;
  }
}

.divider {
  display: block;
  width: 100%;
  height: 1px;
  background-color: grey;
}

@media (max-width: 600px) {
  article {
    border: none;
    width: 100vw;
    padding: 0;
    margin: 0;
    max-width: 100vw;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .grid {
    grid-template-columns: 1fr !important;

    img {
      width: 50%;
      margin: 0 auto;
    }
  }

  #joojsite {
    display: none;
  }
}

li>p {
  margin: 0;
  font-weight: 400;
}

cite {
  padding: .3rem 1rem;
  position: relative;
  display: block;
  border: 1px solid rgb(39, 39, 39);
  border-left: 3px solid rgb(86, 155, 219);
  margin-top: .5rem;
}

.green{
  color: rgb(141, 255, 166);
  font-weight: bold;
  font-size: 1.25rem;
  &::before{
    content: '→';
    margin-right: .5rem;
  }
}