body {
  position: relative;
  overflow-x: hidden;
}

#editor-container {
  position: absolute;
  border: 1px solid #ccc;
  left: 0px;
  right: 0px;
  top: 48px;
  bottom: 0px;
  display: flex;
  flex-direction: column;
}

#editor {
  flex-grow: 1;
}

#editor-cover {
  position: absolute;
  left: 0px;
  right: 0px;
  top: 0px;
  bottom: 0px;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  z-index: 101;
}

#editor-cover .button {
  padding: 24px 32px 24px 24px;
  border-radius: 6px;
  border: 1px solid #ccc;
  color: #0080ff;
  font-size: 24px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.25s;
}

#editor-cover .button i {
  font-size: 48px;
}

#editor-cover .button:hover {
  background-color: #f0f0f0;
}

#editor-tab {
  display: block;
  margin-top: 20px;
  height: 32px;
  padding: 0 80px;
}

#editor-foot {
  border-top: none;
  font-size: 10px;
  background-color: #444;
  color: white;
  left: 16px;
  right: 16px;
  height: 24px;
  line-height: 24px;
  border-radius: 0 0 2px 2px;
}

#editor-foot div {
  margin: 0 10px;
}

#editor-foot a {
  color: #ddd;
  cursor: pointer;
}

#editor-foot a:hover {
  color: white;
  text-decoration: underline;
}

.actions {
  height: 48px;
  padding: 7px 12px;
  background-color: white;
  font-size: 12px;
  color: #007aff;
  border-bottom: 1px solid #ccc;
}

.actions button {
  color: #007aff;
  border-radius: 2px;
  padding: 0 8px;
  margin: 0px 8px 0px 0;
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.5s linear;
}

.actions button p {
  font-size: 12px;
  line-height: 28px;
  vertical-align: middle;
}

.actions button .material-icons {
  font-size: 20px;
  vertical-align: -6px;
}

@media screen and (max-width:639px) {
  button.foldable { margin-right:0; }
  button.foldable span { display: none; }
}

.actions button:focus {
  outline: 0;
}

.actions button:hover {
  background-color: #f0f0f0;
}

.actions button:active {
  background-color: #007af4;
  color: white;
}

#message {
  position: absolute;
  width: 320px;
  height: 220px;
  border: 1px solid #ccc;
  color: white;
  background-color: #0070f0;
  border-radius: 2px;
  z-index: 100;
  overflow: hidden;
  transition: transform 0.25s ease, background-color 0.25s ease;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.25);
  transform-origin: top right;
  top: 50px;
  right: 4px;
}

#message.minimized {
  transform: scale(0.2, 0.2);
  overflow-y: hidden;
  box-shadow: none;
}

#message .title {
  position: relative;
  width: 100%;
  height: 24px;
  line-height: 24px;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.87);
  background-color: #f0f0f0;
  border-bottom: 1px solid #ccc;
  padding: 0 2px 0 10px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
}

#message .title .text {
  flex-grow: 1;
  pointer-events: none;
}

#message .title .material-icons {
  pointer-events: none;
}

#message pre {
  font-size: 10px;
  color: white;
  width: 100%;
  height: 176px;
  white-space: pre-wrap;
  overflow-y: auto;
  padding: 12px;
}

#message.minimized pre {
  cursor: pointer;
  overflow: hidden;
}

.mml-error {
  background: rgba(255, 50, 50, 0.4);
  position: absolute;
  width: 100% !important;
  left: 0 !important;
}

.msxplay {
  margin: 0;
  width: 100%;
  height: 72px;
}

.msxplay .footer {
  display: none;
}

.msxplay:not([data-hash]) {
  display: none;
}

#modal-stage {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 101;
}

.dialog {
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: none;
  background-color: #fafafa;
  border-radius: 2px;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.5);
  font-size: 14px;
  margin: auto auto;
}

.dialog .content {
  padding: 20px 20px 0px 20px;
}

.dialog .content p {
  margin-bottom: 12px;
  font-size: 14px;
}

.dialog .content input {
  padding: 4px;
  font-size: 12px;
}

.dialog .button-area {
  width: 100%;
  height: 44px;
  padding: 0px 8px 8px 0;
}

.dialog .button-area:after {
  content: "";
  clear: both;
}

.dialog .button {
  text-align: center;
  font-size: 14px;
  height: 36px;
  line-height: 36px;
  border-radius: 2px;
  padding: 0 8px;
  margin-left: 8px;
  min-width: 64px;
  float: right;
  cursor: pointer;
  color: #3a76ff;
}
.dialog .button:hover {
  background-color: #ddd;
}

ul.item-list {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 400px;
  margin-bottom: 8px;
}

ul.item-list li {
  background-color: white;
  display: block;
  width: 100%;
  height: 56px;
  padding: 8px 20px;
  margin: 0;
  line-height: 56px;
  font-size: 16px;
  float: none;
  text-align: left;
  cursor: pointer;
}

ul.item-list li:nth-child(2n) {
  background-color: #fafafa;
}

ul.item-list li:hover {
  background-color: #f0f0f0;
}

ul.item-list li .title {
  font-size: 14px;
  height: 22px;
  line-height: 22px;
  color: rgba(0, 0, 0, 0.87);
}

ul.item-list li i {
  border-radius: 2px;
  background-color: #bbb;
  color: #fff;
  padding: 0px 3px;
  margin: 2px 0px 2px 4px;
  font-style: normal;
  vertical-align: middle;
  display: inline-block;
  font-size: 8px;
  line-height: 14px;
  height: 14px;
}

ul.item-list li div.chips {
  display: inline-block;
  margin-left: 8px;
}

ul.item-list li .subtext {
  font-size: 12px;
  height: 18px;
  line-height: 18px;
  color: rgba(0, 0, 0, 0.4);
}

#settings table {
  font-size: 12px;
  border: 0px;
}

#settings td {
  text-align: left;
  border: 0px;
}