body {
  font-family: "Noto Sans JP", sans-serif;
  /*font-family: 'M PLUS 1p', sans-serif;*/
  /*font-family: 'Shippori Antique', sans-serif;*/
}

a {
  text-decoration: none !important;
}

.file-item {
  cursor: pointer;
  text-decoration: none !important;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

i.fa-lock,
i.fa-eye {
  margin-right: 5px;
}

.icon-font {
  /* font-size: 14px; */
}

.menu-button {
  width: 48px;
}

div.tab-container {
  padding: 0 !important;
}

/* ドラッグ中のタブのスタイル */
.dragging {
  opacity: 0.5;
  /* border: 2px dashed #555; */
}

/* ドロップ先のインジケータスタイル */
.drag-over {
  opacity: 0.5;
  /* border-left: 4px solid #007bff; */
  /* background-color: #00c7ff !important; */
}

.full-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(100, 100, 100, 0.1);
  z-index: 2147483647;
}

#draganddrop-wrapper {
  font-size: 35px;
  text-align: center;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  /*opacity: 0.8;*/
  display: none;
  z-index: 2147483647;
}

#loading {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: 100px;
  height: 100px;
}

#side-menu li {
  margin: 0 !important;
}

#side-menu li a i {
  width: 0.8rem;
}

/*#side-menu a {*/
/*  line-height: 1rem;*/
/*}*/

#main-content {
  width: 100%;
  height: 100vh;
  display: flex;
  background-color: #303030;
}

.h-pane {
  box-sizing: border-box;
  background-color: #f4f4f4;
}

#file-selector,
#file-selector-fix {
  /*display:inline-block;*/
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

#file-selector {
  /* width: 15%; */
  overflow-x: auto; /* 横方向のスクロールを許可 */
  white-space: nowrap; /* テキストや要素が折り返されず、スクロール可能になる */
}

#main-editor {
  width: 50%;
  background-color: #303030;
  height: calc(100vh - 41px);
  /* padding-bottom: 540px; */
  /* height: 100%; */
}

/* #main-editor, */
#right-window {
  width: 35%;
  background-color: white;
  height: calc(100vh);
  /* padding-bottom: 40px; */
}

.h-splitter {
  width: 0px;
  background-color: #838383;
  cursor: col-resize;
  transition: background-color 0.2s;
}

.gutter {
  z-index: 10;
  transition: background-color 0.3s ease;
  transition-delay: 0.1s;
}

.h-splitter:hover,
.gutter:hover {
  background-color: rgb(64, 68, 181);
}

#editor-tab,
#preview-tab,
#console-tab {
  padding-bottom: 0px;
}

/* #preview-tab {
  padding-bottom: 0px;
} */

#result-tab {
  padding-bottom: 0px;
}

#editor-tab,
#preview-tab,
#console-tab {
  min-height: 40px;
  background: #171717;
  font-size: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

#file-selector::-webkit-scrollbar,
#file-selector-fix::-webkit-scrollbar {
  width: 5px;
}

#console-textarea::-webkit-scrollbar,
#console-ai::-webkit-scrollbar,
#console-settings::-webkit-scrollbar {
  width: 8px;
}

#file-selector::-webkit-scrollbar-track,
#file-selector-fix::-webkit-scrollbar-track,
#console-textarea::-webkit-scrollbar-track,
#console-ai::-webkit-scrollbar-track,
#console-settings::-webkit-scrollbar-track {
  background-color: #bfbfbf;
}

#file-selector::-webkit-scrollbar-thumb,
#file-selector-fix::-webkit-scrollbar-thumb,
#console-textarea::-webkit-scrollbar-thumb,
#console-ai::-webkit-scrollbar-thumb,
#console-settings::-webkit-scrollbar-thumb {
  background-color: #838383;
}

#editor-tab::-webkit-scrollbar,
#preview-tab::-webkit-scrollbar,
#console-tab::-webkit-scrollbar,
.console-code::-webkit-scrollbar {
  height: 3px;
}

