@charset "utf-8";
/* @import url('https://fonts.googleapis.com/css2?family=Noto+Sans&family=Noto+Sans+KR&family=Noto+Sans+JP&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato&display=swap');
@import url('https://fonts.googleapis.com/css?family=Material+Icons');
@import url('ad.css');
@import url('animate.css');
@import url('nav.css');
@import url('content.css');
@import url('content_bottom.css');
@import url('toast.css');
@import url('card_lang.css');
@import url('key.css');

::selection {
  background: rgba(0, 0, 0, 0);
}

::-webkit-scrollbar-track {
  background-color: inherit;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background-color: inherit;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, .1);
  -webkit-box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-corner {
  opacity: 0;
}

html {
  background: #eee;
  height: 100%;
}

body {
  padding: 0;
  margin: calc(64px + 64px) auto 0;
  font-family: 'Noto Sans', 'Noto Sans KR', 'Noto Sans JP', sans-serif;
  line-height: 1;
  height: calc(100% - 64px - 64px);
  cursor: default;
}

a {
  /* text-decoration: none; */
}

ul {
  padding-left: 1.5em;
}

li {
  line-height: 1.5;
}

header {
  position: fixed;
  display: flex;
  color: rgba(0, 0, 0, .98);
  box-shadow: 0 2px 6px 0 rgba(60, 64, 67, .15);
  transition: .3s;
  width: calc(100% - 16px);
  /* height: 64px; */
  left: 0;
  top: 0;
  z-index: 4;
  padding: 8px;
  background: #fff;
  align-items: center;
}

header h1 {
  /* text-transform: uppercase; */
  flex: auto;
  font-size: 1.25em;
  margin: 0;
  /* text-align: left; */
  display: inline-block;
  position: relative;
  font-weight: normal;
}

header .actionbar {
  display: inline-block;
  float: right;
}

header .actionbar .item {
  display: none;
  padding: 6px;
  cursor: pointer;
  color: #00C853;
}

body.analyze header .actionbar .item {
  color: #4284f3;
}

header .actionbar .item.disabled {
  color: #aaa !important;
}

body:not(.braille) header .actionbar .item.morse {
  display: inline-block;
}

#index.flash {
  box-shadow: 0 11px 21px #00c853;
}

#index.flash-hard {
  box-shadow: 0 11px 21px #00e676;
}

body.fold header {
  padding-left: 68px;
  width: calc(100% - 68px);
}

#header_menu {
  height: 24px;
  width: 24px;
  padding: 12px;
  display: inline-block;
  margin: 0 4px;
  cursor: pointer;
}

.contents {
  margin: 1em auto 4em;
  max-width: 1280px;
  width: 100%;
  background: #fff;
  box-shadow: 0 5px 11px rgba(0, 0, 0, .2);
  border-radius: .5em;
  /* border: 1px solid #aaa; */
  transition: .3s;
  position: relative;
}

#message {
  text-align: center;
  font-size: 1em;
  font-weight: bold;
  width: fit-content;
  line-height: 2;
  margin: auto;
  padding: 0 3em;
  font-family: 'Lato', 'Noto Sans KR', sans-serif;
  transition: 1s;
}

.quote::before, .quote::after {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  opacity: .45;
}

.quote::before {
  content: 'format_quote';
  left: 0;
  transform: rotate(180deg);
}

.quote::after {
  content: 'format_quote';
  right: 0;
}

.source {
  color: #aaa;
  font-size: .75em;
  display: block;
  font-style: italic;
  text-align: right;
  margin: 0 -3em 0em 0em;
}

#card_header {
  min-height: 48px;
  width: 100%;
  border-bottom: 1px solid #ddd;
  position: relative;
}

#card_header .lang_box {
  display: flex;
  width: 50%;
  position: absolute;
  overflow: hidden;
  white-space: nowrap;
  font-size: .8em;
  animation: swap-lang_box-l .3s;
}

