
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}
body {
  font-family: Arial, sans-serif;
}

#word-list {
  display: inline-block;
  vertical-align: top;
  padding: 20px;
  background: #f5f5f5;
  box-sizing: border-box;
}
.word {
  margin: 10px 0;
  padding: 8px;
  background: #fff;
  border: 1px solid #555;
  cursor: grab;
  text-align: center;
  touch-action: none;
}
.word.moving {
  background: #ddd;
}

#diagram {
  display: inline-block;
  vertical-align: top;
  width: 100vmin;
  height: 100vmin;
  position: relative;
  background: #fff;
}
svg {
  width: 100%;
  height: 100%;
  display: block;
  margin: auto;
}

circle {
  fill: #ccc;
  fill-opacity: 0.4;
  stroke: #555;
  stroke-width: 1px;
}

#diagram .dropzone {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #999;
  background: rgba(200,200,200,0.1);
}

@media (orientation: landscape) {
  #word-list {
    width: calc(100vw - 100vmin);
    max-width: 40vw;
    border-right: 1px solid #ddd;
  }
}
@media (orientation: portrait) {
  #word-list {
    width: 100vw;
    border-bottom: 1px solid #ddd;
  }
}
