@import url('//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css');

.info-msg,
.success-msg,
.warning-msg,
.error-msg {
  margin: 10px 0;
  padding: 10px; 
}
.info-msg {
  color: #059;
  background-color: #BEF;
}
.success-msg {
  color: #270;
  background-color: #DFF2BF;
}
.warning-msg {
  color: #9F6000;
  background-color: #FEEFB3;
}
.error-msg {
  color: #D8000C;
  background-color: #FFBABA;
}

.rounded-face-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover; /* Ensure the image covers the entire area */
    border: 2px solid #ccc; /* Optional: Add a border */
}


#face-capture-popup .container {
    width: 100%; 
    max-width: 480px;
    height: 700px;
    position: relative;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}
video, canvas {
    object-fit: cover;
    width: 100%;
    height: 100%; 
    box-shadow: 0 0 150px #000 inset; 
}
canvas {
    position: absolute;
    top: 0;height: 700px!important;
    left: 0;
    z-index: 1;
}
video#video {
    transform: scaleX(-1);
}
#capture-button {
    cursor: pointer;
    position: absolute;
    bottom: 30px;
    left: 50%; width:70px;
    display: none;margin-left:-35px;
    z-index: 11111;
}
.message-overlay {
    position: absolute;
    top: 0;
    left: 0;width:100%;  
    display: none;margin-top: 0;
    justify-content: center; 
    align-items: center;
    text-align: center;
    padding: 5px 0; background-color: #fff;
    z-index: 1000; /* Ensure it appears on top of video and canvas */
}
.message-overlay i {
    font-size: 20px!important;
    margin-right: 3px;
}
.message-text   {
    font-size: 20px !important;
  }
.message-overlay.info-msg {
    border: 0px solid #e74c3c;color:#e74c3c;
}
.message-overlay.success-msg {
    border: 0px solid #2ecc71;color:#2ecc71;
}
.message-overlay.warning-msg {
    border: 0px solid #f39c12;color:#f39c12;
}
.message-overlay.error-msg {
    border: 0px solid #e74c3c;color:#e74c3c;
}
.message-overlay.active {
    display: flex;
}
@media only screen and (max-width: 768px) {
    video, canvas {
        width: 100%;
        max-width: 100%;
        height: 100%;
    }
 
    .message-overlay {
        padding: 5px 0;
    }
    .message-overlay i {
        font-size: 26px;
    }
}



/*loader*/
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it appears above other content */
}
.benefits_text { color: #000; ;}
.loader {
    border: 8px solid rgba(0, 0, 0, 0.3); /* Light gray border */
    border-top: 8px solid #3498db; /* Blue top border */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite; /* Spin animation */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


 

#face-capture-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}
#face-capture-popup  .popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
#face-capture-popup  .loader-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}
#face-capture-popup .loader {
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #3498db;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}