html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: "Courier New", Courier, monospace;
  background-color: #111;
  color: #e0e0e0;
  overflow-x: hidden;
}

body.fade-in {
  opacity: 0;
  animation: fadein 6s forwards;
}

@keyframes fadein {
  to {
    opacity: 1;
  }
}

.video-background video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-background .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.menu {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  /* padding: 10vw; */
  z-index: 3;
  text-align: center;
  padding-top: 5vh;
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 2vh 0 2vh 0;
  display: inline-flex;
  column-gap: 5vh;
}

.menu li {
  margin-left: 2vh;
  margin-right: 2vh;
  white-space: nowrap;
}

.menu a {
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(12px, 2vh, 24px);
  font-weight: bold;
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.6s;
}

.menu a:hover {
  color: #BADA54;
}

.menu a.active {
  color: #8C0000;
}

nav.menu + div {
  padding-top: 60px;
}

.galeria {
  margin-top: 8vh;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 11vh 5vw 5vh;
  position: relative;
  z-index: 2;
}

.episodio {
  display: block;
  width: 37.3vh;
  margin: 0 3vh 6vh;
  text-decoration: none;
  color: inherit;
}

.episodio img {
  width: calc(28vh *4/3);
  height: 28vh;
  object-fit: cover;
  display: block;
}

.episodio h2 {
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(16px, 2.4vh, 26px);
  text-align: left;
  margin: 0.2vh 0 -0.2vh;
  font-weight: normal;
}

.episodio p {
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(14px, 1.8vh, 24px);
  text-align: left;
  margin: 0;
  line-height: 1.4;
}

.latencia-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 2;
}

.latencia-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px);
}

.texto-latencia {
  position: absolute;
  z-index: 2;
  padding: 11vh 6vw 5vh;
  display: flex;
  flex-direction: column;
}

.latencia-esquerda {
  margin-top: 16vh;
  text-align: justify-all;
  max-width: 90ch;
  color: #fefefe;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(12px, 1.66vh, 20px);
  line-height: 2.4vh;
  margin-bottom: 7vh;
}

.latencia-direita {
  text-align: right;
  max-width: 90ch;
  color: #fefefe;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(12px, 1.66vh, 20px);
  line-height: 2.4vh;
}

.duo-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.duo-texto {
  max-width: 80%;
  margin: 8vh auto 0;
  text-align: center;
  line-height: 3vh;
  color: #fefefe;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(14px, 1.89vh, 24px);
}

.duo-texto span {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 0.1em 0.3em;
}

.duo-foto {
  display: flex;
  justify-content: center;
  margin-bottom: -1vh;
}

.duo-foto img {
  width: clamp(200px, 30vw, 400px);
  height: auto;
  object-fit: contain;
}

.duo-img-cred {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 1rem;
}

.duo-img {
  max-width: 90vw;
  height: auto;
}

.duo-contato {
  text-align: center;
  margin-top: 1rem;
  color: #E0E0E0;
}

.duo-contato span {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 0.1em 0.3em;
}

.duo-redes {
  margin-top: 0.5rem;
  margin-bottom: 1.5vh;
  display: flex;
  justify-content: center;
  
}

.duo-redes img {
  object-fit: contain;
  
}

.thumb-wrap {
  background-color: rgba(0, 0, 0, 0.6); 
  padding: 3px;
  margin-left: 6px;
  margin-right: 6px;
  border-radius: 16px;
  transition: background-color 0.3s;
}

.thumb-wrap:hover {
  background-color: rgba(186, 218, 84, 0.7); /* verde no hover */
}

.thumb-wrap img {
  width: auto;
  display: block;
}

.credito-foto {
  position: absolute;
  display: flex;
  align-items: flex-start;
  margin-left: 80vw;
  font-size: 13px;
  color: #E0E0E0;

}

.vertical {
  writing-mode: vertical-rl;
  transform: rotate(0deg);
}

.duo-footer a:link {
  color: silver;
}

.duo-footer a:visited {
  color: gray;
}

.duo-footer a:hover {
  color: white;
}

.duo-footer a:active {
  color: whitesmoke;
}

/* NINFAS */

/*ninfasB*/
#scrollLayer {
  display: none;
}
.bloco:first-child {
  height: 100vh;
}

.bloco {
  height: 120vh;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 13s ease, transform 3s ease;
}

.bloco.visivel {
  opacity: 1;
  transform: translateY(0);
}

