:root {
    font-size: 18px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    letter-spacing: 0.05em;
}

input,
select,
textarea,
code {
    padding: 8px;
    font-size: 18px;
    font-family: monospace;
    color: #000;
}

header .header-inner nav a {
    text-decoration: none;
    color: #000;
}

header {
    position: relative;
    z-index: 100;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: start;

    ul li {
        font-weight: bold;
        color: rgba(255, 255, 255, 0.2);
        transition: all .2s ease-in;

        &:hover {
            color: rgba(255, 255, 255, 0.62);
        }
    }
}

#share-shader {
    font-weight: bold;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.2);
    transition: all .2s ease-in;
    font-size: inherit;
    background: none;
    outline: none;
    border: none;
    cursor: pointer;

    &:hover {
        color: rgba(255, 255, 255, 0.62);
    }
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo a {
    font-weight: bold;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.2);
    transition: all .2s ease-in;

    &:hover {
        color: rgba(255, 255, 255, 0.62);
    }
}

.CodeMirror {
    width: calc(100% - 256px);
    height: calc(100svh - 256px);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    background: rgba(0, 0, 0, 0.62);
    border: none;
    outline: none;
    caret-color: #fff !important;
    color: #fff !important;
    backdrop-filter: blur(2px);
    transition: opacity 0.2s ease;
    -webkit-text-stroke: 0;
    text-shadow: none;
    user-select: text;

}

.CodeMirror div.CodeMirror-cursor {
    border-left: 2px solid #fff !important;
}

.CodeMirror-gutters {
    border-right: rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.2);
}

.cm-keyword {
    color: #a44afe;
}

.cm-number {
    color: #ff863a;
}

.cm-variable {
    color: #ffffff;
}

.cm-def {
    color: #36fb67;
}

.cm-type {
    color: #8be9fd;
}

.cm-builtin {
    color: #36fb67;
}

.cm-comment {
    color: #6272a4;
    font-style: italic;
}

.CodeMirror-selected {
    background: rgba(255, 255, 255, 0.2) !important;
}

.CodeMirror-focused .CodeMirror-selected {
    background: rgba(255, 255, 255, 0.2) !important;
}

.CodeMirror ::selection {
    background: rgba(255, 255, 255, 0.2);
}

.CodeMirror ::-moz-selection {
    background: rgba(255, 255, 255, 0.2);
}

#live-shader-preview {
    width: 100%;
    height: 100svh;
    margin: 0 auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}