#editor-tab::-webkit-scrollbar-track,
#preview-tab::-webkit-scrollbar-track,
#console-tab::-webkit-scrollbar-track,
.console-code::-webkit-scrollbar-track {
  background-color: #a0a0a0;
  /*background-color: rgba(196, 196, 196, 0);*/
}

#editor-tab::-webkit-scrollbar-thumb,
#preview-tab::-webkit-scrollbar-thumb,
#console-tab::-webkit-scrollbar-thumb,
.console-code::-webkit-scrollbar-thumb {
  background-color: #606060;
  /*background-color: rgba(95, 95, 95, 0);*/
}

#editor-tab div,
#preview-tab div {
  display: inline-block;
  padding: 10px 5px 5px 8px;
  color: #a7a7a7;
  background: #1e1e1e;
  overscroll-behavior: none;
  cursor: pointer;
  user-select: none;
}

#console-tab div {
  display: inline-block;
  padding: 10px 10px 5px 8px;
  color: #a7a7a7;
  background: #1e1e1e;
  overscroll-behavior: none;
  cursor: pointer;
  user-select: none;
}

#editor-tab .selected-file,
#preview-tab .vselected-file,
#console-tab .cselected-file {
  color: #e5e5e5;
  background: #3c3c3c;
  box-shadow: inset 0px -3px 0px 0px #00c7ff;
  /* padding-bottom: 5px; */
}

#console-tab .code-description,
#console-tab .code-check {
  vertical-align: top;
  padding: 6px 12px;
  font-size: 13px;
  margin-left: 0.5em;
  margin-top: 4px;
  color: white;
  border-radius: 15px;
}

#console-tab .code-description {
  background-color: #21845f;
}

#console-tab .code-description:hover {
  background-color: #48ab86;
  box-shadow: inset 0px -2px 0px 0px #18523d;
  box-sizing: border-box;
}

#console-tab .code-check {
  background-color: #4b49c0;
}

#console-tab .code-check:hover {
  background-color: #7675c8;
  box-shadow: inset 0px -2px 0px 0px #282678;
  box-sizing: border-box;
}

/* #editor-tab .selected-file .scrollbar-shown {
  box-shadow: inset 0px -5px 0px 0px #00c7ff !important;
} */
#file-selector img {
  margin-right: 2px;
}
#editor-tab img,
#preview-tab img,
#console-tab img,
#console-tab i {
  margin: 0 5px 3px 0;
  width: 18px;
  height: 18px;
}

#editor-tab div:hover,
#preview-tab div:hover,
#console-tab div:hover {
  /*filter: brightness(150%);*/
  /*color: #e5e5e5;*/
  background: #4f4f4f;
  box-shadow: inset 0px -3px 0px 0px #00c7ff;
  /*border-bottom: 5px solid #00c7ff;*/
  box-sizing: border-box;
}

#result-tab {
  padding-right: 10px !important;
}

#result-panel,
#preview-window {
  width: 100%;
  /* height: 100%; */
  height: calc(100% - 36px);
  /* height: calc(100vh - 40px); */
  /*background: #303030;*/
}

#view-editor-container {
  width: 100%;
  /* height: 100%; */
  height: calc(100% - 40px);
}

.closeButton {
  color: #666666;
  font-size: 16px;
  width: 18px;
  height: 18px;
  background: rgba(255, 85, 114, 0);
  padding: 1px;
  margin: 0 5px;
  border: none;
  border-radius: 50%;
}

.closeButton i:nth-child(2) {
  display: none;
}

.closeButton:hover i:nth-child(1) {
  display: none;
}

.closeButton:hover i:nth-child(2) {
  display: block;
}

.closeButton:hover {
  color: black;
  background: rgba(255, 85, 114, 1);
  padding: 1px;
  border: none;
  border-radius: 40%;
  cursor: pointer;
}

