
:root {
    --color-negro: hsl(0, 60%, 9%);
    --border-size: clamp(12px, 5vw, 22px); /* 5% del ancho */
    --h1-size: clamp(2.5em, 7.5vw, 5em);
    --h2-size: clamp(1.8em, 6vw, 2em);
    --h3-size: clamp(1.3em, 4vw, 1.8em);
    --text-size: clamp(1.3em, 5vw, 1.8em);
    --infra-size: clamp(.9em, 3vw, 1.4em);  
  }

html, 
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: monospace;
  background-color: var(--color-negro, hsl(0, 60%, 9%));
  font-size: 12px;
}

.content {
  display: flex;
  justify-content: center;
  align-items: center; 
  border: var(--border-size, 20px) solid var(--palabra-bg-color, #f0f0f0);
  flex-direction: column;
  height: 100dvh;
  box-sizing: border-box;
  overflow: auto;
}

/*Tipografia*/
p { 
  font-size: var(--text-size);
  text-align: center;
}

h1 {
  font-size: var(--h1-size);
  overflow-wrap: break-word
}

h2{

  font-size: var(--h2-size);
  letter-spacing: .1rem;
  overflow-wrap: break-word
}

h3{
  font-size: var(--h3-size);
}

#presentados {
  font-size: var(--h3-size);
}

.titulo {
  font-family: 'Bokor', serif;
  font-optical-sizing: auto;
  line-height: 100%;
  text-decoration-line: underline;
  text-decoration-color: var(--palabra-bg1-color, #f0f0f0);
}

.inconsolata{
  font-family: 'Inconsolata', monospace;
  font-weight: 400;
  font-style: normal;
}

.inconsolata-thin {
  font-family: 'Inconsolata', monospace;
  font-weight: 300;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .4rem;
  }

.incosolata-text {
  font-family: 'Inconsolata', monospace;
  font-weight: 500;
  font-style: normal;
}

.meta {
  font-family: 'Noto Emoji', sans-serif;
  font-size: 4em;
}

.palabra {
  background-color: var(--palabra-bg-color, #f0f0f0);
  color: transparent;
  cursor: pointer;
}

.palabra:hover {
  background-color: white;
  color: var(--color-negro, hsl(0, 60%, 9%));
}

.palabra.revelada {
  background-color: white;
  color: var(--color-negro, hsl(0, 60%, 9%));
}

.no-bra {
  background-color: var(--palabra-bg1-color, #f0f0f0);
}

/*1ra pantalla */

.portadilla {
  display: flex;
  color: #f0f0f0;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding:1em;

}
 .index {
    line-height: 1.2;
  }

.index::before {
  content: " • ";
}

/*2da pantalla */

#poiesis{
  width: 100%;
  display: none;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  flex-flow: column;
  align-items: center;
  justify-content:flex-start;
}

#soneto {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.verso {
  color: var(--color-negro, hsl(0, 60%, 9%));
  font-size: var(--text-size);
  font-weight: 600;
}

.verso:hover {
  background-color: white;
}

.oculto{
  opacity:0;
  pointer-events: none;
  position: absolute;
}

.verso:first-child{
  margin-top: 5em;
}

.verso:last-child{
  margin-bottom: 5em;
}


/*Modal*/


.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; 
  top: 0;
  width: 100%; 
  height: 100%;
  background-color: var(--palabra-bg-color, rgba(248, 243, 243, 0.95));
}


.modal-content {
  display: flex;
  flex-direction: column;
  background-color: #fefefe;
  padding: 20px;
  border: 3px solid var(--color-negro, hsl(0, 60%, 9%));
  width: 85%;
  text-align: center;
  gap: 12px;
  margin: 30% auto;
}

#close-box {  
  display: flex;
  justify-content: flex-end; 
}

#videoModal {
  display: none;
}

.close {  
  color: var(--color-negro, hsl(0, 60%, 9%));
  font-size: 2.5em; 
  font-weight: bold; 
  cursor: pointer; 
}

