* {
  box-sizing: border-box;
}

:root {
  --borda-papel: #462b18;
  --cor-letras: #462b18;
  --border-color: #e70;
  --font-size-nome: 8em;
  --alphaShadow: 0.6;
  --blend-filtro: multiply;
  --sat-filtro: 70%;
  --con-filtro: 85%;
  --cor-papel: #fffef0;
  --shadow-papel: #8f5922;
  --textura: url("assets/textura.png");
  --shape-papel: url("assets/bordas.avif");
}

body {
  padding: 0;
  margin: 0;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

main {
  background-color: #cccccc;
  width: 100vw;
  height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  overflow: auto;
  padding: 50px;
  gap: 30px;
}

@media screen and (max-width: 1060px) {
  #wrapperConfigs {
    width: 550px !important;
    max-width: unset !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    order: 1 !important;
  }

  .image-buttons {
    width: 100% !important;
  }

  #formulario {
    width: 100% !important;
  }
}

.input-cor {
  display: inline;
  padding: 0;
  border-radius: 80%;
  width: 40px;
  height: 40px;
  border: 0px solid white;
}

input,
select {
  margin-bottom: 10px;
}

/* WRAPPER CONFIGS */

#wrapperConfigs {
  display: flex;
  width: 30%;
  max-width: 400px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
}

.image-buttons {
  margin: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.image-buttons input {
  transition: 0.3s;
  filter: grayscale(100%);
  z-index: 1;
  position: relative;
  border: 0.2rem solid #fafafa;
  border-radius: 200px;
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.image-buttons input,
.foto img,
.phLinha,
label {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* EFEITOS BOTÃO*/
.image-buttons input:hover {
  filter: none;
  box-shadow: 4px 4px rgba(0, 0, 0, 0.1);
  transform: translate(-2%, -2%);
}

.image-buttons input:focus {
  transform: translate(0%, 0%);
  filter: none;
  box-shadow: none;
  outline: none;
  border: 0.2rem solid var(--border-color);
}

.foto {
  margin-bottom: 10px;
  padding: 0;
  width: 85.5%;
  height: 340px;
  border: 3px solid var(--cor-letras);
  display: inline-block;
}

.foto img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  mix-blend-mode: var(--blend-filtro);
  filter: saturate(var(--sat-filtro)) contrast(var(--con-filtro));
}

h1,
h3 {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  font-weight: 900;
  transform: scale(1, 1.3);
  white-space: nowrap;
}

h3 {
  font-size: 2.8rem;
}

.DoA h3 {
  text-align: center;
  letter-spacing: 0.2rem;
  word-spacing: 1.3rem;
}

#container {
  font-family: "Times New Roman", Times, serif;
  color: var(--cor-letras);
  z-index: +1;
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-self: baseline;
  padding: 40px 25px;
  width: 550px;
  mask-image: var(--shape-papel);
  mask-size: 100% 100%; /* Estica a máscara para caber dentro da div */
  mask-repeat: no-repeat; /* Não repete a máscara */
  background-color: var(--borda-papel);
}

#shadowContainer {
  position: relative;
}

#shadowContainer::before {
  z-index: 0;
  content: "";
  position: absolute;
  box-shadow: 0 3px 20px rgba(0, 0, 0, var(--alphaShadow));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 97%;
  height: 97%;
}

#papel {
  z-index: -1;
  mask-image: var(--shape-papel);
  mask-size: 100% 100%; /* Estica a máscara para caber dentro da div */
  mask-repeat: no-repeat; /* Não repete a máscara */
  -webkit-mask-image: var(--shape-papel);
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  margin: 0;
  padding: 0;
  box-shadow: 0 0 125px var(--shadow-papel) inset;
}

.foto,
#papel {
  background: var(--cor-papel);
  background-image: var(--textura);
}

.foto,
.titulo,
.detalhes {
  overflow: hidden;
}

