body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f2f2f2;
}

/* Center the starting view message */
#starting_view {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #fff;
}

/* Style for the starting message container */
#starting_view #startMessage {
  text-align: center;
}

/* Style for the start button */
#starting_view button {
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  cursor: pointer;
}

/* Chat view is hidden by default */
#chat_view {
  display: none;
}

/* Video element styles to cover the whole screen */
#chat_view #mediaElement {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Styles for vertical mode (portrait orientation) */
@media (orientation: portrait) {
  #chat_view #mediaElement {
      position: fixed;
      top: 0;
      left: 0;
      width: auto !important;
      height: 100%;
      /*object-fit: cover;*/
      z-index: 1;
      margin-left: -70vh;
  }
}


/* ChatGPT Avatar: always visible and centered */
#chatgpt-avatar {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: lightblue;
  border-radius: 50%;
  z-index: 10;
  opacity: 0.8;
  display: block;
}

/* Idle state: no animation */
#chatgpt-avatar.idle {
  animation: none;
}

/* Listening animation: slow pulse */
@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
}
#chatgpt-avatar.listening {
  animation: pulse 1s infinite;
}

/* Talking animation: faster pulse with glow */
@keyframes pulseFast {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 5px lightblue;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 15px lightblue;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 5px lightblue;
  }
}
#chatgpt-avatar.talking {
  animation: pulseFast 0.5s infinite;
}
