* {
  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;
}

.actionRowsWrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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



input {
  height: 40px;
  padding: 0 12px;

  font-size: 16px;
}

#status {
  overflow: auto;

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

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

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

.videoSectionWrap {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  
}

.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: 500px;
}

.videoSectionWrap .videoWrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  /*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: auto;
  /* height: 600px !important; */
  max-height: 100vh;
}


/*---------- 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;
}

.hide {
  display: none !important;
}
.show {
  display: flex;
}
.initConversation{
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.intro{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 100;

}

button{
  background: linear-gradient(90deg,#167260,#45bc84);
  border: 0;
  outline: none !important;
  font-size: 1rem;
  padding: 0.25rem 1rem;
  text-align: center;
  border-radius: 25px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
}


button.big{
  font-size: 1.5rem;
  padding: 0.5rem 3rem;
}
button:hover{
  background: linear-gradient(45deg,#167260,#45bc84);
}
html,
body{
  color: #333;
  padding: 0;
  margin: 0;
}

.chat-actions{
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 1rem;
  left: 0;
  width: 100%;
}
.chat-message{
  background-color: rgba(255,255,255,0.5);
  color: #333;
  border: 1px solid #ccc;
  font-size: 1.5rem;
  padding: 0.25rem 1rem;
  border-radius: 50px 0 0 50px;
  width: 50vw;
}

.chat-send{
  border-radius: 0 50px  50px 0;
  font-size: 1.5rem;
  padding: 0.25rem 1rem 0.25rem 0.25rem;
}

.chat-close{
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.chat-history {
  position: absolute;
  left: 1rem;
  max-width: 25%;
  bottom: 10%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: start;
  gap: 1rem;
  overflow-y: auto; /* Añade el desplazamiento vertical */
  padding-right: 1rem; /* Opcional: Añade un poco de espacio a la derecha para el scroll */
  box-sizing: border-box; /* Asegura que el padding se incluya en las dimensiones del contenedor */
}

.chat-bubble{
    position: relative;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(2px);
    color: rgb(18, 18, 18);
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    text-shadow: rgba(0, 0, 0, 0.2) 0.5px 0.5px 0.5px;
    font-size: 1.2rem;
}
.chat-user,
.chat-ia{
  background: rgba(255, 255, 255, 0.5);
  color: #167260;
  font-style: italic;
  font-weight: bold;
  font-size: 0.9em;
  border-radius: 0.25rem;
  padding: 0.1rem 0.5rem;
}

.chat-user{
  color: #2196f3;
}

.flex{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.initConversation{
  margin: 0.25rem;
}