/* Post Info - contains title and datestamp */
.post-info {
    text-align: center;
    margin: 0;
    padding: 0;
}
.post-info h1 {
    font-size: 1.4rem;
    color: #ff66cc;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}
.post-info .post-date {
    font-size: 1.4rem;
    color: #ff66cc;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

footer {
  margin-top: auto; /* pushes footer to bottom */
}
.footer-userbars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* center rows if they don't fill width */
  line-height: 0;
}
.footer-userbars .userbar {
  margin: 0 !important;
  flex: 0 0 auto;   /* do NOT grow or shrink */
  width: 350px;     /* exact original width */
  height: 19px;     /* exact original height */
  display: block;
}

hr {
    border: none;          /* remove default border */
    height: 1px;           /* thickness */
    background-color: #3d60bf; /* desired color */
}

html {
	font-size: 16px
}

html, body {
  height: 100%;
  margin: 0;
}



body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #000000;
    /*color: #11ddee;*/
	color: #8edbdf;
}

blockquote {
    background: #000000;
}

a {
    color: #b6e354;
    /*color: #3d60bf;*/
}

header {
	background: #000000;
	color: #9e6ffe;
    border-bottom: 2px dotted #3b60bf;
	margin-bottom: 0.3rem;
}

.article-meta, .menu a {
    display: none;
}

table {
    margin: auto;
   	border-top: 1px solid #666;
	border-bottom: 1px solid #666;
}
table thead th { border-bottom: 1px solid #666; }
th, td { padding: 5px; }
tr:nth-child(even) { background: #666 }


body {
  max-width: auto;
  padding: auto;
  line-height: 1.5em;
}

h1 {
  line-height: 1.5em;
  color: #9e6ffe;
}

h2 {
  color: #9e6ffe;
}

/* Table of Contents, if wanted

Add to yaml:

output:
  blogdown::html_page:
    toc: true

    */

#TableOfContents, #TOC {
  border: 1px solid #eee;
  border-radius: 5px;
}

/* Header and Footer */
.menu li { display: inline-block; }
.article-meta {
    display: none !important;
}
.terms { font-size: .9em; }
.menu, .article-meta, footer { text-align: center; }
.title { font-size: 1.1em; }
footer a { text-decoration: none; }

.pull-left {
    float: left
}
.pull-right {
    float: right
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Adjust background at your leisure! */
header {
    position: relative;
    width: 100%;
    height: 1.75rem;
    font-size: 1rem;
}

header ul,
header ol {
    margin: 0;
    padding: 0;
    list-style: none
}
header nav {
    padding: 0 0.5rem
}

header a {
    color: #9e6ffe;
    line-height 1rem;
    padding: 0 0.5rem
}
header a:hover,
header .current a {
    color: #9e6ffe;
}

/* Code Boxes */
pre {
  border: 2px solid #89cff0;
  padding: 1em;
  overflow-x: auto;
}
pre code { background: none; }

/* Images, tables, misc. */
img, iframe, video {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

main {
  hyphens: auto;
  max-width: auto;
  margin-left: 0px;
  margin-right: 0px;
  line-height: 1.25em;
  hyphens: auto;
  display: block;
  font-size: 1.1em;
}
main a {
  font-weight: bold;
}

blockquote {

  border-left: 5px solid #ccc;
  padding: 3px 1em 3px;
}

.content-wrapper {
  padding: 0px 12px 0px 12px;
}
#foxy {
  min-width: 40px;
  float: right;
  padding: 10px;
  display: block;
}


#table-of-contents {
}

/* Small devices, phones */
@media only screen and (min-width : 480px) {
  #foxy {
    min-width: 40px;
    float: center;
    padding: 10px 10px 10px 20px;
    display: block;
  }

}

/* 在大屏幕上应用特定样式 */
@media screen and (min-width: 768px) {
    #table-of-contents {
        position: fixed; /* 固定定位，使其悬浮在页面上 */
        top: 50%; /* 上边距为50% */
        right: 15px; /* 右边距为0，将其放在右侧 */
        transform: translateY(-50%); /* 使用transform来垂直居中 */
        background-color: #f0f0f0; /* 设置背景颜色 */
        padding: 10px; /* 添加一些内边距以增加可读性 */
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); /* 添加阴影效果 */
        width: 250px; /* 设置宽度 */
        max-height: 70vh; /* 设置最大高度为视口的70% */
        overflow-y: auto; /* 添加垂直滚动条 */
    }
}

/* Post list metadata */
.post-list-date {
    color: #ddddff;
}

.post-pinned {
    color: #ff66cc;
}
