@font-face {
  font-display: swap;
  font-family: 'NanumSquareNeo';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/NanumSquareNeoTTF-bRg.woff') format('woff');
}

@font-face {
  font-display: swap;
  font-family: 'NanumHimNaeRaNeunMarBoDan';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/NanumHimNaeRaNeunMarBoDan.woff') format('woff');
}

/* Markdown */
:root{
  --maincolor: #bcc9fc;
  --bordercl:rgb(99, 108, 118);
  --callouctcolor:dodgerblue;
  --hovercolor:navy;
  --darkMaincolor: #50fa7b;
  }
  html {
    color: #232333;
    font-family: 'Roboto Mono', monospace;
    font-size: 15px;
    line-height: 1.6em;
  }

  html:lang(ko) {
    font-family: 'NanumSquareNeo', sans-serif;
  }

  /* for iOS */
  @media only screen and (hover: none) and (pointer: coarse){

  }

  body{
    display: block;
    margin: 8px;
  }
  * {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }

  ::selection {
    background: var(--maincolor);
    color: #fff;
  }
  
  p {
    line-height: 1.5;
  }
  
  hr {
    border: 0;
    border-top: 3px dotted var(--bordercl);
    margin: 1em 0;
  }


  .blockquote-container {
    display: flex;
    justify-content: center;
    margin-inline: auto;
    width: var(--dialogue-width, 100%);
  }

  .transcript-control {
    display: flex;
    justify-content: flex-end;
    margin: .75rem 0 1.5rem;
  }

  .transcript-toggle {
    align-items: center;
    display: inline-flex;
    font-size: .85rem;
    gap: .65rem;
  }

  .transcript-toggle label {
    cursor: pointer;
  }

  .transcript-toggle input {
    appearance: none;
    background: #d8dce2;
    border: 1px solid var(--bordercl);
    border-radius: 999px;
    cursor: pointer;
    height: 1.35rem;
    margin: 0;
    position: relative;
    width: 2.5rem;
  }

  .transcript-toggle input::before {
    background: #fff;
    border-radius: 50%;
    content: "";
    height: .95rem;
    left: .15rem;
    position: absolute;
    top: .15rem;
    transition: transform 160ms ease;
    width: .95rem;
  }

  .transcript-toggle input:checked {
    background: var(--maincolor);
  }

  .transcript-toggle input:checked::before {
    transform: translateX(1.1rem);
  }

  .transcript-toggle input:focus-visible {
    outline: 2px solid var(--hovercolor);
    outline-offset: 2px;
  }

  .transcripts-hidden .image-dialogue {
    display: none;
  }


  blockquote {
    margin: 0;
    font-family: "Playpen Sans", cursive;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
  }

  html:lang(ko) blockquote {
    font-family: 'NanumHimNaeRaNeunMarBoDan', 'NanumSquareNeo', sans-serif;
    font-size: 1.3rem;
    line-height: 1.2;
  }

  html:lang(ko) blockquote p {
    line-height: inherit;
  }

  @media print {
    .transcript-control {
      display: none;
    }

    .transcripts-hidden .image-dialogue {
      display: flex;
    }
  }
  
  a {
    border-bottom: 2px solid var(--maincolor);
    color: inherit;
    text-decoration: none;
  }
  a:hover {
      background-color: var(--hovercolor);
      color: #fff;
  }
  
  ul {
    list-style: none;
    padding-left: 2ch;
  }
  ul li {
    text-indent: -2ch;
  }
  ul > li::before {
    content: '* ';
    font-weight: bold;
  }

