@import url(//fonts.googleapis.com/earlyaccess/notosanskr.css);

html, body {
  height: 100%;
  font-size: 16px; /* initialize font-size */
 }

body {
  box-sizing: border-box;
  margin: 0 auto;
  line-height: 1.8em;
  font-family: 'Noto Sans KR',-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: #333;
}

nav {
  position: relative;
  display: flex;
  height: 50px;
  left: 0;
  top: 0;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  z-index: 100;
  text-align: center;
}

footer {
  padding: 20px;
  clear: both;
  text-align: center;
  font-size: 0.875rem;
}

header {
  text-align: center;
  height: 50px;
}

main {
  height: auto;
  font-size: 1.0625rem;
}

article {
  display: block;
}

.content {
  max-width: 800px;
  margin: 0 auto;
}

.gallery__frame {
  position: relative;
  z-index: 1000;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* width: auto;
  width: 100vw;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  height: calc(100vh - 50px); */
}

.gallery__content {
	line-height: 0.8;
	/* pointer-events: none; */
	margin-top: 13vh;
	font-size: 20vw;
	font-family: essonnes-display, serif;
	mix-blend-mode: soft-light;
	font-weight: normal;
	text-align: center;
	color: #c2ba8b;
  position: relative;
  flex-direction: column;
	align-items: center;
	justify-content: center;
}

.gallery__random-button {
  font-size: 1.25rem;
	margin: 0;
	font-weight: normal;
}

#gl {
	width: 100vw;
	height: 100vh;
	left: 0;
	top: 0;
	position: absolute;
}

.gallery_img {
  width: 100vw;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  overflow: hidden;
}

.list {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 20px;
  margin-top: 6vh;
}

.card {
  position: relative;
  border-radius: 5px;
  text-align: center;
  display: block;
}

.card h2 {
  font-size: 1.125rem;
  line-height: 110% !important;
  color: #000;
  margin: 10px 0 0 0;
  font-weight: 400;
}

.card img {
  max-width: 100%;
  max-height: 180px;
  height: auto;
}

.list>.card {
  height: 0;
  overflow: hidden;
  padding-bottom: calc(33.33333% - 13.33333px);
  position: relative;
  width: calc(33.33333% - 13.33333px);
}

@media screen and (max-width: 767px) {
  .list > .card {
    width: calc(100% - 20px);
  }
}

/* 
.post-content {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
  font-size: 1.0625rem;
  z-index: 1;
  margin-top: 4vh;
}

.post-list {
  display: flex;
  flex-wrap: wrap;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  gap: 20px;
  margin-top: 6vh;
}

.post-card {
  position: relative;
  border-radius: 5px;
  text-align: center;
  display: block;
}

.post-card h2 {
  font-size: 1.125rem;
  line-height: 110% !important;
  color: #000;
  margin: 10px 0 0 0;
  font-size: 1.25rem !important;
  font-weight: 400;
}

.post-card img {
  max-width: 100%;
  max-height: 180px;
}

.post-list>.post-card {
  height: 0;
  overflow: hidden;
  padding-bottom: calc(33.33333% - 13.33333px);
  position: relative;
  width: calc(33.33333% - 13.33333px);
}

@media screen and (max-width: 767px) {
  .post-list > .post-card {
    width: calc(100% - 20px);
  }
} */

#nav-menu {
  display: flex;
  padding: 0;
}

#nav-side {
  display: none;
  position: fixed;
  top: 60px;
  right: 10px;
  animation: left 0.5s ease;
  position: fixed;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px 0 rgba(0,0,0,.25);
  padding: 0;
  z-index: 100;
 }
 
 #nav-side li {
  padding: 8px;
  font-size: 1.15rem;
 }

.nav-menu__btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  line-height: 50px;
  padding: 0 10px;
  cursor: default;
}

.nav-menu__btn:hover .fa-flask {
  transform: rotate(10deg);
  opacity: 1;
}

