* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    display: flex;
    height: 100vh;
    font-family: monospace;
}

#left-column {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#editor {
    height: 80%;
}

#log {
    height: 20%;
    background: #f8f8f8;
    border-top: 1px solid #ccc;
    overflow-y: auto;
    padding: 5px;
    font-size: 13px;
}

.CodeMirror {
    height: 100%;
    font-family: monospace;
    font-size: 14px;
}

#canvas-container {
    width: 50%;
    height: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
}

#shaders-bar {
    background: #fafafa;
    padding: 8px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    font-size: 13px;
}

#media-controls {
    background: #fafafa;
    padding: 8px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    font-size: 13px;
}

#media-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

#media-preview-container .thumb-wrapper {
    position: relative;
    display: inline-block;
}

#media-preview-container img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
}

.thumb-wrapper button {
    position: absolute;
    top: -6px;
    right: -6px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    cursor: pointer;
    padding: 0;
    line-height: 16px;
}

#resizer {
    width: 5px;
    cursor: ew-resize;
    background: #ccc;
}