@font-face {
    font-family: 'Axiforma';
    src: url(fonts/Axiforma-Regular.woff);
  }
@font-face {
    font-family: 'Axiforma-bold';
    src: url(fonts/Axiforma-Bold.woff);
  }

body {
    background-color: #dcdde6;
    font-family: 'Axiforma';
    font-size: 14px;
    overflow-x: auto;
    /* margin: 16px; */
    height: auto;
    color: #5d6066;
    line-height: 26px;
}

img {
    /* max-width: 100%; */
    max-width: calc(100% - 18px);
    height: auto;
    border-radius: 8px;
    padding: 8px;
    border: 1px solid #dcdde6;
    vertical-align: middle;
}

a {
    color: #3E4561;
    font-family: 'Axiforma-bold';
    text-decoration: none;
    transition: all ease-in-out 1ms;
    display: inline-block;
    margin: 0;
}

a:hover {
    color: #343a51;
}

a::after {
    display:block;
    content: '';
    border-bottom: solid 2px #343a51;  
    transform: scaleX(0);  
    transition: transform 250ms ease-in-out; 
}

a:hover::after {
    transform: scaleX(1);
}



h1, h2, h3, h4, h5, h6 {
    color: #F68B7D;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

h2 {
    display: flex;
    align-items: center;
}

em {
    font-size: 12px;
    color: #999ba4;
}

figure > table {
    margin: 0 !important;
}

table {
    border-collapse: collapse;
    border-spacing: 0px;
    width: 100%;
    overflow: auto;
    break-inside: auto;
    text-align: left;
}

table tr th {
    font-family: 'Axiforma-Bold';
    border: 1px solid #999ba4;
    border-bottom: 0;
    margin: 0;
    padding: 8px 16px;

}

table tr td {
    font-weight: bold;
    border: 1px solid #999ba4;
    margin: 0;
    padding: 8px 16px;
}

#write {
    margin: 0px auto;
    height: auto;
    max-width: 50%;
    background-color: #FFF;
    padding: 16px;
    border-radius: 8px;
    width: inherit;
    word-break: normal;
    overflow-wrap: break-word;
    position: relative;
    white-space: normal;
    overflow-x: visible;
    border: 1px solid #c6d0d5;
}

#write h1, #write h2, #write h3, #write h4, #write h5, #write h6, #write p {
    position: relative;
}

#write h1, #write h2, #write h3, #write h4, #write h5, #write h6, #write p, #write pre {
    width: inherit;
}

.typora-export p {
    white-space: pre-wrap;
    text-align: justify;
}

.md-toc-item {
    display: block; 
}


.md-toc-h2 .md-toc-inner {
    margin-left: 2em;
    font-family: 'Axiforma';
}
.md-toc-h3 .md-toc-inner {
    margin-left: 4em;
    font-family: 'Axiforma';
}
.md-toc-h4 .md-toc-inner {
    margin-left: 6em;
    font-family: 'Axiforma';
}
.md-toc-h5 .md-toc-inner {
    margin-left: 8em;
    font-family: 'Axiforma';
}
.md-toc-h6 .md-toc-inner {
    margin-left: 10em;
    font-family: 'Axiforma';
}

/* .md-toc-content {
    display: flex;
    flex-direction: column;
    font-size: 12px;
} */

#myBtn {
    display: none;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #3E4561;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color ease-in-out 1ms;
  }
  
  #myBtn:hover {
    background-color: #343a51;
  }

  #myBtn img {
      width: 25px;
      border: none;
  }

@media (max-width: 991.98px) {
    body #write {
        max-width: 80%;
    }
}

@media (max-width: 575.98px) {
   body #write {
        max-width: 95%;
    }
}