#card_header .lang_box.lang {
  right: 0;
  width: calc(50% - 2em);
  animation: swap-lang_box-r .3s;
}

body.analyze #card_header .lang_box.lang {
  left: 0;
  animation: swap-lang_box-l .3s;
}

body.analyze #card_header .lang_box.code {
  right: 0;
  width: calc(50% - 2em);
  animation: swap-lang_box-r .3s;
}

#re_anaylze, #lang_list {
  cursor: pointer;
  border-radius: 25px;
  width: 24px;
  padding: 12px;
  position: absolute;
  left: calc(50% - 24px);
}

#re_anaylze input+i, #lang_list input+i {
  transition: 0.25s;
  transform: rotate(0);
}

#re_anaylze input:checked+i, #lang_list input:checked+i {
  transform: rotate(180deg);
}

#re_anaylze input, #lang_list input {
  display: none;
}

.translate #lang_list {
  display: none;
}

#lang_list {
  display: inline-block;
  position: static;
  text-align: center;
}

.card_header {
  height: 48px;
  cursor: pointer;
  padding: 0 24px;
  text-transform: uppercase;
  display: inline-block;
  margin: 0;
  position: relative;
  line-height: 48px;
}

.card_header.selected {
  color: #00C853;
  font-weight: bold;
  max-width: calc(50vw - 48px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.analyze .card_header.selected {
  color: #4284f3;
}

.braille .card_header.selected {
  color: #f44336;
}

.card_header.selected::after {
  position: absolute;
  top: 0;
  left: 0;
  content: '';
  height: 45px;
  width: 100%;
  border-bottom: solid 3px #00C853;
  animation: border-grow .3s cubic-bezier(0.4, 0, 0.4, 1) 0s;
}

.analyze .card_header.selected::after {
  border-bottom: solid 3px #4284f3;
}

.braille .card_header.selected::after {
  border-bottom: solid 3px #f44336;
}

.lang_box.code .card_header:nth-of-type(n+5) {
  display: none;
}

.translate .lang_box.code .card_header:not(.auto),
.analyze .lang_box.code .card_header.auto {
  color: #aaa;
  cursor: not-allowed;
}

.lang_box.code .detected {
  display: none;
}

.lang_box.code .detected.on {
  display: initial;
}

.lang_box.code .detected::before {
  content: " - ";
}

#card_body {
  width: 100%;
  position: relative;
  display: flex;
}

#input {
  text-align: center;
  width: calc(50% - 6em);
  padding: 1.5em 4em 1.5em 2em;
  /* background: gold; */
  border-right: 1px solid #ddd;
}

#input_textarea {
  width: calc(100% - 0em);
  min-height: 300px;
  padding: 0;
  font-family: 'Lato', 'Noto Sans KR', sans-serif;
  background: transparent;
  border: none;
  overflow: hidden;
  resize: none;
  font-size: 1.25em;
}

#input_textarea::selection,
#output_textarea::selection {
  color: #fff;
  background: #4284f3;
}

#input_del {
  position: absolute;
  right: calc(50% + 1em);
  top: 1.5em;
  cursor: pointer;
  padding: 8px;
}

#card_option {
  transition: .25s;
  max-height: 0;
  padding: 0 1em;
  visibility: hidden;
  opacity: 0;
  width: calc(100% - 2em);
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .125) inset;
  font-size: 14px;
  background: #fafafa;
}

.analyze:not(.braille) #card_option {
  padding: .5em 1em 1em;
  max-height: 1000px;
  max-height: inherit;
  visibility: visible;
  opacity: 1;
}

#output {
  width: calc(50% - 4em);
  padding: 1.5em 2em;
  position: relative;
}

#output_textarea {
  height: inherit !important;
  text-align: justify;
  font-family: 'Lato', 'Noto Sans KR', sans-serif;
  font-size: 1.25em;
  border: none;
  display: block;
  line-height: 1.5;
  white-space: pre-wrap;
  text-overflow: ellipsis;
  word-break: break-word;
  /* overflow: hidden; */
}

