@font-face {
  font-family: LEMONMILK-REGULAR;
  src: url(./fonts/LEMONMILK-Regular.otf);
}

body {
  font-family: "Anybody", sans-serif;
  margin: 0px;
  color: #141414;
  background-color: #ebe8e8;
}

h1,
h2,
h3 {
  font-family: LEMONMILK-REGULAR;
}

ul {
  margin: 0px;
  padding: 0px;
  list-style: none;
}

.principal {
  max-width: 1200px;
  padding: 40px 20px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-self: center;
}

.header-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.header-menu a {
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 20px 30px;
  text-decoration: none;
  color: #8b3799;
  display: block;
  justify-content: center;
}

.header-nav {
  align-self: center;
  justify-items: center;
}

.header-menu a:hover,
.header-galeria a:hover {
  color: #5f0d5f;
}

.portfolio {
  display: grid;
  margin-top: 25px;
}

.grid-portfolio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 100%;
  justify-self: center;
  justify-items: center;
}

.corteimagem {
  width: 500px;
  height: 357px;
  display: grid;
  text-align: center;
  position: relative;
  margin: 10px;
}

.grid-portfolio a {
  text-decoration: none;
  display: flex;
  justify-self: center;
  justify-items: center;
}

.grid-portfolio img {
  max-width: 500px;
  border-radius: 10px;
}

.corteimagem:hover {
  background-color: #d900ff1c;
}

.yellow {
  font-family: LEMONMILK-REGULAR;
  font-weight: 800;
  border: 1rem;
  background-color: #ffbb29;
  font-size: 1.5rem;
  padding: 1px;
  border-radius: 0.3rem;
}

.yellowport {
  font-family: LEMONMILK-REGULAR;
  font-weight: 800;
  background-color: #ffbb29;
  font-size: 1rem;
  padding: 1px;
  border-radius: 0.3rem;
}

.purple {
  border: 1rem;
  color: #ebe8e8;
  background-color: #8b3799;
  margin-right: 2px;
  padding: 1.7px;
  border-radius: 0.3rem;
}

.aboutme {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}

.title {
  font-size: 2.75rem;
  color: #ffbb29;
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  justify-self: center;
  margin: 25px;
}

.about-grid img {
  display: flex;
  margin-right: 50px;
  justify-self: flex-end;
}

.about-text {
  max-width: 600px;
  font-size: 1.2rem;
  display: grid;
  justify-self: center;
  align-self: center;
  justify-content: center;
  line-height: 1.6rem;
}

.back a {
  margin: 50px;
  display: flex;
  justify-self: center;
  justify-content: center;
  text-decoration: none;
  color: #5f0d5f;
}

.buttone {
  text-decoration: none;
  border-radius: 5px;
  padding: 5px;
  background-color: #8b3799;
  color: #ebe8e8;
}

.arrow {
  display: inline-block;
  margin-right: 10px;
  box-sizing: border-box;
}

.back {
  display: grid;
  place-self: center;
  height: 75px;
  max-width: 250px;
}

.inside-portfolio {
  display: grid;
  grid-template-columns: 1fr;
  justify-self: center;
  align-self: center;
}

.descricao {
  justify-self: center;
  align-self: center;
  max-width: 600px;
  display: grid;
}

.descricao p {
  font-size: 1.1rem;
  line-height: 1.5rem;
}

.inside-portfolio img {
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3 ease;
}

.inside-portfolio img:hover {
  transform: scale(1.05);
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
  animation: zoomIn 0.3s ease;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}
.close:hover {
  color: #f00;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.galeria-imagens {
  max-width: 1200px;
  display: grid;
  justify-self: center;
  margin: 20px;
  gap: 10px;
}

