/* General Body Style */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
  }
  
  .container {
    text-align: center;
  }
  
  /* Video Wrapper */
  .video-wrapper {
    position: relative;
    width: 640px;
    height: 480px;
  }
  
  #video {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
  }
  
  #canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; /* Bring canvas to the very front */
  }
  
  /* UI Overlay */
  #ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Pass clicks through the overlay */
  }
  
  .oval-guide {
    width: 300px;
    height: 400px;
    border: 5px solid rgba(255, 0, 0, 0.5); /* Make border semi-transparent */
    border-radius: 50%;
    transition: border-color 0.3s ease;
  }
  
  /* Green Lighting Effect on Face Detection */
  .oval-guide.detected {
    border-color: rgba(0, 255, 0, 0.7); /* Make green border semi-transparent */
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
  }
  
  /* Loading Screen */
  #loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    visibility: hidden;
  }
  
  .loading-content {
    text-align: center;
  }
  
  .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid white;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
  }
  
  /* Spinner Animation */
  @keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  /* Add to style.css */
#result, #feedback {
    margin: 15px;
    font-size: 1.2em;
    min-height: 1.5em;
  }
  
  #result {
    font-weight: bold;
    color: #2c3e50;
  }
  
  #feedback {
    color: #7f8c8d;
  }
  
  .overlay-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
  }
  
  