body {
  background-color: rgb(255 250 248);
  font-family: monospace;
}

textarea {
  background-color: rgb(255 250 248);
}

label {
  cursor: pointer;
  user-select: none;
}

code {
  background-color: #e5e5e5;
  border-radius: 4px;
  padding: 1px 3px;
}

input[type="checkbox"] {
  outline: none;
}

.clearfix {
  clear: both;
}

.left {
  float: left;
}

.right {
  float: right;
}

.container {
  width: 1200px;
  margin: 20px auto;
  box-sizing: content-box;
}

.title {
  text-align: center;
}

.title a {
  color: #000000;
  text-decoration: none;
}

.text-result-wrapper {
  height: 300px;
  box-shadow: 2px 2px 8px 0 #c5c5c5;
  border-radius: 4px;
}

.text, .result {
  width: 600px;
  height: 300px;
  padding: 15px 20px;
  box-sizing: border-box;
  border: 0.5px solid #f1f1f1;
}

.text {
  resize: none;
  border-radius: 4px 0 0 4px;
}

.text:focus {
  outline: none;
}

.text::placeholder {
  color: #c8c8c8;
}

.result {
  display: inline-block;
  border-left: 0.5px solid #d9d9d9;
  border-radius: 0 4px 4px 0;
  overflow-x: hidden;
  overflow-y: auto;
  cursor: text;
}

.result span.unknown {
  color: tomato;
}

/* https://bitto.jp/posts/%E6%8A%80%E8%A1%93/css/tooltip-with-css/ */
.result span[data-sub-phonemes] {
  color: #2ba5ed;
  position: relative;
}
.result span[data-sub-phonemes]::before,
.result span[data-sub-phonemes]::after {
  display: none;
  position: absolute;
}
.result span[data-sub-phonemes]::after {
  display: none;
  content: attr(data-sub-phonemes);
  padding: 3px 10px;
  background: #90cbed;
  color: #333333;
  border-radius: 5px;
  top: 20px;
  right: 0;
  white-space: pre;
  text-align: center;
}
.result span[data-sub-phonemes]:hover::before,
.result span[data-sub-phonemes]:hover::after {
  display: inline-block;
}

.options {
  width: 1150px;
  margin-top: 30px;
}

img {
  width: 500px;
  border: 1px solid #bfbfbf;
  padding: 3px;
  border-radius: 2px;
}
