:root {
    --color: #213456; /*mainBlue*/
    --color-dark: #1f2f52; /*darkBlue*/
    --color-light: #ccc; /*sand*/
    --color-lite: #F9F9F9;
}

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    line-height: 1.8;
    letter-spacing: .3px;
}
ul{
    padding-inline-start: 20px;
}

th, td {
    border: 1px solid #f4f4f4;
    padding: 8px 12px;
}

.post-content h1{
    margin-top: 40px;
    border-bottom: 0.1px solid #b7ccf1;
}

.post-content h2 {
    margin-top: 40px;
    border-bottom: 0.1px solid #b7ccf1;
    font-weight: 600;
  }
  
.post-toc {
    position: fixed;
    overflow-y: scroll;
    z-index: 1;
    margin-left: 768px;
    margin-right:1.5em;
    line-height: 1.5;
    max-height: 90%;
    padding: 0px 1em;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    float:right;
    z-index: 1;
    color: #2c5090;
    border-bottom:2px solid #21345685;
    border-right:2px solid #21345685;
    background-color: #b7ccf14f;
    border-radius: 5px;

}
.post-toc-title {
    color:#2c5090;
    font-size: .95rem;
    margin: 0 .25remrem;
    font-weight: 800;
    text-transform: uppercase;
}

.toc-nav{
    position: -webkit-sticky!important;
    position: sticky!important;
    padding-top: 1.rem;
    padding-bottom: 1.5rem;
    padding-right:.5rem;
    font-size: .875rem;
    margin-top: 10px;
    margin-left: 10px;
}

.toc-nav ul {
    color:#2c5090;
    list-style: circle;
    margin: 0;
    padding: 0;
}
.toc-nav li{
    margin-left:.4rem;
    padding-bottom:5px;
}

.white .post-toc a{
    font-size:10;
    color:#2c5090;
    border-bottom:none;
}

table, th, td {
    border: 1px solid #dddddd;
    border-collapse: collapse;
    word-break:break-word
}

code {
    /* display: inline-block; */
    padding: 0 4px;
    margin: 0 4px;
    font-size: 90%;
    color: #2c5090;
    background-color: #b6dafda8;
    border-radius: 4px;
    word-wrap:break-word; 
}

#space {
    flex: auto;
}

blockquote {
    font-style: oblique;
    margin: 2em 0;
    padding-left: 20px;
    border-left: 4px solid var(--color-dark);
}

/***** Header and Footer *****/
header,footer {
    width:100%;
}

header {
    font-family: 'Oswald', sans-serif;
    position:sticky;
    position: -webkit-sticky;
    top:0px;
    z-index: 1;
    font-size:3.vmin;
    background: var(--color);
}


footer {
    font-size: .6rem;
    text-align: center;
    padding: 20px 0px;
    z-index: 0;
}

img[alt="Imgur"] {
    width: auto;
    max-width: 80%;
    display: block;
}
img[alt="thumbnail"]{
    width: 100%;
    /* max-width: 200px; */
    display: block;
}

.endlabel {
right: 0;
bottom: 0;
padding: 3px 0 0 3px;
}
.label, .endlabel {
font-size: 0.6em;
position: relative;
background-color:var(--color-light);
color: var(--color-dark);
line-height: 1em;
}

.breadcrumb {
    display: inline-flex !important;
    line-height: 2.4 !important;
    padding: 0px 0px 0px 0.875rem !important; 
    margin: 0 auto !important;
    -webkit-box-sizing: border-box !important;
    box-sizing: border-box !important;
    background: var(--color)  !important;
}
    
.breadcrumb a {
    color: var(--color-lite) !important;
    font-size:1.0rem !important;
    margin-left: .875rem !important;
    margin-top: auto !important;
    padding-left:.2rem !important;
    visibility: visible !important;
}
    
.breadcrumb h4 {
    margin: unset !important;
    text-indent: -1rem !important;
    font-size: 1rem !important; 
    line-height: 2.4 !important; 
    font-weight: bold !important; 
}
.menutime{
    display: inline-flex;
    line-height: 2.4;
    padding: 0px .875em;
    margin: 0 auto;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    float:right;
}
.menutime a{
    color: var(--color-lite) !important;
    font-size:1.0rem;
    margin-left: .5em;
    margin-top: auto;
    padding-left:.2rem;
}

