@charset "UTF-8";

/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: black;
  font-family: 'Courier New', Courier, monospace;
  cursor: url('./imagens/pontinhamain.cur'), auto;
  overflow-x: hidden;
}

/* CURSOR PARA LINKS */
a {
  cursor: url('./imagens/Officialcursor02.png'), pointer;
}

/* =========================
   CONTAINER PRINCIPAL
   ========================= */
.conteiner {
  display: grid;
  min-height: 100vh;
  width: 100%; /* << corrigido de 100vw para 100% */
  justify-content: center;
  grid-template-areas:
    "header header"
    "nav    nav"
    "main   aside"
    "main   aside"
    "footer footer";
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto;
}

/* =========================
   HEADER
   ========================= */
header {
  grid-area: header;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
}

header > img {
  max-width: 300px;
  width: 80%;
  height: auto;
}

/* =========================
   NAVBAR
   ========================= */
nav {
  grid-area: nav;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  gap: 20px;
  padding: 0 10px;
}

nav ul li a {
  color: #cef404;
  font-family: "ZCOOL KuaiLe", sans-serif;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: filter 0.3s ease, transform 0.3s ease;
  padding: 5px 10px;
  display: inline-block;
}

nav ul li:hover a {
  filter: sepia(100%) hue-rotate(30deg) brightness(120%);
  transform: scale(1.1);
}

/* =========================
   MAIN
   ========================= */
main {
  grid-area: main;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem;
}

main > img {
  max-width: 90%;
  height: auto;
}

/* =========================
   ASIDE
   ========================= */
aside {
  grid-area: aside;
  display: flex;
  justify-content: center;
  align-items: center;
}

aside > ul {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-evenly;
  height: 100%;
  gap: 8px;
}

aside > ul > li {
  cursor: pointer;
  transition: filter 0.3s ease;
}

aside > ul > li:hover {
  filter: sepia(100%) hue-rotate(30deg) brightness(120%);
}

aside > ul > li > img {
  max-width: 40px;
  height: auto;
}

/* =========================
   FOOTER
   ========================= */
footer {
  grid-area: footer;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #cef404;
  text-align: center;
  padding: 10px 0;
}

/* =========================
   ANIMAÇÃO
   ========================= */
@keyframes chacoalhar {
  0% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-2px, -2px) rotate(-1deg); }
  20% { transform: translate(-2px, 2px) rotate(1deg); }
  30% { transform: translate(2px, 2px) rotate(0deg); }
  40% { transform: translate(2px, -2px) rotate(1deg); }
  50% { transform: translate(-2px, -2px) rotate(-1deg); }
  60% { transform: translate(-2px, 2px) rotate(0deg); }
  70% { transform: translate(2px, 2px) rotate(-1deg); }
  80% { transform: translate(2px, -2px) rotate(1deg); }
  90% { transform: translate(-2px, -2px) rotate(0deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.chacoalhar {
  animation: chacoalhar 0.5s infinite;
}

/* =========================
   MOBILE (até 768px)
   ========================= */
@media (max-width: 768px) {
  .conteiner {
    grid-template-areas:
      "header"
      "nav"
      "main"
      "aside"
      "footer";
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  header > img {
    width: 100%;
    max-width: 280px;
    height: auto;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  nav ul li a {
    font-size: 0.9rem;
    padding: 4px 6px;
  }

  main {
    justify-content: center;
    padding: 1rem 0;
  }

  main > img {
    max-width: 80%;
    height: auto;
  }

  aside > ul {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 1rem 0;
  }

  aside > ul > li > img {
    width: 32px;
    height: 32px;
  }

  footer {
    font-size: 0.75rem;
    margin-top: 1rem;
  }

  /* =========================
     OCULTAR SCROLLBAR VERTICAL
     ========================= */
  body {
    overflow-y: scroll; /* mantém a rolagem funcional */
    -ms-overflow-style: none;  /* IE e Edge */
    scrollbar-width: none;     /* Firefox */
  }

  body::-webkit-scrollbar {
    display: none; /* Chrome, Safari e Opera */
  }
}
