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

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
  background: #15181B;
  color: #FFFFFF;
}

body.ja {
  font-family: 'Roboto', "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, メイリオ, Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", "ＭＳ ゴシック" , "MS Gothic", "Noto Sans CJK JP", TakaoPGothic, sans-serif;
  text-align: justify;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 500px;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(17, 20, 22, 0.5) 0%, rgba(0, 0, 0, 0) 10%, #15181B 100%),
    url(../images/bg-feature.png) no-repeat center center;
  background-size: cover;
}

h1, h2, h3 {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  margin: 0;
}

h1 {
  font-size: 40px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 20px;
}

a {
  color: #FFFFFF;
}

a:hover {
  color: rgba(255, 255, 255, 0.8);
}

a:visited {
  color: inherit;
  text-decoration: none;
}

p {
  font-size: 16px;
  line-height: 1.5em;
  margin: 1em 0 1.2em;
}

pre {
  white-space: pre-wrap;
  line-height: 1.5em;
  margin: 0.5em 0;
  text-align: left;
}

code {
  color: inherit;
}

.muted {
  color: rgba(255, 255, 255, 0.8);
}

.bold {
  font-weight: 600;
}

.notice {
  max-width: 600px;
  margin: 0 auto;
  padding: 1em 1.75em;
  border-radius: 10px;
  background-color: rgba(128, 60, 60, 0.29);
  font-size: 0.95em;
}

.notice a {
  text-decoration: none;
}

.notice a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 600px) {
  .notice { border-radius: 0; }
}

main {
  padding: 0 20px;
  overflow-x: hidden;
}

.container,
.navbar > .container-fluid {
  max-width: 900px;
  padding: 0 25px;
  margin: 0 auto;
}

.container.grid {
  padding: 0;
}

.row > div {
  margin-bottom: 20px;
}

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

.navbar-nav {
  margin-bottom: 0 !important;
}

.nav-link {
  line-height: 1.5em;
  display: inline-flex;
  align-self: left;
  font-size: 16px;
  font-weight: 500;
}

.nav-link:not(:last-child) {
  margin-right: 10px;
}

@media screen and (max-width: 767px) {
  .navbar {
    background-color: #212529 !important;
  }

  .navbar-collapse {
    margin-top: 10px;
  }
}

.navbar-dark .navbar-nav .nav-link {
  color: #FFF;
}

.navbar-dark .navbar-toggler {
  border: none;
  outline: none;
}

.dropdown-menu {
  transform: translate3d(0, 47px 0);
}

.card {
  border: none;
}

section {
  display: flex;
  flex-direction: column;
}

section#hero {
  margin: 80px auto;
  justify-content: center;
  align-items: center;
  text-align: center;
}

section#hero.small {
  margin: 40px auto;
}

.btn {
  padding: 10px 25px 11px;
  border-radius: 50px;
  box-shadow:
    inset 0px -4px 4px rgba(0, 0, 0, 0.15),
    inset 0px 4px 4px rgba(255, 255, 255, 0.02);
  opacity: 0.9;
  border: none;
}

.btn:hover {
  opacity: 1;
  box-shadow:
    inset 0px -4px 4px rgba(0, 0, 0, 0.2),
    inset 0px 0 4px rgba(255, 255, 255, 0.1);
}

.btn-group:not(.btn-group > .btn-group) {
  border-radius: 50px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.btn-group:not(.btn-group > .btn-group):hover {
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
}

.btn-group a {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, #004E83 0%, #003864 100%);
}

.btn-secondary {
  background: linear-gradient(180deg, #7098B7 0%, #3D6584 100%);
}

.btn.dropdown-toggle {
  padding-left: 17px;
  padding-right: 20px;
  border-left: 1px solid rgba(0, 0, 0, 0.15);
}

.accordion-item {
  color: #FFF;
  background-color: #1b1e22;
}

.accordion-button {
  color: rgba(255, 255, 255, 0.8);
  background-color: #212529;
}

.accordion-button:not(.collapsed) {
  color: #FFF;
  background-color: #212529;
}

.accordion-button::after,
.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

section#feature-cards {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap;

  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 0;

  margin-bottom: 30px;
}

section#feature-cards .card {
  flex-basis: 30%;
  margin-bottom: 50px;
  text-align: center;
  background: none;
}

