@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300&family=Poppins:wght@200&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Share+Tech+Mono&display=swap');

body {
  margin: 0;
  padding: 0;
  background: black;
  font-family: "Poppins";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  text-align: center;
  color: #fff;
}

.video-container {
  width: 100dvw;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 0;
}

.video-logo {

  left: 2%;
  bottom: 5%;
  z-index: 10;
  height: 0;
  width: 0;
  opacity: 0.7;
}

.log2 {
  height: 0;
  width: 0;
}

@media (min-width: 550px) {
  .video-logo {
    height: 1.5em;
    width: 1.5em;
  }

  .log2 {
    height: 1.5em;
    width: 1.5em;
  }
}

@media (min-width: 765px) {
  .video-logo {
    height: 2.4em;
    width: 2.4em;
  }

  .log2 {
    height: 2.4em;
    width: 2.4em;
  }
}

@media (min-width: 1440px) {
  .video-logo {
    height: 2.8em;
    width: 2.8em;
  }

  .log2 {
    height: 2.8em;
    width: 2.8em;
  }
}

.main-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  aspect-ratio: 16/9;
  /* Assicura che il video mantenga proporzioni standard */
}

.video-infos-cnt {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  position: absolute;
  z-index: 1;
  background: linear-gradient(360deg,
      rgba(64, 64, 65, 0.2) 0%,
      rgba(67, 67, 68, 0.7) 0%,
      rgba(0, 0, 0, 0.725) 100%);
  overflow: hidden;
}

.left-infos-cnt {
  width: 50% !important;
}

.all-interactions-title {
  padding-top: 30px;
  font-weight: 200;
  text-align: center;
  color: white;
}

.close-button {
  position: absolute;
  top: 30px;
  right: 30px;
  cursor: pointer;
  z-index: 2;
  width: 25px;
  height: 25px;

}

.top-title {
  width: 100%;
  text-align: center;
}

.video-title {
  /* color: #fff;
  font-family: "Poppins", sans-serif;
  opacity: 0.8;
  font-weight: 300;
  font-size: 35px; */
  width: 100%;
  text-align: center;
  font-size: 35px;
  color: white;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.top-description {
  padding-left: 15%;
  padding-right: 15%;
}

.video-description {
  /* color: #fff;
  font-size: 20px;
  font-family: "Poppins", sans-serif;
  opacity: 0.8;
  font-weight: 300;
  text-align: center;
  font-size: 20px; */
  color: #fff;
  font-size: 20px;
  font-family: "Poppins", sans-serif;
  opacity: 0.8;
  font-weight: 400;
  text-align: center;
}

.main-description-paragraph {
  width: 100%;
  /* height: 200px; */
  font-size: 14px;
  display: flex;
  /* overflow-y: scroll; */
  /* scrollbar-width: none; */
}

.main-description-paragraph::-webkit-scrollbar {
  width: 0;
  /* This will make the scrollbar invisible */
}

.video-controls-bar {
  position: absolute;
  bottom: 5%;
  width: 80%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background-color: rgba(46, 46, 46, 0.8);
  border-radius: 50px;
  z-index: 10;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
  transition: 0.3s;
}


.videoplayBtn,
.videopauseBtn {
  width: 40px;
  height: 40px;
}

.videoplayBtn:hover,
.videopauseBtn:hover,
.fullscreenbtn:hover,
.exit-full-screen-btn:hover,
.replay-btn:hover,
.full-volume-btn:hover,
.mid-loud-btn:hover,
.muted-btn:hover,
.video-settings-btn:hover,
.progress-area:hover,
.close-button:hover {
  cursor: pointer;
  padding: 0;
}

.volume-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding-inline: 8px;
}

.progress-area {
  width: 100%;
  /* width: 1100px; */
  height: 5px;
  border-radius: 5px;
  background-color: #ffffff77;
  position: relative;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 5px;
  background-color: #ffffff;
  transition: width 0.2s ease-in-out;
}

.fullscreenbtn:hover {
  cursor: pointer;
}

.playtime,
.duration {
  color: #fff;
  font-size: 12px;
  width: 30px;
}

.tooltip {
  width: 30px;
  text-align: center;
  position: absolute;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 5px 15px;
  border-radius: 5px;
  font-size: 12px;
  pointer-events: none;
  display: none;
  white-space: nowrap;
  opacity: 0.8;
  top: -35px;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(0, 0, 0, 0.7);
}

.icon-overlay {
  width: 100%;
  height: 100vh;
  position: absolute;
  overflow: hidden;
}

.icon-description-preview {
  width: 12%;
  height: auto;
  position: absolute;
  /* background-color: rgba(0, 0, 0, 0.496); */
  color: #fff;
  border-radius: 20px;
  padding: 0 25px 10px 25px;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
}

