/* Base da página */

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: Arial, sans-serif;
}

main {
  max-width: 650px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 28px;
}

h2 {
  font-size: 36px;
}

/* Cabeçalho e logo */

header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 12px;
  background: #f00;
  color: #000;
}

.logo {
  position: relative;
  z-index: 1;
  width: 90px;
  height: auto;
  flex-shrink: 0;
  align-self: flex-start;
  margin-bottom: -30px;
  transform: rotate(-6deg);
  filter: drop-shadow(2px 2px 0 #fff);
}

.titulo-site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.titulo-site .palavra {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.titulo-site .palavra > span {
  display: inline-block;
  padding: 0 2px;
  background: #000;
  color: #f00;
  font-family: "Courier New", monospace;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: bold;
  line-height: 1;
  transform: rotate(-5deg);
}

.titulo-site .palavra > span:nth-child(even) {
  transform: rotate(5deg) translateY(2px);
}

.titulo-site .palavra > span:nth-child(3n) {
  font-family: Arial, sans-serif;
  transform: rotate(-8deg);
}

/* Títulos com letras recortadas */

.recortes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.recortes > span {
  display: inline-flex;
  gap: 3px;
}

.recortes > span > span {
  display: inline-block;
  padding: 0 4px;
  background: #fff;
  color: #000;
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: 32px;
  transform: rotate(-5deg);
}

.recortes > span > span:nth-child(even) {
  font-family: Arial, sans-serif;
  font-weight: bold;
  transform: rotate(6deg) translateY(3px);
}

/* Votação */

.votacao {
  max-width: 500px;
  margin: 45px auto 0;
}

.cabecalho-votacao {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  text-align: left;
}

.marca-q {
  font-size: 80px;
  font-weight: 900;
  line-height: 0.85;
  transform: rotate(-12deg);
}

.pergunta-votacao {
  flex: 1;
  min-width: 0;
}

.marca-phansite {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 5px;
  background: #fff;
  color: #000;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 28px;
  transform: rotate(-10deg);
}

.votacao h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
}

.resultado-votacao {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 8px;
}

.resultado-votacao .barra {
  flex: 1;
  min-width: 0;
  height: 22px;
  border: 5px solid #fff;
  padding: 4px;
  transform: skew(-6deg);
}

.preenchimento {
  height: 100%;
  width: 0%;
  background: #f00;
  transition: width 0.3s ease;
}

.resultado-votacao .porcentagem {
  margin: 0;
  color: #f00;
  font-size: clamp(22px, 4vw, 36px);
  font-weight: bold;
  font-style: italic;
  white-space: nowrap;
}

/* Botões */

button {
  border: none;
  padding: 5px 15px;
  background: #fff;
  color: #000;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #f00;
  color: #fff;
}

.botoes {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 90px;
}

.votacao .botoes button {
  display: inline-flex;
  gap: 4px;
  padding: 8px;
  background: transparent;
  font-family: Georgia, serif;
  font-size: 30px;
  box-shadow: none;
  transition: transform 0.15s ease;
}

#votar-sim {
  transform: rotate(-5deg);
}

#votar-nao {
  transform: rotate(4deg);
}

.votacao .botoes button span {
  display: inline-block;
  padding: 0 5px;
  background: #fff;
  color: #000;
  font-size: 32px;
  line-height: 1.1;
  transform: rotate(-5deg);
}

.votacao .botoes button span:nth-child(2) {
  font-family: Arial, sans-serif;
  font-weight: bold;
  transform: rotate(8deg) translateY(-3px);
}

.votacao .botoes button span:nth-child(3) {
  transform: rotate(12deg) translateY(3px);
}

.votacao .botoes button:hover span {
  background: #f00;
  color: #fff;
}

.votacao .botoes button:active {
  transform: translateY(2px);
}

button:focus-visible {
  outline: 2px solid #f00;
  outline-offset: 8px;
}

/* Formulário de comentários */

.comentarios {
  width: 100%;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid #f00;
}

.comentarios h2 {
  font-size: 28px;
}

.comentarios .recortes {
  gap: 10px;
}

.comentarios .recortes > span > span {
  font-size: 28px;
}

#form-comentario {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#texto-comentario {
  box-sizing: border-box;
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 2px solid #f00;
  background: #000;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  resize: vertical;
}

#texto-comentario:focus {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

#form-comentario button {
  margin-top: 8px;
  padding: 6px 20px;
  font-family: Georgia, serif;
  font-size: 28px;
  transform: rotate(-3deg);
  box-shadow: 4px 4px 0 #f00;
  transition: transform 0.15s ease;
}

#form-comentario button:hover {
  transform: rotate(0deg) translateY(-3px);
}

#form-comentario button:active {
  transform: translateY(2px);
}

/* Comentários publicados */

#lista-comentarios {
  margin-top: 25px;
  text-align: left;
}

.comentario {
  padding: 16px;
  border-left: 4px solid #f00;
  border-bottom: 1px solid #333;
  background: #0d0d0d;
  font-size: 18px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.comentario:nth-child(even) {
  border-left-color: #fff;
}

.autor-comentario {
  color: #f00;
  font-weight: bold;
}

/* Aviso do fórum */

.aviso-forum {
  position: absolute;
  top: 100px;
  right: 30px;
  padding: 12px 18px;
  border: 2px solid #f00;
  background: #000;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  transform: rotate(-7deg);
  box-shadow: 5px 5px 0 #f00;
}

.aviso-forum span,
.aviso-forum strong {
  display: block;
}

.aviso-forum strong {
  margin-top: 4px;
  color: #f00;
}

/* Pôsteres decorativos */

.poster {
  position: absolute;
  top: 350px;
  width: clamp(140px, 15vw, 230px);
  height: auto;
  border: 3px solid #fff;
  box-shadow: 7px 7px 0 #f00;
  pointer-events: none;
}

.poster-esquerdo {
  left: 6vw;
  transform: rotate(-8deg);
}

.poster-direito {
  right: 6vw;
  transform: rotate(7deg);
}

/* Ajustes para telas menores */

@media (max-width: 1200px) {
  .posteres {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 45px 20px 30px;
  }

  .poster {
    position: static;
    width: min(35%, 170px);
    align-self: center;
  }
}

@media (max-width: 1100px) {
  .aviso-forum {
    position: static;
    width: fit-content;
    margin: 45px auto 25px;
    font-size: 18px;
    transform: rotate(-4deg);
  }
}

@media (max-width: 600px) {
  header {
    gap: 8px;
  }

  .logo {
    width: 65px;
    margin-bottom: -20px;
  }

  .titulo-site {
    gap: 6px;
  }

  main {
    padding: 0 16px;
    margin-top: 30px;
  }

  .recortes {
    gap: 10px;
  }

  .recortes > span {
    gap: 2px;
  }

  .recortes > span > span,
  .comentarios .recortes > span > span {
    font-size: 23px;
    padding: 0 2px;
  }

  .marca-q {
    font-size: 60px;
  }

  .marca-phansite {
    font-size: 23px;
  }

  .votacao h3 {
    font-size: 14px;
  }

  .resultado-votacao {
    gap: 10px;
  }

  .botoes {
    gap: 55px;
  }
}