@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap");

@font-face {
  font-family: "open_sansregular";
  src:
    url("../../mays/static/fonts/opensans-bold-webfont.woff2") format("woff2"),
    url("../../mays/static/fonts/opensans-bold-webfont.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "open_sansregular";
  src:
    url("../../mays/static/fonts/opensans-light-webfont.woff2") format("woff2"),
    url("../../mays/static/fonts/opensans-light-webfont.woff") format("woff");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "open_sansregular";
  src:
    url("../../mays/static/fonts/opensans-regular-webfont.woff2") format("woff2"),
    url("../../mays/static/fonts/opensans-regular-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Montserrat", "open_sansregular", "Arial", "sans-serif";
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
  @media screen and (max-width: 1020px) {
    font-size: 60%;
  }

  @media screen and (max-width: 767px) {
    font-size: 56%;
  }
}

body {
  background-color: #000;
  background-image: url(../images/background.jpg);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}

:root {
  --brand-color: #333333;
  --brand-color-lighten: #09a8aa;
  --brand-color-darken: #0ccdcf;
  --brand-color-low-opacity: rgba(11, 187, 189, 0.1);
  --brand-color-high-opacity: rgba(11, 187, 189, 0.9);
  --brand-color-login-background: #68cecf;
  --brand-color-background-ui-opacity: 0.9;
  --login-circular-opacity: 0;
  --font-family: "open_sansregular", "Arial", "sans-serif";
}

.center-contents {
  max-width: calc(100% - 100px);
  height: 100%;
  margin: auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  height: 90px;
  width: 100%;
  background: #000;
  z-index: 10;
}

.header .header-container {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.header .header-container .generic-button {
  margin-top: 0;
  flex-grow: 0;
  flex-shrink: 0;
  margin: 0;
  max-width: 220px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  border-radius: 10px;
  padding: 12px 18px 12px 18px;
}

.header .logo {
  max-width: 165px;
}

.app {
  min-height: 100%;
  padding-top: 140px;
  padding-bottom: 50px;
}

.contents {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contents.center-mode {
  height: calc(100% - 190px);
}

.login-form {
  color: #fff;
  font-size: 24px;
  text-align: center;
}

.form-input .form-input-component {
  margin-top: 20px;
  width: 320px;
  font-size: 18px;
  line-height: 56px;
  height: 56px;
  border-radius: 10px;
  border: none;
  color: #000;
  outline: none;
  text-align: center;
  padding: 0 20px;
}

.form-input .form-input-component:focus {
  outline: none;
}

.form-input .form-input-component.disabled {
  background-color: #ccc !important;
  color: #fff;
  cursor: not-allowed;
  pointer-events: none;
}

.generic-button {
  display: block;
  max-width: 210px;
  margin: 20px auto 0 auto;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 26px;
  color: #fff;
  background-color: #f05200;
  border-radius: 12px 12px 12px 12px;
  padding: 15px 30px 15px 30px;
  transition: all 0.2s linear;
  cursor: pointer;
  text-decoration: none;
}

.generic-button:hover {
  color: #f05200;
  background-color: #fff;
}

.generic-button.disabled {
  color: #fff;
  background-color: #999;
  cursor: not-allowed;
  pointer-events: none;
}

.form-error {
  margin-top: 10px;
  font-size: 14px;
}

.game-list {
  width: 100%;
  max-width: calc(100% - 100px);
  margin: auto;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
}

.game-item {
  position: relative;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.game-item::after {
  content: "";
  position: absolute;
  bottom: -25px;
  left: 0;
  width: 100%;
  border-bottom: 1px solid #f05200;
}

.game-item:last-child::after {
  display: none;
}

.game-image {
  width: 75px;
  height: 75px;
  /*background-color: #fff;*/
  flex-grow: 0;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.game-image img {
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  object-fit: contain;
}

.game-title {
  padding: 0 25px;
  flex-grow: 1;
  flex-shrink: 1;
  font-size: 32px;
  font-weight: bold;
  color: #f05200;
  /*text-transform: uppercase;*/
}

.game-item .generic-button {
  margin-top: 0;
  flex-grow: 0;
  flex-shrink: 0;
}

.game-list.ticket-mode {
  gap: 20px;
}

.game-list.ticket-mode .game-item::after {
  bottom: -10px;
}

.game-list.ticket-mode .game-image {
  width: 50px;
  height: 50px;
}

.game-list.ticket-mode .game-title {
  font-size: 16px;
  padding: 0 15px;
  color: #fff;
  font-weight: normal;
}

.game-list.ticket-mode .generic-button {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  border-radius: 10px;
  padding: 12px 18px 12px 18px;
}

.popup {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: none;
  -webkit-overflow-scrolling: touch;
  outline: 0;
  padding: 0 !important;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease-in-out;
  pointer-events: none;
}

.popup-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.popup.active {
  display: flex;
  pointer-events: all;
}

.popup-close {
  position: absolute;
  top: 30px;
  right: 30px;
  margin: 0;
  border: 0;
  padding: 0;
  background: #f05200;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s;
  transform-origin: center;
  z-index: 1;
  transition: background-color 0.2s linear;
}

.popup-close .icon-cross {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  position: relative;
  width: 25px;
  height: 25px;
}

.popup-close .icon-cross::before,
.popup-close .icon-cross::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  right: 0;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: background-color 0.2s linear;
}

.popup-close .icon-cross::before {
  transform: rotate(45deg);
}

.popup-close .icon-cross::after {
  transform: rotate(-45deg);
}

.popup-close:hover {
  background: #fff;
}

.popup-close:hover .icon-cross::before,
.popup-close:hover .icon-cross::after {
  background-color: #f05200;
}

.popup-container {
  position: relative;
  width: 1200px;
  height: 100%;
  max-width: calc(100% - 100px);
  max-height: calc(100% - 100px);
  overflow: hidden;
  border-style: solid;
  border-width: 0;
  margin: 0;
  background-color: #000;
  border-radius: 12px;
}

.popup-container.flexible-height {
  height: auto;
}

.viewer-game {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.viewer-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.viewer-info .info-button {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 14px;
  line-height: 20px;
  pointer-events: all;
  margin: 0;
  padding: 10px 20px 10px 20px;
}

.viewer-info .info-button:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.viewer-info .info-details {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  padding: 60px 25px 25px 25px;
  gap: 10px;
}

.viewer-info .info-text {
  font-size: 14px;
  color: #fff;
}

.viewer-info.active .info-details {
  display: flex;
  flex-direction: column;
  pointer-events: all;
}

.viewer-info.active .extra-info .table-container {
  display: inline-block;
  max-height: 400px;
  overflow: auto;
}

.viewer-info.active .extra-info .table-container::-webkit-scrollbar {
  width: 12px;
}

.viewer-info.active .extra-info .table-container::-webkit-scrollbar-track {
  background: transparent;
}

.viewer-info.active .extra-info .table-container::-webkit-scrollbar-thumb {
  background-color: gray;
  border-radius: 20px;
  border: 1px solid darkgray;
}

.viewer-info.active .extra-info table {
  font-size: 14px;
}

.viewer-info.active .extra-info table th,
.viewer-info.active .extra-info table td {
  padding: 0 15px 0 0;
  text-align: left;
}

@media screen and (max-width: 1020px) {
  .center-contents {
    max-width: calc(100% - 80px);
  }

  .header {
    height: 80px;
  }

  .header .logo {
    max-width: 150px;
  }

  .header .header-container .generic-button {
    font-size: 13px;
    line-height: 18px;
    padding: 11px 17px 11px 17px;
  }

  .app {
    padding-top: 120px;
    padding-bottom: 40px;
  }

  .contents.center-mode {
    height: calc(100% - 160px);
  }

  .login-form {
    font-size: 20px;
  }

  .form-input .form-input-component {
    margin-top: 16px;
    width: 300px;
    font-size: 16px;
    line-height: 52px;
    height: 52px;
  }

  .generic-button {
    max-width: 200px;
    margin: 16px auto 0 auto;
    font-size: 16px;
    line-height: 24px;
    border-radius: 12px 12px 12px 12px;
    padding: 12px 25px 12px 25px;
  }

  .form-error {
    margin-top: 8px;
    font-size: 13px;
  }

  .game-list {
    max-width: calc(100% - 80px);
    gap: 40px;
  }

  .game-item::after {
    bottom: -20px;
  }

  .game-image {
    width: 70px;
    height: 70px;
  }

  .game-image img {
    width: calc(100% - 4px);
    height: calc(100% - 4px);
  }

  .game-title {
    padding: 0 20px;
    font-size: 28px;
  }

  .game-list.ticket-mode .game-title {
    font-size: 15px;
    padding: 0 14px;
  }

  .game-list.ticket-mode .generic-button {
    font-size: 13px;
    line-height: 18px;
    padding: 11px 17px 11px 17px;
  }
}

@media screen and (max-width: 767px) {
  .center-contents {
    max-width: calc(100% - 50px);
  }

  .header {
    height: 70px;
  }

  .header .logo {
    max-width: 125px;
  }

  .header .header-container .generic-button {
    font-size: 12px;
    line-height: 16px;
    padding: 10px 16px 10px 16px;
  }

  .app {
    padding-top: 95px;
    padding-bottom: 25px;
  }

  .contents.center-mode {
    height: calc(100% - 120px);
  }

  .login-form {
    font-size: 16px;
  }

  .form-input .form-input-component {
    margin-top: 12px;
    width: 280px;
    font-size: 14px;
    line-height: 48px;
    height: 48px;
  }

  .generic-button {
    max-width: 180px;
    margin: 12px auto 0 auto;
    font-size: 12px;
    line-height: 18px;
    padding: 10px 20px 10px 20px;
  }

  .form-error {
    margin-top: 6px;
    font-size: 12px;
  }

  .game-list {
    max-width: calc(100% - 50px);
    gap: 25px;
  }

  .game-item::after {
    bottom: -12px;
  }

  .game-image {
    width: 65px;
    height: 65px;
  }

  .game-image {
    display: none;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
  }

  .game-title {
    padding: 0 15px 0 0;
    font-size: 18px;
  }

  .game-list.ticket-mode .game-title {
    font-size: 14px;
    padding: 0 12px 0 0;
  }

  .game-list.ticket-mode .generic-button {
    font-size: 12px;
    line-height: 16px;
    padding: 10px 16px 10px 16px;
  }
}

.replay-form {
  padding: 50px;
  text-align: center;
}

.form-title {
  font-size: 24px;
}

.form-contents {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  margin: auto;
  gap: 0;
}

.form-contents .form-input {
  width: 100%;
}

.form-contents .form-input .form-input-component {
  width: 100%;
  text-align: left;
  display: block;
  background-color: #fff;
}

.form-contents .form-input .form-input-component::placeholder,
.form-contents .form-input .form-input-component.placeholder {
  color: #999;
}

.form-contents .form-submit {
  width: 100%;
}

#replay-file {
  display: none;
}
