* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  padding: 24px;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 24px;

  margin: 0;
  padding: 0;
  overflow: hidden;
  margin:auto;
/*  background: url(../img/bg.jpg) no-repeat;*/
  background-size: contain;
  backdrop-filter: blur(1px);
  width: 1920px;
  height: 1080px;
  background-position: center;
}

.actionRowsWrap {
  display: none; /* MOD */
/*  display: flex;*/
  position: absolute;
  left: 10px;
  bottom: 10px;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.actionRow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.actionRow label {
  display: flex;
  align-items: center;
  gap: 8px;
}

button {
  display: inline-block;
/*  padding: 0 16px;*/
/*  border-radius: 8px;*/
  height: 40px;

/*  background-color: #0018a8; */
  border: none;
  background-color: transparent;
  color: #fff;
  text-align: center;
  font-size: 16px;

  cursor: pointer;
  transition-duration: 0.4s;
}

button:hover {
/*  background-color: #0018a8;*/
}

input {
/*  height: 40px;*/
/*  padding: 0 12px;*/
/*  font-size: 16px;*/
}

#repeatBtn {
  position: absolute;
  right: 0;
  top: 500px;
  width: 100px;
  height: 100px;
  background-color: #0ff;
}


#status {
  overflow: auto;

  background-color: #fff;
  padding: 10px 12px;

  border: 1px solid #ccc;
  border-radius: 8px;

  font-size: 14px;
  line-height: 1.6;

  z-index: 999;
  position: absolute;
  width: 520px;
  height: 300px;
  top: 0;
  right: 0;

}

.videoSectionWrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: normal;
  gap: 12px;
  height: 1080px;
  width: 100%;
}

.actionRow.switchRow {
  width: 100%;

  justify-content: center;
}
.switchRow {
  flex-direction: column;
}
.switchRow > label {
  width: 100%;

  display: flex;
  justify-content: center;
}

.switchRow > label input {
  flex: 1;
  max-width: 500%;
}

.videoSectionWrap .videoWrap {
  display: flex;
/*  justify-content: center;*/
  align-items: center;
  height: 1080px;

  /*background: linear-gradient(0deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.02) 100%),*/
  /*  radial-gradient(*/
  /*    108.09% 141.42% at 0% 100%,*/
  /*    rgba(219, 255, 213, 0.3) 0%,*/
  /*    rgba(255, 255, 255, 0) 100%*/
  /*  ),*/
  /*  linear-gradient(135deg, #ffeede 5.71%, #ffd9d9 47%, #a3dce7 93.47%);*/
}

.videoWrap .videoEle {
/*  width: 46%;*/
  width: 100%;
}

/*---------- Switch START ----------*/
.switchWrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: '';
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
/*---------- Switch END ----------*/

.videoSectionWrap .hide {
  display: none;
}

.videoSectionWrap .show {
  display: flex;
/*  margin-top: 500px;*/
  margin: auto auto 0 auto;
}

.hide {
  display: none;
}
.show {
  display: flex;
}


.visuals-container {
    display: none;
    flex-direction: column;
    border-radius: 15px;
    width: 450px;
    max-height: 100vh;
    overflow-y: auto;
    position: fixed;
    left: 0;
    top: 0;
    margin-top: 120px;
    margin-left: 10px;
}

.visuals-container.visible {
    display: flex;
}

.visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.visual img {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 20px;
}

.visual img {
    width: 100%; /* Fare in modo che le immagini occupino tutta la larghezza del visual */
    height: auto; /* Mantieni le proporzioni delle immagini */

}



.message {
    box-shadow: 0px 2px 3px #00000029;
    border-radius: 9px;
    padding: 5px 10px;
    margin-bottom: 10px;
    max-width: 70%;
    clear: both;
    padding: 10px;
    font-size: 15px;
}

.message.User {
    background: #fff;
    color: #0D5184;
    float: right;

}

.message.Assistant {
    background: #0F73BF 0% 0% no-repeat padding-box;
    color: #fff;
    float: left;
}

/* Stile per il pulsante della chat */
#toggleChatButton {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 100px;
    height: 119px;
    cursor: pointer;
/*    display: flex;*/
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 888;
}

#toggleChatButton img {
    width: 100px;
    height: 119px;
}

