:root {
  --bg: #2a2c30;
  --color: #d0d0cf;
  --result: #8dd228;
  --comment: #6e6e6e;
  --caret: #e9e9e9;
  --selectionBg: #484b50;
  --func: #a8bcf9;
  --typeface: 'Inconsolata', sans-serif;
  --pad: 50px;
}

*,
:before,
:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  line-height: 1;
}

fieldset {
  border: none;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  font-family: var(--typeface);
  font-size: 16px;
}

html,
body {
  height: 100%;
}

.editor,
.cm-editor {
  height: 100%;
}

.form-container {
  width: 100vw;
  height: 100vh;
  align-items: center;
  display: flex;
  justify-content: center;
}

.form-container form {
  width: 300px;
}

.field,
.submit-btn {
  width: 100%;
  height: 40px;
  background-color: transparent;
  border: 1px solid var(--func);
  border-radius: 4px;
  color: var(--color);
  margin-bottom: 12px;
  padding: 8px;
  transition: border-color 0.15s ease-in-out;
}

.field:focus {
  border-color: var(--result);
  outline: none;
}

.submit-btn {
  width: 100%;
  background-color: var(--func);
  border: none;
  color: var(--bg);
  cursor: pointer;
  margin: 0;
  text-transform: uppercase;
  transition: background-color 0.15s ease-in-out;
}

.submit-btn:hover:not(:disabled),
.submit-btn:focus:not(:disabled) {
  background-color: var(--color);
}

.submit-btn:focus {
  outline: none;
}

.field:disabled,
.submit-btn:disabled {
  opacity: 0.5;
}
