body {
    font-family: sans-serif;
    background-color: #222;
    color: #fff;
    margin: 0;
    padding: 20px;
}

body.embed-mode {
    padding: 0;
    overflow: hidden;
}

html.embed-mode body {
    padding: 0;
    overflow: hidden;
}

body.embed-mode .container {
    max-width: none;
}

html.embed-mode body .container {
    max-width: none;
}

body.embed-mode header,
body.embed-mode #editor,
body.embed-mode #player h2,
body.embed-mode .playback-controls {
    display: none;
}

html.embed-mode body header,
html.embed-mode body #editor,
html.embed-mode body #player h2,
html.embed-mode body .playback-controls {
    display: none;
}

body.embed-mode main {
    display: block;
}

html.embed-mode body main {
    display: block;
}

body.embed-mode #player {
    width: 100%;
}

html.embed-mode body #player {
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

main {
    display: flex;
}

#editor {
    width: 40%;
    padding-right: 20px;
}

#player {
    width: 60%;
}

.form-group {
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
}

select, input[type="range"] {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #444;
    color: #fff;
}

#shader-snippet {
    background-color: #333;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 14px;
    white-space: pre-wrap;
    overflow-x: auto;
}

#effect-canvas {
    width: 100%;
    height: 400px;
    background-color: #000;
}

body.embed-mode #effect-canvas {
    height: calc(100vh - 24px);
    min-height: 100%;
}

html.embed-mode body #effect-canvas {
    height: calc(100vh - 24px);
    min-height: 100%;
}

.playback-controls {
    margin-top: 10px;
    text-align: center;
}

.playback-controls button {
    padding: 8px 12px;
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
