:root {
  --loader_width: 500px;
  --loader_height: 127px;
}

@media (max-width: 500px) {
  :root {
    --loader_width: 250px;
    --loader_height: 63px;
  }
}

@font-face {
  font-family: "AvenirNext";
  src: url("../fonts/AvenirNextLTPro-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

html,
body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  margin: 0;
  /* Evita el scroll nativo en móviles */
  touch-action: none;
  background-color: black;
  font-family: "AvenirNext", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

canvas {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 100vw;
  max-width: 100dvw;
  max-height: 100vh;
  max-height: 100dvh;
}

#welcome {
  color: white;
  position: fixed;
  width: 100%;
  z-index: 1;

  height: 100vh;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ----------- Background FX ----------- */

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

#contenedor {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  padding: 20px 40px;
}

#contenedor h1 {
  margin-bottom: 40px;
  font-size: 36px;
}

#contenedor p {
  margin-top: 5px;
  margin-bottom: 35px;
}

#barra {
  width: 100%;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.3);
  padding: 3px;
}

#barra-progreso {
  background-color: rgba(255, 255, 255, 0.8);
  height: 14px;
  width: 0%;
}

/* Oculta el mensaje por defecto */
#mensaje-vertical {
  display: none;
  padding: 10px;
  border-radius: 10px;
}

#mensaje-vertical img {
  width: 200px;
  height: auto;
}

#contenedor-pre {
  width: var(--loader_width);
  height: var(--loader_height);
  background-image: url("../img/Dolby-logo-contorno.svg");
  background-repeat: no-repeat;
  background-position: left;
  background-size: var(--loader_width) var(--loader_height);
}

#barra-progreso-pre {
  mask-image: url("../img/Dolby-logo.svg");
  mask-repeat: no-repeat;
  mask-position: left;
  mask-size: var(--loader_width) var(--loader_height);
  width: 0%;
  height: var(--loader_height);
  background-color: white;
  transition: width 0.2s ease-out;
}

.btn {
  color: white;
  text-decoration: none;
  font-size: 26px;
  border: 2px solid white;
  padding: 20px 40px;
  border-radius: 50px;
}

/* ---- cierre ---- */

#cierre {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 2;
  position: absolute;
  /* bottom: 60px; */
  width: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  max-width: calc(1920 * 100vh / 1080);
}

#cierre-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 1920px;
  aspect-ratio: 1920 / 1080;
  max-width: 100vw;
  max-width: 100dvw;
  max-height: 100vh;
  max-height: 100dvh;
  text-align: center;
  color: white;
}

#imgShare {
  width: 100%;
  height: auto;
}

#btns-container {
  margin-top: 0px;
  position: relative;
}

.negativeMargin {
  display: flex;
  margin-left: -15px;
  margin-right: -15px;
}

#btns-container a {
  padding-left: 15px;
  padding-right: 15px;
  display: block !important;
}

#btns-container img {
  max-width: 100%;
  height: auto;
}

h1 img {
  width: 38%;
  height: auto;
}
h1 {
  margin-top: 0;
  margin-bottom: 3%;
}

#titulo-cierre,
#share-container,
#btnMusic,
#btnCine,
#btnHistoria,
#btnEverywhere,
#btnShare {
  opacity: 0;
}


/* Media query para mostrar el mensaje solo en orientación vertical (portrait) */
@media (orientation: portrait) {
  #mensaje-vertical {
    color: white;
    /*border: 2px solid white;*/
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    position: fixed;
    top: auto;
    left: 15px;
    bottom: 20px;
    z-index: 1000;
    right: 15px;
  }

  #mensaje-vertical.visto {
    display: none;
  }

  #mensaje-vertical .info_txt {
  }

  #mensaje-vertical .info_icon {
    color: black;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
  }
}

.m42 {
  /*max-width: 75%;*/
  width: 30%;
  margin-left: auto;
  margin-right: auto;
}

#btns-share {
  /*padding: 0px 50px;
  width: 100%;
  display: flex;
  /*display: none;*/
  justify-content: space-between;
}

#btn-share-container {
  opacity: 0;
  z-index: -1;
  position: absolute;
  width: 100%;
  top: 0;
}

#btns-vids-container {
  z-index: 1;
}
#share-container {
  justify-content: center;
  margin-bottom: 2.5%;
  width: 57%;
  margin-left: auto;
  margin-right: auto;
}

#btnShare {
  cursor: pointer;
}

.shareBtn1 {
  margin-bottom: 5%;
}
.shareBtn2 {
  margin-bottom: 5%;
}

.shareBtn3 {
  margin-bottom: 15%;
}

@media screen and (max-width: 768px) {
  h1 {
    margin-bottom: 5px;
  }
  #btns-container {
    margin-top: 20px;
  }
  #cierre{
    max-width: calc(1720 * 100vh / 1080);
  }
  #contenedor-pre {
    transform: scale(0.6);
  }
  .shareBtn1,
  .shareBtn2,
  .shareBtn3 {
    margin-bottom: 3%;
  }
  .shareBtn4 {
    margin-top: 10%;
  }
}

#btns-container a#btnShare {
  padding: 0 12%;
}


.video-container {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background: linear-gradient(-45deg, #930cdc, #2817d5, #000000);
  background-size: 400% 400%;
  animation: gradient 4s ease infinite;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  cursor: pointer;
}