﻿html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

#adminPanel {
  max-height: 85vh;
  overflow-y: auto;
}

#adminMemorialList {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 6px;
}

#adminPanel::-webkit-scrollbar,
#adminMemorialList::-webkit-scrollbar {
  width: 8px;
}

#adminPanel::-webkit-scrollbar-thumb,
#adminMemorialList::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.35);
  border-radius: 10px;
}
#sideMenu,
#openAdminPanelBtn,
#adminPanel,
#painelAjudaNav {
  position: relative;
  z-index: 10;
}
#adminPanel {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 900px;
  background: rgba(255,255,255,0.95);
  border-radius: 15px;
  padding: 20px;
  z-index: 20;
}

#fadeIntro {
  position: fixed;
  inset: 0;
  background: black;
  opacity: 0;
  pointer-events: none;
  z-index: 15;
  transition: opacity 1.2s ease;
}

#openAdminPanelBtn {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);

  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;

  color: #222;
  background: rgba(255, 255, 255, 0.25);

  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 12px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  cursor: pointer;
  z-index: 20;

  box-shadow: 
    0 10px 25px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.5);

  transition: all 0.3s ease;
}

#openAdminPanelBtn:hover {
  transform: translateX(-50%) scale(1.05);

  background: rgba(255, 255, 255, 0.45);

  box-shadow: 
    0 15px 35px rgba(0,0,0,0.35),
    0 0 20px rgba(255,255,255,0.3),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

#openAdminPanelBtn:active {
  transform: translateX(-50%) scale(0.95);
}
#cursorDirecao {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 15;
}



/* posições */
.cima {
  transform: rotate(45deg);
  top: -30px;
  left: -10px;
}

.baixo {
  transform: rotate(225deg);
  top: 10px;
  left: -10px;
}

.esquerda {
  transform: rotate(135deg);
  top: -10px;
  left: -30px;
}

.direita {
  transform: rotate(-45deg);
  top: -10px;
  left: 10px;
}

##btnSom {
  position: fixed;
  top: 20px;
  right: 20px;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;

  color: white;
  background: rgba(0,0,0,0.6);

  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;

  cursor: pointer;
  z-index: 99999;

  backdrop-filter: blur(6px);
  transition: 0.3s;
}

#btnSom:hover {
  background: rgba(0,0,0,0.85);
}
#btnSom {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  width: 50px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  color: white !important;
  background: rgba(0,0,0,0.85) !important;
  border: 2px solid white !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  z-index: 999999 !important;
}

#adminPanel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 720px;
  max-width: 90%;

  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);

  border-radius: 20px;
  padding: 25px;

  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  z-index: 9999;

  color: #fff;
}

.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-panel-header h2 {
  font-size: 22px;
  font-weight: 600;
}
#adminPanel input,
#adminPanel textarea {
  width: 100%;
  padding: 10px;

  border-radius: 10px;
  border: none;

  background: rgba(255,255,255,0.15);
  color: white;

  outline: none;
}

#adminPanel textarea {
  resize: none;
}

#salvarMemorialBtn {
  background: linear-gradient(135deg, #c8a96a, #e2c78f);
  color: black;

  padding: 10px 15px;
  border: none;
  border-radius: 12px;

  font-weight: bold;
  cursor: pointer;

  transition: 0.3s;
}

#salvarMemorialBtn:hover {
  transform: scale(1.05);
}

#adminMemorialList div {
  background: rgba(255,255,255,0.08);
  padding: 12px;
  border-radius: 12px;
  margin-top: 10px;
}

input[type="file"] {
  display: none;
}

label {
  background: rgba(255,255,255,0.2);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-block;
  font-size: 13px;
}
body{
  animation: aparecer 0.8s ease both;
}

@keyframes aparecer{
  from{
    opacity:0;
    transform:translateY(8px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.particulas{
  position:fixed;
  inset:0;
  pointer-events:none;
  overflow:hidden;
  z-index:1;
}

.particulas span{
  position:absolute;
  width:7px;
  height:7px;
  background:rgba(255,255,255,0.85);
  border-radius:50%;
  box-shadow:0 0 18px rgba(255,255,255,0.9);
  animation: subir 12s linear infinite;
}

.particulas span:nth-child(1){
  left:12%;
  animation-delay:0s;
  animation-duration:13s;
}

.particulas span:nth-child(2){
  left:30%;
  animation-delay:3s;
  animation-duration:15s;
}

.particulas span:nth-child(3){
  left:55%;
  animation-delay:1s;
  animation-duration:12s;
}

.particulas span:nth-child(4){
  left:72%;
  animation-delay:5s;
  animation-duration:16s;
}

.particulas span:nth-child(5){
  left:88%;
  animation-delay:2s;
  animation-duration:14s;
}

@keyframes subir{
  from{
    bottom:-20px;
    opacity:0;
    transform:translateY(0) scale(0.8);
  }
  20%{
    opacity:0.8;
  }
  80%{
    opacity:0.8;
  }
  to{
    bottom:105%;
    opacity:0;
    transform:translateY(-30px) scale(1.2);
  }
}
.vela{
  position:relative;
  width:34px;
  height:70px;
  border-radius:10px;
  background:linear-gradient(to bottom,#fff7d6,#f4d27a);
  box-shadow:0 8px 18px rgba(0,0,0,0.18);
}

.chama{
  position:absolute;
  top:-18px;
  left:50%;
  transform:translateX(-50%);
  width:18px;
  height:26px;
  border-radius:50% 50% 50% 50%;
  background:radial-gradient(circle,#fff7b1,#ff9800);
  filter:blur(0.5px);
  animation:piscar 1.8s infinite alternate;
  box-shadow:
    0 0 14px rgba(255,200,0,0.8),
    0 0 30px rgba(255,140,0,0.5);
}

@keyframes piscar{
  from{
    transform:translateX(-50%) scale(1);
    opacity:0.9;
  }
  to{
    transform:translateX(-50%) scale(1.12);
    opacity:1;
  }
}
.flor{
  font-size:34px;
  animation:flutuarFlor 3s ease-in-out infinite alternate;
  filter:drop-shadow(0 8px 10px rgba(0,0,0,0.18));
}

@keyframes flutuarFlor{
  from{
    transform:translateY(0) rotate(-3deg);
  }
  to{
    transform:translateY(-6px) rotate(3deg);
  }
}
.timeline{
  position:relative;
  padding-left:24px;
  border-left:3px solid #bfdbfe;
}

.timelineItem{
  position:relative;
  margin-bottom:24px;
  padding-left:18px;
}

.timelineItem::before{
  content:"";
  position:absolute;
  left:-32px;
  top:4px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:#2563eb;
  border:4px solid white;
  box-shadow:0 0 0 4px #bfdbfe;
}

.timelineItem h4{
  margin:0;
  font-size:20px;
  color:#111827;
}

.timelineItem small{
  color:#64748b;
}

.timelineItem p{
  margin:8px 0 0;
  color:#4b5563;
  line-height:1.6;
}
.heroSlide{
  animation:zoomHero 12s ease-in-out infinite alternate;
  transition:opacity 1.5s ease;
}

@keyframes zoomHero{
  from{
    transform:scale(1);
  }

  to{
    transform:scale(1.08);
  }
}
.heroSlide{
  animation:zoomHero 12s ease-in-out infinite alternate;
  transition:opacity 1.5s ease;
}

@keyframes zoomHero{

  from{
    transform:scale(1);
  }

  to{
    transform:scale(1.08);
  }
}