@font-face {
  font-family: 'Filmotype';
  src: url("/fonts/FilmotypeModern.otf"); 
}

@font-face {
  font-family: 'KoreaFont';
  src: url("/fonts/210_Blah_Blah_R.ttf"); 
}

@font-face {
  font-family: 'JapanFont';
  src: url("/fonts/HappyRuika-06.ttf") format("truetype");
  font-weight: normal; 
}

@font-face {
  font-family: 'IEJapan';
  src: url("/fonts/Meiryo.ttf") format("truetype");
  font-weight: normal; 
}

@font-face {
  font-family: 'chromeJa';
  src: url("/fonts/Noto.ttf") format("truetype");
  font-weight: normal; 
}

@font-face {
  font-family: 'defaultJapan';
  src: url("/fonts/MS_Gothic.ttf") format("truetype");
  font-weight: normal; 
}

html {
  background-color: #059bfe;
  margin: 0;
  padding: 0;
}

body, button {
  margin: 0;
  padding: 0;
  font-family: Filmotype,'Trebuchet MS',Helvetica,Arial,sans-serif;
  text-shadow: 1px 1px 3px rgba(0,0,0,.5);
  font-weight: normal;
  color: white;
  font-size: 25px;
  -webkit-font-smoothing: antialiased;
}

strong {
  letter-spacing: 1.3px;
}

button {
  cursor: pointer;
}

body a {
  color: white;
}

h1 {
  font-weight: normal;
}

h2, h3 {
  font-weight: normal;
  margin: 0;
}

/* base */
.content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}
/* ~base */

/* background */
.bg-home {
  width: 100vw;
  min-height: 100vh;
  position: relative;
  background: url("../images/bg_landing_header.jpg") top center/150% auto no-repeat,
              url("../images/bg_landing_top.png") top center/150% 85.1667vw repeat-x, 
              url("../images/bg_landing_bottom.png") bottom repeat-x, 
              url("../images/bg_landing_middle.png") center; 
}
  
@media (min-width: 1200px) {
  .bg-home {
    background: url("../images/bg_landing_header.jpg") top center/1800px auto no-repeat,
                url("../images/bg_landing_top.png") top center/1800px 1014px repeat-x, 
                url("../images/bg_landing_bottom.png") bottom repeat-x, 
                url("../images/bg_landing_middle.png") center; 
  } 
}

@media (max-width: 767px) {
  .bg-home {
    background: url("../images/bg_landing_header_mobile.jpg") top center/100% auto no-repeat, 
                url("../images/bg_landing_top_mobile.jpg") top center/100% 115.75vw repeat-x, 
                url("../images/bg_landing_bottom_mobile.jpg") bottom repeat-x, 
                url("../images/bg_landing_middle_mobile.jpg") center; 
  } 
}

.bg-page {
  width: 100vw;
  min-height: 100vh;
  position: relative;
  background: url("../images/bg_support_header.jpg") top center/150% auto no-repeat,
              url("../images/bg_support_top.jpg") top center/150% 85.1667vw repeat-x, 
              url("../images/bg_support_bottom.jpg") bottom repeat-x, 
              url("../images/bg_support_middle.jpg") center; 
}
  
@media (min-width: 1200px) {
  .bg-page {
    background: url("../images/bg_support_header.jpg") top center/1800px auto no-repeat,
                url("../images/bg_support_top.jpg") top center/1800px 1014px repeat-x, 
                url("../images/bg_support_bottom.jpg") bottom repeat-x, 
                url("../images/bg_support_middle.jpg") center; 
  } 
}

@media (max-width: 767px) {
  .bg-page {
    background: url("../images/bg_support_header_mobile.jpg") top center/100% auto no-repeat, 
                url("../images/bg_support_top_mobile.jpg") top center/100% 115.75vw repeat-x, 
                url("../images/bg_support_bottom_mobile.jpg") bottom repeat-x, 
                url("../images/bg_support_middle_mobile.jpg") center; 
  } 
}
/* ~background */

/* utility */
.hidden {
  display: none;
}

.visible {
  display: initial;
}

.clickable {
  cursor: pointer;
}

.loading-ripple {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
}
.loading-ripple div {
  position: absolute;
  border: 4px solid #fff;
  opacity: 1;
  border-radius: 50%;
  animation: loading-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.loading-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}
@keyframes loading-ripple {
  0% {
    top: 28px;
    left: 28px;
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    top: -1px;
    left: -1px;
    width: 58px;
    height: 58px;
    opacity: 0;
  }
}
/* ~utility */

/* modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  background: rgba(1, 1, 1, 0.4);
}
.modal-content-container {
  box-sizing: border-box;
  position: relative;
  background-color: #3f9cd0;
  border-top: 1px solid rgba(157,232,248,.6);
  border-radius: 5px;
  margin: auto;
  top: 75px;
  max-width: 850px;
  padding: 9px;
  max-height: 100%;
  overflow: auto;
}
.modal-header h1 {
  margin: 0;
  padding: 8px 0;
  display: inline-block;
}
.modal-header .close {
  float: right;
  display: inline-block;
}
.modal-content {
  background-color: #ddf0f7;
  border-top: 1px solid rgba(157,232,248,.6);
  border-radius: 5px;
}
.modal-button {
  display: inline-block;
  border: none;
  background: url("../images/support_button.png") center/contain no-repeat;
  padding: 15px 20px 10px 20px;
  font-size: 1.2em;
}
.close {
  background: url("../images/support_button_close.png") center/contain no-repeat;
  width: 58px;
  height: 58px;
  border: none;
}
/* ~modal */

/* header */
.root-header {
  width: 100%;
  display: inline-block;

  text-align: center;
  background: url("../images/nav.png");

  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
}

/* nav */
.main-nav ul {
  padding: 0;
  margin: 15px;
}

.main-nav li {
  display: inline-block;
}

.main-nav a {
  color: #7a582a;
  text-decoration: none;
  font-size: 1.5em;
  text-shadow: none;

  padding: 15px;
}
/* ~nav */
/* ~header */



/* footer */
footer {
  display: inline-block;
  width: 100%;
  clear: both;
  margin-top: 4em;
}

footer a {
  display: inline-block;
  text-decoration: none;
  vertical-align: center;
}

nav.footer-nav {
  display: inline-block;
}

.footer-nav > a:not(:last-child)::after {
  content: '|';
  padding: 5px;
}

.footer-king-logo {
  max-width: 9em;
  width: 45%;
}

footer .copyright {
  color: #143c4e;
  text-align: center;
  font-family: Arial;
}
/* ~footer*/

@media (max-width: 650px), (max-height: 700px) {
  body, button {
    font-size: 20px;
  }

  .main-nav a {
    padding: 5px;
    font-size: 1em;
  }

  .modal-content-container {
    top: 0;
    bottom: 0;
  }
  .modal-button {
    margin-bottom: 50px;
  }

  .root-header {
    background-size: 560px auto;
  }
}
