html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #108e9c;
}

#canvas, #video {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
}

.video-container, #camera-preview {
    position: absolute;
    height: 100%;
    width: 100%;
}

.camera-button {
    position: fixed;
    bottom: 25px;
    left: 50%; /* Added to center horizontally */
    transform: translateX(-50%); /* Added to center horizontally */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s;
}

.camera-button:hover {
    background-color: #ddd;
}

.preview-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 25px;
    left: 0;
    right: 0;
}

.preview-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s;
    color: #ffffff;
}

.retake-btn {
    margin-right: 15px;
    background-color: red; /* Red color for Retake */
}


.upload-btn {
    margin-left: 15px;
    background-color: green; /* Green color for Upload */
}

/* Full height container to center spinner */
.full-height-container {
    height: 100vh;
    /*display: flex;*/
    /*flex-direction: column;*/
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #108e9c;
    text-align: center;
}

/* Center spinner */
.spinner-border {
    position: absolute;
}

.toast-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#response_container_id {
    display: none;
    width: 100%;
    color: white;
}

.data-label {
    font-size: 14px;
    font-weight: bold;
}

.data-label-value {
    font-size: 14px;
    font-weight: bold;
    color: black;
}

.spinner-border {
    width: 5rem !important;
    height: 5rem !important;
    color: red !important;
    margin-top: -2.5rem;
    margin-left: -2.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
}

table, form {
    text-align: left;
}

/* Overlay styling */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: none; /* Initially hidden */
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Make sure it appears above everything else */
    background-color: #108e9cfa;
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay h1, .overlay p {
    margin: 0;
    padding: 10px;
}

#back_home_btn_id {
    margin-top: 24px;
    padding: 8px 52px;
    color: white;
    border: 1px solid white;
    background-color: #108e9cfa;
}