html {
    height: 100%;
  }
  
  body {
    margin: 0;
    padding: 0;
    font-family: Roboto;
    background: linear-gradient(#141e30, #243b55);
    position: relative;
    overflow-x:hidden;
    
  }
  #leftContainer {
    padding: 10px;
    background: #fff;
    box-sizing: border-box;
    background: rgba(0, 0, 0, .5);
    border-radius: 10px;
    z-index: 2;
    overflow: hidden;
    width: 25%;
    position: relative;
    color: #fff;
  }
  #feedbackBar {
    height: 5px;
    background-color: #fff; /* Replace with your desired color */
    margin-bottom: 10px;
  }
  
  .closeButton {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
    color: white;
    background-color: transparent;
    border: none;
    cursor: pointer;
  }
  /* Add CSS to create a flex container for both leftContainer and mainContainer */
  #containerWrapper {
    display: flex;
  }
  #containerHeader {
    margin: 0 0 30px;
    padding: 0;
    color: #fff;
    text-align: center;
   
  }
  .hidden {
    display: none;
  }
  /* Add this media query for mobile devices */
@media screen and (max-width: 650px) {
  /* Change the flex-direction to column for mobile devices */
  #containerWrapper {
    flex-direction: column;
  }

  /* Adjust the positioning of the containers */
  #leftContainer {
    width: 100%;
    margin: 0 auto 30px; /* Add some margin to separate it from the mainContainer */
  }
}
#resultsContainer {
  display: flex;
    flex-direction: column;
    color: #fff;

}


  .mainContainer {
    position: relative;
    width: 500px;
    padding: 40px;
    margin: 20px auto;
    background: rgba(0, 0, 0, .5);
    box-sizing: border-box;
    box-shadow: 0 15px 25px rgba(0, 0, 0, .6);
    border-radius: 10px;
    z-index: 2;
    overflow: hidden;
   
  }
  #innerContainer {
    display: flex;
    flex-direction: column;
  }
  
  .mainContainer h2 {
    margin: 0 0 30px;
    padding: 0;
    color: #fff;
    text-align: center;
  }
  
  #videoContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    overflow: hidden;
    min-height: 210px;
    

   
  }
  #cameraImage {
    height: 85%;
    width: 85%;
    background-color: #fff;
    justify-content: center;
    align-items: center;
  
   }
  #mainVideoContainer {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 130px;
    height: 100px; 
    border: 1px solid red;
  }
  #mainVideo {
    background-color: #fff;
    width: 100%;
    height: 100%;
  }

 
  #videoDemo {
    height: 85%;
    width: 85%;
    background-color: #fff;
    justify-content: center;
    align-items: center;
  
  }


  
  #submissionContainer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #A0D6CA;
    display: flex;
    align-items: center;
    margin-top: 30px;
    height: 10%;
    justify-content: space-between;
   
    
  }
  #userIdContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #userIdForm {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  #userIdForm label {
    margin-bottom: 10px;
  }
  
  #userIdForm input[type="text"] {
    padding: 5px;
    width: 100%;
    margin-bottom: 10px;
  }
  
  #userIdForm button {
    padding: 5px 10px;
    background-color: #A0D6CA;
    color: #030504;
    border-radius: 5px;
    border: none;
    cursor: pointer;
  }

  button {
    padding: 5px 5px;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
    font-family: Roboto;
    border: none;
    background-color: transparent;
    color: #030504;
    border-radius: 5px;
  }
  
  /* Your existing CSS styles */


  
  .modal {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 200px;
    height: 200px;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  .modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  

  

#userFormContainer {
  padding: 2px;
  color: white;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin-bottom: 30px;
  display: flex; /* Add this to create a flex container */
  justify-content: space-between; /* Add this to space the items */
  align-items: center; /* Add this to vertically center the items */
}

/* Style the form elements */
#userForm {
  display: flex; /* Add this to create a flex container */
  flex-wrap: wrap; /* Allow items to wrap to the next line if needed */
  flex: 1; /* Allow the form to take up the remaining available space */
  justify-content: space-between; /* Add this to space the items */
  align-items: center; /* Add this to vertically center the items */
}

#userForm label {
  flex-basis: 30%; /* Control the width of the labels */
  margin-bottom: 5px;
  padding-right: 10px; /* Add some right padding to the labels */
}

#userForm input[type="text"] {
  flex-basis: 60%; /* Control the width of the inputs */
  padding: 5px;
  margin-bottom: 10px;
}

#userForm button {
  flex-basis: 60%; /* Control the width of the button */
  background-color: #4CAF50;
  color: white;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
}
/*
#leftContainer {
  
  padding: 10px;
  background: #fff;
  box-sizing: border-box;
  box-shadow: 0 15px 25px rgba(0, 0, 0, .6);
  border-radius: 10px;
  z-index: 2;
  position: relative;
  width: 500px;
  height: 200px;
  margin: 50px auto;
 
}


#containerWrapper {
  display: flex;
  align-items: flex-start; 
} 

*/

/* === Overlay Login Styles === */
      #loginOverlay {
        position: fixed;
        inset: 0;
        background: rgba(255, 255, 255, 0.98);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
      }

      #loginBox {
        background: #ffffff;
        padding: 40px;
        border-radius: 12px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
        width: 320px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        text-align: center;
      }

      #loginBox h2 {
        margin: 0;
        color: #111827;
      }

      #loginBox input {
        padding: 10px;
        border-radius: 8px;
        border: 1px solid #ccc;
        width: 100%;
      }

      #loginBox button {
        background: #4f46e5;
        color: white;
        border: none;
        border-radius: 8px;
        padding: 10px;
        cursor: pointer;
      }

      #loginBox button:hover {
        background: #4338ca;
      }

      /* Disable underlying interaction until login */
      body.locked *:not(#loginOverlay):not(#loginOverlay *) {
        pointer-events: none;
        filter: blur(2px);
      }