.post {
  border-radius: 20px;
  width: 900px;
  min-width: 0px;
  background-color: var(--post-background);
  margin: 20px;
  margin-left: 0px;
  color: var(--text-color);
  box-shadow: 0px 4px 12px #00000014;
  padding: 60px;
  overflow-x: hidden;
}

.post-title {
  font-size: 2.5rem;
  line-height: 1.5;
  /* margin-top: 0.4rem; */
  margin-bottom: 1rem;
}

.post-header > .info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-size: 1rem;
}

.post-dir {
  color: var(--text-highlight-color);
  font-weight: bold;
  cursor: pointer;
}
.post-dir:hover {
  text-decoration: underline;
}
.post-dir:hover::after {
  content: "OPEN";
  position: absolute;
  margin-left: 5px;
  padding: 3px;
  border-radius: 5px;
  font-size: 14px;
  color: #fff;
  background-color: rgba(100, 148, 237, 0.4);
}
.post-date {
  color: lightgray;
}
.post-hyperlink {
  background-color: rgba(142, 142, 150, 0.07);
  border-radius: 10px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 1rem;
  margin-bottom: 4rem;
}

.post-hyperlink > li {
  line-height: 1.5;
  list-style-position: inside;
}
.post-hyperlink a {
  text-decoration: none;
  color: inherit;
}
.post-hyperlink a:hover {
  /* color: var(--text-highlight-color); */
  text-decoration: underline;
}

.post-content {
  counter-reset: index;
}
.post-content > * {
  margin: 1rem 0;
}

/*post content*/
.post-content .post-link {
  color: var(--text-highlight-color);
  font-weight: bold;
  text-decoration: none;
}
.post-content .post-link:hover {
  text-decoration: underline;
}
.post-content a {
  font-weight: bold;
}
.post-content > h1 {
  font-size: 2.25rem;
  margin-top: 2em;
  /* margin-bottom: 0.5em; */
  border-bottom: solid 2px #eee;
  line-height: 1.2;
  padding-bottom: 5px;
}

/* .post-content > h1::before {
  counter-increment: index;
  content: counter(index) " ";
  color: var(--line-color);
  font-size: 1.1em;
} */

.post-content h2 {
  font-size: 1.75rem;
  margin-top: 1.5rem;
  /* margin-bottom: 0.75rem; */
  line-height: 1.3;
}

.post-content h3 {
  font-size: 1.25rem;
  margin-top: 1.125rem;
  /* margin-bottom: 0.5rem; */
  line-height: 1.4;
}

.post-content p {
  font-size: 1rem;
  /* margin: 0.75rem 0; */
  line-height: 1.7;
}

.post-content ol {
  list-style-position: inside;
  padding-left: 0.5rem;
  /* list-style: none; */
  /* counter-reset: orderedlist; */
}

/* .post-content ol > li::before {
  counter-increment: orderedlist;
  content: counter(orderedlist);
  font-weight: bold;
  font-family: var(--code-font);
  color:var(--text-highlight-color);
  padding-right: 0.5rem;
} */

.post-content ul {
  margin-left: 20px;
  padding-left: 0.5rem;
  list-style-type: disc;
  font-size: 1rem;
}

.post-content li {
  margin: 0.25em 0;
  line-height: 1.5;
}

.post-content hr {
  height: 1px;
  background-color: #f0f0f0;
  border: none;
}

.post-content .box {
  width: 100%;
  background-color: inherit;
  border-radius: 15px;
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
  margin: 30px 0;
  padding: 1rem;
  transition: all 0.3s ease-in-out;
}
.post-content .box:hover {
  transform: scale(1.05);
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
}
.post-content .box > :is(ul, ol) {
  list-style-position: inside;
}

.post-content .box > * {
  margin: 10px;
}

table {
  display: table;
  width: 100%;
  border: none;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead {
  display: table-header-group;
  font-size: 1em;
  border-spacing: 0;
}
.post-content th {
  background-color: var(--background);
}
.post-content :is(td, th) {
  padding: 2px;
  border: 1px solid var(--line-color);
}
/* tbody>tr:nth-child(2n+1){background-color: rgb(247, 247, 247);} */

/* .post-content :is(td, th):hover {background-color: #0011;} */

.post-content blockquote {
  background-color: rgb(247, 247, 247);
  background-color: var(--background);
  border-left: solid 4px gray;
  padding: 10px;
}
.post-content blockquote > p {
  margin: 0px;
}

.post-content .highlighter-rouge * {
  font-family: var(--code-font);
  font-size: 14px;
}

.post-content .highlighter-rouge {
  background-color: #303030;
  font-family: var(--code-font);
  font-size: 0.9em;
  border-radius: 10px;
  padding: 15px;
  line-height: 20px;
  overflow-x: scroll;
}
.post-content .highlighter-rouge::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.post-content .language-plaintext {
  padding: 1px 3px;
  /* line-height:14px; */
  font-family: var(--base-font);
  background-color: #f4f4f4;
  color: var(--text-highlight-color)
    /*lightcoral darkorange crimson cornflowerblue*/;
  /* color:white; */
  font-weight: bold;
  border-radius: 5px;
}

/*code highlight*/
code .c1 {
  color: darkgray;
  font-style: italic; /*rgb(145, 184, 145);  darkseagreen*/
}
/* code :is(.kd,.k,.nt){font-weight: bold;} */
code :is(.dl, .s1, .s2, .sr, .se, .s) {
  color: var(--text-highlight-color); /*chocolate*/
}
code .p {
  color: dimgray;
}

code {
  color: white;
}
code :is(.cm, .c1) {
  color: darkgray;
  font-style: italic;
}
code :is(.kd, .k, .nt, .kc) {
  color: cornflowerblue;
}
code :is(.dl, .s1, .s2, .sr, .se, .s, .sh) {
  color: lightsalmon;
}
code .p {
  color: violet;
}
code :is(.nf, .na, .nc) {
  color: khaki;
}
code :is(.mi, .nd, .nx, .nb, .n) {
  color: lightskyblue;
}

.gradient-box {
  /* background: linear-gradient(135deg, #CCC, #FFF, #CCC);
    background-size: 200% 200%;
    animation: diagonal-move 2s linear infinite; */
  animation: opacity-flow 0.7s linear infinite;
}

@keyframes diagonal-move {
  0% {
    background-position: 100% 100%;
  }
  50% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

@keyframes opacity-flow {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

@keyframes slideDownFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 애니메이션 적용 */
.render-animation {
  opacity: 0; /* 애니메이션 전에 투명하게 설정 */
  animation: slideDownFadeIn 0.5s ease-out forwards;
}