.grid-imagens {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.video {
  display: flex;
  align-content: center;
  justify-content: center;
}

.video iframe {
  width: 800px;
  height: 450px;
  border: 5px #ffbb29 solid;
  border-radius: 5px;
  align-items: center;
  justify-items: center;
}

.funtime {
  display: grid;
  justify-self: center;
  align-self: center;
  height: 150px;
}

.jogos {
  display: grid;
  justify-self: center;
  align-self: center;
  gap: 100px;
}

.jogos h2 {
  margin-top: 50px;
  margin-bottom: 0px;
  font-size: 4rem;
  color: #ffbb29;
  display: grid;
  align-self: center;
  justify-self: center;
}

.gradedejogos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-self: center;
  align-self: center;
  margin: 50px;
}

.jogosimg {
  width: 600px;
  display: flex;
  flex-direction: column;
  justify-self: center;
  align-self: center;
}

.textjogos {
  border-top: 2px dashed #141414;
  max-width: 600px;
  gap: 15px;
  display: grid;
  justify-content: center;
  justify-self: center;
  align-self: center;
  text-align: left;
  font-size: 1.1rem;
  letter-spacing: 1.2px;
  line-height: 1.5rem;
}

.textjogos h3 {
  color: #7d3ea0;
  font-size: 1.7rem;
  margin-bottom: 0px;
  align-self: center;
  text-align: start;
  align-items: end;
}

.buttone {
  font-size: 20px;
  display: inline;
  text-decoration: none;
  border-radius: 5px;
  padding: 5px;
  background-color: #7d3ea0;
  color: #ebe8e8;
  box-shadow: 2px;
}

.buttone2 {
  display: block;
  text-decoration: none;
  justify-content: center;
  align-content: center;
  border-radius: 5px;
  padding: 5px;
  background-color: #7d3ea0;
  color: #ebe8e8;
  box-shadow: 2px #141414;
}

.buttons {
  text-align: center;
  max-width: 600px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  align-self: center;
  justify-self: center;
}

.downloadbut {
  gap: 15px;
  width: 350px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  align-content: center;
}

.downloadmanual {
  display: inline-block;
  text-decoration: none;
  border-radius: 5px;
  padding: 5px;
  background-color: #ffbb29;
  color: #141414;
}

iframe {
  width: 750px;
  height: 400px;
  border: none;
  margin: 30px 0px;
}

