@font-face {
  font-family: "Olivetti";
  src:
    url("assets/Web437_Olivetti_M15.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fff;
  --fg: #000000;
  --muted: #888888;
}

html {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Olivetti', 'Courier New', monospace;
  line-height: 130%;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
  font-size: 12px;
}

h1 {
  font-size: inherit;
}

body {
  margin: 1rem;
  /* color: var(--fg); */
  /* background: var(--bg); */
  /* background:#fff; */
  /* color:#000; */
}

header {
  margin-bottom: 5rem;
  position: sticky;
  top: 1rem;
  z-index: 9;
  display: flex;
  /* flex-direction: column; */
  justify-content: space-between;
  gap: 1rem;
}

main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.txt {
  font-size: 26px;
  line-height: 1.2;
  margin: 5rem 0;
}

.intro {
  margin: 0 0;
}

.hyphenate {
  /* -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto; */
  overflow-wrap: break-word;  /* fallback */
  word-break: normal;
}

.box {
  box-sizing: border-box;
  background: var(--bg);
  color: var(--fg);
  padding: .75rem 1rem;
  border: 1px solid var(--fg);
  max-width: 800px;
  margin: 5rem auto 2rem auto;
  line-height: 1.4;
}

.box .label{
  margin: 0 0 .5rem 0;
  opacity: .7;
}

.box .lines{
  margin: 0;
}

.box .divider{
  border-top: 2px dashed var(--fg);
  margin: .9rem 0;
  opacity: .6;
}

.box p{
  margin: 0 0 .75rem 0;
}

.box p:last-child{
  margin-bottom: 0;
}

.box .credits{
  opacity: .9;
}

.box .credits::after {
  content: "█";
  margin-left: .35rem;
  opacity: .7;
  animation: blink 1s steps(1) infinite;
  display: inline;
  vertical-align: baseline;
}

@keyframes blink {
  50% { opacity: 0; }
}

figure {
  margin: 0;
  overflow: hidden;
}

img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
  /* image-rendering: crisp-edges; */
  margin-bottom: 1rem;
  filter: grayscale(100%);
  /* multiply */

  /* mix-blend-mode: multiply; */
}

figcaption {
  /* padding:10px 12px; */
  /* font-size:13px; */
  /* line-height:1.35; */
  /* color:#cfcfcf; */
  /* margin-bottom: 5rem; */
  /* font-size: 21px; */
  /* text-transform: uppercase; */
  font-weight: bold;
}

/* .meta {
  opacity: .85;
} */

a {
  color: #0000EE; /* azul clássico */
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

a:visited {
  color: #551A8B; /* roxo clássico */
}

html.bg-dark a,
html.bg-blue a {
  mix-blend-mode: difference;
  background: rgb(255, 255, 255);
}

.box a {
  padding: 0 .15em;
}

#bg-switcher {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.label {
  display: inline-block;
  background-color: var(--fg);
  color: var(--bg);
}

.bg-color {
  width: 18px;
  height: 18px;
  overflow: hidden; 
  display: inline-block;
  border: 2px solid var(--fg);
  /* box-shadow:
    4px 4px 0 var(--fg); */
  cursor: pointer;
}

#bg-white {
  background-color: #ffffff;
}

#bg-black {
  background-color: #000000;
}

#bg-blue {
  background-color: #0000ff;
}

#stats {
  /* border top */
  border: 3px solid var(--fg);
  padding: 1rem;
}

.hide {
  display: none;
}

.sr-only{
  position:absolute;
  width:1px;height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}

@media (min-width: 600px) {
  html {
    font-size: 16px;
  }

  .bg-color {
    width: 24px;
    height: 24px;
  }

  footer {
    margin-bottom: 5rem;
  }

  main {
    gap: 4rem;
  }

  /* header {
    flex-direction: row;
    align-items: center;
  } */

  /* #credits {
    display: flex;
  } */

  #avatar {
    display: none;
    width: 96px;
    height: 96px;
    /* border-radius: 50%; */
    /* border: 2px solid var(--fg); */
  }
}

/* styles over 600px width */
@media (min-width: 600px) {
  .txt {
    font-size: 48px;
    margin: 3rem 0;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --fg: #ffffff;
    --muted: #aaaaaa;
  }
  
}