@font-face {
  font-family: 'gothic'; 
  src: url('../font/Letter\ Gothic\ Std\ Medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'altro'; 
  src: url('../font/shree-devanagari-714.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body{
    position: relative;
    /*overflow-x: hidden;*/
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
}
#titolo{
  font-family: "Comfortaa", sans-serif;
  font-optical-sizing: auto;
  font-weight: 10px;
  font-style: normal;
  display: flex;
  justify-content: space-between;
  text-align: center;
  align-items: center; 
  margin-top: 10px;
}
#titolo span{
  flex-grow: 1;
}

#type{
  font-family: "Anonymous Pro", monospace;
  font-size: 1.1rem;
  margin-inline: auto;
  margin-top: 0;
  margin-bottom: 0;
  overflow: hidden;
  white-space: nowrap;
  border-right: 1px solid;
  line-height: 1;
  animation: typingLoop 5.5s steps(19) infinite , blink 1s step-end infinite;
  text-align: center;
  color: rgb(0, 0, 0);
}

@keyframes typingLoop {
  0%   { width: 0ch; }
  50%  { width: 13ch; }
  100% { width: 20ch; }
}
@keyframes blink {
  50%{
    border-color: transparent;
  }
}


#elenco{
    display: flex;
    flex-direction: column;
    gap: 5vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.9);
    height: 100vh;
    width: 100%;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.8s;
    pointer-events: none;
    font-size: 20px;  
    color: rgb(0, 0, 0);
    font-family: 'altro', sans-serif;
}
#elenco button{
    position: fixed;
    width: 8%;
    top: 20px;
    right: 20px;
    border: 0;
    background-color: transparent;
}  
#elenco img{
    width: 170%;
}
a:visited{
  color: rgb(0, 0, 0);
  text-decoration:none;
}
a{
  text-decoration: none;
  color: black;
}
#elenco.active{
    opacity: 1;
    pointer-events: auto; /* riattiva click sul menu quando visibile */
}
#titolo button{
  position: static;
  width: 6%;
  height: 8%;
  border: 0;
  margin-right: 20px;
  background-color: transparent;
  img{width: 20px;}
}
#spiegazione {
  margin: 10% auto 10% auto;
  width: 70%;
  text-align: center; /* se vuoi anche centrare il testo */
  font-family: 'gothic', sans-serif;
  font-size: 13px;
}

#spiegazione p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  word-break: normal;   
  overflow-wrap: normal;      
}

/*file mostra*/

#galleria {
  display: flex;
  justify-content: center; /* centra gli elementi all'interno */
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto; /* centra il container stesso se ha width definita */
  width: 90%; /* o una larghezza fissa */
  margin-top: 30px;
}

#galleria img{
  width: calc(45% - 10px); 
  height: auto;
  object-fit: contain; 
  margin: 10px; 
}

/*file feelings*/
#feelings{
  margin-top: 50px;
  text-align: center;
  
}
#nome{
  height: 30px;
  margin-bottom: 5px;
  border-radius: 10px;
  text-align: center;
}
textarea{
  display: block;           /* non flex */
  width: 90%;               /* larghezza desiderata */
  height: 200px;            /* altezza fissa o auto */
  margin: 0 auto;           /* centra orizzontalmente */
  font-family: "Anonymous Pro", monospace;
  font-size: 0.9rem;
  padding: 5px;
  box-sizing: border-box;   /* include padding nella larghezza */
}
#bottoneFeel{
  display: flex;
  justify-content: center;   /* centra il contenuto */
  align-items: center;       /* centra verticalmente */
  width: 70%;                /* larghezza bottone container */
  margin: 10px auto 0 auto;  /* centra il container stesso */
  height: 40px;
}
#bottoneFeel p{
  align-self: center;
}

#grazie{
  display: none;
  justify-content: flex-start; /* orizzontale */
  min-height: 100vh;       /* occupa l'intera altezza della finestra */
  text-align: center;      /* per testo multilinea */
  z-index: 2000000;        /* opzionale, ma*/
  margin-top: 20px;
  flex-direction: column;
  font-family: 'altro', sans-serif;
}
#muoviIdee{
  height: 80vh;
  position: relative;
  font-family: 'gothic', sans-serif;
}

