/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #26285C; /* Updated to specified blue */
  color: #fff; /* White text */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: #26285C; /* Matches the page background */
  color: #fff;
  padding: 1rem 0;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

header p {
  margin: 0.5rem 0 0;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.avatar-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.instruction-text {
  margin-top: 1rem;
  text-align: center;
  font-size: 1rem;
}

#heygen-streaming-embed {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #26285C; /* Matches the page background */
  border: 2px solid #fff; /* White border */
  border-radius: 8px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.12);
}

iframe {
  border: none; /* Remove iframe border */
}

/* Responsive Design for Mobile Screens */
@media (max-width: 768px) {
  iframe {
    max-height: 90vh; /* Fit within viewport */
  }

  header h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  iframe {
    max-height: 90vh; /* Fit viewport */
  }

  header h1 {
    font-size: 1.2rem;
  }
}
