/* Box Model */

*,
*:before,
*:after {
  box-sizing: border-box;
}

/* Font Settings for Multilingual Support */
html {
  font-family: "Times New Roman", Times, "Microsoft YaHei", "SimSun", serif;
}

body {
  font-family: inherit;
  background: #202024;
}

/* Basic */

@media screen and (max-width: 480px) {
  html,
  body {
    min-width: 320px;
  }
}

/* Type */

a {
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-bottom: 1px dotted;
  outline: 0;
}

a:hover {
  color: #fff;
  border: none;
}

p {
  color: #fff;
  margin: 0 0 2em 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #fff;
  font-weight: 400;
  line-height: 1.5;
  margin: 1em 0;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  color: inherit;
  text-decoration: none;
}

h2 {
  font-size: 1.75em;
}

h3 {
  font-size: 1.35em;
}

h4 {
  font-size: 1.1em;
}

h5 {
  font-size: 0.9em;
}

h6 {
  font-size: 0.7em;
}

hr {
  border: 0;
  border-bottom: solid 1px rgba(144, 144, 144, 0.25);
  margin: 2em 0;
}
/* Section/Article */

header p {
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  margin: 0 0 1.5em 0;
}

header h2 + p {
  font-size: 1.25em;
  margin-top: -1em;
}

header h3 + p {
  font-size: 1.1em;
  margin-top: -0.8em;
}

header h4 + p,
header h5 + p,
header h6 + p {
  font-size: 0.9em;
  margin-top: -0.6em;
}

/* Box */

.thumbnails {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}

.thumbnails .box {
  margin: 0 1em 2em 1em;
  width: 30%;
}

@media screen and (max-width: 1280px) {
  .thumbnails .box {
    width: 45%;
  }
}

@media screen and (max-width: 736px) {
  .thumbnails .box {
    width: 100%;
  }
}

/* Box */

.box {
  border-radius: 4px;
  margin-bottom: 2em;
  background: #2c2c32;
  text-align: center;
}

.box > :last-child,
.box > :last-child > :last-child,
.box > :last-child > :last-child > :last-child {
  margin-bottom: 0;
}

.box .image.fit {
  margin: 0;
}

.box .image img {
  border-radius: 4px 4px 0 0;
}

.box .inner {
  padding: 1.5em;
  width: 100% !important;
}

@media screen and (max-width: 480px) {
  .box .inner {
    padding: 1em;
  }
}

/* Image */

.image {
  border-radius: 4px;
  border: 0;
  display: inline-block;
  position: relative;
}

.image img {
  border-radius: 4px;
  display: block;
}

.image.left,
.image.right {
  max-width: 40%;
}

.image.left img,
.image.right img {
  width: 100%;
  height: auto;
}

.image.left {
  float: left;
  padding: 0 1.5em 1em 0;
  top: 0.25em;
}

.image.right {
  float: right;
  padding: 0 0 1em 1.5em;
  top: 0.25em;
}

.image.fit {
  display: block;
  margin: 0 0 2em 0;
  width: 100%;
}

.image.fit img {
  width: 100%;
  height: auto;
}

.image.main {
  display: block;
  margin: 0 0 3em 0;
  width: 100%;
}

.image.main img {
  width: 100%;
  height: auto;
}

/* Poptrox */

.poptrox-popup {
  box-sizing: content-box;
  background: #000;
  box-shadow: 0 0.5em 3em 0 rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  padding: 2em;
  overflow: hidden;
}

@media screen and (max-width: 736px) {
  .poptrox-popup {
    padding: 0;
  }
}

/* Banner */

#banner {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 8em 4em 6em 4em;
  min-height: 70vh;
  background-image: url("../img/banner.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-top: 0;
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* WebP support for banner */
@supports (
  background-image:
    url("data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=")
) {
  #banner {
    background-image: url("../img/banner.webp");
  }
}

#banner .inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

#banner h1 {
  color: #fff;
  font-size: 5em;
  font-weight: 400;
  margin: 0;
}

@media screen and (max-width: 980px) {
  #banner h1 {
    font-size: 5em;
  }
}

@media screen and (max-width: 736px) {
  #banner h1 {
    font-size: 3em;
  }
}

#banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.5em;
  font-weight: 300;
}

@media screen and (max-width: 980px) {
  #banner p {
    font-size: 1.5em;
  }
}

@media screen and (max-width: 480px) {
  #banner p {
    font-size: 1.25em;
  }
}

#banner a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-bottom: 1px dotted;
}

#banner a:hover {
  color: #fff;
  border: none;
}

#banner video {
  transform: translateX(50%) translateY(50%);
  position: absolute;
  bottom: 50%;
  right: 50%;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  overflow: hidden;
}

#banner:before {
  transition: opacity 3s ease;
  transition-delay: 1s;
  content: "";
  background-color: #42424f;
  display: block;
  height: 100%;
  left: 0;
  opacity: 0.45;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

@media screen and (max-width: 1280px) {
  #banner video {
    display: none;
  }
}

@media screen and (max-width: 980px) {
  #banner br {
    display: none;
  }
}

@media screen and (max-width: 736px) {
  #banner {
    min-height: 0;
    padding: 6em 2em 4em 2em;
  }

  #banner br {
    display: none;
  }
}

/* Main */

#main {
  padding: 4em 0 2em 0;
}

@media screen and (max-width: 736px) {
  #main {
    padding: 3em 0 1em 0;
  }
}

#main .inner {
  width: 90%;
  max-width: 80em;
  margin: 0 auto;
}

@media screen and (max-width: 480px) {
  #main .inner {
    width: 95%;
  }
}

/* Footer */

#footer {
  padding: 4em 0 2em 0;
  background-color: #1b1b1f;
  text-align: justify;
}

#footer h2 {
  text-align: center;
}

.inner {
  width: 50%;
  margin: 0 auto;
}

@media screen and (max-width: 980px) {
  .inner {
    width: 75%;
  }
}

@media screen and (max-width: 480px) {
  .inner {
    width: 90%;
  }
}

#footer .copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9em;
  margin: 0 0 2em 0;
  padding: 0;
  text-align: center;
}

@media screen and (max-width: 736px) {
  #footer {
    padding: 3em 0 1em 0;
  }
}
