:root {
  --main-color: red;
}

body {
  min-height: 100vh; /* 防止页面内容过少，导致footer不在视窗底部。 */
  display: flex;
  flex-direction: column;
  background-color:honeydew;
  margin: 0; /* default is 8px */
}

header, footer {
  background-color:rgba(240, 255, 240, 0.5);  /* 设置背景，避免透明遮挡文字 */
  backdrop-filter: blur(1rem);
  box-shadow: 0rem 0rem .1rem rgb(122, 177, 167);
}

header {
  position: sticky;
  top: 0px;
  height: 60px;
  z-index: 1000; /* 提高层级，防止被其他元素遮挡 */

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

#header-container {
  background-color: rgba(137, 43, 226, 0);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

  flex: 1;
  max-width: 55rem;
  height: 100%;
}

nav {
  flex: 1;
  display: flex;
}

nav ul{
  list-style-type: none;
  padding: 0rem; /* <ul> default padding-left: 40 */
  margin: 0rem; /* <ul> default margin-top and margin-bottom: 16 */

  display: flex;
}

nav li {
  margin: .5rem;
  padding: .3rem;
  /* background-color: red;
  border-radius: .3rem; */
}

nav a {
  text-decoration: underline dotted black;
  color: black;
  font-size: 1.5rem;
  font-weight: bold;
}
.search-bar-container {
  background-color: rgba(0, 0, 255, 0);
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 10rem;
  border-radius: 1.5rem;
  height: 2rem;
  border: .1rem solid black;
}
.search-bar-container:focus-within {
  border: .1rem solid rgb(13, 255, 0);
  box-shadow: 0rem 0rem .5rem rgb(13, 255, 0);
}
.search-bar-container i {
  font-size: 1.5rem;
  margin: .2rem;
}
#search-form {
  /* width: 100%; */
  min-width: 0;
  flex: 1;
  display: flex;
  margin-right: .8rem;
}
#search-form input {
  font-size: 1rem;
  background-color: rgba(165, 42, 42, 0);
  /* width: 100%; */
  flex: 1;
  min-width: 0;
  border: 0;
}
#search-form input:focus {
  outline: none;
}

main {
  flex: 1;
  margin: 8px;
  width: 100%;
  max-width: 50rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
}

.post-container {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: top;
  max-width: 50rem;

}

.post-container .body {
  align-self: flex-start;
  margin: 2rem;
}

.blog-list {
  align-self: flex-start;
}

footer {
  display: flex;
  justify-content: center;
}

.richtext-image {
  max-width: 100%;
  height: auto;
}

.blog-list .blog-title a {
    text-decoration: underline dotted black;
  color: black;
}

.jot-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;

}
.jot-container {
  margin: 1rem;
  padding: .5rem;
  min-width: 5rem;
  max-width: 20rem;
  min-height: 10rem;
  /* max-height: 30rem; */
  background-color:burlywood;
  display: flex;
  flex-direction: column;

  box-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.1), /* 模拟厚度的右下角深色边缘 */
        /* 第二层阴影：模拟便签纸下方投射的、较远的阴影 */
        0 10px 20px rgba(0, 0, 0, 0.2), /* 较宽较模糊的阴影 */
        /* 第三层阴影：模拟便签纸一角“翘起”的阴影 */
        0 30px 60px rgba(0, 0, 0, 0.1); /* 更宽更模糊，模拟翘起后的下方阴影 */
}
.jot-body {
  background-color: rgba(0, 255, 255, 0);
  margin: .5em;
}
.jot-images {
  background-color: rgba(137, 43, 226, 0);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
}
.jot-image {
  background-color: rgba(226, 101, 43, 0);
  margin: .2rem;
  box-shadow: 0 0 .5rem rgb(237, 237, 100);
}