/* Definição das cores */
:root {
    --cor-primaria: #2a0a5e;  /* Roxo escuro */
    --cor-secundaria: #4b1fa4; /* Roxo médio */
    --cor-clara: #9a72e4;      /* Roxo claro */
    --texto-claro: #f5f5f5;
    --texto-escuro: #ddd;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--cor-primaria);
    color: var(--texto-claro);
    text-align: center;
}

header {
    background: var(--cor-secundaria);
    color: var(--texto-claro);
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
}

#search {
    width: 80%;
    max-width: 400px;
    padding: 10px;
    margin: 15px auto;
    display: block;
    border: 2px solid var(--cor-clara);
    border-radius: 5px;
    background: var(--cor-primaria);
    color: var(--texto-claro);
}

/* Manter a disposição flexível para os itens dos PDFs */
#pdf-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    position: relative;
    min-height: 200px; /* Garantir uma altura mínima para manter a animação centralizada */
}

.pdf-item {
    background: var(--cor-secundaria);
    padding: 15px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    width: 250px;
    text-align: center;
    transition: transform 0.2s ease-in-out;
    color: var(--texto-claro);
    position: relative; /* Necessário para a decoração com emojis */
}

.pdf-item img {
    width: 100%;
    height: auto;
    max-height: 150px;
    border-radius: 5px;
    object-fit: contain;
    background: white;
}

.pdf-item:hover {
    transform: scale(1.05);
    background: var(--cor-clara);
}

.pdf-item a {
    text-decoration: none;
    color: var(--texto-claro);
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--cor-primaria);
    border-radius: 5px;
    transition: 0.3s;
}

.pdf-item a:hover {
    background: var(--cor-clara);
}

/* Emojis de Ostara no canto inferior de cada item */
.pdf-item::after {
    content: "🌸🌿✨"; /* Emojis de Ostara */
    position: absolute;
    bottom: 10px;
    left: 10px; /* Ajusta a posição para o canto inferior esquerdo */
    font-size: 20px;
    opacity: 0.7;
    transform: rotate(10deg);
}

/* Estilo da animação de carregamento */
#div1 {
  width: 100%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes animateHeight {
  0% {
    height: 0px;
  }
  50% {
    height: 50px;
  }
}

#l,
#m {
  width: 150px;
  height: 70px;
  position: relative;
  overflow: hidden;
  background-color: black;
  border-radius: 0px 200px 0px 200px;
  -moz-border-radius: 0px 200px 0px 200px;
  -webkit-border-radius: 0px 200px 0px 200px;
  border: 1px solid transparent;
  animation: animateHeight 1s infinite alternate-reverse;
}

#m {
  border-radius: 200px 0px 200px 0px;
  -moz-border-radius: 200px 0px 200px 0px;
  -webkit-border-radius: 200px 0px 200px 0px;
}

.pupil,
.pupl2,
.pupil3,
.pupil4,
.p5 {
  overflow: hidden;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.158);
}

.pupil3,
.pupil4 {
  width: 18px;
  height: 3.5px;
  overflow: visible;
}

.pupil {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    rgb(255, 105, 105),
    rgb(129, 249, 129),
    rgb(96, 96, 255),
    rgb(71, 71, 71)
  );
}

.pupl2 {
  width: 25px;
  height: 25px;
  background: linear-gradient(
    rgb(255, 2, 2),
    rgb(0, 255, 0),
    rgb(0, 0, 255),
    rgb(0, 0, 0)
  );
}

.p5 {
  width: 42px;
  height: 42px;
  background: linear-gradient(
    rgb(235, 1, 165),
    rgb(150, 2, 105),
    rgb(235, 1, 165),
    rgb(143, 1, 100)
  );
}

.pupil3 {
  width: 5px;
  height: 18px;
}

/* ======= ESTILIZAÇÃO DO POP-UP ======= */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: var(--cor-secundaria);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  width: 80%;
  max-width: 450px;
  text-align: center;
  font-size: 16px;
  border: 2px solid var(--cor-clara);
}

.popup-content h2 {
  margin-top: 0;
  font-size: 20px;
}

.popup-content p {
  font-size: 14px;
  line-height: 1.5;
}

/* ======= BOTÃO ANIMADO "CONCORDO" ======= */
#agree-btn {
  background: var(--cor-clara);
  color: var(--texto-escuro);
  padding: 12px 25px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 18px;
  transition: 0.3s;
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 10px var(--cor-clara);
}

#agree-btn:hover {
  background: var(--cor-primaria);
  transform: scale(1.1);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ======= ESTILIZAÇÃO DO FORMULÁRIO DE LOGIN ======= */
.login-container {
  width: 350px;
  margin: 80px auto;
  padding: 25px;
  background: var(--cor-secundaria);
  color: var(--texto-claro);
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  border: 2px solid var(--cor-clara);
  position: relative;
}

.login-container h2 {
  font-size: 22px;
  margin-bottom: 15px;
}

.login-container input {
  width: 90%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid var(--cor-clara);
  border-radius: 8px;
  background: var(--cor-primaria);
  color: var(--texto-claro);
  font-size: 16px;
  text-align: center;
}

.login-container button {
  background: var(--cor-clara);
  color: var(--texto-escuro);
  padding: 12px 25px;
  width: 100%;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 18px;
  transition: 0.3s;
  box-shadow: 0 0 10px var(--cor-clara);
}

.login-container button:hover {
  background: var(--cor-primaria);
  transform: scale(1.1);
}

#error-message {
  color: red;
  margin-top: 10px;
  min-height: 20px; /* Garante que o layout não salte quando a mensagem aparece */
}

/* ======= CURSOR PERSONALIZADO - VELA 🔥 ======= */
/* CORREÇÃO: Usando https para o URL do cursor para evitar 'Mixed Content' */
body {
  cursor: url('https://ardanraven.github.io/Biblioteca-Oculta/cursor-vela.png') 10 10, auto;
}

button, a, input, textarea {
  cursor: url('https://ardanraven.github.io/Biblioteca-Oculta/cursor-vela.png') 10 10, pointer;
}
