html, body {
  overflow-x: hidden;
  overflow-y: hidden;   /* impede expansão vertical */
  max-width: 100vw;
  max-height: 100vh;
}

body {
  font-family: Arial, sans-serif;
  background-color: white;
  margin: 0;
  padding: 0;
  letter-spacing: -0.3px;
}

#fundo-inicial {
  position: fixed;
  inset: 0;
  background-image: url("../imagens/ceuuu.gif");
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: 0;
  opacity: 1;
  transition: opacity 4s ease;
}

#fundo-inicial.esconder {
  opacity: 0;
}

.oculto {
  display: none !important;
}

@keyframes animar-borda {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 30px;
  background-color: white;
  color: black;
  width: 300px;
  font-size: 14pt;
  text-align: left;
  z-index: 9999;

  border: 4px solid transparent;
  background-clip: padding-box, border-box;
  background-origin: border-box;

  /* Estado padrão: borda preta como background fixo */
  background-image:
    linear-gradient(white, white),
    linear-gradient(270deg, black, black);
  background-size: 100% 100%;
  background-position: 0% 50%;
  transition: background-image 0.5s ease, background-position 0.5s ease;
}

.popup:hover {
  /* Ativa o arco-íris animado na borda */
  background-image:
    linear-gradient(white, white),
    linear-gradient(270deg,
      red, orange, yellow, green, cyan, blue, violet,
      red, orange, yellow, green, cyan, blue, violet, red);
  background-size: 400% 100%;
  animation: animar-borda 2s linear infinite;
  animation: animar-borda 2s linear infinite;
  background-position: 100% 50%;
}

#btn-entrar {
  all: unset; /* remove todos os estilos padrão */
  font-size: 32px;
  line-height: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  cursor: pointer;
  margin: 20px auto 0; /* centraliza horizontalmente e afasta do texto */
}

#pagina-inicial {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
}

#links-superiores {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 14px;
  font-weight: normal;
  margin-top: 0px;   /* distância do topo */
  margin-bottom: 20px; /* espaço abaixo, antes dos projetos */
  position: relative;
  top: -15px;
  z-index: 10;
}

#links-superiores span,
#links-superiores a {
  cursor: pointer;
  text-decoration: none;
  color: black;
  text-transform: uppercase;
  transition: font-weight 0.2s;
}

#links-superiores span:hover,
#links-superiores a:hover {
  font-weight: bold;
}

#logotipo {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 300px; /* ou ajuste conforme o tamanho desejado */
  height: auto;
  z-index: 100;
}

.bloco-projeto {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  cursor: default;
  padding: 4px;
  transition: background-color 0.2s;
}

.bloco-projeto img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.info-projeto h2 {
  font-size: 18px;
  font-weight: normal;
  margin: 0;
  transition: font-weight 0.2s;
}

.categorias {
  display: flex;
  gap: 4px;        /* espaço entre as tags */
  flex-wrap: wrap; /* se quiser que quebrem linha em telas pequenas */
  margin-top: 4px;
}

.categoria {
  display: inline-block;
  padding: 2px 6px;
  font-size: 14px;
  font-weight: normal;
  border-radius: 4px;
  text-transform: uppercase;
  transition: font-weight 0.2s;
}

.categoria:hover {
  font-weight: bold;
}

.bloco-projeto:hover h2,
.bloco-projeto:hover .categoria {
  font-weight: bold;
}

.cartaz, .manual, .fotografia {
  background-color: #ffec42;
  color: #8f6d00;
}

.exposição, .diagramação, .festa {
  background-color: #42a4ff;
  color: #0d00c5;
}

.esdi, .capo {
  background-color: #ff4242;
  color: #810000;
}

.janela {
  position: absolute;
  width: 300px;
  min-width: 500px;
  min-height: 200px;
  max-width: 60vw;
  max-height: 80vh;
  background-color: white;
  border: 2px solid black;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
  z-index: 10000;
  resize: both;
  overflow: hidden; /* permite o scroll horizontal */
  display: flex;
  flex-direction: column;
  user-select: none;
}

.barra-titulo {
  background-color: black;
  color: white;
  padding: 5px;
  cursor: move;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  position: sticky;
  top: 0;
  z-index: 10;
}

.conteudo {
  padding: 10px;
  line-height: 1.6;
  overflow: auto;
  flex: 1;
  box-sizing: border-box;
  flex: 1;
  overflow: auto;
}

.imagem-perfil {
  width: 100%;
  float: left;
  margin-right: 10px;
  margin-top: 10px;
  width: 150px; /* ajuste conforme necessário */
  height: auto;
}

.imagem-projeto {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 10px;
  display: block;
}

.botoes-topo {
  display: flex;
  gap: 5px;
}

.botoes-topo button {
  background-color: #ccc;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 14px;
}

.botoes-topo .fechar {
  background-color: red;
  color: white;
}

.botoes-topo .pdf {
  background-color: #444;
  color: white;
}

/*Adiciona cursor de clique aos elementos clicáveis*/
.info-projeto,
.bloco-projeto img {
  cursor: pointer;
}

/*Adiciona transição ao subtítulo para evitar atraso visual*/
.info-projeto p {
  transition: font-weight 0.2s;
}

/* Scrollbar personalizada global (Chrome, Edge, Safari) */
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Firefox scrollbar global */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

*::-webkit-scrollbar-corner {
  background: auto;
}