/* ===========================
   Общие настройки
=========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* ===========================
   Панель управления
=========================== */

body {
    background: #1e1e1e;
    color: #ffffff;
}

.container {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* ===========================
   Левая панель
=========================== */

.sidebar {
    width: 320px;
    background: #2a2a2a;
    border-right: 1px solid #3b3b3b;
    padding: 20px;
    overflow-y: auto;
}

.sidebar h1 {
    font-size: 24px;
    margin-bottom: 25px;
}

.block {
    background: #333;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.block h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

/* ===========================
   Кнопки
=========================== */

button {
    width: 100%;
    margin-top: 10px;
    padding: 12px;

    border: none;
    border-radius: 8px;

    background: #4c8bf5;
    color: white;

    font-size: 15px;

    cursor: pointer;

    transition: background .2s;
}

button:hover {
    background: #6ba1ff;
}

button:active {
    transform: scale(.98);
}

/* ===========================
   Input
=========================== */

input[type=file] {
    width: 100%;
    margin-top: 5px;
    color: white;
}

/* ===========================
   Статус
=========================== */

#status {
    margin-top: 8px;
    color: #bfbfbf;
    line-height: 1.5;
}

/* ===========================
   Предпросмотр
=========================== */

.preview {
    flex: 1;

    display: flex;

    justify-content: center;
    align-items: center;

    background: #181818;
}

#previewFrame {
    width: 1280px;
    height: 720px;

    border: 2px solid #444;

    background: #202020;
}

/* ===========================
   Overlay
=========================== */

.overlay-body {
    margin: 0;

    overflow: hidden;

    background: transparent;
}

/* Canvas занимает всё окно */

#overlayCanvas {
    width: 100vw;
    height: 100vh;

    display: block;

    cursor: grab;
}

#overlayCanvas:active {
    cursor: grabbing;
}