camera_web\style.css */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Arial, sans-serif;
    position: relative;
    overflow-x: hidden;
}

.animated-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
        background: url('https://www.shutterstock.com/image-photo/black-backgroundempty-dark-blue-studio-600nw-2167771973.jpg') center center / cover no-repeat;
  
    /* background: linear-gradient(120deg, #667eea 0%, #764ba2 100%); */
    overflow: hidden;
    animation: gradientMove 10s ease-in-out infinite alternate;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.animated-bg::before, .animated-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.25;
    filter: blur(60px);
    animation: float 12s infinite alternate;
}

.animated-bg::before {
    width: 400px; height: 400px;
    background: #fc5c7d;
    left: 10%; top: 10%;
    animation-delay: 0s;
}
.animated-bg::after {
    width: 300px; height: 300px;
    background: #540202;
    right: 10%; bottom: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-40px) scale(1.1); }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 40px auto;
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.2);
    padding: 32px 24px;
    text-align: center;
    width: 90%;
}

h1 {
    color: #4f3ca7;
    margin-bottom: 24px;
    font-size: 2.2rem;
    letter-spacing: 1px;
}

.camera {
    position: relative;
    margin-bottom: 18px;
}

#camera-stream {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.12);
    background: #222;
    height: auto;
    aspect-ratio: 4/3;
}

#capture-button {
    margin-top: 14px;
    padding: 12px 28px;
    background: linear-gradient(90deg, #6a82fb 0%, #fc5c7d 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.15);
}

#capture-button:hover {
    background: linear-gradient(90deg, #fc5c7d 0%, #6a82fb 100%);
    transform: scale(1.05);
}

#captured-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: none;
    border-radius: 10px;
}

#photo {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: none;
    border-radius: 10px;
}

h2 {
    margin-top: 32px;
    color: #4f3ca7;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 12px;
}

.gallery img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.10);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 0.7s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@media (max-width: 600px) {
    .container {
        padding: 16px 4px;
        max-width: 98vw;
    }
    h1 {
        font-size: 1.3rem;
    }
    #camera-stream,
    #captured-image,
    #photo {
        width: 100%;
        max-width: 100vw;
        aspect-ratio: 4/3;
    }
    .gallery img {
        width: 60px;
        height: 45px;
    }
}