:root {
  --textColor: black;
  --backgroundColor: white;
  --backgroundColor2: whitesmoke;
  --borderColor: gainsboro;
}

html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}

ul {
  list-style: none;
}

button,
input,
select {
  margin: 0;
}

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

img,
video {
  display: block;
  height: auto;
  max-width: 100%;
}

iframe {
  border: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

td:not([align]),
th:not([align]) {
  text-align: inherit;
}

html {
  font-size: 16px;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

article,
aside,
figure,
footer,
header,
hgroup,
section {
  display: block;
}

body,
button,
input,
select,
textarea {
  font-family: Pretendard, BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

code,
pre {
  -moz-osx-font-smoothing: auto;
  -webkit-font-smoothing: auto;
  font-family: monospace;
}

body {
  position: relative;
  height: 100svh;
  font-size: 1rem;
  line-height: 1.5;
  word-break: keep-all;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

#app {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.main {
  display: flex;
  flex: 1 1 auto;
  position: relative;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 0 0 auto;
  padding: .5rem 1rem;
  font-size: .75rem;
  text-align: right;
  background-color: white;
  border-top: 1px solid var(--borderColor);
}

.footer a {
  opacity: .5;
}

.footer a:hover {
  opacity: 1;
}

.section {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
}

.no-sidebar .section {
  margin-left: 0;
}

.section-header {
  position: relative;
  min-height: 3.3125rem;
  text-align: center;
  border-bottom: 1px solid var(--borderColor);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
  padding: .75rem 1rem;
  font-weight: 700;
  
}

.edit-main-title-input {
  appearance: none;
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  padding: .75rem 1rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: inherit;
  text-align: center;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
}

.panels {
  display: flex;
  flex: 1 1 0;
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

@media screen and (max-width: 899px) {
  .panels {
    flex-direction: column;
  }
}

.panel {
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 1 1 0;
  height: 100%;
  min-width: 0;
}

.panel:not(:last-child) {
  border-right: 1px solid var(--borderColor);
}

@media screen and (max-width: 899px) {
  .panel {
    width: 100%;
    height: 50%;
  }

  .panel:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--borderColor);
  }
}



.panel-main {
  display: flex;
  flex: 1 1 0;
  height: 100%;
  overflow: hidden;
}

.panel-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: .75rem 1rem;
  background-color: white;
  border-top: 1px solid var(--borderColor);
}

.textarea {
  flex: 1 1 0;
  display: block;
  padding: .75rem 1rem 3rem;
  font: inherit;
  line-height: 1.625;
  background-color: whitesmoke;
  border: 0;
  border-radius: 0;
  outline: none;
  resize: none;
  overflow-x: hidden;
  overflow-y: auto;
}

.output {
  flex: 1 1 0;
  display: block;
  padding: .75rem 1rem 3rem;
  background: white;
  overflow-x: hidden;
  overflow-y: auto;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.buttons {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.button {
  padding: .25em .75em;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  color: white;
  background-color: dodgerblue;
  border: none;
  border-radius: 3em;
  cursor: pointer;
}

#button-toggle-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  font-weight: 500;
  z-index: 999;
  top: .75rem;
  left: .5rem;
  color: black;
  opacity: .25;
  background-color: transparent;
  border-radius: .25rem;
  transition: background-color .125s;
}

#button-toggle-sidebar:hover {
  color: rgb(0, 80, 255);
  opacity: 1;
}

.short-title{
  display: none;
}

@media (max-width: 500px){

  .full-title{
    display: none;
  }

  .short-title{
    display: inline;
  }

}

.content {
  position: relative;
  font-size: 1rem;
  line-height: 1.8;
}

.content > *:not(:last-child) {
  margin-bottom: 0;
}

.content a {
  text-decoration: none;
  color: dodgerblue;
}

.content a:hover {
  text-decoration: underline;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  font-weight: 600;
}

.content h1 {
  font-size: 2em;
  font-weight: 600;
  line-height: 1;
}

.content h2 {
  font-size: 1.8em;
  font-weight: 600;
  line-height: 1;
}

.content h3 {
  font-size: 1.6em;
  font-weight: 600;
  line-height: 1;
}

.content h4 {
  font-size: 1.4em;
  font-weight: 600;
}

.content h5 {
  font-size: 1.2em;
  font-weight: 600;
}

.content h6 {
  font-size: 1em;
  font-weight: 600;
}

.content > * + * {
  margin-top: 1em;
}

.content em {
  font-style: normal;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.content blockquote {
  padding-left: 1em;
  border-left: .25em solid var(--borderColor);
}

.content pre {
  background: var(--backgroundColor2);
  padding: .75em 1em;
  border-radius: .25rem;
  overflow-x: auto;
}

.content code {
  margin: -.125em -.25em;
  padding: .125em .25em;
  font-size: .875em;
  background-color: var(--backgroundColor2);
  border-radius: .25rem;
}

.content pre code {
  margin: 0;
  padding: 0;
  font-size: 1em;
  line-height: 1.5;
  background-color: transparent;
}

.content ul,
.content ol {
  padding-left: 1.5em;
}

.content ul {
  list-style-type: disc;
}

.content ol {
  list-style-type: decimal;
}

.content table {
  border-collapse: collapse;
  width: 100%;
  margin-top: -.5em;
}

.content th,
.content td {
  border-bottom: 1px solid var(--borderColor);
  padding: .5em 0;
}

.content figure:not(:first-child) {
  margin-top: 1.5em !important;
}

.content figure:not(:last-child) {
  margin-bottom: 1.5em !important;
}

.content figure img {
  display: block;
  max-width: 100%;
  height: auto;
}

.content hr {
  border: 0;
  margin: 1em 0 !important;
}

.content hr::before {
  content: "* * *";
  display: block;
  text-align: center;
  color: var(--textColor);
}


@font-face {
  font-family: Logo;
  src: url('../fonts/logo.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

.logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  font-family: Logo;
  font-size: 1rem;
}

.logo span:last-child {
  display: none;
}

@media screen and (max-width: 899px) {
  .logo span:first-child {
    display: none;
  }
  .logo span:last-child {
    display: inline-block;
  }
}