.footer-contato {
  display: grid;
  grid-template-columns: 1fr 1fr; /* redes sociais | formulário */
  gap: 20px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.icons {
  width: 100%;
  max-width: 400px;
  border-bottom: 2px solid #ebe8e8;
  padding-bottom: 8px;
}

.icons ul {
  display: grid; /* mantém seu grid de 4 colunas */
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  justify-items: center;
  margin: 0; /* remove margens padrão da UL */
  padding: 0; /* remove padding padrão da UL */
  list-style: none;
}

.icons li {
  list-style: none;
}

.icons img {
  width: 50px;
}

iframe.quest {
  width: 100%;
  max-width: 750px;
  height: 400px;
  border: none;
  margin: 30px 0;
}

.contato {
  display: flex; /* empilha conteúdo */
  flex-direction: column; /* título em cima, ícones embaixo */
  align-items: center; /* centraliza tudo */
  text-align: center;
  gap: 15px;
}

.contato h3 {
  margin: 0;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 75px;
  position: inherit;
  bottom: 0;
  width: 100%;
  line-height: 60px;
  background-color: #ffbb29;
  color: #000000;
}

@media (max-width: 1000px) {
  .principal {
    max-width: 800px;
  }

  .principal img {
    width: 35px;
  }

  .header-menu {
    gap: 0;
  }

  .header-menu a {
    font-size: 0.7rem;
    line-height: 1.3;
    margin: 20px 10px;
    text-decoration: none;
    color: #8b3799;
    display: block;
    justify-content: center;
  }
}

@media (max-width: 1000px) {
  .portfolio {
    margin-top: 15px;
  }

  .grid-portfolio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .corteimagem {
    width: 150px;
    height: 100%;
    transition: transparent 0.2s ease-in;
  }

  .grid-portfolio img {
    max-width: 150px;
  }

  .back a {
    font-size: 1rem;
  }
}

@media (max-width: 1000px) {
  iframe {
    width: 300px;
    height: 200px;
    margin: 30px 0px;
  }

  .icons {
    display: grid;
    justify-self: center;
    align-self: center;
    max-width: 300px;
    border-bottom: 2px solid #ebe8e8;
  }

  .icons ul {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
  }

  .icons li {
    display: grid;
    justify-self: center;
    justify-content: start;
  }

  .icons img {
    width: 30px;
  }

  .contato {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: center;
    justify-content: center;
    align-self: center;
  }

  .icons h3 {
    display: grid;
    align-items: end;
  }

  footer {
    font-size: 0.7rem;
  }

  .footer-contato {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1000px) {
  .inside-portfolio {
    display: grid;
    width: 400px;
    grid-template-columns: 1fr;
    justify-self: center;
    align-self: center;
  }

  .descricao {
    font-size: 0.7rem;
    line-height: 1.5rem;
    text-align: center;
    justify-self: center;
    align-self: center;
    gap: 10px;
    max-width: 400px;
    display: grid;
  }

  .inside-portfolio img {
    border-radius: 5px;
  }

  .galeria-imagens {
    max-width: 400px;
    display: grid;
    justify-self: center;
    align-content: center;
    margin: 6px;
    gap: 10px;
  }

  .galeria-imagens img {
    width: 370px;
  }

  .video iframe {
    width: 300px;
    height: 215px;
    border: 5px #ffbb29 solid;
    border-radius: 5px;
    align-items: center;
    justify-items: center;
  }

  .grid-imagens {
    width: 370px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }

  .grid-imagens img {
    max-width: 110px;

    justify-self: center;
    align-content: center;
  }
}

@media (max-width: 950px) {
  .jogos {
    gap: 25px;
  }

  .jogos h2 {
    margin-top: 25px;
    font-size: 2rem;
    text-align: center;
  }

  .gradedejogos {
    display: flex;
    flex-direction: column;
    justify-self: center;
    align-self: center;
    margin: 25px;
  }

  .jogosimg {
    width: 350px;
  }

  .textjogos {
    border-top: 2px dashed #141414;
    max-width: 350px;
    gap: 5px;
    font-size: 14px;
    line-height: 1.2rem;
  }

  .textjogos h3 {
    color: #7d3ea0;
    font-size: 1rem;
    margin-bottom: 0px;
    align-self: center;
    text-align: start;
    align-items: end;
  }

  .buttone {
    font-size: 0.8rem;
  }

  .buttone2 {
    display: block;
    text-decoration: none;
    border-radius: 5px;
    padding: 5px;
    background-color: #7d3ea0;
    color: #ebe8e8;
    box-shadow: 2px #141414;
  }

  .buttons {
    text-align: center;
    max-width: 200px;
    display: grid;
    font-size: 0.6rem;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-self: flex-start;
    justify-self: flex-start;
  }

  .downloadbut {
    gap: 15px;
    width: 150px;
    max-height: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .downloadmanual {
    display: inline-block;
    text-decoration: none;
    border-radius: 5px;
    padding: 5px;
    background-color: #ffbb29;
    color: #141414;
  }
}

@media (max-width: 1000px) {
  .aboutme {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .title {
    font-size: 1.5rem;
    line-height: normal;
    color: #ffbb29;
    text-align: center;
  }

  .about-grid {
    max-width: 400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    justify-self: center;
    margin: 25px;
  }

  .about-grid img {
    max-width: 150px;
    display: flex;
    margin-right: 50px;
    justify-self: center;
    align-self: center;
  }

  .about-text {
    max-width: 350px;
    font-size: 0.7rem;
    display: grid;
    justify-self: center;
    align-self: center;
    justify-content: center;
    line-height: 1rem;
  }

  .yellow {
    font-family: LEMONMILK-REGULAR;
    font-weight: 800;
    border: 0.5rem;
    background-color: #ffbb29;
    font-size: 1rem;
    padding: 1px;
    border-radius: 0.3rem;
  }
}
