/* o main não rola: quem rola é o .Contact__Scroll, assim as listras e o
   glitter do ::before ficam parados e cobrem a caixa toda (senão o glitter
   só cobria a primeira "tela" e a cor mudava ao rolar) */
main.Main--contact {
  justify-content: flex-start;
  overflow: hidden;
  background-attachment: scroll;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0px,
    transparent 4px,
    #ff8d1a5d 4px,
    #ff8d1a5d 6px
  );
}

.Contact__Scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  flex: 1;
  min-height: 0;
  padding-top: 18px;
  padding-bottom: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;

  @media (max-width: 599px) {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* janela baixa no desktop (main encolhe, ver global.css): aperta o form pra
   caber sem rolar até o mínimo de 240px */
@media (min-width: 600px) and (max-height: 704px) {
  main.Main--contact .Contact__Scroll {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  /* espaçador flexível no topo, até 14px */
  main.Main--contact .Contact__Scroll::after {
    content: "";
    order: -1;
    flex: 0 1 14px;
    min-height: 0;
  }

  main.Main--contact .Contact__BigButtons {
    margin-top: 4px;
  }

  main.Main--contact .Contact__Form {
    margin-top: 0;
    gap: 4px;
  }

  main.Main--contact .Contact__Field {
    gap: 2px;
  }

  main.Main--contact .Contact__Field textarea {
    height: 44px;
  }
}

/* glitter sobre as listras, abaixo do conteúdo */
main.Main--contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../../images/backgrounds/background-004.webp");
  background-repeat: repeat;
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}

.Contact__View {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.Contact__View[hidden] {
  display: none;
}

.Contact__BigButtons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}

.Contact__BigButton {
  display: block;
  padding: 0;
  background: none;
  border: none;
  transition: transform 0.15s ease;
}

.Contact__BigButton img {
  display: block;
  width: 130px;
  max-width: 100%;
  height: auto;
}

.Contact__BigButton:active {
  transform: scale(0.95);
}

.Contact__BigButton:hover {
  filter: drop-shadow(0 0 5px var(--hot-pink));
}

/* forms de e-mail e guestbook com o mesmo visual */
.Contact__Form,
.Guestbook__Form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  margin: 4px auto 0;
}

.Guestbook__Form {
  margin-top: 6px;
}

