body {
  margin: 30px; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";;
  line-height: 1.5;
  font-size: 1rem;
  background: #fafafa;
}
main {
  margin: 0 auto;
  max-width: 1000px;
}

.blind {
  font-size: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  position: absolute;
  visibility: hidden;
}

@media (max-width: 640px) {
  body {
    margin: 30px 10px 15px;
  }
}


/* demo header */
.demo-header {
  margin: 0 0 50px;
  padding: 0;
  text-align: center;
}
.demo-header figure {
  margin: 0 20px;
}
.demo-header figure img {
  display: block;
  margin: 0 auto;
  width: 120px;
  max-width: 100%;
}
.demo-header h1 {
  margin: 0;
  font-size: 36px;
  color: #406ce2;
  font-weight: 200;
  letter-spacing: -.5px;
}
.demo-header nav {
  margin: 8px 0 0;
  font-size: 0;
}
.demo-header nav a {
  display: inline-block;
  padding: 12px 3px 4px;
  margin: 0 5px;
  font-size: 14px;
  color: #222;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.demo-header nav a.active {
  border-color: #222;
}

@media (max-width: 640px) {
  .demo-header figure img {
    width: 100px;
  }
  .demo-header h1 {
    font-size: 24px;
  }
  .demo-header nav {
    margin-top: 5px;
  }
}


/* container */
.demo-container > h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
}
.demo-container > p {
  margin: 1rem 0;
  font-size: 15px;
  color: #222;
}
.demo-container > section {
  margin-top: 60px;
}
.demo-container > p + section {
  margin-top: 2.5rem;
}
.demo-container > section:first-child {
  margin-top: 0;
}

.demo-container > section > h1 {
  position: relative;
  padding-top: 8px;
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  color: #222;
  font-weight: 600;
}
.demo-container > section > h1:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 15px;
  height: 2px;
  background: #222;
}
.demo-container > section > p {
  margin: 1rem 0;
  font-size: 0.9375rem;
  color: #222;
}
.demo-container > section > p > a {
  color: #7b25ff;
}
.demo-container > section > .example {
  margin: 1rem 0;
}
.demo-container .code {
  margin: 1rem 0;
}
.demo-container .code > h1 {
  margin: 20px 0 8px;
  font-size: 15px;
  font-weight: bold;
  color: #222;
}
.demo-container .code > p {
  margin: 1rem 0;
  font-size: 14px;
  color: #222;
}
.demo-container .code pre {
  margin: 0;
  font-size: .8125rem;
}

@media (max-width: 640px) {
  .demo-container > h1 {
    font-size: 20px;
  }
  .demo-container > section {
    margin-top: 60px;
  }
  .demo-container > section > h1 {
    font-size: 18px;
  }
  .demo-container .code pre {
    font-size: 10px;
  }
}


/* to editor */
.to-editor {
  margin: 1rem 0;
}
.to-editor h2 {
  margin: 10px 0 5px;
  font-size: 1rem;
}
.to-editor textarea,
.to-editor figure {
  margin: 0;
  padding: 10px;
  border: 1px solid #bbb;
}
.to-editor textarea {
  width: 100%; height: 100px;
  font-size: 0.875rem;
  line-height: 1.5;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.to-editor figure {
  margin: 0;
  min-height: 100px;
}
.to-editor figure img {
  vertical-align: top;
  width: 100px;
}


/* drop */
.rg-external-dropzone {
  position: relative;
  display: block;
  padding: 40px 0;
  margin: 15px 0;
  background: #4A90E2;
  text-align: center;
  color: #fff;
}
.rg-external-dropzone.drop-mode {
  background: #999;
  color: #fff;
}
