body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f0f0f0;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

header {
    padding: 10px;
    background-color: #333;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 10px;
}

.content {
    display: flex;
    flex: 1;
    gap: 10px;
}

.preview {
    flex: 3;
    position: relative;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    overflow: hidden;
}

video, canvas {
    max-width: 100%;
    max-height: 100%;
    position: absolute;
}

.settings-panel {
    flex: 1;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.setting label {
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

.setting input[type="range"],
.setting select {
    width: 100%;
}

.controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
}

.opacity-label {
    font-size: 14px;
    margin-right: 5px;
}

.timeline {
    display: flex;
    overflow-x: scroll;
    gap: 5px;
    padding: 10px;
    background-color: #333;
    border-radius: 5px;
    color: white;
}

.timeline img {
    height: 60px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
}

.timeline img:hover {
    border-color: white;
}

.timeline .delete-button {
    display: block;
    background: red;
    color: white;
    text-align: center;
    font-size: 12px;
    border-radius: 5px;
    margin-top: 5px;
    cursor: pointer;
}