.reloadButton {
  color: #a0a0a0;
  font-size: 16px;
  width: 18px;
  height: 18px;
  background: rgba(255, 85, 114, 0);
  padding: 1px;
  margin: 0 1px 0 5px;
  border: none;
  border-radius: 50%;
}

.reloadButton:hover {
  color: rgba(255, 85, 114, 1);
  padding: 1px;
  border: none;
  border-radius: 40%;
  cursor: pointer;
}

.address-button {
  color: #a0a0a0;
  font-size: 16px;
  margin: 5px !important;
  width: 18px;
  height: 18px;
  background: rgba(255, 85, 114, 0);
  padding: 1px;
  margin: 0 1px 0 5px;
  border: none;
  border-radius: 50%;
}

.address-button:hover {
  color: rgba(255, 85, 114, 1);
  padding: 1px;
  border: none;
  border-radius: 40%;
  cursor: pointer;
}

.split {
  display: flex;
  flex-direction: row;
}

.split-v {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
}

.content {
  display: flex;
  width: 100%;
  height: 100vh;
}

.content-v {
  /* border: 1px solid #C0C0C0; */
  /* box-shadow: inset 0 1px 2px #e4e4e4; */
  /* background-color: #fff; */
}

.gutter {
  /*background-color: #eee;*/
  background-color: #676767;
  background-repeat: no-repeat;
  background-position: 50%;
}

.gutter.gutter-horizontal {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==");
  cursor: col-resize;
}

.gutter.gutter-vertical {
  cursor: row-resize;
}

.splitpanes__pane {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Helvetica, Arial, sans-serif;
  color: rgba(255, 255, 255, 0.6);
  font-size: 5em;
}

/* #file-selector {
  width: 250px;
  margin: 0;
}

#file-selector-fix {
  width: 260px;
  margin: 0;
} */

#file-selector li,
#file-selector-fix li {
  /*margin-left: 5px;*/
  /* margin-right: 5px; */
  margin-top: 10px !important;
}

#file-selector span,
#file-selector-fix span {
  margin-left: 3px;
  display: inline-block;
  width: 25px;
}

#file-selector .uk-accordion-title:hover,
#file-selector-fix .uk-accordion-title:hover {
  color: #d2d2d2;
}

#file-selector::-webkit-scrollbar {
  height: 8px;
}

.uk-accordion-title {
  /*margin: 0;*/
  font-size: 13px;
  line-height: 0.9em;
}

.uk-accordion-title i {
  margin: 0 6px 8px 7px;
}

.uk-accordion-content {
  margin: 0;
  font-size: 13px;
}

.uk-button {
  border: dimgray 1px solid !important;
  margin: 4px 0 0;
}

.uk-checkbox {
  margin-top: 0;
  margin-right: 5px;
}

#header {
  font-size: 18px;
  height: 40px;
  color: white;
  background: #202020;
  /*font-weight: bold;*/
  display: flex;
  justify-content: center;
  align-items: center;
}

.theme-dark {
  color: white;
  background: #303030;
}

.theme-dark a {
  color: white;
}

.theme-dark a:hover {
  /*color: #c3c3c3;*/
}

.ac-back,
.setting-back {
  background: #404040;
  width: 100%;
  padding: 5px 0 5px 13px;
  box-sizing: border-box;
}

.ac-back:hover,
.selected-file,
.vselected-file {
  background: #666666;
}

.file-clicked {
  background: #838383;
}

.keyboard-key {
  padding: 1px 10px 4px;
  margin: 0 11px;
  border-radius: 5px;
  box-shadow: 0px 1px 2px 1px rgba(0, 0, 0, 0.5);
}

#console-textarea {
  font-size: 12px;
  width: 100%;
  height: calc(100% - 30px);
  box-sizing: border-box;
  resize: none;
  color: rgb(236, 236, 236);
  background-color: rgb(18, 18, 18);
  padding: 0px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-family: sans-serif;
  padding-bottom: 10px;
}

