* {
  box-sizing: border-box;
}

/* reset CSS */
table {
  font-size: 100%;
}
/* end reset CSS */

body {
  font-family: 'lucida grande', 'lucida sans unicode', lucida, helvetica,
    'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
  font-size: 18px;
}

body.mobile {
  font-size: 30px;
}

p,
li {
  line-height: 1.8;
}

h1 {
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Helvetica, STKaiti,
    SimSun, serif;
}

h2 {
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Helvetica, STKaiti,
    SimSun, serif;
  margin-bottom: 60px;
  margin-bottom: 40px;
  padding: 5px;
  border-bottom: 2px LightGrey solid;
  width: 98%;
  line-height: 150%;
  color: #666666;
}

h3 {
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Helvetica, STKaiti,
    SimSun, serif;
  margin-top: 40px;
  margin-bottom: 30px;
  border-bottom: 1px LightGrey solid;
  width: 98%;
  line-height: 150%;
  color: #666666;
}

h4 {
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Helvetica, STKaiti,
    SimSun, serif;
  margin-top: 40px;
  margin-bottom: 30px;
  border-bottom: 1px LightGrey solid;
  width: 98%;
  line-height: 150%;
  color: #666666;
}

.box {
  padding: 2% 8% 5% 8%;
  border: 1px solid LightGrey;
}

li {
  margin-left: 10px;
}

blockquote {
  border-left: 4px lightgrey solid;
  padding-left: 5px;
  margin-left: 20px;
}

pre {
  font-family: Inconsolata, Consolas, 'DEJA VU SANS MONO', 'DROID SANS MONO',
    Proggy, monospace;
  font-size: 80%;
  background-color: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 5px;
  line-height: 1.3;

  display: block;
  width: 100%;
  overflow: auto;
}

code {
  font-family: Inconsolata, Consolas, 'DEJA VU SANS MONO', 'DROID SANS MONO',
    Proggy, monospace;
}

a {
  text-decoration: none;
  cursor: crosshair;
}

/*
a:hover {
  background-color: LightGrey;
}
*/

img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  box-shadow: 0 0 10px #555;
  border-radius: 6px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  margin-bottom: 10px;
  -webkit-box-shadow: 0 0 10px #555;
}

img.displayed {
  text-align: center;
  display: block;
}

hr {
  color: LightGrey;
}

p.notice {
  color: #aa4433;
  font-size: 14px;
}

div.tweet p {
  font-size: 16px;
  border: 1px solid #aaa;
  border-left: 10px solid #f28500;
  padding: 2px 0.5em 2px 0.5em;
  margin-bottom: 20px;
  background-color: #fbfbfb;
}

div.tweet i {
  color: brown;
  font-size: 14px;
  font-style: normal;
  border: 1px solid #aaa;
  margin-right: 0.5em;
  padding: 0px 2px;
}

div.outer {
  margin: 2% 5% 2% 5%;
}

body.mobile div.outer {
  margin: 2% 0% 2% 0%;
}

div.inner {
  margin: 0% 14%;
  padding: 2% 8% 4% 8%;
  border: 1px solid LightGrey;
  background-color: white;
}

body.mobile div.inner {
  margin: 0;
  padding: 2% 4% 4% 4%;
}

div.ad-banner {
  margin: 0% 14%;
}

body.mobile div.ad-banner {
  margin: 0;
}

.side-ad.mobile {
  display: none;
}

body.mobile .side-btn {
  display: none;
}

.side-btn {
  position: fixed;
  -ms-transform: translate(calc(-6vw - 100%), 0);
  -webkit-transform: translate(calc(-6vw - 100%), 0);
  transform: translate(calc(-6vw - 100%), 0);
  top: 30vh;
}
.side-btn a {
  display: block;
  color: #555;
}

.back {
  -ms-transform: rotate(7deg);
  -webkit-transform: rotate(7deg);
  transform: rotate(7deg);
}
.side-btn a:hover {
  -ms-transform: rotate(-7deg);
  -webkit-transform: rotate(-7deg);
  transform: rotate(-7deg);
  color: black;
}

.sharelinks {
  text-align: right;
}

.sharelinks li {
  text-align: center;
  vertical-align: middle;
  list-style-type: none;
  display: inline;
}

.sharelinks li a:link {
  color: black;
}

.sharelinks li a:visited {
  color: black;
}

.sharelinks lia:hover {
  color: black;
  background-color: white;
}

.sharelinks li a:active {
  color: black;
}