.titulo {
  position: relative;
  width: 100%;
  margin-bottom: 5px;
}

.titulo h1 {
  font-size: 9em;
  line-height: 80%;
}

#placeholderTitulo {
  visibility: hidden;
}

#txtTitulo {
  position: absolute;
  top: 50%;
  left: 50%;
}

.detalhes {
  display: grid;
  grid-template-columns: 0.16fr 1fr 1fr 0.16fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}

.DoA {
  grid-area: 1 / 2 / 2 / 4;
}

.nome {
  grid-area: 2 / 2 / 3 / 4;
  width: 100%;
  display: inline-flex;
  flex-direction: column;
  margin: 0;
}

.container-linha {
  padding: 0;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.phLinha {
  visibility: hidden;
  line-height: 80%;
  margin: 0;
  font-size: var(--font-size-nome);
}

.txtLinha {
  line-height: 80%;
  z-index: +1;
  font-size: var(--font-size-nome);
  position: absolute;
  top: 50%;
  left: 50%;
  word-spacing: 2rem;
  letter-spacing: 0.5rem;
}

.recompensa {
  grid-area: 3 / 2 / 4 / 4;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.recompensa .berry {
  flex-shrink: 0;
  background: var(--cor-letras);
  height: 100%;
  width: 10%;
  margin-right: 10px;
  -webkit-mask: url("assets/berry.svg") center/100% 100%;
  mask: url("assets/berry.svg") center/100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.recompensa h3 {
  transform: translate(0, -4%);
  margin: -10px 0 -10px 0;
  font-size: 3rem;
  letter-spacing: 0.4rem;
  font-family: "Annie Use Your Telescope", serif;
  &:after {
    content: "—";
  }
}

.info {
  grid-area: 4 / 2 / 5 / 5;
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  flex-wrap: wrap;
}

.info p {
  font-size: 0.6rem;
  flex: 1;
  text-align: justify;
  font-weight: 900;
  text-transform: uppercase;
  font-family: "Annie Use Your Telescope", serif;
}

.info h3 {
  margin-left: 8px;
  margin-right: 12px;
}

.info p,
.info h3 {
  margin-top: 0;
  margin-bottom: 0;
}

.esquerdo {
  grid-area: 1 / 1 / 5 / 2;
  margin-right: 5px;
}
.direito {
  grid-area: 1 / 4 / 4 / 5;
  margin-left: 5px;
}

.esquerdo .direito {
  margin: auto 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.DoA,
.nome,
.info,
.recompensa,
.esquerdo,
.direito {
  min-width: 0;
  overflow: hidden;
}

.esquerdo div,
.direito div {
  width: 100%;
}

.um {
  height: 40%;
  -webkit-mask: url("assets/esq1.png") center/80% 95%;
  mask: url("assets/esq1.png") center/80% 95%;
}

.dois {
  height: 60%;
  -webkit-mask: url("assets/esq2.png") center/90% 95%;
  mask: url("assets/esq2.png") center/80% 95%;
}

.tres {
  height: 50%;
  -webkit-mask: url("assets/dir1.png") center/90% 95%;
  mask: url("assets/dir1.png") center/80% 95%;
}

.quatro {
  height: 50%;
  -webkit-mask: url("assets/dir2.png") center/90% 95%;
  mask: url("assets/dir2.png") center/80% 95%;
}

.um,
.dois,
.tres,
.quatro {
  flex-shrink: 0;
  margin: 0 auto;
  background: var(--cor-letras);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  background-repeat: no-repeat;
}

.line {
  position: absolute;
  background-color: var(--borda-papel);
  clip-path: polygon(100% 50%, 0 0, 0 100%, 100% 50%);
}

.line.vertical {
  position: absolute;
  background-color: var(--borda-papel);
  clip-path: polygon(
    50% 100%,
    100% 0,
    0 0,
    50% 100%
  ); /* Afina a ponta para cima */
}

.undo {
  display: none;
}