section#feature-cards .card .image img {
  width: 90%;
  border-radius: 15px;
  -webkit-user-select: none;
  user-select: none;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
}

section#feature-cards .card .body h3 {
  margin: 12px 0;
  font-size: 20px;
}

section#feature-cards .card .body p {
  color: rgba(255, 255, 255, 0.75);
}

@media screen and (max-width: 767px) {
  section#feature-cards {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    width: 80vw;
  }

  section#feature-cards .card {
    flex-basis: 100%;
    margin-bottom: 40px;
  }
}

section#live {
  background: #111416;
}

section#live .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 50px 20px;
}

section#live .text {
  text-align: center;
  margin-right: 40px;
  flex: 1;
}

section#live .text p {
  margin-bottom: 0;
}

section#live .preview img {
  width: 400px;
  user-select: none;
}

@media screen and (max-width: 870px) {
  section#live .container {
    flex-direction: column;
  }

  section#live .text {
    margin-right: 0;
  }

  section#live .preview img {
    margin-top: 30px;
    width: 70vw;
  }
}

section#instructions p {
  color: rgba(255, 255, 255, 0.8);
}

section#instructions li {
  margin-bottom: 10px;
}

section#instructions pre {
  margin-bottom: 10px;
}

section#changelog h3 {
  margin-bottom: 10px;
}

section#changelog ul li {
  list-style-type: "– ";
  margin: 3px 0;
}

section#changelog hr {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 40px 0 30px;
}

section.page {
  margin-bottom: 40px;
}

footer {
  padding: 40px 0;
  width: 100%;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer.dark {
  background-color: #111416;
}

@media screen and (max-width: 767px) {
  footer .container {
    flex-direction: column;
  }

  footer .right {
    margin-top: 30px;
  }
}

footer .left {
  display: flex;
}

footer .left .logo {
  margin-right: 15px;
}

footer .left img {
  width: 45px;
}

footer .left p {
  margin: 0;
}

footer .right a:not(:last-child) {
  margin-right: 8px;
}

footer img {
  user-select: none;
}

section#dmdss .container:first-child {
  max-width: 700px;
  margin-bottom: 50px;
}

section#dmdss .header-img {
  display: flex;
  justify-content: center;
  margin: 50px 0 60px;
}

section#dmdss .dmdss-img {
  width: 300px;
}

section#dmdss #dmdss-table {
  text-align: left;
}

section#dmdss table {
  min-width: 850px;
}

table {
  font-family: "Barlow", sans-serif;
  font-weight: 400;
}

.table-responsive {
  border-radius: 5px;
}

table.table-dark {
  border-color: #3C434F;
}

table thead td,
table thead th {
  background-color: #3C434F !important;
}

table thead {
  border-bottom: 1px solid #3C434F;
}

table thead tr th {
  text-align: center;
  font-weight: 500;
}

table tbody {
  background-color: #2C3037;
  border-top: none !important;
}

table tbody td:not(:first-child) {
  text-align: center;
}

table tbody tr th {
  font-weight: 400;
}

table tbody tr th[colspan="5"] {
  font-weight: 600;
}

table > tbody > tr > td {
  vertical-align: middle;
}

table tbody td.green {
  color: #3FCD6F;
}

table tbody td.red {
  color: #FF6161;
}

table tbody td.yellow {
  color: #F0D05E;
}

table tbody td.bg-green {
  background-color: #3FCD6F;
  color: #000;
}

table tbody td.bg-red {
  background-color: #FF6161;
  color: #000;
}

table tbody td.bg-yellow {
  background-color: #F0D05E;
  color: #000;
}
