body {
    background-color: #f8f9fa;
}

.fixed-navbar{
    position: fixed;
    width: 100%;top: 0;
    z-index: 1000;
}

.header {
    background-color: #343a40;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 500;
}

.navbar {
    background-color: #343a40;
}

.navbar-brand {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-toggler {
    border-color: #ffffff;
}

.navbar-toggler-icon {
    background-color: #000000;
}

.navbar-nav .nav-link {
    color: #ffffff;
    font-weight: bold;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
}

.navbar-nav .nav-link:hover {
    color: #dee2e6;
}

.button{
    width: 200px;
    height: 50px;
    border: none;
    border-radius: 5px;
    margin: 20px 0;
    background: #b0b1b4;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.button:hover{
    box-shadow: 2px 2px 10px #1c1fd4; 
}

.active{
    background: dodgerblue;
    box-shadow: 2px 2px 10px #000;
    z-index: 1;
}


.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #007bff;
    color: #ffffff;
    text-align: center;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
}

video {
    width: 100%;
    border-radius: 8px;
}

#uploaded-image {
    display: none;
    width: 100%;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#capture-btn,
#upload-btn,
#retry-btn {
    margin-top: 10px;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}


/* CSS for the left-to-right scroll reveal animation */
.scroll-reveal-left {
    animation: slideInFromLeft 1s ease forwards;
}

/* CSS for the right-to-left scroll reveal animation */
.scroll-reveal-right {
    animation: slideInFromRight 1s ease forwards;
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.container {
    max-width: 600px;
    margin-top: 50px;
}

.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #007bff;
    color: #ffffff;
    text-align: center;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
}

video {
    width: 100%;
    border-radius: 8px;
}

#captured-image {
    display: none;
    width: 100%;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#capture-btn,
#upload-btn,
#retry-btn {
    margin-top: 10px;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* for Loading spinner */

.body {
    position: fixed;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    justify-content: center;
}


.loading-container {
    text-align: center;
}

.loading-text {
    font-family: 'Arial', sans-serif;
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.loading-spinner {
    border: 8px solid #3498db;
    border-radius: 50%;
    border-top: 8px solid #ffffff;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.footer {
    background-color: #343a40;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.footer p {
    margin-bottom: 0;
}