#caption {
  font-size: var(--text-size);
  color: var(--color-negro, hsl(0, 60%, 9%));
  text-align: center;
  padding: 1em;
  min-height: 2em;
}

#content-text-box {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

#autor{ 
  font-weight: 700;
  transition: opacity 0.5s ease-in-out;
  font-size: var(--infra-size);
  letter-spacing: .5rem;
  text-transform: uppercase;
}

#autor::after 
{ content: " | "; 
}

.material-symbols-outlined{ 
  display: none;
}

/*Funcionalidad*/


.mobile-audio {
    width: 100%; 
  }
video#videoPlayer { 
  display: none; }

/* #contador-pasos button {
  font-size: 1em;
  padding: 0.5em 1em;
  cursor: pointer;
  color:#f0f0f0;
  background-color: var(--palabra-bg2-color,#f0f0f0);
  filter: drop-shadow(0px 10px 0px var(--palabra-bg3-color));
  border: none;
} */


#contador-pasos {
  color: #f0f0f0;
  padding: 1em;
}

#activarSensor{
  font-family: 'Inconsolata', monospace;
  display: inline;
  align-items: center;
  line-height: 1;
  cursor: pointer;
  font-size: var(--h2-size);
}

.bloques, .play, .bloq-prog{
  padding: 0px;
  vertical-align: baseline;
}



.play{
  vertical-align: middle;
  color: #f0f0f0;
}

@keyframes tin-tan {
  0% { opacity: 1;}
  50% {opacity: 0;}
  100%{opacity: 1;}
}

.el-loco{
  animation: tin-tan 0.5s infinite;
  color: var(--palabra-bg2-color, #f0f0f0);
  background-color: hsl(0, 60%, 20%);
}

.completado {
  animation: none;
  color: var(--palabra-bg2-color, #f0f0f0);
  background-color: var(--palabra-bg-color, #f0f0f0);

}
#horizontal-movil{
  display: none;
}

@media (max-width: 932px) and (orientation: landscape) {

  #poiesis{
    justify-content: center;
  }

  #horizontal-movil{
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
  }
  h3{
    color:var(--palabra-bg-color, white);
  }

  #soneto{
    display: none;
  }

  #progreso{
    display:none;
  }

}

@media (max-width: 767px) {

}



@media (min-width: 768px) {

}



@media (min-width: 1024px) {

  .content{
    min-height: 100dvh;  /* en vez de height fija */
    overflow: visible;
    height: auto;

  }

  #poiesis{
  overflow-y: visible;
  flex-flow: column;
  align-items: center;
  justify-content: center;
}
.verso:first-child {
  margin-top: 5em;
}

.verso {
  margin: .5em 0;  /* o el valor que prefieras, incluso 0 */
}

  /* Modal */
  .modal {
    overflow: auto;
  }

  video {
    transition: opacity 0.5s ease-in-out;
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 400px;
  }
  .modal-content {
    position: relative;
    margin: 10% auto;
    width: 80%;
    max-width: 800px;
  }
  #close-box {
    flex-flow: row wrap;
  }
  .close {
    color: var (--color-negro, hsl(0, 60%, 9%));
    float: right;
    font-size: 3em;
    font-weight: bold;
    cursor: pointer;
    background-color: white;
  }
  .close:hover,
  .close:focus {
    color: var(--palabra-bg1-color, #f0f0f0);
  }
  #content-text-box {
    position: absolute;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: auto;
  }

  .material-symbols-outlined:hover {
    color: var(--palabra-bg1-color, #f0f0f0);
  }
  .index {
    line-height: .2;
  }
  .index::before {
    content: " • ";
  }
  #presentados {
    width: 33.3%;
  }

  .material-symbols-outlined{ 
  display: inline-block;
  cursor: pointer; 
  font-size: 3em; 
}
  #progreso{
    display: none;
  }
  video#videoPlayer { 
    display: block; }

  #horizontal-movil{
    display: none;
  }
  audio#audioPlayer{
    display: none;
  }

}