.analyze:not(.braille) #input_textarea {
  font-weight: bold;
}

.translate:not(.braille) #output_textarea {
  font-weight: bold;
}

#output_textarea>span {
  overflow: visible;
}

#output_textarea>span.on {
  background: #ffeb3b;
  color: #f44336;
}

#output.on {
  background: #f5f5f5;
  border-top-right-radius: .5em;
  border-bottom-right-radius: .5em;
}

#output_menu {
  text-align: right;
  margin: -1em;
  color: #777;
  position: absolute;
  bottom: 2em;
  right: 2em;
}

#output_menu span {
  cursor: pointer;
}

#output_menu span:not(:last-child) {
  margin-right: 1em;
}

body.braille #output_menu span.play,
body.analyze #output_menu span.play {
  display: none;
}

#output_menu i:hover {
  color: #00C853;
}

.analyze #output_menu i:hover {
  color: #4284f3;
}

.braille #output_menu i:hover {
  color: #f44336;
}

.placeholder {
  opacity: .6;
  font-weight: normal;
}

.hide {
  display: none;
  visibility: hidden;
  opacity: 0;
}

#feadback {
  position: absolute;
  bottom: -2em;
  right: 0.5em;
  font-size: .75em;
  font-style: italic;
  opacity: .5;
  cursor: pointer;
}

#feadback:hover {
  text-decoration: underline;
}

.description {
  line-height: 1.5;
  font-size: 14px;
  display: none;
  max-width: 1280px;
  margin: auto;
  color: #555;
}

.description.on {
  display: block;
}

.description small {
  font-size: 14px;
  /* font-weight: normal; */
}

footer {
  /* position: fixed; */
  padding-bottom: 2.5em;
  bottom: 0;
  width: 100%;
  text-align: center;
  color: gray;
}

.menu {
  width: 24%;
  height: 50px;
  display: inline-block;
  cursor: pointer;
}

.menu:hover {
  background: #ddd;
}

.menu img {
  width: 32px;
  height: 32px;
}

.menu:active {
  background: #bce;
}

.share_button {
  width: 19%;
  display: inline-block;
  padding: 2em 0;
  cursor: pointer;
}

.share_button:hover {
  background: #ddd;
}

.share_icon {
  width: 32px;
  height: 32px;
  margin: auto;
  border-radius: 1ex;
}

.share_icon:active {
  box-shadow: #3079ed 0 0 16px;
}

#share_facebook {
  background: #3b5998;
}

#share_google {
  background: #c00;
}

#share_kakaotalk {
  background: #F9E81F;
}

#share_mail {
  background: silver;
}

#share_twitter {
  background: #9AE4E8;
}

.setting {
  text-align: left;
  padding: 1em;
  border-color: silver;
  border-width: 1px 0 0 0;
  border-style: solid;
  cursor: pointer;
}

.setting:active {
  background: #bce;
}

.setting:hover {
  background: #ddd;
}

.input {
  border: none;
  /* border-bottom: 1px solid #4284f3; */
  background: #f0f0f0;
  padding: 2px 5px;
  display: inline-block;
  min-width: 3em;
  position: relative;
  /* line-height: 20px; */
}

.input:focus {
  background: gold;
}

.input:focus::after {
  position: absolute;
  top: 0;
  left: 0;
  content: '';
  height: calc(100% - 3px);
  width: 100%;
  border-bottom: solid 3px #4284f3;
  animation: border-grow .15s cubic-bezier(0.4, 0, 0.4, 1) 0s;
}

select {
  border: 1px solid silver;
  border-radius: 3px;
  background: #f0f0f0;
  padding: 1px 1px 1px 5px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: gray;
}

.input:focus,
input:focus,
select:focus,
textarea:focus {
  background: #ddf;
  outline: none;
}

textarea {
  padding: 5px;
  border: 1px solid silver;
  background: #f0f0f0;
  border-radius: 3px;
}

label {
  cursor: pointer;
}

