body {
    font-family: sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    text-align: center;
}

h1, h2 {
    color: #333;
}

.input-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

#videoUrl {
    flex-grow: 1;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

.video-container {
    margin-bottom: 1.5rem;
}

#videoPlayer {
    width: 100%;
    border-radius: 4px;
    background-color: #000;
}

.controls-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.capture-container {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

#canvas {
    max-width: 100%;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
}

#downloadLink {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

#downloadLink:hover {
    background-color: #218838;
}