.nav__grow {
  align-items: center;
  display: flex;
  flex: 1 0 0;
}

.reveal {
  animation: down 0.5s ease;
  position: fixed;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px 0 rgba(0,0,0,.25);
}

@keyframes down { 0%{transform: translateY(-50px)} 100%{transform: translateY(0px)} }
@keyframes left { 0%{transform: translateX(50px)} 100%{transform: translateX(0px)} }

.item {
  display: flex;
  align-items: center;
  position: relative;
  vertical-align: middle;
  line-height: 1;
  padding: 0 0.6em;
  margin: 0 0.2em;
  color: #152429;
  opacity: 0.65;
}

a {
  color: #428bca;
  text-decoration:none;
  opacity: 0.8;
}

a:hover { opacity: 1; }

.featured-image-list { object-fit: cover; }

.icon { padding: 8px; }

.content-list {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
  font-size: 1.0625rem;
  z-index: 1;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 25px;
  height: 20px;
  margin: 15px;
  cursor: pointer;
}

.bar {
  width: 100%;
  height: 2px;
  background-color: #000;
  transition: transform 0.3s;
}

@media (max-width: 830px) {
  html, body {
    font-size: 14px; /* initialize font-size */
    line-height: 1.6rem;
   }

  .content {
    margin: 0 2vw;
    width: auto;
  }
  
  .desktop { display: none; }
  #nav-menu { display: none; }
  
  .nav-menu__btn { display: flex; }
  .hamburger-menu { display: flex; }

  /* 햄버거 버튼이 X 버튼으로 바뀌는 애니메이션 스타일 추가 */
  .hamburger-menu.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
  .hamburger-menu.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

.markdownx {
  width: 98vw;
  padding: 5px;
}

.markdownx-editor {
  width: 48vw;
  margin-left: 0;
  font-style: inherit;
  font-size: 17px;
  line-height: 1.6em;
}

.markdownx-preview {
  float: right;
  width: 48vw;
  margin-right: 0;
  border: 0.5px solid;
  border-color: #36A893;
  font-style: inherit;
}

.profile-photo {
  float: left;
  margin: 10px 30px 10px 10px;
  padding: 0;
  width: 100px;
  height: 100px;
}

.profile-photo img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans KR',-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;
  text-decoration: none;
  font-weight: 500;
  color:#333;
}

h1 { font-size: 1.625rem; line-height: 2.125rem;}
h2 { font-size: 1.5rem; line-height: 2rem;}
h3 { font-size: 1.375rem; line-height: 1.875rem;}
h4 { font-size: 1.25rem; line-height: 1.625rem;}
h5 { font-size: 1.125rem; line-height: 1.5rem;}
h6 { font-size: 1.125rem; line-height: 1.5rem;}

b, strong { font-weight: 500;}

.hl {
  background-color: #fff3b8;
  background-image: linear-gradient(to right, #ffe359 0%, #fff3b8 100%);
}

.img-TOC {
  width: 250px;
}

.img-TOC:hover {
  width: min(94vmin, 500px);
  transition: 1s;
  box-shadow: 1px 1px 20px #ccc;
}

code {
  font-family: Consolas, Menlo, Monaco, sans-serif;
  background-color: #eee;
  padding: 0.2em 0.3em 0 0.3em;
  border-radius: 0.4em;
  margin: 0;
  font-size: 0.9em;
  line-height: 1.3rem;
}

.code-label {
  display: inline-block;
  background-color: #435667;
  color: #eee;
  margin: 1em 0 0 0;
  padding: 0 0.75em;
  border-radius: 0.4em 0.4em 0 0;
  font-family: Consolas, Menlo, Monaco, sans-serif;
  font-size: 0.8em;
}

pre {
  border: none;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
}

pre code { border-radius: 0 0.4em 0.4em 0.4em; }

.hljs { margin-bottom: 2em; }

#disqus_thread { margin-top: 15vh; }

.paragraph-block {
  margin: 40px 0 50px 0;
}
