/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

body {
  background-color: #000000;
  background-image: url('../images/bg_forest.jpg');
	background-position: top;
  font-size: 18px;
  font-family: "Palatino Linotype", Palatino, Baskerville, "Baskerville Old Face", Garamond, serif;
  margin: 0;
}

p {
  line-height: 1.6em; /*I find the default HTML line-height tends to be a bit claustrophobic for main text*/
  letter-spacing: 2px; /* 所有段落字间距 1px */
}
#content li {
  line-height: 1.6em; /*I find the default HTML line-height tends to be a bit claustrophobic for main text*/
}

img {
  max-width: 100%;
  height: auto;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
a img {
  vertical-align: text-bottom;
}
.mood {
  display: flex;
  align-items: center; /* 让图片和文字垂直居中对齐 */
  gap: 5px; /* 图标和文字间距 */
}
.right {
  float: right;
  margin-left: 1em;
}
.left {
  float: left;
  margin-right: 1em;
}
.center {
  display: block;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}
@media only screen and (min-width: 600px) {
  .small {
    max-width: 60%;
    height: auto;
  }
}
.caption {
  margin-top: 0;
  font-size: 0.9em;
  font-style: italic;
}

a:hover { 
  background-color: #eaeddc;
}

/*#CONTAINER is the rectangle that has contains everything but the background!*/
#container {
  margin: 3em auto;
  width: 90%;
	max-width: 700px;
	background-color: white;
  color: #000000; 
  outline-color: LightSlateGray;
  outline-style: ridge;
  outline-width: 6px;
  outline-offset: 0;
}

#content {
  padding: 10px 5% 20px 5%;
}


/*HEADER STYLE*/
#header {
  background-color: Black;
  padding: 0 5%;
  border-color: LightSlateGray;
  border-style: ridge;
  border-width: 0 0 6px 0;
}
#header ul {
  list-style-type: none;
  padding: 0.5em 0;
  margin: 0;
}
#header li {
  font-size: 1.2em;
  display: inline-block;
  margin-right: 1.5em;
  margin-bottom: 0.2em;
  margin-top: 0.2em;
}
#header li a {
  color: white;
  text-decoration: none;
  background-color: inherit;
}
#header li a:hover {
  text-decoration: underline;
  background-color: rgba(245, 75, 184, 0.5);
}

/*POST LIST STYLE*/
#postlistdiv ul {
  font-size: 1.2em;
  padding: 0;
  list-style-type: none;
}
#recentpostlistdiv ul {
  font-size: 1.2em;
  padding: 0;
  list-style-type: none;
}
.moreposts {
  font-size: 0.8em;
  margin-top: 0.2em;
}

/*NEXT AND PREVIOUS LINKS STYLE*/
#nextprev {
  text-align: center;
  margin-top: 1.4em;
}

/*DISQUS STYLE*/
#disqus_thread {
  margin-top: 1.6em;
}

/*FOOTER STYLE*/
#footer {
  font-family: "Bitcount Grid Double", system-ui;
  font-size: 0.8em;
  letter-spacing: 5px;
  padding: 0 5% 10px 5%;
}
@media (max-width: 600px) {
  .left {
    float: none;          /* 取消浮动 */
    display: block;
    margin: 0 auto 15px;  /* 居中显示图片 */
  }
  .small {
    max-width: 100%;      /* 小屏幕时自动缩放图片 */
  }
}
.column {
  float: left;
  width: 50%;
  padding: 0px;
}

/* Clear floats after image containers */
.row::after {
  content: "";
  clear: both;
  display: table;
}
.icon {
  width: 32px;       /* 固定宽度 */
  height: auto;      /* 高度自动按比例缩放 */
  vertical-align: middle;
}