/* Nasconde il video per dispositivi in modalità portrait */
@media (orientation: portrait) {
  #videoContainer {
    display: none;
  }
}

/* Mostra il video solo quando il dispositivo è in modalità landscape */
@media (orientation: landscape) {
  #videoContainer {
    display: block;
    /* o flex, inline-block, a seconda del layout */
  }
}


@media (max-width: 932px) {

  .interaction-box {
    transform: translateY(20px) !important;
  }


  .rotate-device-icon {
    width: 50px;
    height: 50px;
  }


  .big-play-button {
    font-size: 80px;
  }



  

  .interaction {
    transform: scale(.7);
    margin-top: -60px;
    margin-left: -10px;
  }

  .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 {
    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: 400;
    text-align: center;
  }

  .main-description-paragraph {
    width: 70%;
    font-size: 14px;
    display: flex;
  }

  .main-description-paragraph::-webkit-scrollbar {
    width: 0;
    /* This will make the scrollbar invisible */
  }

  .interaction-horizontal-card {
    width: 100%;
    height: 70px;
  }

  .interaction-card-bg-in-video {
    flex: 0 0 100px;
    height: 70px;
    background: #333;
  }

  .inter-form-in-video-cnt {
    display: block;
  }

  .inter-in-video-time {
    font-size: .65rem;
  }


  .top-details {
    width: 90%;
    max-width: 90%;
    height: 10%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

  }

  .details-footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    transform: scale(.8)
  }


  .interaction-title {
    font-size: 20px;
    color: white;
    margin-left: 1px;
  }

  .close-details {
    /* Aumenta del 50% */
    cursor: pointer;
    width: 15px;
    height: 15px;
  }

   .videoplayBtn, .videopauseBtn {
    width: 35px;
    height: 35px;
  }

  .mid-loud-btn,
  .full-volume-btn,
  .muted-btn {
    width: 30px;
    height: 30px;
  }

  .replay-btn {
    width: 20px;
    height: 20px;
  }

  .video-settings-btn {
    width: 20px;
    height: 20px;
  }

  /* .fullscreenbtn,
  .exit-full-screen-btn {
    display: none !important;
  } */

  

  .interaction {
    padding: 2px;
  }

  .interaction svg {
    width: 24px;
    height: 24px;
  }

  .close-button {
    position: absolute;
    top: 15px;
    right: 30px;
    cursor: pointer;
    z-index: 2;
    transform: scale(80%);
    width: 20px;
  }

  .top-title {
    width: 100%;
    text-align: center;
  }

  .video-title {
    color: #fff;
    font-family: "Poppins", sans-serif;
    opacity: 0.8;
    font-weight: 500;
    font-size: 20px;
  }

  #docLink {
    font-size: 12px;
  }

  .top-description {
    padding-left: 5%;
    padding-right: 5%;
  }

  .video-description {
    color: #fff;
    font-size: 20px;
    font-family: "Poppins", sans-serif;
    opacity: 0.8;
    font-weight: 300;
    text-align: center;
    font-size: 13px;
  }

  .list-all-interactions-cnt {
    height: 70%;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.8);
  }

  .list-item-card {
    /* width: 25%;
    height: 120px; */
    transform: scale(70%);
    margin: -20px !important;
  }

  .list-item-title {
    font-size: 10px;
  }

  .animated-title {
    font-size: 10px;
  }

  .interaction-title-cnt {
    padding: 4px;
    top: -45px;
    left: 13px;
    text-align: center;
    position: absolute;
  }

  .video-controls-bar {
    position: absolute;
    bottom: 5%;
    width: 80%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 20px;
    background-color: rgba(46, 46, 46, 0.8);
    border-radius: 20px;
    z-index: 15;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    transition: 0.3s;
  }

  .videoplayBtn, .videopauseBtn {
    width: 35px;
    height: 35px;
  }

  .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;
    /* width: 100px; */
  }

  .progress-area {
    width: 300px !important;
    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;
  }

  
  .playtime,
  .duration {
    color: #fff;
    font-size: 12px;
  }

  .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;
  }

  .icon-description-preview {
    width: 14%;
    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.5));
  }

  /* 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: 2;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
  }


  #webLink,
  #facebookLink,
  #instagramLink,
  #xLink,
  #threadLink {
    transform: scale(.8)
  }



  .details-container {
    width: 100%;
    height: 89%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    position: relative;
    top: 3%;
  }

  .details-row {
    width: 100%;
    height: 100%;
    margin-top: 3%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: scroll;
  
    /* Nasconde scrollbar su Chrome, Safari e altri Webkit */
    scrollbar-width: none;         /* Firefox */
    -ms-overflow-style: none;      /* Internet Explorer 10+ */
  }
  
  .details-row::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
  }
  .details-left {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-height: 100%;
    height: 100%;
  }

  .img-cnt {
    max-width: 50%;
    height: 100%;
    margin-left: 45px;
    margin-right: 15px;
    margin-top: 3%;
  }

  .details-main-img {
    width: 100%;
    height: 80%;
    border-radius: 15px;
    border: solid #ffffff7d 1px;
    object-fit: cover;
  }

  .img-tag {
    color: #fff;
    font-size: 12px;
    text-align: center;
    margin-top: 2%;
    font-weight: 200;
  }

  .details-description {
    width: 55%;
    height: 100%;
    color: #fff;
    font-size: 12px;
    font-weight: 200;
    padding: 15px;
    text-align: justify;
  }

  .main-description-paragraph {
    margin: 0;
    width: 100%;
    height: 80%;
    font-size: 12px;
    overflow: auto;
    /* Nascondi le scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
  }
  
  .main-description-paragraph::-webkit-scrollbar {
    display: none; /* Chrome, Safari e Opera */
  }
  .details-right {
    width: 100%;
    margin-top: 5%;
    overflow-y: visible;
    display: flex;
    align-items: center;
    flex-direction: column;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: y mandatory;
  }

  .img-tag {
    display: none;
  }

  .card-details {
    width: 84%;
    height: 40%;
    background-color: rgb(67, 64, 60);
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px 0px 30px 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;
    z-index: 6;
  }

  .interaction-card-title,
  .interaction-card-images-title {
    font-size: 14px;
  }

  .accordion-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    display: none;
  }

  .accordion-panel.show {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
  }

  .details-secondary-video {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 5px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
    z-index: 4;
  }

  .secondary-video-iframe-cnt iframe {
    width: 400px;
    height: 200px;
    border-radius: 10px;
  }

  .text-summary {
    font-size: 12px;

    /* Initially visible */
  }

  .text-remainder {
    font-size: 12px;

    /* Initially hidden */
  }

  .interaction-image {
    width: 24%;
    height: auto;
    border-radius: 5px;
  }

  .card-details-content {
    width: 80%;
    color: #fff;
    font-weight: 200;
    font-family: "Poppins", sans-serif;
  }

  .details-card-accordion {
    margin-top: 20px;
  }

  .details-doc-link {
    color: goldenrod;
    text-decoration: none;
    font-weight: 400;
  }

  .identity-switch,
  .kids-switch,
  .adults-switch {
    width: 20px;
    height: 20px;
  }

  .content-switcher-cnt {
    padding-bottom: 50px;
  }



  .footer-links-cnt {
    width: 25%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 25px;
    gap: 5px;
  }

  .d-none {
    display: none;
  }

  @media (orientation: portrait) {
    .landscape-instructions {
      display: block;
      text-align: center;
      padding: 20px;
      background-color: rgba(0, 0, 0, 0.8);
      color: white;
      font-size: 18px;
    }

    #video {
      display: none;
    }
  }

  .text-hidden {
    display: none;
  }
}



@media (max-width: 295px) {
  .videoplayBtn, .videopauseBtn {
    width: 35px;
    height: 35px;
  }

  .video-settings-btn {
    display: none;
  }

  .video-logo {
    display: none;
  }

  .icon-overlay {
    display: none;
  }

  .fullscreenbtn, .exit-full-screen-btn {
    transform: scale(70%);
  }

  .duration {
    display: none;
  }
}