/****************************/

/**** Background color by class name ****/

.grape {
background: var(--color);
color: var(--color-light);
}

.sand {
position: relative;
background: var(--color-light);
color: var(--color-dark);
}

.white {
position: relative;
background: #f9f9f9db;
color: var(--color-dark);
}

/***************************************/

/**** Position and size elements ****/
@keyframes blink{
0%{opacity: 1;}
100%{opacity: 0;}
}
@-webkit-keyframes blink {
0% { opacity: 1; }
50% { opacity: 1; }
50.01% { opacity: 0; }
100% { opacity: 0; }

}
@-moz-keyframes blink {
0% { opacity: 1; }
50% { opacity: 1; }
50.01% { opacity: 0; }
100% { opacity: 0; }
}
@-ms-keyframes blink {
0% { opacity: 1; }
50% { opacity: 1; }
50.01% { opacity: 0; }
100% { opacity: 0; }
}
@-o-keyframes blink {
0% { opacity: 1; }
50% { opacity: 1; }
50.01% { opacity: 0; }
100% { opacity: 0; }
}

main {
flex: 1;
display: flex;
flex-direction: column;
}
main .cursor{
animation: blink 1s linear infinite;
/* 其它浏览器兼容性前缀 */
-webkit-animation: blink 1s linear infinite;
-moz-animation: blink 1s linear infinite;
-ms-animation: blink 1s linear infinite;
-o-animation: blink 1s linear infinite;

}
#terms,#list{
    background:var(--color-light);
}

#about,#recent-posts,#post{
flex: auto;
display: flex;
}

#posts,#collections {
flex: auto;
display:table;
height: fit-content;
min-width: 100%;
}


#about,#collections {
font-family: 'PT Serif', serif;
text-align: center;
}
#aboutsImg {
position:relative;
padding: 1em 20px 1px;
margin: 0 auto;
width: 60%; 
text-align:right;
  }
.container {
  padding: 1em 1.5em 1em;
  margin: 0 auto;
  max-width: 800px;
  width: 100%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.recent-posts-container {
  padding: 1em 1.5em 1em;
  margin: 0 auto;
  max-width: 800px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box; 
}
.paperbg{
padding-top:2em;
padding-bottom:2em;
padding: 20px;
background: #f9f9f9db;
border-radius:5px;
}

.avatar {
margin: 32px auto 0;
padding-top: 1em;
width: 160px;
}

.avatar > img {
border-radius: 50%;
width: 100%
}
#slogan{
    margin: 24px auto 0;
    margin-bottom:2rem;
    width: 12rem;
    height:2rem;
    color: grey;
    background-color: #ffffff30;
    border-radius:8px;
    text-align:left;
    padding-left:10px;
    padding-right:10px;
    padding-top:10px;
    font-size:medium;
}
#wu-yi-lian{
margin: -12px auto 0;
font-size:.875rem;
}

/***********************************/
/**** Posts div styling ****/
#posts li{
list-style-type:none;
}

#posts li p {
height: 100%;
font-size: .80em;
margin-top: .25rem;
margin-bottom: 0rem;
}

#posts li a {
font-weight:bold;
font-size: 1.5em;
}

#posts ul p{
display:block;
max-width:72vw;
overflow:hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3
}

/*********************************/

.grape li,
.sand li {
margin-top: 1.25rem;
}

#groups {
display: flex;
}

#groups li {
margin: 1rem;
}

a {
text-decoration: none;
}

.grape a {
color: var(--color-lite);
}

.grape a:hover {
color: var(--color-light) !important;
text-decoration: none !important;
}

.sand a {
color: var(--color-dark);
font-weight: bold;
}

.sand a:hover {
color: var(--color);
}
/****************************/

/***** Content Styling *****/

#title {
text-align: left;
padding-bottom: 16px;
}

#title time {
color: var(--color);
}

#title h1 {
margin: 0px;
}

.white a {
color: var(--color-dark);
border-bottom: dotted 1.5px var(--color-dark);
overflow-wrap:break-word;
}