#console-ai {
  font-size: 12px;
  width: 100%;
  height: calc(100% - 22px);
  box-sizing: border-box;
  resize: none;
  background-color: rgb(255, 253, 250);
  padding: 0px;
  overflow-y: auto;
  font-family: sans-serif;
  padding-bottom: 10px;
}

#console-settings {
  font-size: 12px;
  width: 100%;
  height: calc(100% - 22px);
  box-sizing: border-box;
  resize: none;
  color: rgb(236, 236, 236);
  background-color: rgb(37, 37, 37);
  padding: 0px;
  overflow-y: auto;
  font-family: sans-serif;
  padding-bottom: 10px;
}

.console-dom {
  font-family: "Source Code Pro", monospace;

  margin: 0;
  padding: 3px 5px;
  /* line-height: 1.3em; */
  /* margin-bottom: 5px; */
  border-bottom: #505050 1px solid;
  /* background-color: #092518; */
}

.error-dom {
  background-color: #250c0c;
  color: rgb(252, 189, 189);

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-error-dom {
  background-color: #c15861;
  color: #fff3f3;
  line-height: 1.5em;
  font-family: "Noto Sans JP", sans-serif;
  padding-top: 5px;
  padding-bottom: 10px;
}

.ai-code-dom {
  line-height: 1.5em;
  font-family: "Noto Sans JP", sans-serif;
  background-color: #21845f;
  /* background-color: #1f1e4b; */
  color: rgb(242, 252, 245);
  padding-top: 5px;
  padding-bottom: 10px;
}

.ai-check-dom {
  line-height: 1.5em;
  font-family: "Noto Sans JP", sans-serif;
  background-color: #4b49c0;
  /* background-color: #1f1e4b; */
  color: rgb(246, 243, 255);
  padding-top: 5px;
  padding-bottom: 10px;
}

.ai-enshu-dom {
  line-height: 1.5em;
  font-family: "Noto Sans JP", sans-serif;
  background-color: #825a49;
  color: rgb(255, 250, 240);
  padding-top: 5px;
  padding-bottom: 10px;
}

.ai-dom-reaction {
  text-align: center;
  margin: 8px 8px 3px;
}

.console-link {
  color: #b4b4ff;
}

.console-link:hover {
  color: #7f7fff;
}

pre.console-code {
  line-height: 1.3em;
  font-size: inherit;
  border-radius: 5px;
  border: 1px solid #888;
  background-color: #222;
  margin: 0;
  padding: 8px;
}

code.code-block {
  font-size: inherit;
  border-radius: 5px;
  font-family: "Source Code Pro", monospace;
  color: white;
  background-color: #222;
}

code.incline-code {
  font-size: inherit;
  border-radius: 4px;
  font-family: "Source Code Pro", monospace;
  color: white;
  background-color: #ffffff52;
  padding: 0px 0.2em 1px;
  margin: 0 0.2em;
}

/*.a-dark {*/
/*  color: white;*/
/*}*/

#enshuText {
  display: none;
  text-align: left !important;
  font-size: 13px;
  background-color: rgb(85, 85, 85);
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  margin: 5px;
}