.text {
  position: absolute;
  color: #000000;
  font-weight: 100;
  font-size: 20px;
  opacity: 0;
  transform: translateX(0);
  transition: transform 2s ease, opacity 2s ease;
  text-shadow: 0 4px 10px rgba(255, 255, 255, 0.5);
  font-family: 'gothic', sans-serif;
}
#video{
  display: block; /* non serve flex se è un singolo video */
  margin: 80px auto 80px auto; /* centra orizzontalmente e margine top */
  width: 83%;
}
#spazio{
  display: flex;
  justify-self: center;
}

#spazioTesto{
  margin: 5% auto 0 auto;
  width: 70%;
  text-align: center;
  font-size: 12px;
}
#spazioTesto p{
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;        /* ❗ niente sillabazioni automatiche */
  word-break: normal;   /* ❗ non spezzare parole */
  overflow-wrap: normal;
  font-family: 'gothic', sans-serif;
  margin-top: 30px;
  margin-bottom: 30px;  
}

#primoMock, #secondoMock, #terzoMock{
  margin-top: 40px;
  margin-bottom: 40px;
}

.bubi{
  font-size: 12px;
}

@media (min-width: 767px){
  #bars {
    display: none;
  }

  #titolo{
    justify-self: flex-start;
    display: flex;
    text-align: start;
  }
  
  #type{
    text-align: left;
  }
  #elenco {
    opacity: 1;
    background-color: transparent;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 2%;
    width: 95%;
    height: auto;
    padding-right: 2%;
    z-index: 10000;
    opacity: 1;
    pointer-events: auto;
    position: absolute;
    font-size: 100%;
  }
  #elenco button{
    display: none;
  }
  #spiegazione{
    margin-top: 5%;
    overflow-x: hidden;
    justify-self: center;
    font-weight: 10px;
    text-align: center;
    width: 40%;
    font-size: 18px;
  }

  hr{
    margin-top: 50px;
    margin-bottom: 50px;
  }

  #galleria{
    justify-content: center;
    justify-self: center;
    width: 60%;
    gap: 50px;
  }
  #galleria img {
    width:40%;
    height: 40%;
  }
   #video{
    display: flex;
    justify-self: center;
    width: 60%;
    margin-top: 100px;
  }
  #spazio{
    justify-self: center;
  }

  #frecciaDx {
    position: absolute;
    right: 20px;           /* distanza dal bordo destro */
    top: 50%;              /* centrata verticalmente */
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;           /* dimensione fissa */
    height: 60px;
    cursor: pointer;
    z-index: 1000000;
  }
  #frecciaDx button{
    background-color: transparent;
    border: none;
    width: 50px;
    height: 50px;
  }
  #frecciaDx button img{
    width: 50px;
    height: 50px;
  }

  #frecciaSx {
    position: absolute;
    left: 20px;           /* distanza dal bordo destro */
    top: 50%;              /* centrata verticalmente */
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;           /* dimensione fissa */
    height: 60px;
    cursor: pointer;
    z-index: 100000;
  }
  #frecciaSx button{
    background-color: transparent;
    border: none;
    width: 50px;
    height: 50px;
  }
  #frecciaSx button img{
    width: 50px;
    height: 50px;
    transform: rotate(180deg);
  }
  #nome, #pensiero, #bottoneFeel{
    pointer-events: auto;
    z-index: 100001;
  }
  
  #spazioTesto{
    margin: 5% auto 0 auto;
    width: 50%;
    text-align: center;
    font-size: 16px;
  }
  #spazioTesto p{
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;        /* ❗ niente sillabazioni automatiche */
    word-break: normal;   /* ❗ non spezzare parole */
    overflow-wrap: normal;
    font-family: 'gothic', sans-serif;
    margin-top: 30px;
    margin-bottom: 30px;  
  }

  .bubi{
    font-size: 16px;
  }
}




@media (min-width: 1130px) {
  #galleria{
    justify-content: center;
    justify-self: center;
    width: 60%;
    gap: 50px;
  }
  #galleria img {
    width:40vh;
    height: 40vh;
  }
   #video{
    display: flex;
    justify-self: center;
    width: 90vh;
    margin-top: 100px;
  }
}
