/* updated by K from https://t.me/hihackers
 * on 2019/10/11
 * @Dalian, China 
 * */

html, body {
  overflow-x:hidden; width: 100%; margin: 0; padding: 0; /* 为 html 和 body 增加这一行属性，修复页面在安卓设备中左右轻微滑动的问题 */
  height: 100%;
}

#markdown-toc {
  padding: 0.7em 1.2em 0.7em 2.2em;  
  margin-left: 5%;
  margin-right: 5%;
}

code {
  margin: 1px 0;  
  display: inline-block;
  max-width: 95%;
  overflow: scroll;
  vertical-align: middle;
}

/* TABLE STYLE
========================================================================*/  
.table {
overflow-x: auto;
}

table {
  width: 100%; /*表格宽度*/
  max-width: 65em; /*表格最大宽度，避免表格过宽*/
  border: 1px solid #dedede; /*表格外边框设置*/
  margin: 10px 0; /*外边距*/
  border-collapse: collapse; /*使用单一线条的边框*/
  empty-cells: show; /*单元格无内容依旧绘制边框*/
}

table tbody tr:nth-child(2n) {
  background: rgba(158,188,226,0.12); 
}

table tr:hover {
  background: #efefef; 
}

table th {
  font-weight: bold; /*加粗*/
  text-align: center !important; /*内容居中，加上 !important 避免被 Markdown 样式覆盖*/
  background: rgba(158,188,226,0.2); /*背景色*/
  white-space: nowrap; /*表头内容强制在一行显示*/
  border: 1px solid #dedede;
}

table td {
  height: 35px; /*统一每一行的默认高度*/
  border: 1px solid #dedede; /*内部边框样式*/
  padding: 0 10px; /*内边距*/
}

table td:nth-child(1) {
  white-space: nowrap; 
}

.table-area {
  overflow: auto;
}

.footnotes-title {
  left: 10%;
}

/* ABOUT AUTHOR
========================================================================*/  
.aboutJason {
  position: relative;
  padding: 10px 5% 7px 5%;
  border: 1px dotted #ddd;
  display: inline-block;
  margin: 7px 5% 12px 5%;
}

.aboutJason .title{
  position: absolute;
  top: -1em;
  /* left: 39%; */
  line-height: 1.7em;
  padding: 0 1em;
  background-color: #fff;
}

.logo_pic { /* LOGO style */
  width: 100%;
  height: 58px;
  padding-top: 11px;
  display: block;
  text-align: center;
  background-color: #fff;
  border-bottom: #DDDDDD 1px solid;
}

.index_pic { /* home page picture style */
  width: 100%;
  height: auto;
  padding-top: 23px;
  padding-left: 5%;
  display: block;
}

.new { /* promotion post */
  margin-top: 4px;
  margin-left: 5%;
  margin-right: 5%;
  display: block;
}

/* DEFAULT MENU STYLE
========================================================================*/  
nav {
  height: 0;
}

#menuToggle {
  display: block;
  position: relative;
  top: -42px;
  left: 30px;
  
  z-index: 1;
  
  -webkit-user-select: none;
  user-select: none;
}

#menuToggle input {
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;
  
  cursor: pointer;
  
  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */
  
  -webkit-touch-callout: none;
}

/*
 * Just a quick hamburger
 */
#menuToggle span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  
  background: #AAA;
  border-radius: 3px;
  
  z-index: 1;
  
  transform-origin: 4px 0px;
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#menuToggle span:first-child {
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
  transform-origin: 0% 100%;
}

/* 
 * Transform all the slices of hamburger
 * into a crossmark.
 */
#menuToggle input:checked ~ span {
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: #232323;
}

/*
 * But let's hide the middle one.
 */
#menuToggle input:checked ~ span:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/*
 * Ohyeah and the last one should go the other direction
 */
#menuToggle input:checked ~ span:nth-last-child(2) {
  transform: rotate(-45deg) translate(0, -1px);
}

/*
 * Make this absolute positioned
 * at the top left of the screen
 */
#menu {
  position: absolute;
  width: auto;
  margin: -100px 0 0 -50px;
  padding: 50px;
  padding-top: 125px;
  
  background: #ededed;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */
  
  transform-origin: 0% 0%;
  transform: translate(-100%, 0);
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu li {
  padding: 4px 0;
  font-size: 1rem;
  border-bottom: solid 1px;
}

#menu .home {
  border-top: solid 1px;
}

/*
 * And let's slide it in from the left
 */
#menuToggle input:checked ~ ul {
  transform: none;
}
/* DEFAULT MENU STYLE: END
========================================================================*/  

.contents { width: 100%; }

.posts {
  padding-left: 5%;
  padding-right: 5%;
  padding-bottom: 10px;
}

#content li {
  list-style: square;
  margin-left: 3%;
  margin-right: 5%;
}

.page_contents {
  display: block;
  width: 100%;
}

.focus_essays, .focus_boxilai, .focus_python {
  display: none;
}

.focus_placeholder {
  display: none;
}

.page_contents p {
  padding-left: 5%;
  padding-right: 5%;
}

.canvas {
  margin-left: 5%;
}

.page_contents pre {
  margin-left: 5%;
  margin-right: 5%;
}

.page_contents h1, .page_contents h2, .page_contents h3, .page_contents h4 {
  padding-left: 5%;
  padding-right: 5%;
}

.page_contents img {
	max-width: 100%;
}

#post_info {
  padding: 15px 0 0 0px;
  border-top: #DDDDDD 1px dotted;
  color: #999999;
  width: 100%;
}

.p_info {
  width: 100%;
  padding-left: 5%;
  padding-right: 5%;
}

.page_posts {
  margin-left: 0px;
  padding-left: 0px;
  padding-bottom: 20px;
}

.page_posts li {
  padding-left: 5%;
  padding-right: 5%;
}

.footer {
  width: 100%;
  padding-left: 5%;
  display: block;
  color: #DDDDDD;
}

.pageNavi {
width: 90%;
margin-left: 5%;
}

blockquote {
  margin: 15px 0 15px 5%;
  border-left: 4px solid #DDD;
  color: #777;
}

#gitalk-container {
  width: 90%;
  margin-left: 5%;
}

.google_ad {
  text-align: center;
  display: block;
}

/* POSTER IN ABOUT.HTML */
.poster {
  position: absolute;
  width: 100%;
  overflow: hidden;
}
.poster img {
  width: auto;
  max-height: 100%;
  top: 0;
}

.password-and-button {
  text-align: center;
}