.white a:hover {
    color: var(--color);
}

.terms-tags {
    margin: 10px 0;
}
.terms-link {
    display: inline-block;
    position: relative;
    margin: 5px 10px;
    word-wrap: break-word;
    transition-duration: 0.2s;
    transition-property: transform;
    transition-timing-function: ease-out;
}
.terms-count {
    display: inline-block;
    position: relative;
    top: -8px;
    right: -2px;
    
    font-size: 12px;
    }
  
    /* &:active,
    &:focus,
    &:hover {
          color: $theme-color;
          transform: scale(1.1);
        } */

.post-tag{
    margin:5px 0px;
}
.tag-link{
    padding: 2px 5px;
    margin-right: 10px;
    font-size: 90%;
    background-color: #cde5fc96;
    border-radius: 4px;
}
a.tag-link {
    border-bottom:none;
 }
img.aboutpic{
    width: 100%;
}
 .lst{
    display:contents;
  }
.sublime4wks{
    position: relative;
    width: 90%;
    padding: 0px 0px;
    margin-top: 5%;
    list-style: none;
    border-top: 25px solid #d1d1d1;
    border-bottom: 25px solid #d1d1d1;
    border-radius: 10px;
    background: #ededed;
    text-align:center;
}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: #0000007a;
  }
  
.sublime4wks:hover .overlay {
    opacity: 1;
}
  
.wks-name {
    color: white;
    font-size: 1.5em;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
}  

.sublime4lst {
    position: relative;
    width: 90%;
    padding: 0px 0px;
    margin-top: 5%;
    list-style: none;
    border-top: 25px solid #d1d1d1;
    border-radius: 10px;
    background: #ededed;
    color: var(--color); 
    font-family: 'Source Code Pro';
    font-weight: 200;
    font-size: 1.1em;
}
.sublime4lst a{
    color: black;
}
.sublime {
    position: relative;
    width: 60%;
    padding: 0px 0px;
    list-style: none;
    border-top: 25px solid #d1d1d1;
    border-radius: 10px;
    background: #ededed;
    color: #f1f1f1;
    font-family: 'Source Code Pro';
    font-weight: 200;
    font-size: 1.1em;
}
  
  .sublime li {
    min-height: 25px;
    line-height: 25px;
  }
  
  .sublime .buttons , .sublime4lst .buttons , .sublime4wks .buttons{
    min-height: 0;
    position: absolute;
    left:10px;
    top: -40px;
    border-radius: 100%;
    width: 13px;
    height: 13px;
    background-color: #ff5d5b;
    border: 1px solid #e64344;
  }
  
  .sublime .buttons:before , .sublime4lst .buttons:before , .sublime4wks .buttons:before {
    left: 20px;
    border: 1px solid #e3a041;
    background-color: #ffbc4c;
    position: absolute;
    content: "";
    width: 13px;
    height: 13px;
    border-radius: 100%;
    top: -1px;
  }
  
  .sublime .buttons:after , .sublime4lst .buttons:after , .sublime4wks .buttons:after {
    left: 40px;
    border: 1px solid #13ad46;
    background-color: #00c956;
    position: absolute;
    content: "";
    width: 13px;
    height: 13px;
    border-radius: 100%;
    top: -1px;
  }

  .sublime .tab {
    margin-left: 2%;
    list-style: none;
  }
  
  .sublime .blue {
    color: #66d9ef;
  }
  
  .sublime .purple {
    color: #8a7bff;
  }
  
  .sublime .red {
    color: #e92772;
  }
  
  .sublime .green {
    color: #a6e22d;
  }
  
  .sublime .orange {
    color: #fd9720;
  }
  
  .sublime .yellow {
    color: #e6db74;
  }
  
  .sublime .gray {
    color: #8f908a;
  }
  iframe{
      width: 100%;
      /* max-width: 768px; */
      background: black;
      border-radius: 0.5rem;
  }

  .MathJax_Display {
      height: 100%;
      overflow-x: scroll;
      overflow-y: hidden;
  }

  .instagram-media{
      max-width: 100% !important;
      min-width: 250px !important;
  }
