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

html, body {
  background-color: black;
  width: 100%;
  height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

main#svgContainer {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

svg#svgRoot {
  flex: 0;
}

canvas {
  flex: 0;
  /*
  width: 200px !important;
  height: auto !important;
  display: block !important;
  */
}

.preview canvas {
  image-rendering: pixelated;
}

#menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  background-color: rgba(0,0,0,0);
  transition: background-color 500ms;
  overflow: hidden;
  margin: 0;
  padding: 20px;
}

.show-menu #menu {
  background-color: rgba(0,0,0,0.4);
}

section#menuContent {
  position: relative;
  right: -360px;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 300px;
  margin: 20px;
  box-shadow: 10px 10px 10px 0px rgba(0,0,0,0.2);
  transition: right 500ms;
  font-family: sans-serif;
}

.show-menu #menuContent {
  right: 0px;
}

h1 {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  text-align: center;
  margin-top: 0.25em;
  margin-bottom: 0.25em;
}
h1:before, h1:after {
  flex: 1;
  overflow: hidden;
  height: 2px;
  content: '\a0';
  background-color: #555555;
}
h1:before {
  margin-right: 10px;
}
h1:after {
  margin-left: 10px;
}

.subheading {
  font-size: 16px;
  margin-top: 0.25em;
  display: block;
  text-align: center;
  margin-bottom: 0.25em;
}

h2 {
  font-size: 14px;
  text-transform: uppercase;
  text-align: center;
  margin-top: 2.5em;
  margin-bottom: 0.75em;
}

ul {
  list-style-type: none;
  width: 100%;
}

li {
  display: block;
  width: auto;
}

button {
  font-size: 16px;
  padding: 0.75em;
  display: block;
  width: 100%;
  margin: 0.5em 0;
  border-radius: 10px;
  border: none;
  text-align: center;
  background-color: #dddddd;
  cursor: pointer;
  transition: background-color 250ms;
  color: black;
}

button:hover {
  background-color: #bbbbbb;
}

button:active {
  background-color: #999999;
  color: white;
}

button.selected {
  background-color: #85dd85;
}

.small {
  font-size: 12px;
  margin-top: 20px;
  color: #888888;
  text-align: center;
}
