@keyframes bounce {
    0%   { transform: translateY(0) scaleY(1); }
    20%  { transform: translateY(-50px) scaleY(0.8); }
    35%  { transform: translateY(0) scaleY(1); }
    45%  { transform: translateY(-20px) scaleY(0.9); }
    60%  { transform: translateY(0) scaleY(1); }
    70%  { transform: translateY(-10px) scaleY(0.95); }
    100% { transform: translateY(0) scaleY(1); }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
}

.video-section, .photo-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

#photo {
    min-width: 640px;
    min-height: 480px;
    background: #f0f0f0;
}

canvas {
    display: none;
}

#captureBtn, #downloadBtn, #photo-booth {
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
}

#captureBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#downloadBtn, #photo-booth {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    display: none;
}

#captureBtn:hover, #downloadBtn:hover, #photo-booth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#captureBtn:active, #downloadBtn:active, #photo-booth:active {
    transform: translateY(0);
}

.bounce {
    animation: bounce 1s;
}