*,
html,
body {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
@font-face {
  font-family: hongkongFont;
  src: url("./assets/web/go3v2.ttf");
}
.header {
  width: 100%;
}
.header-background {
  height: 200px;
  background: #f3de80;
  object-fit: contain;
}
.header-logo {
  position: absolute;
  left: 35%;
  top: 2%;
}
.header-mobile {
  margin-top: -4px;
}
body {
  width: 100%;
  height: 100%;
  background-image: url("./assets/mobile/bg-mobile.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* login */
.login {
  width: 98%;
  margin: 20px auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: hongkongFont;
}
.login-title {
  margin-bottom: 10px;
  text-align: center;
}
.login-input {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.login-input > input {
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 10px;
  border: none;
  text-align: center;
  font-family: hongkongFont;
}
.login-button {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.login-button > button {
  width: 48%;
  padding: 10px;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 10px;
}
.button-login {
  background: rgb(54, 88, 191);
  background: linear-gradient(
    180deg,
    rgba(54, 88, 191, 1) 0%,
    rgba(9, 110, 144, 1) 63%
  );
}
.button-register {
  background: rgb(160, 23, 12);
  background: linear-gradient(
    180deg,
    rgba(160, 23, 12, 1) 0%,
    rgba(115, 1, 1, 1) 63%
  );
}

/* result */
.result {
  width: 98%;
  height: 170px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("./assets/mobile/bg-result-today-mbl.png");
  background-repeat: no-repeat;
  text-align: center;
  background-position: 0% 0%;
  background-size: 100% 100%;
  font-family: hongkongFont;
}
.result-container {
  width: 100%;
  /* min-width: 220px; */
  height: 85px;
  margin-top: -15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 16px;
  padding-right: 16px;
}
.result-wrapper {
  display: flex;
  justify-content: space-between;
}
.current-result,
.last-result {
  /* width: 81px; */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}
.current-numbers,
.last-numbers {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}
.number {
  padding: 3px;
  background-color: #fff;
  font-size: 20px;
}

/* table */
.tg {
  width: 90%;
  margin: 0 auto 20px;
  background-color: #fff;
  border-collapse: collapse;
  border-spacing: 0;
}
.tg td {
  border-color: black;
  border-style: solid;
  border-width: 1px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  overflow: hidden;
  padding: 10px 5px;
  word-break: normal;
}
.tg th {
  border-color: black;
  border-style: solid;
  border-width: 1px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: normal;
  overflow: hidden;
  padding: 10px 5px;
  word-break: normal;
}
.tg .tg-0pky,
.tg .tg-0lax {
  width: 30%;
  border-color: inherit;
  text-align: left;
  vertical-align: top;
  text-align: center;
}

/* banner */
.banner {
  width: 100%;
  display: none;
}

/* copyright */
.copyright-top {
  padding: 15px;
  background-color: rgba(10, 40, 92, 0.8);
  color: #fff;
  text-align: center;
  line-height: 1.5;
  font-size: 12px;
}
.copyright-bottom {
  padding: 10px;
  background-color: #000;
  color: #fff;
  text-align: center;
  font-size: 12px;
}
.cr-t {
  display: none;
}

/* font-size */
body,
.tg .tg-0pky,
.tg .tg-0lax {
  font-size: 14px;
}

/* breakpoint */
@media (min-width: 769px) {
  /* header */
  .header-logo {
    width: 15%;
    height: 7%;
    top: 3%;
    left: 45%;
  }
  .header-background {
    height: 150px;
  }
  .header-mobile {
    display: none;
  }

  /* main grid */
  main {
    display: grid;
    grid-template-areas:
      "result result login login"
      "table table image image";
    grid-gap: 10px;
    padding: 10px 10px 50px;
  }

  /* login */
  .login {
    width: 100%;
    grid-area: login;
  }
  .login-title,
  .login-input > input {
    font-size: 20px;
  }

  /* result */
  .result {
    height: 200px;
    margin-top: 15px;
    grid-area: result;
  }
  .result-container {
    margin-top: -40px;
  }
  .result-title,
  .current-result > span,
  .last-result > span,
  .number {
    font-size: 20px;
  }

  /* table */
  .table {
    width: 52vw;
    height: 780px;
    margin-top: -70px;
    grid-area: table;
    overflow-y: scroll;
  }
  .tg {
    width: 98%;
  }

  /* banner */
  .banner {
    width: 45vw;
    display: block;
    grid-area: image;
    background-image: url("./assets/web/banner.png");
    background-size: cover;
    background-repeat: no-repeat;
  }

  /* copyright */
  .copyright-top {
    display: flex;
    flex-direction: column-reverse;
  }
  .ct-icon > img {
    width: 50%;
  }
  .cr-t {
    display: block;
  }

  /* font-size */
  body,
  .tg .tg-0pky,
  .tg .tg-0lax {
    font-size: 18px;
  }
}

/* scrollbar */
/* body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}
body::-webkit-scrollbar-thumb {
  height: 310px;
  background: rgb(255, 255, 255);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(169, 160, 160, 1) 40%,
    rgba(0, 0, 0, 1) 52%
  );
  border-radius: 10px;
} */