.int-overlay-title {
  text-align: center;
  font-size: 25px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

.int-overlay-desc {
  font-size: 11px;
  font-weight: 200;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

/* Apply animation to the text */
.fadeInLeftToRight {
  opacity: 0;
  animation: fadeInLeftToRight 0.5s ease-in-out forwards;
}

.icon {
  position: absolute;
  cursor: pointer;
  z-index: 1;
}

.heartbeat {
  -webkit-animation: heartbeat 1.5s ease-in-out infinite both;
  animation: heartbeat 1.5s ease-in-out infinite both;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.blink-1 {
  -webkit-animation: blink-1 3s infinite both;
  animation: blink-1 3s infinite both;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.details-overlay {
  width: 100%;
  height: 100%;
  z-index: 15;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.details-overlay::-webkit-scrollbar {
  display: none;
}

.top-details {
  width: 90%;
  max-width: 90%;
  height: 5%;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 1rem;

}

.interaction-title {
  font-size: 35px;
  color: white;
  text-align: center;
}

.close-details {
  /* Aumenta del 50% */
  cursor: pointer;
  width: 25px;
  height: 25px;
}


.details-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: scroll;
  scrollbar-width: none;
}

.details-row {
  width: 100%;
  height: 100%;
  margin-top: 3%;
  display: flex;
}

.details-left {
  display: flex;
  flex-direction: column;
  width: 50%;
  height: 100%;
}

.img-cnt {
  max-width: 100%;
  height: 450px;
  margin-left: 45px;
  margin-right: 45px;
}

.details-main-img {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  border: solid #ffffff7d 1px;
  object-fit: cover;
}

#webLink,
#facebookLink,
#instagramLink,
#xLink,
#threadLink {
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out;
  /* Aggiunta transizione */
}

#webLink:hover,
#facebookLink:hover,
#instagramLink:hover,
#xLink:hover,
#threadLink:hover {
  opacity: 1;
  transform: scale(1.1);
  /* Leggero ingrandimento per un effetto più dinamico */
}

.img-tag {
  color: #fff;
  font-size: 12px;
  text-align: center;
  margin-top: 2%;
  font-weight: 200;
}

.details-description {
  color: #fff;
  font-size: 20px;
  font-weight: 200;
  padding: 40px;
  text-align: justify;
}

.details-right {
  width: 50%;
  display: flex;
  align-items: center;
  flex-direction: column;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-snap-type: y mandatory;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.card-details {
  width: 80%;
  height: 15%;
  background-color: rgb(67, 64, 60);
  border-radius: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 20px 1rem 1rem 30px;
  gap: 40px;
  margin-bottom: 10px;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
  scroll-snap-align: start;
  transition: 0.5s ease-in-out;
  cursor: pointer;
}

.card-details.expanded {
  height: auto;
}

.accordion-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  display: none;
  padding: 0 !important;
  margin: 0 !important;
}

.accordion-panel.show {
  display: block;
}

.details-secondary-video {
  width: 100%;
  height: 100%;
  outline: none;
  z-index: 3;
  border-radius: 20px;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
}

.text-summary {
  font-size: 14px;
}

.text-remainder {
  font-size: 14px;
}

.interaction-image {
  /* width: 24%; */
  width: 35%;
  height: 10rem;
  border-radius: 8px;
  object-fit: cover;
}

.avatar-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.card-details-content {
  width: 80%;
  color: #fff;
  font-weight: 200;
  font-family: "Poppins", sans-serif;
}

.details-card-accordion {
  width: 100%;
  margin-top: 20px;
  object-fit: contain;
}

.details-doc-link {
  color: goldenrod;
  text-decoration: none;
  font-weight: 400;
}

.details-footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.footer-links-cnt {
  /* width: 15%; */
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  justify-content: space-evenly;
}

.d-none {
  display: none;
}

.landscape-instructions {
  display: none;
}

.text-hidden {
  display: none;
}


/** Nuova animazione Titoli interazioni


/* Stile del titolo */
.animated-title {
  font-family: "Share Tech Mono", monospace;
  color: #db1515;
  margin: 0;
  overflow: hidden;
  letter-spacing: 1px;
  display: inline-block;
}

/* Stile per ogni lettera */
.animated-title span {
  display: inline-block;
  opacity: 0;
  transform: translateX(-100px) translateY(0) scale(0.8);
  animation: fadeInWave .4s forwards ease-out;
}


.initial-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  cursor: pointer;
}

.big-play-button {
  background: transparent;
  border: none;
  font-size: 100px;
  color: white;
  opacity: .8;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-left: 20px;
}

.big-play-button:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-select {
  display: none;
  position: absolute;
  top: -140%;
  left: -80%;
  z-index: 1000;
  background: transparent;
  color: white;
  border-radius: 6px;
  padding: 0.5rem;
  width: 100px;
}

.lang-select select {
  padding: 0.3rem;
  border-radius: 4px;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
}

.lang-icon {
  margin-top: 4px;
  cursor: pointer;
  display: inline-block;
}




/* Animazione lettere con balzo */
@keyframes fadeInWave {
  0% {
    opacity: 0;
    transform: translateX(-100px) translateY(0) scale(0.8);
  }

  50% {
    opacity: 1;
    transform: translateX(0) translateY(-20px) scale(1.1);
  }

  70% {
    transform: translateX(0) translateY(10px) scale(1);
  }

  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
}