.Contact__Field,
.Guestbook__Field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.Contact__MessageRow,
.Guestbook__MessageRow {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.Contact__Field--message,
.Guestbook__Field--message {
  flex: 1;
  min-width: 0;
}

.Contact__Field__Label,
.Guestbook__Field__Label {
  font-family: "m5x7";
  font-size: 18px;
  color: rgb(70, 70, 69);
  padding-left: 2px;
}

:is(.Contact__Field, .Guestbook__Field) :is(input, textarea) {
  font-family: "m5x7";
  font-size: 17px;
  color: #3c3c3cb3;
  background-color: rgb(255, 250, 243);
  border: 1.8px inset var(--main-border);
  border-radius: 0;
  padding: 5px 7px;
  resize: vertical;
  cursor: text;
}

:is(.Contact__Field, .Guestbook__Field) :is(input, textarea)::placeholder {
  color: #78610ece;
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

:is(.Contact__Field, .Guestbook__Field)
  :is(input, textarea):focus::placeholder {
  opacity: 0;
}

:is(.Contact__Field, .Guestbook__Field) :is(input, textarea):focus {
  outline: none;
  border-color: var(--hot-pink);
}

.Contact__Submit,
.Guestbook__Submit {
  flex-shrink: 0;
  padding: 0;
  background: none;
  border: none;
  transition: transform 0.15s ease;
}

.Contact__Submit__Icon,
.Guestbook__Submit__Icon {
  display: block;
  width: 40px;
  height: auto;
}

.Contact__Submit:active,
.Guestbook__Submit:active {
  transform: scale(0.9);
}

.Contact__Submit:hover .Contact__Submit__Icon,
.Guestbook__Submit:hover .Guestbook__Submit__Icon {
  filter: drop-shadow(0 0 4px var(--hot-pink));
}

/* avisos de envio: caixa de e-mail e guestbook */
.Contact__Flash,
.Guestbook__Flash {
  margin-top: 10px;
  font-family: "m5x7";
  font-size: 15px;
  color: var(--hot-pink);
}

.Contact__Flash--error,
.Guestbook__Flash--error {
  color: var(--red);
}

.Guestbook__Honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.Guestbook__Wall {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 700px;
  margin: 18px auto 0;
}

.Guestbook__Empty {
  font-family: "m5x7";
  font-size: 15px;
  color: var(--hot-pink);
  text-align: center;
  opacity: 0.8;
}

.Guestbook__Entry {
  background-color: var(--main-bg);
  border: 1.6px outset var(--soft-yellow);
  padding: 8px 12px;
  text-align: left;
}

.Guestbook__Entry__Message {
  font-family: "m5x7";
  font-size: 16px;
  color: var(--red);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* ascii art: fonte de largura fixa pra alinhar; texto comum junto quebra linha normal */
.Guestbook__Entry__Message--Art {
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.15;
}

.Guestbook__Entry__Meta {
  margin-top: 4px;
  font-family: "m5x7";
  font-size: 13px;
  color: var(--hot-pink);
  opacity: 0.85;
  text-align: right;
  overflow-wrap: anywhere;
}

/* resposta da diskette, dentro do cartão da mensagem */
.Guestbook__Reply {
  margin-top: 6px;
  margin-left: 14px;
  padding: 6px 10px;
  background-color: rgba(255, 243, 176, 0.55);
  border-left: 2px solid var(--hot-pink);
}

.Guestbook__Reply__Author {
  font-family: "m5x7";
  font-size: 14px;
  color: var(--hot-pink);
}

.Guestbook__Reply__Message {
  margin-top: 2px;
  font-family: "m5x7";
  font-size: 16px;
  color: var(--red);
  overflow-wrap: anywhere;
}

/* [glitter]...[/glitter] nas respostas: letras em gif, sem espaço entre elas */
.Glitter-Text img {
  vertical-align: middle;
}

.Glitter-Text__Space {
  display: inline-block;
  width: 20px;
}

/*
⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠿⠛⠛⠛⠛⠿⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⡿⠟⣉⣤⣶⣿⣿⣿⣿⣿⣿⣶⣤⣉⠻⢿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⠋⣠⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄⠹⣿⣿⣿⣿
⣿⣿⡿⢁⣾⣿⣿⣿⣿⠟⢿⣿⣿⣿⣿⡿⠻⣿⣿⣿⣿⣷⡘⣿⣿⣿
⣿⣿⠃⣾⣿⣿⣿⣿⡟⠄⠄⣿⣿⣿⣿⠄⠄⢿⣿⣿⣿⣿⣷⠘⣿⣿
⣿⣿⢰⣿⣿⣿⣿⣿⣷⠄⢠⣿⣿⣿⣿⡀⢀⣿⣿⣿⣿⣿⣿⡆⣿⣿
⣿⣿⢸⣿⣿⣿⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⣿⣿⣿⠇⣿⣿
⣿⣿⡀⣿⣿⣤⠰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃⣤⣿⡿⢠⣿⣿
⣿⣿⣷⡘⣿⣿⣧⡙⢿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢋⣼⣿⡿⢃⣾⣿⣿
⣿⣿⣿⣷⣌⠻⣿⣷⣦⣙⠻⠿⠿⠿⠿⠟⣋⣴⣿⣿⠟⣡⣾⣿⣿⣿
⣿⣿⣿⣿⣿⣷⣌⡛⠿⣿⣿⣶⣶⣶⣶⣿⣿⠿⢋⣡⣾⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣷⣦⣤⣭⣍⣩⣭⣤⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀
*/