.bloco video {
  width: clamp(220px, 40vw, 420px);
  height: auto;
  pointer-events: none;
}

.bloco.delay {
  transition-delay: 1s;
}

#scrollLayer {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s ease;
}
#scrollLayer.ativo {
  opacity: 1;
  pointer-events: auto;
}

/*ninfasC*/
.ninfas-background img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.conteudo-ninfas {
  position: fixed;
  inset: 0;
  overflow: hidden;
}
 
.audio-container {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  transition: opacity 1s ease;
}
.audio-container.escondido {
  opacity: 0;
  pointer-events: none;
}

#audio {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

#audio::-webkit-media-controls {
  display: none !important;
}

#playButton {
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(96px, 12vh, 128px);
  background: none;
  border: none;
  color: #e0e0e0;
  cursor: pointer;
  transition: color 0.5s;
}

#playButton:hover {
  color: #BADA54;
}
#galeria {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
}
 
.slot {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
 
/* elementos genéricos dentro dos slots */
.slot-el {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  z-index: 10;
  height: auto;
}
 
/* asag e viola: sem restrição de largura */
.sem-limite {
  max-width: none !important;
  width: auto !important;
}
 
/* tarô */
.carta-taro {
  position: fixed;
  height: auto;
  max-width: 28vw;
  z-index: 10;
  border-radius: 30px;
  box-shadow: -4px 6px 24px rgba(0,0,0,0.8);
}
 
/* pixabay: 1 coluna */
#slot-pixabay {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow-y: scroll;
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
#slot-pixabay::-webkit-scrollbar { display: none; }
#slot-pixabay.visivel { opacity: 1; }
 
.pixabay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
}
.pixabay-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.pixabay-credit {
  text-align: center;
  font-size: 11px;
  color: #888;
  padding: 8px;
  font-family: "Courier New", Courier, monospace;
}
 
/* scroll hint */
#scroll-hint {
  position: fixed;
  bottom: 5vh;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 60;
  pointer-events: none;
}
#scroll-hint span {
  display: block;
  width: 1px;
  height: 40px;
  background: #e0e0e0;
  margin: 0 auto;
  animation: pulso 2s ease-in-out infinite;
}
#scroll-hint.visivel { opacity: 1; }
#scroll-hint.oculto  { opacity: 0; }
#scroll-hint.final { display: none !important; }
 
@keyframes pulso {
  0%, 100% { opacity: 0.15; transform: scaleY(0.5); }
  50%       { opacity: 0.6;  transform: scaleY(1); }
}

 
/*fim de ninfas*/


#swapButton {
  position: fixed; /* ou absolute, dependendo da hierarquia */
  bottom: 6vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6vh;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 10;
  display: none; /* inicialmente oculto */
}

/*INSUFLARAS*/
.insuflaras-background {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
}

.insuflaras-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1) brightness(1.33) blur(3px);
}

.insuflaras-imgbackground {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
  pointer-events: none;
}

.insuflaras-imgbackground img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}
  
.video-container {
  position: relative;
  margin-top: 21vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  flex-direction: column;
}

.encavalada-background img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

.golfinho-background img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

/*menu hamburguer */
#menu-items {
  display: flex;
  gap: 2rem;
}

#menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #E0E0E0;
  cursor: pointer;
}

/* Norton Commander Style CSS */

.norton-body, .norton-menu, .norton-menu-item, 
.norton-panel, .norton-panel-header, .norton-panel-footer, 
.norton-file-list, .norton-file-item, playNorton {
    font-family: 'VT323', monospace !important;
}


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

/* Corpo */
.norton-body {
    font-size: clamp(18px, 8vw, 30px);
    background: #000080;
    color: #00FFFF;
    height: 100vh;
    overflow: hidden;
}

/* Container Norton escondido por padrão */
.norton-container {
    display: none;
    flex-direction: column;
    height: calc(100vh - 40px);
    margin-top: 0;
}

/* Menu Superior */
.norton-menu {
    background: #000080;
    padding: 2px 8px;
    border-bottom: 1px solid #00FFFF;
    font-weight: bold;
}

.norton-menu-item {
    display: inline-block;
    margin-right: 20px;
    color: #FFFFFF;
    text-decoration: none;
}

.norton-menu-item:hover {
    color: #FFFF00;
}

.norton-menu-item.active {
    color: #FFFF00;
    background: #008080;
    padding: 2px 8px;
}

