/* index.css */

/* General body styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.lpButton{
    width: 250px !important;
}

.lpButtonBlue{
    width: 250px !important;
     background-color: #007bff;
}

/* Main container */
.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Title and description */
h1 {
    text-align: center;
    color: #333;
}

p {
    text-align: center;
    color: #555;
    margin-bottom: 30px;
}

/* Button styles */
button {
    display: inline-block;
    padding: 12px 10px;
    margin: 10px;
    font-size: 16px;
    color: #fff;
    background-color: #4CAF50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
	width:180px;
}

button#switch {
    display: inline-block;
    padding: 12px 10px;
    margin: 10px;
    font-size: 12px;
    color: #fff;
    background-color: darkkhaki;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

/* File upload styles */
/*input[type="file"] {
    display: none;
}*/

/* Image preview */
#image-preview {
    display: none;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

#image-preview img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

#capture-photo{
    margin-top: 15px;
    margin-bottom: -5px;
}

/* Webcam container */
#webcam-container {
	display: none;
	height: 100%;
	  width: 100%;
	  max-width:100%;
	  max-height:100%;
	  background: rgba(0, 0, 0, 0.7); /* Black with 30% opacity */
	  color: white;
	  margin: 0px auto;
	  position: fixed; /* Fixed positioning to float over everything */
	  top: 0%; /* Center vertically */
	  left: 50%; /* Center horizontally */
	  transform: translate(-50%, 0%); /* Adjust for element's own size */
	  z-index: 1000; /* Ensure it's on top of other elements */
}

#webcam-container video {
    max-width: 100%;
	max-height:88%;
    border-radius: 8px;
}

#uploadbox{
	display: none;
	height: 600px;
	  width: 900px;
	  max-width:95%;
	  max-height:95%;
	  background: rgba(0, 0, 0, 0.9); /* Black with 30% opacity */
	  color: white;
	  margin: 20px auto;
	  position: fixed; /* Fixed positioning to float over everything */
	  top: 0%; /* Center vertically */
	  left: 50%; /* Center horizontally */
	  transform: translate(-50%, 0%); /* Adjust for element's own size */
	  z-index: 1000; /* Ensure it's on top of other elements */
	  text-align:center;
}

#startbox{
	display:block;
	width:fit-content;
	margin-left:auto;
	margin-right:auto;
}

.cambuttons{
	display:block;
	margin-top: -10px;
	width:max-content;
	margin-left:auto;
	margin-right:auto;
}


/* Media query for mobile */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    button {
        font-size: 14px;
        padding: 10px 20px;
    }

    #image-preview {
        max-width: 300px;
    }
	
	.cambuttons{
	width:min-content !important;
	}
}

 .upload-container {
        border: 2px dashed #007bff;
        padding: 20px;
        text-align: center;
        border-radius: 10px;
        cursor: pointer;
        color: #007bff;
        transition: background-color 0.3s;
    }
    .upload-container.dragover {
        background-color: #e3f2fd;
    }
    .upload-label {
        display: inline-block;
        padding: 10px 15px;
        background-color: #007bff;
        color: white;
        border-radius: 5px;
        cursor: pointer;
        margin-top: 10px;
    }
    input[type="file"] {
        display: none;
    }
	
	 button.close-btn {
        position: absolute;
        top: 10px;
        right: -40px;
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
    }

     /* Fullscreen overlay */
     #loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999; /* Ensure it stays on top */
    }

    /* Loading box */
    #loading-content {
        background: white;
        padding: 20px;
        border-radius: 10px;
        text-align: center;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Spinner animation */
    .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid rgba(0, 0, 0, 0.1);
        border-top: 4px solid #007bff; /* Blue color */
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-bottom: 10px;
    }

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

    .user-registration-form-row{
        display: grid;
    }

    .login-box{
        position: fixed; /* Stays fixed even when scrolling */
        top: 0;
        left: 0;
        width: 100vw; /* Covers full viewport width */
        height: 100vh; /* Covers full viewport height */
        background-color: rgba(0, 0, 0, 0.9); /* Semi-transparent black */
        z-index: 9999; /* Ensures it's on top of everything */
        align-items: center;
        justify-content: center;
        padding-left: 10%;
        padding-right: 10%;
        color: #fff !important;
        text-align: center;
        display: none;
        text-align:center;
    }

    P.login-box{
        color:#fff !important;
    }

    .lang-popup{
        position: fixed; /* Stays fixed even when scrolling */
        top: 0;
        left: 0;
        width: 100vw; /* Covers full viewport width */
        height: 100vh; /* Covers full viewport height */
        background-color: rgba(0, 0, 0, 0.9); /* Semi-transparent black */
        z-index: 9999; /* Ensures it's on top of everything */
        align-items: center;
        justify-content: center;
        padding-left: 10%;
        padding-right: 10%;
        color: #fff !important;
        text-align: center;
        display: block;
        text-align:center;
    }

    P.lang-box{
        color:#fff !important;
    }

    .demo-popup{
        position: fixed; /* Stays fixed even when scrolling */
        top: 0;
        left: 0;
        width: 100vw; /* Covers full viewport width */
        height: 100vh; /* Covers full viewport height */
        background-color: rgba(0, 0, 0, 0.9); /* Semi-transparent black */
        z-index: 9999; /* Ensures it's on top of everything */
        display: none;
        align-items: center;
        justify-content: center;
        padding-left: 10%;
        padding-right: 10%;
        color: #fff !important;
        text-align:center;
        overflow-y: auto;
        padding-bottom:30px;
    }

    .login-popup{
        position: fixed; /* Stays fixed even when scrolling */
        top: 0;
        left: 0;
        width: 100vw; /* Covers full viewport width */
        height: 100vh; /* Covers full viewport height */
        background-color: rgba(0, 0, 0, 0.9); /* Semi-transparent black */
        z-index: 9999; /* Ensures it's on top of everything */
        display: none;
        align-items: center;
        justify-content: center;
        padding-left: 10%;
        padding-right: 10%;
        color: #fff !important;
        text-align:center;
    }

    .registration-popup{
        position: fixed; /* Stays fixed even when scrolling */
        top: 0;
        left: 0;
        width: 100vw; /* Covers full viewport width */
        height: 100vh; /* Covers full viewport height */
        background-color: rgba(0, 0, 0, 0.9); /* Semi-transparent black */
        z-index: 9999; /* Ensures it's on top of everything */
        display: none;
        align-items: center;
        justify-content: center;
        padding-left: 10%;
        padding-right: 10%;
        color: #fff !important;
        text-align:center;
        font-size: 18px;
    }

    .regForm{
        width:500px;
        margin-left: 45%;
        margin-right: 45%;
        text-align: left;
    }

    .ur-form-row .ur-field-item {
        margin-top:25px;
    }

    .white{
        color:#fff !important;
    }

    .centerbutton{
        margin-left: 40%;
        margin-right: 40%;
    }

    ul{
        list-style:none;
    }

    abbr{
        display: none;
    }

    input{
        margin-right:8px;
    }

    @media (max-width: 720px) {

        .regForm {
            width: 500px;
            max-width: 85%;
            margin-left: 5%;
            margin-right: 5%;
            text-align: left;
        }

    }