input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid #cccccc;
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  margin-right: 5px;
  position: relative;
  padding: 0;
}
input[type="radio"]:checked {
  border-color: #a8fffb;
}
input[type="radio"]:checked::before {
  content: "";
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  background: #a8fffb;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}
label {
  display: inline-flex;
  align-items: center;
}

.enshu-button {
  font-size: 12px;
  line-height: 1.2em;
  padding: 0.5em 0.3em;
  margin-top: 0.3em;
  margin-right: 2px;
  margin-left: 2px;
}

span.score {
  font-size: 11px;
}

.enshu-check {
  color: rgb(159, 255, 171);
}

.enshu-working {
  color: rgb(183, 188, 255);
}

.enshu-ellipsis {
  color: rgb(150, 150, 150);
}

.enshu-crown {
  color: rgb(255, 253, 155);
}

.modal-crown {
  color: rgb(255, 205, 66);
}

.enshu-target {
  text-align: right;
}

.report-check {
  font-size: 18px;
  color: rgb(30, 148, 75);
}

.report-td,
.report-th {
  padding: 5px 10px !important;
}

.report-td {
  font-size: 13px;
}

td.score-top3 {
  /* background-color: hsl(54, 96%, 80%); */
  background-color: #fff7b0;
}

.stddev {
  font-size: 13px;
}

#btn-report {
  max-width: 100%;
  margin: 0.5em;
  padding: 0.5em 1em;
  line-height: 2em;
}

.report-problem {
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid gray;
  padding: 10px;
}

/* コンテキストメニュー */
.tippy-content {
  border-radius: 5px;
  border: 1px solid gray;
  padding: 5px;
}

.context-menu-item {
  display: block;
  min-width: 150px;
  max-width: 170px;
  padding: 2px 10px;
  cursor: pointer;
  color: white;
  line-height: 2em;
}

.context-menu-icon {
  width: 20px;
  text-align: center;
  margin-right: 3px !important;
}

.context-menu-item:hover {
  color: white;
  padding: 2px 10px;
  border-radius: 5px;
  background-color: rgb(49, 82, 142);
}

.uk-modal-dialog,
.uk-modal-header,
.uk-modal-footer {
  transition-duration: 0.2s;
  border-radius: 10px;
}

.modal-input-corner {
  border-radius: 5px;
}

.selecting-file {
  background-color: rgb(118, 114, 202) !important;
  /* background-color: 2px solid rgb(71, 71, 71); */
}

#address-input {
  margin: 0 5px;
  border-radius: 8px;
  padding-left: 6px;
  background-color: #cbcbcb;
  outline: none;
}

#default-preview-tab {
  padding-right: 10px !important;
}

.tab-back,
.vtab-back {
  outline: 1px solid rgb(51, 51, 51);
}

.character-image {
  width: 35px;
  height: 35px;
  vertical-align: bottom;
}

.console-clear-button {
  color: #a0a0a0;
  font-size: 16px;
  width: 20px;
  /* height: 18px; */
  background: rgba(255, 85, 114, 0);
  padding: 1px;
  margin: 0 0 0 5px;
  border: none;
  border-radius: 50%;
}

.console-clear-button:hover {
  color: rgba(255, 85, 114, 1);
  padding: 1px;
  border: none;
  border-radius: 40%;
  cursor: pointer;
}

.console-ai-button {
  color: #a0a0a0;
  font-size: 16px;
  width: 20px;
  /* height: 18px; */
  background: rgba(255, 85, 114, 0);
  padding: 1px;
  margin: 0 5px 0 2px;
  border: none;
  border-radius: 50%;
}

.console-ai-button:hover {
  color: rgba(255, 85, 114, 1);
  padding: 1px;
  border: none;
  border-radius: 40%;
  cursor: pointer;
}

details {
  font-size: 15px;
  margin: 0px;
  padding: 4px 10px;
  border: 2px solid #c3c3c3;
}

details > summary {
  font-weight: bold;
  cursor: pointer;
}

details > p {
  padding: 10px 5px;
  margin: 0;
}

details > p.code-description {
}

.reaction-button {
  text-align: center;
  color: rgb(206, 206, 206);
  font-size: 16px;
  width: 18px;
  height: 18px;
  background: rgba(255, 85, 114, 0);
  padding: 1px;
  margin: 0 1px 0 5px;
  border: none;
  border-radius: 50%;
}

.reaction-button:hover {
  color: rgba(255, 85, 114, 1);
  padding: 1px;
  border: none;
  border-radius: 40%;
  cursor: pointer;
}

.table-shortcut td {
  padding: 15px 12px;
}