.conversation-history {
    display: none;
    position: fixed;
    bottom: 130px;
    right: 10px;
    width: 500px;
    height: 700px;
    background: #FFFFFF87 0% 0% no-repeat padding-box;
    border: 1px solid #FFFFFF;
    border-radius: 8px;
    overflow-y: auto;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 999;
}
  .conversation-history.visible {
      display: block;
  }
  #conversationHistory-title-box {
    width:100%;background: rgba(61,167,222,.7); border-radius: 8px;color: #fff;border: 1px solid #fff;
    margin-bottom: 15px;
  }
    #conversationHistory-title {
      float:left;width:150px; padding:10px
    }
    #conversationHistory-download {
      float:right;width:140px; padding: 10px;
    }

/** MOD **/
#startBtnFull {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1080px;
  z-index: 889;
/*  background-image: url(../img/start-horizontal.png);*/
  background-position: center center;
  background-repeat: no-repeat;
/*  opacity: .9;*/
}
  #startVideoFull {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1080px;
    z-index: 666;
  /*  background-image: url(../img/start-horizontal.png);*/
    background-position: center center;
    background-repeat: no-repeat;
  /*  opacity: .9;*/
  }
  #backgroundVideo {
/*    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;*/

    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
/*    object-fit: cover;*/
    transform: translate(-50%, -50%);

}
#loading-avatar {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1080px;
  z-index: 889;
  background-image: url(../img/loading-avatar.webp);
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #000;
  opacity: .8;
}

#stop-refresh {
  cursor: pointer;
  background-image: url(../img/end-session.png);
  background-size: contain;
  background-position: right;
  background-repeat: no-repeat;
  width: 100px;
  height: 119px;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  display: none;
}
#voice-input {
  position: absolute;
  bottom: 10px;
  margin: auto;
  width: 1920px;
/*  display: flex;*/
  display: none;
  align-items: center;
  justify-items: center;
  text-align: center;
  justify-content: center;
  z-index: 888;
}
  #startVoiceBtn {
    cursor: pointer;
    z-index: 889;
  }
  #taskInput {
    height: 60px;
    border: 1px solid #0018a8;
    border-radius: 20px;
    margin-bottom: 25px;
    padding-left: 40px;
    padding-right: 70px;
    width: 600px;
    font-size: 20px;
    color: #4B4B4B;
    background: #fff url(img/keyboard-mini.png) 97% center no-repeat;
    white-space: nowrap;
    overflow: hidden;
/*    text-overflow: ellipsis;*/
  }
  #taskInput::placeholder {
    opacity: 0.6;
    text-align: left;
    font-size: 20px;
  }

  #talkBtn {
    height: 119px;
    padding: 0;
    margin: 0 12px;
  }
    #talkBtn:disabled {

    }

#backButton {
    position: fixed;
    bottom: 10px;
    left: 10px;
    border: none;
    background-color: transparent;
    width: 100px;
    height: 119px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
  #backButton img {
      width: 100px;
/*      height: 119px;*/
  }
#logoButton {
    position: fixed;
    top: 10px;
    right: 10px;
    border: none;
    background-color: transparent;
width: 270px;
height: 80px;
  /*    width: 100px;
    height: 100px;
*/    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 888;
}
 #logoButton img {
  width: 250px;
 }

#actionBtn_box {
  text-align: center;
    width: 130px;
    height: 120px
}
#actionBtn {
  height: 120px;
}

/** POPUP PRESENZA **/
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Sopra altri elementi */
}

.hidden {
  display: none;
}

.popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.popup-content p {
  margin: 10px 0;
}

.popup-button {
  border: none;
  padding: 10px 20px;
  margin: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}
  #popup-yes {
    background-color: #000;
    color: #fff;
    float: left;
  }
  #popup-no {
    float: right;
    color: #000;
  }

/*.popup-button:hover {*/
/*  background-color: #0056b3;*/
/*}*/
#simulate-presence {
  position: fixed;
  top: 35px;
  left: 0;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 888;
  width: 240px;
  height: 40px;
  letter-spacing: 1px;
  background-color: rgba(255, 255, 255, 0.6);
  color: #3f3f3f;
  font-weight: bold;
}