input[type="checkbox"], input[type="radio"] {
  display: none;
}

input[type="checkbox"]+label::before,
input[type="radio"]+label::before {
  content: "check_box_outline_blank";
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
  color: #aaa;
  line-height: 20px;
  margin: -4px .125em 0 0;
}

input[type="checkbox"]:checked+label::before,
input[type="radio"]:checked+label::before {
  content: "check_box";
  color: #4284f3;
}

input[type="radio"]+label::before {
  content: 'radio_button_unchecked';
}

input[type="radio"]:checked+label::before {
  content: 'radio_button_checked';
}

input[type="checkbox"]:checked+label,
input[type="radio"]:checked+label {
  color: #1a73e8;
  background-color: #e8f0fe;
  padding: calc(.5em - 2px) calc(.75em - 2px) calc(.5em - 2px) calc(.5em - 2px);
  border: 3px solid #d2e3fc;
  font-weight: bold;
}

input[disabled]+label::before,
input[disabled]+label::before {
  color: #aaa !important;
}

input[disabled]+label,
input[disabled]+label {
  color: #aaa !important;
  border-color: #eee !important;
  background-color: #eee !important;
}

button,
input[type="button"] {
  font-size: 14px;
  background: #1a73e8;
  border: 1px solid transparent;
  border-radius: .5em;
  color: #fff;
  padding: .5em .75em .5em .5em;
  min-width: 3em;
  padding: 9px 23px;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
}

button:hover,
input[type="button"]:hover {
  box-shadow: 0 1px 2px 0 rgba(66, 133, 244, 0.3), 0 1px 3px 1px rgba(66, 133, 244, 0.15);
  background: #2b7de9;
}

.button {
  display: inline-block;
  margin: .5em .5em 0 0;
  padding: .5em .75em .5em .5em;
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: .5em;
  line-height: 24px;
  white-space: nowrap;
}

.button_first {
  margin-right: -4px;
  /* border-right-width: 0; */
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.button_between {
  border-radius: 0;
  border-left-width: 0;
  border-right-width: 0;
  margin-right: -4px;
}

input[type="radio"]:checked+label.button_between {
  padding: calc(.5em - 2px) calc(.75em - 3px) calc(.5em - 2px) calc(.5em - 3px);
}

.button_last {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.button.title {
  text-transform: uppercase;
  font-weight: bold;
  background: #ddd;
  color: #1a73e8;
  padding: .5em .75em;
}

.disabled,
.disabled a {
  color: rgba(0, 0, 0, 0.3);
}

.hide {
  display: none !important;
  margin: 0 !important;
}

.shadow-right {
  box-shadow: 2px 0 6px 0 rgba(60, 64, 67, .15);
}

.shadow-top {
  box-shadow: 0 -2px 6px 0 rgba(60, 64, 67, .15);
}

.shadow-bottom {
  box-shadow: 0 2px 6px 0 rgba(60, 64, 67, .15);
}

.shadow-top-inset {
  box-shadow: inset 0 7px 6px -5px rgba(60, 64, 67, .15);
}

.shadow-bottom-inset {
  box-shadow: inset 0 -7px 6px -5px rgba(60, 64, 67, .15);
}

.shadow-top-inset.shadow-bottom-inset {
  box-shadow: inset 0 7px 6px -5px rgba(60, 64, 67, .15), inset 0 -7px 6px -5px rgba(60, 64, 67, .15);
}

/* ------------------------------------------------------------------- */
/* ***** splash ***** */
/* ------------------------------------------------------------------- */
div#splash {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: #fff;
  text-align: center;
  z-index: 99;
  opacity: 1;
}

div#splash.off {
  z-index: -1;
  opacity: 0;
  transition: 1s;
}

div#splash img {
  top: calc(50% - 64px);
  position: relative;
  width: 128px;
  height: 128px;
}

div#splash .splash_title {
  top: calc(50% - 64px);
  position: relative;
  font-size: 1.25em;
  font-weight: bold;
  color: #aaa;
}
