@charset "UTF8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  overflow-x: hidden; /* remove scroll horizontal */
  max-width: 100vw;   /* garante que nada ultrapasse a largura da tela */
}

body {
  background-color: rgb(9, 9, 54);
  cursor: url('./imagens/pontinhagaleria.cur'), auto;
}

a {
    cursor: url('./imagens/DEDO.cur'), pointer;
}

header {
  color: aqua;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 50px;
  font-family: "Libertinus Keyboard", system-ui;
}

/* CONFIG NAV*/

nav ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  color: aqua;
  font-family: 'Courier New', Courier, monospace;
  gap: 10px;
  list-style-type: none;
  margin-bottom: 100px;
}

nav ul li {
  cursor: pointer;
  transition: transform 0.3s ease;
}

nav ul li a {
  color: aqua;
  text-decoration: none;
  transition: color 0.3s ease; 
}

nav ul li a:hover {
  color: white;
}

nav ul li:hover {
  color: rgb(216, 250, 65);
  transform: scale(1.1);
} 

/* FIM CONFIG NAV */

/* INICIO CONFIG. GALERIA IMAGENS */

div.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100vw;
  padding: 0 5px; /* evita borda colada na tela */
  box-sizing: border-box;
}

div.gallery-item {
  margin: 5px;
  border: 3px solid aqua;
  width: calc(20% - 20px);
  border-radius: 20px;
  height: 150px;
  overflow: hidden;
  position: relative;
  cursor: url('./imagens/DEDO.cur'), pointer;
  box-sizing: border-box; /* garante que border e padding não aumentem a largura */
  max-width: 100%; /* impede que ultrapasse a tela */
}

div.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: 0.3s ease-in-out;
}

.gallery-item:hover {
  border: 3px solid white; /* Muda a cor da borda */
  transform: scale(1.05); /* Zoom leve */
}

div.gallery-item div.desc {
  padding: 15px;
  text-align: center;
}

/* MEDIA QUERIES GALERIA */

@media only screen and (max-width: 768px) {
  div.gallery-item {
    width: calc(50% - 20px);
  }
}

@media only screen and (max-width: 480px) {
  div.gallery-item {
    width: calc(100% - 20px);
  }
}

/* LINK VOLTAR */

.voltar-inicio {
  text-align: center;
  margin: 80px auto 30px auto;
}

.voltar-inicio a {
  color: aqua;
  font-size: 18px;
  text-decoration: none;
  background-color: rgba(0, 255, 255, 0.1);
  padding: 10px 20px;
  border: 1px solid aqua;
  border-radius: 10px;
  transition: 0.3s;
}

.voltar-inicio a:hover {
  background-color: aqua;
  color: rgb(9, 9, 54); /* cor do fundo para contraste */
}

/* RODAPE */

footer {
  color: aqua;
  text-align: center;
  margin-top: 50px;
  font-family:'Courier New', Courier, monospace;
}

/* MODAL */

.modal {
  display: none; /* modal começa escondido! */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: hidden; /* impede scroll */
  align-items: center; /* só funciona quando display: flex for aplicado pelo JS */
  justify-content: center;
}

.modal-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  max-height: 90%;
}

.modal-content {
  max-width: 100%;
  max-height: 80vh;
  border: 5px solid aqua;
  border-radius: 10px;
  object-fit: contain;
}

#caption {
  margin-top: 10px;
  text-align: center;
  color: #ccc;
  font-size: 18px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* SCROLLBAR CUSTOMIZADO */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #020659;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    #328BD9,
    #44AFF2,
    #6BD9F2
  );
  border-radius: 10px;
  border: 2px solid #020659;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    #44AFF2,
    #6BD9F2,
    #79F2F2
  );
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #79F2F2 #020659;
}

/* ESCONDER SCROLLBAR NO MOBILE SEM PERDER ROLAGEM */
@media only screen and (max-width: 768px) {
  html::-webkit-scrollbar {
    width: 0px; /* remove a barra de rolagem no WebKit */
    background: transparent;
  }

  html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
  }
}
