@font-face {
  font-family: "KoPubWorld-Dotum";
  src: url("/font/KoPubWorld_Dotum_Medium.ttf") format('truetype');
  font-style: normal;
  font-weight: normal;
}
@font-face {
  font-family: "KoPubWorld-Dotum";
  src: url("/font/KoPubWorld_Dotum_Bold.ttf") format('truetype');
  font-weight: bold;
}
@font-face {
  font-family: "KoPubWorld-Dotum";
  src: url("/font/KoPubWorld_Dotum_Light.ttf") format('truetype');
  font-weight: lighter;
}

:root[color-theme='light'] {
  --default-background-color: #fffcf8;
  --primary-color: #6B705C;
  --rough-secondary-color: #DDBEA9;
  --soft-secondary-color: #FFE8D6;
  --main-text-color: #333;
  --muted-text-color: #434343;
  /* for code embed */
  --code-background-color: #f5f5f5;
  --code-keyword-color: #D95D39;
  --code-literal-color: #006400;
  --code-comment-color: #7D8C69;
}
:root[color-theme='dark'] {
  --default-background-color: #2c2a29;
  --primary-color: #8F9D86;
  --rough-secondary-color: #5C5247;
  --soft-secondary-color: #3D3A35;
  --main-text-color: #e0e0e0;
  --muted-text-color: #B3B3B3;
  /* for code embed */
  --code-background-color: #3b3a3a;
  --code-keyword-color: #FF6347;
  --code-literal-color: #9ACD32;
  --code-comment-color: #A9A9A9;
}

body {
  background-color: var(--default-background-color);
  color: var(--main-text-color);
}

footer {
  color: var(--primary-color);
}
footer a {
  color: var(--primary-color);
}

hr {
  border: none;
  height: 1px;
  background-color: var(--primary-color);
}

.neutral-link {
  color: var(--primary-color);
}

.require-blank {
  margin-bottom: 150px;
}

/* header */
.blog-header {
  line-height: 1;
  border-bottom: 1px solid var(--primary-color);
}

#btn-dark-mode {
  margin-left: 10px;
  color: var(--primary-color);
}
#btn-dark-mode:hover {
  cursor: pointer;
}
#btn-multilingual {
  color: var(--primary-color);
  text-decoration: underline;
}
#btn-multilingual:hover {
  cursor: pointer;
}

.blog-header-logo {
  font-family: "Times New Roman", "KoPubWorld-Dotum";
  font-size: 2.5rem;
  color: var(--primary-color);
}
.blog-header-logo:hover {
  text-decoration: none;
  color: var(--primary-color);
}

.display-4 {
  font-size: 2.5rem;
}
@media (min-width: 768px) {
  .display-4 {
    font-size: 3rem;
  }
}

/* top nav */
.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
}

.nav-scroller .nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  text-align: center;
  white-space: nowrap;
}

.nav-scroller .nav-link {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: .875rem;
}

.nav a {
  color: var(--primary-color) !important;
}

.dropdown:hover .dropdown-menu {
  background-color: var(--default-background-color);
  display: block;
  margin-top: 0;
}

.dropdown-header {
  font-family: sans-serif;
  font-weight: bold;
  color: var(--main-text-color);
}
.dropdown-item {
  font-size: 0.9rem;
}

.flex-auto {
  -ms-flex: 0 0 auto;
  -webkit-box-flex: 0;
  flex: 0 0 auto;
}

.h-250 { height: 250px; }
@media (min-width: 768px) {
  .h-md-250 { height: 250px; }
}

#copyright { 
  line-height: 1;
  border-top: 1px solid var(--primary-color); 
}

.box-shadow { box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05); }

/* home - cards */
.pinned .card {
  background-size: cover;
  background-position: center; 
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}
.card:hover {
  cursor: pointer;
  transform: scale(1.02);
}
.card-title a {
  color: var(--main-text-color);
  font-weight: bold;
}
.card-img-top {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.card-text {
  text-align: justify;
  line-height: 1.6;
}
.no-pinned .card {
  border: none;
  background-color: var(--default-background-color);
}
.no-pinned .card-body {
  padding: 1rem 0;
}
.no-pinned .card-meta {
  color: var(--main-text-color);
}
.category-badge {
  background-color: var(--soft-secondary-color);
  color: var(--main-text-color);
  padding: 3px 6px;
  border-radius: 5px;
  margin-right: 3px;
  font-size: 0.9rem;
  font-weight: 500;
}
.category-badge:hover {
  color: var(--primary-color);
}

/* home - middle text & link */
a.lnk-all-posts {
  color: var(--primary-color);
  text-decoration: underline;
  margin-bottom: 5px;
}

/* Pagination */
.blog-pagination {
  margin-bottom: 4rem;
}
.blog-pagination > .btn {
  border-radius: 2rem;
}

/* Posts (preview) */
.list-title {
  color: var(--primary-color) !important;
}
.left-thumbnail {
  min-width: 400px;
  height: 200px;
  overflow-y: hidden;
  object-fit: cover;
  margin-right: 20px;
  border-radius: 5px;
}
.post-preview {
  display: flex;
  align-items: flex-start;
  margin-top: 20px;
  margin-bottom: 20px;
}
.post-preview:hover {
  cursor: pointer;
}
.post-preview-mobile {
  display: none;
  margin-top: 20px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .post-preview {
    display: none;
  }
  .post-preview-mobile {
    display: block;
  }
}
.post-title {
  color: var(--main-text-color);
  font-weight: 500;
  font-size: 1.6rem;
}
.post-meta {
  font-size: .9rem;
  color: var(--muted-text-color);
}
.post-summary {
  text-align: justify;
}

/* Single post */
.article-container {
  padding-top: 50px;
  padding-bottom: 50px;
}
.article-meta {
  color: var(--primary-color) !important;
}
.article {
  font-family: "KopubWorld-Dotum";
  text-align: justify;
  line-height: 180%;
}

.article h2, h3, h4, h5, h6 {
  font-family: "KoPubWorld-Dotum";
  font-weight: bold;
  margin-bottom: 20px;
}
.article a {
  color: var(--primary-color);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 5px;
}

h2, h3, h4, h5, h6 {
  font-family: "Times New Roman", "KoPubWorld-Dotum";
  font-weight: normal;
}

.about {
  padding-top: 50px;
  font-family: "Noto Sans Korean";
  text-align: left;
}
.profile-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 30%;
  border-radius: 50%;
}

.bi-search::before {
  padding-top: 0.3rem;
}

.right {
  float:right;
  max-width: 48%;
  margin-left: 2%;
  padding: auto;
}

.left {
  float:left;
  max-width: 48%;
  margin-right: 2%;
}

.center {
  display: block;
  margin: auto;
  text-align: center;
  padding-bottom: 0.8rem;
}

.no-dot {
  list-style-type: none;
}

/* footer */
#footer-tag {
  line-height: 2;
}

/* pagination */
.pagination {
  justify-content: center;
  font-size: 1.2rem;
}
.page-item .page-link {
  background-color: var(--default-background-color);
  color: var(--primary-color);
  border: none;
}
.page-item.disabled .page-link {
  background-color: var(--default-background-color);
  color: var(--primary-color);
  border: none;
}
.page-item.active .page-link {
  background-color: var(--default-background-color);
  color: var(--rough-secondary-color);
}

.katex {
  font-size: 1.15em !important;
}