@font-face {
  font-family: LongCang;
  src: url(./LongCang-Regular.ttf);
}

img {
  max-width: 100%;
}

table {
  width: 100%;
}

table,
th,
td {
  padding: 5px;
}
:root {
  --global-text-color: rgb(80, 97, 109);
  --global-gray-color: #758a99;
  --table-header-bg: #312520;
  --whity-color: #fffbf0;
}
html,
body {
  margin: 0;
  padding: 0;
  border: none;
  background-color: #eedeb0;
  background-image: url(./imgs/bg.texture.a804782b.png);
}
body {
  font-size: 1.3em;
  color: var(--global-text-color);
  line-height: 1.4;
  text-align: justify;
  font-family: LongCang, "Times New Roman", Times, serif;
}
main {
  max-width: 42em;
  margin: 0 auto;
  padding: 0 1em;
}
header,
nav,
article,
footer {
  margin: 0 auto;
}
article {
  margin-top: 4em;
  margin-bottom: 4em;
  min-height: 400px;
}
footer {
  margin: 50px 0;
}
video {
  margin: 2em 0;
  border: 1px solid #ddd;
}

nav {
  font-size: 0.9em;
  font-style: italic;
  border-bottom: 1px solid #ddd;
  padding: 1em 0;
}
nav p {
  margin: 0;
}

/* Typography
-------------------------------------------------------- */

h1 {
  margin-top: 0;
  text-align: center;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bolder;
}

p {
  margin-top: 0;
  -webkit-hypens: auto;
  -moz-hypens: auto;
  hyphens: auto;
}
ul {
  list-style: square;
  padding-left: 1.2em;
}
ol {
  padding-left: 1.2em;
}
blockquote {
  padding-left: 0.8em;
  border-left: 6px solid var(--global-gray-color);
  position: relative;
  left: -1.5em;
}
pre {
  border-radius: 8px;
  overflow: auto;
  white-space: pre;
}
code {
  font-family: "Consolas", "Menlo", "Monaco", monospace, serif;
  font-size: 0.9em;
  background-color: transparent;
  line-height: 1.8em;
  display: inline;
  word-wrap: normal;
  color: var(--whity-color);
}
a {
  color: #4b5cc4;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a img {
  border: none;
}
h1 a,
h1 a:hover {
  color: var(--global-text-color);
  text-decoration: none;
  text-align: left;
}
hr {
  color: var(--global-gray-color);
  height: 1px;
  margin: 2em 0;
  border-top: solid 4px var(--global-gray-color);
  border-bottom: none;
  border-left: 0;
  border-right: 0;
}
p#heart {
  font-size: 2em;
  line-height: 1;
  text-align: center;
  color: #ccc;
}
.red {
  color: #9d2933;
}

table,
table tr th,
table tr td {
  border: 1px solid var(--global-gray-color);
}
table {
  border-collapse: collapse;
}
th {
  background-color: var(--table-header-bg);
  color: var(--whity-color);
}
/* Home Page
--------------------------- */

body#index li {
  margin-bottom: 1em;
}

/* iPad
-------------------------------------------------------- */
@media only screen and (max-device-width: 1024px) {
  body {
    font-size: 120%;
    line-height: 1.4;
  }
  #home-main {
    flex-direction: column;
  }
  #home-h1 {
    text-align: center !important;
  }
} /* @iPad */

/* iPhone
-------------------------------------------------------- */
@media only screen and (max-device-width: 480px) {
  body {
    text-align: left;
  }
  article,
  footer {
    width: auto;
  }
  article {
    padding: 0 10px;
  }
  #home-main {
    flex-direction: column;
  }
  #home-h1 {
    text-align: center !important;
  }
} /* @iPhone */