/* Área Principal com Painéis */
.norton-main-area {
    flex: 1;
    display: flex;
    background: #000080;
}

.norton-panel {
    flex: 1;
    border: 2px solid #00FFFF;
    margin: 2px;
    background: #000040;
    display: flex;
    flex-direction: column;
}

.norton-panel.active {
    border-color: #FFFF00;
}

.norton-panel-header {
    background: #008080;
    color: #FFFFFF;
    padding: 4px 8px;
    border-bottom: 1px solid #00FFFF;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.norton-panel-path {
    color: #FFFF00;
}

.norton-panel-info,
#global-timer {
  font-size: clamp(18px, 2vw, 36px);
}


/* Lista de Arquivos */
.norton-file-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px;
    background: #000040;
}

.norton-file-item {
    display: flex;
    width: 100%;
    padding: 1px 4px;
    cursor: pointer;
    /*align-items: center;*/
}

.norton-file-item:hover {
    background: #004080;
}

.norton-file-item.selected {
    background: #008080;
    color: #FFFFFF;
}

.norton-file-name {
    flex: 0 0 40%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.norton-file-duration {
    width: 0 0 20%;
    text-align: center;
    margin-right: 8px;
    white-space: nowrap;
}

.norton-file-date {
    width: 0 0 40%;
    text-align: right;
    white-space: nowrap;
}

/* Rodapé */
.norton-panel-footer {
    background: #008080;
    color: #FFFFFF;
    padding: 2px 8px;
    border-top: 1px solid #00FFFF;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

/* Scrollbar personalizada */
.norton-file-list::-webkit-scrollbar {
    width: 12px;
}

.norton-file-list::-webkit-scrollbar-track {
    background: #000080;
}

.norton-file-list::-webkit-scrollbar-thumb {
    background: #008080;
    border: 1px solid #00FFFF;
}

.norton-file-list::-webkit-scrollbar-thumb:hover {
    background: #00FFFF;
}

/* Botão Play Norton */
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.8; }
}

#playNorton {
    font-family: 'VT323', monospace !important;
    font-size: clamp(30px, 10vh, 60px);
    background: #008080;
    color: #00FFFF;
    border: 2px solid #00FFFF;
    padding: 8px 50px;
    cursor: pointer;
    outline: none;
    display: block;
    box-shadow:  inset -2px -2px 0 #000040,
    inset 2px 2px 0 #00FFFF;
    animation: blink 1.5s steps(1) infinite;
}

#playNorton.pressed {
  background: #00FFFF;
  color: #000080;
}

.norton-audio-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 21vh;
    height: calc(100vh - 40px);
}

/* VERTICAL/MOBILE */
@media (max-width: 768px) and (orientation: portrait){
  .episodio {
    width: 90vw;
    margin: 0 auto 6vh;
  }

  .episodio img {
    width: 100%;
    height: auto;
  }

  #menu-items {
    display: none;
    flex-direction: column;
    background-color: rgba(0,0,0,0.9);
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 1rem;
  }

  #menu-items.active {
    display: flex;
  }
  .menu { left: auto; transform: none; right: 0; top: 0; } /*ninfas*/

  #menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }
  .menu {
    position: relative;
  }
  
  .latencia-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-60%, -50%);
    width: 300%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
  }
  
  /*NINFAS*/
  .carta-taro { max-width: 70vw; }
  .pixabay-grid {
    grid-template-columns: 1fr;
  }
  .pixabay-grid img {
    aspect-ratio: unset;
    height: auto;
  }

  
  /*INSUFLARAS*/
  .insuflaras-imgbackground img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    width: 100vh;
    height: 100vw;
    object-fit: cover;
  }

  .norton-menu a[href="duo.html"] {
   font-size: 0; /* esconde texto original */
  }

  .norton-menu a[href="duo.html"]::after {
    content: "C&J";
    font-size: clamp(18px, 8vw, 30px);
  }
  
  .norton-file-date {
    display: none;
  }

  /* redistribui espaço */
  .norton-file-name {
    flex: 0 0 70%;
  }

  .norton-file-duration {
    flex: 0 0 30%;
    text-align: c;
  }


  .norton-panel-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
  }

  .norton-main-area {
    padding-bottom: 40px; /* espaço pro cronômetro */
  }

  #global-timer {
    font-size: clamp(22px, 7vw, 32px);
  }

}