body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}
#about{
	position: absolute;
	right: 0;
	padding-right: 10px;
	color: #F5F5F5;
}
.topMenu {
    display: flex;
    align-items: center;
    width: 100%;
    height: 35px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0 10px;
    box-sizing: border-box;
}

.topMenu label,
.topMenu input,
.topMenu button {
    margin: 0 5px;
}

.topMenu button {
    padding: 5px 10px;
    font-size: 14px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    background-color: #444;
    color: white;
    transition: background-color 0.3s;
}

.topMenu button:hover {
    background-color: #007bff;
}

.drawMenu {
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0 10px;
    box-sizing: border-box;
}

.drawMenu button {
    margin: 0 5px;
    padding: 5px 10px;
    font-size: 14px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    background-color: #444;
    color: white;
    transition: background-color 0.3s;
}

.drawMenu button:hover {
    background-color: #007bff;
}

.drawMenu label {
    margin: 0 5px;
    font-size: 14px;
}

.drawMenu input[type="range"],
.drawMenu input[type="color"],
.drawMenu select {
    margin: 0 5px;
}

.divis {
    width: 20px;
}

.preview-container {
    position: absolute;
    width: 25%;
    height: calc(100% - 85px);
    left: 0;
    top: 85px;
    background-color: rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
    overflow: hidden;
}
#videoPlayer {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
#canvas-container {
    position: absolute;
    width: 75%;
    height: calc(100% - 85px);
    left: 25%;
    top: 85px;
    background-color: #f5f5f5;
    overflow: hidden;
    box-sizing: border-box;
}

#frameCanvas {
	position: absolute;
    border: none;
    display: block;
    margin: 0;
    transform-origin: top left;
    transition: transform 0.2s ease;
}

#info-container {
    position: absolute;
    width: 75%;
    height: 25px;
    left: 25%;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
    box-sizing: border-box;
}

#info-container label {
    margin: 0 5px;
}

#info-container input {
    width: 50px;
    text-align: center;
    margin: 0 5px;
}

#note-container {
    position: absolute;
    width: 25%;
    bottom: 0;
    left: 0;
    top: 340px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    box-sizing: border-box;
}

#note-container textarea {
    width: 100%;
    height: 100%;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 14px;
    resize: none;
}

/* Улучшение отступов и выравнивания для текстовых полей и кнопок */
textarea,
input[type="text"],
input[type="range"],
input[type="color"],
select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    background-color: #fff;
    color: #333;
}

textarea:focus,
input[type="text"]:focus,
input[type="range"]:focus,
input[type="color"]:focus,
select:focus {
    outline: none;
    border-color: #007bff;
}
