@import url("https://fonts.googleapis.com/css?family=Merriweather:400,400i,700,700i");

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #323235;
  -webkit-font-smoothing: antialiased;
}

#content {
  padding: 10px 20px;
  max-width: 850px;
  margin: 10px auto;
  font-size: 16px;
  text-align: justify;
  line-height: 1.8;
  border-radius: 5px;
  background-color: #fffff0;
  box-shadow: 0 0 10px #000, 0 0 0 1px #000;
  font-family: "Merriweather", Georgia, "Times New Roman", Times, serif;
}

#content img {
  width: 100%;
}

@media (max-width: 925px) {
  #content {
    margin: 5px;
    max-width: auto;
  }
}

main {
  min-height: 500px;
  padding: 0 10px;
}

p + br{
  display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #555;
  padding: 10px;
  margin: 0;
  text-align: center;
  line-height: normal;
}

h1 {
  color: #333336;
  font-weight: 300;
  margin-bottom: 15px;
}

h1:after {
  content: "-";
  margin: 10px 30px;
  height: 2px;
  border-radius: 50%;
  background: #444;
  display: block;
  color: transparent;
}

.link-group {
  padding: 10px;
  margin: 15px 0;
  gap: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #dee2ef;
  border: 1px solid #dde;
}

.link-group .btn {
  color: #333;
  font-family: sans-serif;
  font-size: 18px;
  font-weight: Arial, 600;
  display: inline-block;
  width: 145px;
  padding: 5px;
  text-align: center;
  background: #f5f5f5;
  box-shadow: 1px 1px 2px #aac, 0 0 0 1px #ccc;
  border-radius: 5px;
}

.link-group .toc {
  cursor: pointer;
  color: #323235;
  width: 100%;
  max-width: 350px;
  padding: 8px 12px;
  border: none;
  outline: none;
  border-radius: 4px;
  box-shadow: 1px 1px 2px #aac, 0 0 0 1px #ccc;
}

.link-group .btn:hover,
.link-group .toc:hover {
  background: #ececef;
}

.link-group .btn:active {
  box-shadow: 0 0 2px #dee2ef inset, 0 0 0 1px #ccc;
}

.link-group a {
  color: #39f;
  text-decoration: none;
}

.link-group a[href="#"],
.link-group a[href="#"]:hover,
.link-group a[href="#"]:active {
  color: #888;
  background: #eee;
  box-shadow: 0 0 0 1px #ddd;
}

div#readpos {
  border-radius: 10px;
  font-weight: bold;
  font-family: monospace;
  color: #770;
  font-size: 14px;
  padding: 5px 10px;
  background: white;
  box-shadow: 0 0 10px #333, 0 0 0 1px #dde;
  position: fixed;
  bottom: 10px;
  right: 10px;
  user-select: none;
  -webkit-user-drag: none;
  /* min-width: 100px;
    text-align: right; */
}

@media print {
  #content {
    margin: 0;
    max-width: none;
    box-shadow: none;
  }
  .link-group {
    display: none;
  }
}
