@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Space+Mono&display=swap');

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Space Mono', monospace;
  background: #333;
  color: #eee;
}

* {
  box-sizing: border-box;
}

/* iOSでのデフォルトスタイルをリセット */
input[type="submit"],
input[type="button"] {
  border-radius: 0;
  -webkit-box-sizing: content-box;
  -webkit-appearance: button;
  appearance: button;
  border: none;
  box-sizing: border-box;
  cursor: pointer;
}

input[type="submit"]::-webkit-search-decoration,
input[type="button"]::-webkit-search-decoration {
  display: none;
}

input[type="submit"]::focus,
input[type="button"]::focus {
  outline-offset: -2px;
}

a {
  color: #00ccee;
}

a:visited {
  color: #00bbcc;
}

a:active,
a:hover {
  color: #00eeff;
}

textarea {
  font-family: 'Space Mono', monospace;
}

h1 {
  text-align: center;
  font-size: 12px;
  margin: 8px;
}

p {
  text-align: center;
  font-size: 12px;
  margin: 8px;
}

.__cord-input-area {
  max-width: 98%;
  min-width: 98%;
  min-height: 200px;
  margin: 1%;
  display: block;
  font-size: 16px;
  background: #222;
  color: #FFF;
  border-radius: 4px;
  padding: 8px;
}

.__btn-area {
  margin: 16px 6%;
}

.__btn {
  background-color: #0CC;
  border: none;
  color: #eee;
  padding: 8px 16px;
  border-radius: 4px;
}
.__btn--small {
  padding: 2px 2px;
}

.__canvas-area {
  width: 300px;
  margin: 16px auto;
  box-sizing: content-box;
}

.__canvas-area canvas {
  vertical-align: middle;
  border: solid 2px #888;
}

.__html-content {
  margin: 16px;
}


.__html-content h1 {
  text-align: left;
  font-size: 26px;
  margin: 8px;
}

.__html-content h2 {
  text-align: left;
  font-size: 24px;
  margin: 8px;
}

.__html-content h3 {
  text-align: left;
  font-size: 22px;
  margin: 8px;
}

.__html-content h4 {
  text-align: left;
  font-size: 20px;
  margin: 8px;
}

.__html-content h5 {
  text-align: left;
  font-size: 18px;
  margin: 8px;
}

.__html-content h5 {
  text-align: left;
  font-size: 16px;
  margin: 8px;
}
.__html-content h6 {
  text-align: left;
  font-size: 14px;
  margin: 8px;
}

.__html-content p {
  text-align: left;
  font-size: 12px;
  margin: 8px;
}

.__html-content img {
  max-width: 100%;
}

.__log-area{
  width: 88%;
  margin: 2% 6%;
}

.__log-title {
  margin: 4px 0;
  padding: 0;
  font-size: 12px;
  color: #888;
}

.__log-text {
  border: 1px solid #333;
  border-radius: 4px;
  padding: 8px 12px;
  overflow: scroll;
  min-height: 50px;
  max-height: 200px;
  background: #666;
  color: #eee;
}
.__log-error {
  background: #caa;
  color: #611;
  padding: 8px 16px;
}
.__log-warning {
  background: #ee8;
  color: #631;
  padding: 8px 16px;
}
.__form-control {
  margin: 16px 3%;
}
.__form-control input {
  padding: 4px;
  line-height: 16px;
  border-radius: 4px;
  border: none;
  background: #666;
  color: #fff;

}
.__form-control textarea {
  padding: 4px;
  line-height: 16px;
  width: 100%;
  max-width: 300px;
  height: 180px;
  background-color: #666;
  border-radius: 4px;
  color: #fff;
}
.__form-control textarea::placeholder,
.__form-control input::placeholder {
  color: #999;
}

.__form-control label {
  min-width: 80px;
  display: inline-block;
  color: #eee;
  padding-bottom: 12px;
  font-size: 14px;
}
.__submit-form {
  margin: 32px 0;
  border-top: 1px solid #888;
  padding: 32px 0;
}
.__pracitice-list {
  list-style: none;
  padding: 16px;
}

.__student-info {
  margin: 32px 0 8px;
  font-size: 12px;
  color: #666;
}

.__student-info li{
}

.__practice-cell a {
  background: #FFF;
  padding: 16px;
  display: block;
  margin: 16px 0;
  border-radius: 8px;
  color: #666;
  text-decoration: none;
}

.__practice-cell a:visited {
  background: #eee;
  color: #aaa;
}

.__hidden {
  display: none;
}

.__assets-upload-area {
  display: flex;
  padding: 8px;
}

.__assets-cell {
  width: 120px;
  padding: 8px;
  margin: 8px;
  border-radius: 4px;
  border: 1px solid #666;
  box-shadow: 0 0 2px 2px rgba(0,0,0,0.2), 0 0 8px 8px rgba(0,0,0,0.05);
}
.__assets-cell img{
  margin: 4px 0;
  width: 100%;
  height: auto;
}

#__assets-list {
  display: flex;
  flex-wrap: wrap;
}

#__assets-input {
  display: none;
}

#__html-editor {
  display: none;
}

#__js-editor {
  display: none;
}

#__assets-editor {
  display: none;
  overflow: scroll;
}

#__editor-tabs[active="js"] #__js-editor {
  display: block;
}
#__editor-tabs[active="html"] #__html-editor {
  display: block;
}
#__editor-tabs[active="assets"] #__assets-editor {
  display: block;
}

.__editor-btn {
  background: #333;
  color: #888;
  border-top: 1px solid #444;
  border-right: 1px solid #444;
  border-left: 1px solid #444;
  border-radius: 4px 4px 0 0;
  border-bottom: none;
  font-size: 16px;
  min-width: 100px;
  height: 40px;
  margin-top: 9px;
}

#__editor-tabs[active="js"] #__js-editor-btn,
#__editor-tabs[active="html"] #__html-editor-btn,
#__editor-tabs[active="assets"] #__assets-btn {
  background: #222;
  color: #fff;
}

.__delete_btn {
  background: #c33;
  color: #fff;
  border: none;
  border-radius: 4px;
  margin: 8px 8px 8px auto;
}

.__editor {
  height: 400px;
}

.__logno {
  color: #999;
}
@media screen and (min-width: 750px) {
  .__flex {
    display: flex;
  }
  .__preview_pain {
    width: 40%;
    min-width: 320px;
    min-height: 100vh;
    margin: 0 40px;
    padding: 10px 0;
    box-sizing: border-box;
    resize: horizontal;
    overflow: hidden;
    flex-shrink: 0;
  }
  .__code_pain {
    flex-grow: 1;
    flex-shrink: 1;
    min-height: 100vh;
  }
  .__editor {
    width: 100%;
    height: 95vh;
    height: calc(100vh - 50px);
  }
}

