@import "https://fonts.cdnfonts.com/css/pixelcraft-2";

/* src/index.css */
:root {
  --border-radius: 5px;
  --text-color: white;
  --bg-color: black;
}

*, *:before, *:after {
  box-sizing: border-box;
}

html, body {
  display: flex;
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0;
  font-family: PixelCraft, sans-serif;
}

canvas {
  border: none;
  aspect-ratio: inherit !important;
}

#controls {
  resize: horizontal;
  background-color: var(--bg-color);
  overflow: auto;
  display: flex;
  color: var(--text-color);
  flex-direction: column;
  align-items:  center;
  width: 25%;
  padding: 20px;
}

#controls h1 {
  text-align: center;
  line-height: 40px;
}

#controls label {
  width: 100%;
}

#controls select {
  border-radius: var(--border-radius);
  color: inherit;
  background-color: #0000;
  border-width: 1px;
  border-color: #fff;
  width: 100%;
  height: 40px;
  margin-top: 5px;
  padding-left: 15px;
  padding-right: 15px;
  font-family: inherit;
}

#controls select * {
  background-color: var(--bg-color);
}

#controls div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 220px;
  margin-top: 20px;
}

#controls button {
  background-color: inherit;
  color: inherit;
  border-radius: var(--border-radius);
  border: 1px solid #fff;
  width: 100%;
  height: 50px;
  font-family: inherit;
}

#controls button:hover {
  cursor: pointer;
  border-color: #0ff;
}

#controls button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

#controls label[for="changes"] {
  margin: auto 0 0;
}

#controls #changes {
  overflow-y: auto;
  margin: 0;
}

#controls #changes div {
  display: flex;
  border: 1px solid #000;
  width: 95%;
  margin: 0;
}

#controls #changes div:hover {
  opacity: .5;
  cursor: pointer;
  user-select: none;
  border-color: #0ff;
}

#renderer {
  flex: 1;
}

:modal {
  box-shadow: 3px 3px 10px #00000080;
}

::backdrop {
  background-color: var(--bg-color);
  opacity: .75;
}
