html, body {
    margin: 0;
    height: 100%;
    overflow: hidden;
}

#background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#intro {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1000;
}

#intro h1 {
  font-family: 'Helvetica';
  font-size: 2rem;
  color: rgb(255, 0, 0);
  margin-bottom: 1rem; 
}

h1 .subtext {
    font-size: 0.5em; /* half the size of the main text */
    font-weight: normal; /* optional */
    line-height: 1.3; /* optional for spacing */
}



/* Small camera preview in the top-right corner */
#cameraPreview {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 200px;
    height: 150px;
    object-fit: cover;
    border: 2px solid white;
    border-radius: 8px;
    z-index: 5;
    display: none; /* hidden until video starts */
}


#slopVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 999;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  }

  #goodPigMessage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: Helvetica, sans-serif;
    font-size: 4rem;
    font-weight: bold;
    color: rgb(255, 0, 0);
    z-index: 2000;
    display: none;
    pointer-events: none;
}


#poseSpace {
  height: 120px;               /* more vertical room */
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

#poseImage {
  max-height: 120px;           /* bigger pose image */
  width: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}




#emailCorner {
  position: absolute;
  bottom: 10px;
  right: 15px;
  color: red;
  font-family: Helvetica, sans-serif;
  font-size: 2rem;
  opacity: 0.8;
  z-index: 2000;
  pointer-events: none;
}