/*
  ul.pagination {
    display: flex;
    justify-content: space-between;
  }
   ul.pagination {
    display: block;
    text-align: right;
  }
*/

  ul.pagination-post {
    font-size: small;
    display: flex;
    justify-content: space-between;
  }

  /* Images */
  img {
    max-width: 100%;
  }

  /* Default style */
   .responsive-image {
    width: 40%;
  }

  /* for iOS */
  @media only screen and (hover: none) and (pointer: coarse){
    .responsive-image {
      width: 80%;
    }
  }

  figure {
    box-sizing: border-box;
    display: inline-block;
    margin: 0;
    max-width: 100%;
  }

  figure img {
    max-height: 500px;
  }

  .panel-group {
    display: grid;
    grid-template-columns: repeat(var(--panel-columns), minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
    margin: 1.5rem 0;
  }

  .panel-group .image-container,
  .panel-group figure {
    min-width: 0;
    width: 100%;
  }

  .panel-group figure {
    display: block;
    padding: 0;
  }

  .panel-group img {
    display: block;
    height: auto;
    width: 100%;
  }

  .panel-group figcaption {
    margin-top: 0.75rem;
    text-align: center;
  }

  @media screen and (max-width: 599px) {
    .panel-group {
      grid-template-columns: 1fr;
    }

    .sized-image {
      width: 100% !important;
    }
  }
  
  @media screen and (min-width: 600px) {
    figure {
      padding: 0 40px;
    }

  }
  
  figure h4 {
    font-size: 1rem;
    margin: 0;
    margin-bottom: 1em;
  }
  figure h4::before {
    content: '↳ ';
  }
  
  /* Code blocks */
  code {
    background-color: #f1f1f1;
    font-family: 'Roboto Mono', monospace;
    padding: .1em .2em;
  }
  
  pre {
    background-color: #f6f8fa;
    font-family: 'Roboto Mono', monospace;
    line-height: 1.4;
    overflow-x: auto;
    padding: 0;
  }
  
  .highlight pre ::selection {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
  }
  
  pre code {
    background-color: transparent;
    color: inherit;
    font-size: 100%;
    padding: 0;
  }
  
  /* Containers */
  .content {
    margin-bottom: 4em;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    padding: 0 1ch;
    word-wrap: break-word;
  }
  
  /* Header */
  header {
    display: flex;
    font-family: 'Roboto Mono', monospace;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 1em 0;
    line-height: 2.5em;
  }
  
  header .main {
    font-size: 1.5rem;
  }
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 0.75em;
    margin-top: 2em;
  }

  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1.1rem; }
  h4 {
    font-size: 1rem;
    font-weight: 700;
  }
  h5 { font-size: 0.9rem; }
  h6 { font-size: 0.8rem; }
  
  .meta {
    color: #999;
    letter-spacing: -0.5px;
  }

  .language-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
  }

  .language-switcher a[aria-current="page"] {
    border-bottom-color: transparent;
    color: #777;
    pointer-events: none;
  }

  .description {
    font-size: 1rem;
  }

  /* navigation */
  h1.assistive-text {
    display: none;
  }
  nav {
    font-family: 'Roboto Mono', monospace;
  }
  html:lang(ko) header,
  html:lang(ko) nav {
    font-family: 'NanumSquareNeo', sans-serif;
  }
  nav.post-navigation {
    display: flex;
    justify-content: end;
    margin: 2em 0;
    font-size: small;
  }
  /* delete */

  /* Footer */
  footer {
    display: flex;
    align-items: center;
    border-top: 0.4rem dotted var(--bordercl);
    font-family: 'Roboto Mono', monospace;
    padding: 2rem 0rem;
    margin-top: 2rem;
  }
  .soc {
    display: flex;
    align-items: center;
    border-bottom: none;
  }
  .border {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    border: 1px solid;
    border-color: var(--bordercl);
  }
  .footer-info {
    padding: var(--footer-padding);
  }
  
  /* Common */
  .title h1 {
    font-size: 1.7rem;
    margin-bottom: 0;
  }
  
  time {
    color: grey;
  }

  /* Posts */
  article .title {
    margin-bottom: 1em;
  }

  .disable-link {
    color: grey;
  }
  
  /* Callout */
  .callout {
    background-color: var(--callouctcolor);
    color: #fff;
    padding: 1em;
  }
  
  .callout p {
    font-family: 'IBM Plex Mono', monospace;
    margin: 0;
  }
  
  .callout a {
    border-bottom: 2px solid #fff;
  }
  
  .callout a:hover {
    background-color: #fff;
    color: var(--callouctcolor);
  }
  
  .site-description {
  display: flex;
  justify-content: space-between;
  }
  .tags li::before{
    content: "🏷 ";
  }
  .tags a{
    border-bottom: 2px solid var(--maincolor);
  }
  .tags a:hover{
    color:white;
    background-color: var(--hovercolor); 
  }
  .soc svg{
    max-height: 15px;
  }
  pre.mermaid{
    background-color: transparent;
    padding: 0;
    text-align: center;
    overflow-x: auto;
  }
  pre.mermaid svg{
    max-width: 100%;
    height: auto;
  }
  .soc:hover{
    color: white;
  }
  .draft-label{ 
      color: var(--bordercl);
      text-decoration: none;
      padding: 2px 4px;
      border-radius: 4px;
      margin-left: 6px;
      background-color: #f9f2f4;
  }
  .highlight {
    position: relative;
    -webkit-overflow-scrolling: touch;
  }
  .highlight pre code[class*="language-"] {
    -webkit-overflow-scrolling: touch;
  }
  .highlight pre code[class*="language-"]::before {
    background: black;
    border-radius: 0 0 0.25rem 0.25rem;
    color: white;
    font-size: 12px;
    letter-spacing: 0.025rem;
    padding: 0.1rem 0.5rem;
    position: absolute;
    right: 1rem;
    text-align: right;
    text-transform: uppercase;
    top: 0;
  }
  
  .highlight pre code[class=language-javaScript]::before,
  .highlight pre code[class="language-js"]::before {
  content: "js";
  background: #f7df1e;
  color: black;
  }
  .highlight pre code[class*='language-yml']::before,
  .highlight pre code[class*='language-yaml']::before {
  content: 'yaml';
  background: #f71e6a;
  color: white;
  }
  .highlight pre code[class*='language-shell']::before,
  .highlight pre code[class*='language-bash']::before,
  .highlight pre code[class*='language-sh']::before {
  content: 'shell';
  background: green;
  color:white
  }
  .highlight pre code[class*='language-json']::before{
  content: 'json';
  background: dodgerblue;
   color: #000000 
  }
  .highlight pre code[class*='language-python']::before,
  .highlight pre code[class*='language-py']::before {
  content: 'py';
  background: blue;
  color: yellow ;
  }
  .highlight pre code[class*='language-css']::before{
  content: 'css';
  background: cyan;
  color: black ;
  }
  .highlight pre code[class*='language-go']::before{
  content: 'Go';
  background: cyan;
  color: royalblue ;
  }
  .highlight pre code[class*='language-md']::before,
  .highlight pre code[class*='language-md']::before{
  content: 'Markdown';
  background: royalblue;
  color: whitesmoke ;
  }
  
  /* table */
  table {
    border-spacing: 0;
    border-collapse: collapse;
  }
  
  table th{
    padding: 6px 13px;
    border: 1px solid #dfe2e5;
    font-size: large;
  }
  
  table td{
    padding: 6px 13px;
    border: 1px solid #dfe2e5;
  }
