
:root {
  --container-background: #0044AA;
  --subtitle-font-color:#F0FF23;
  --item-main-color:#E93718;
  --item-sub-color:#A513A2;
  --rule-btn-color:#E93718;
}


body {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  font-family: Tahoma, sans-serif;
  font-weight: bold;
  /* background-color: rgba(97, 97, 97, 0.5); */
  background-color: #fff;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

ul {
  list-style: none;
  padding: 0;
}

ol li {
  list-style-type: disc;
}

#Alert {
  position: absolute;
  display: none;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 9999;
}

.black_bg {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

#Alert > div {
  display: flex;
  width: 100%;
  height: 100%;
}

.block_2nd {
  display: flex;
  width: 100%;
  padding: 5vw;
  background-color: rgba(0, 0, 0, 0.5);
  margin: auto;
}

.alert_div {
  display: flex;
  flex-direction: column;
  margin: auto;
}

.alert_div > div {
  display: flex;
}

#Alert h2 {
  color: #fff;
  font-size: 6vw;
  margin: auto;
}

#Alert h3 {
  color: #fff;
  font-size: 4vw;
  margin: auto;
}

.container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  background: var(--container-background) 0% 0% no-repeat padding-box;
  opacity: 1;
  color: #fff;
}

#imgTitle {
  width: 100%;
}

#Award {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#imgAward {
  width: 50vw;
  height: auto;
  margin: 0 auto;
}

.subtitle {
  display: flex;
  margin: 80px auto 2vw;
}

.subtitle img {
  width: 8vw;
  min-width: 30px;
  max-width: 60px;
  height: auto;
  margin: auto;
}

.subtitle img:first-child {
  margin-right: 1.5vw;
}

.subtitle img:last-child {
  margin-left: 1.5vw;
}

.subtitle p {
  font-size: min(5.2vw, 30px);
  color: var(--subtitle-font-color);
  margin: auto 0;
}

#Rule {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 5vw;
  margin-bottom: 5vw;
}

.rules {
  display: flex;
  flex-direction: column;
  width: 42vw;
  margin: 0 auto;
}

.rules ol {
  width: 95%;
  margin: 0;
}

.rules ol:last-child li {
  /* margin-bottom: 0.1vw; */
  font-size: 20px;
  line-height: 1.5;
  font-family: Tahoma;
}

.rules img {
  width: 90%;
  height: auto;
  margin: 0 auto;
}

.font-yellow {
  color: #fffa58;
}

#GoTop {
  position: fixed;
  display: none;
  width: min(10vw, 50px);
  bottom: 5vw;
  right: 5vw;
  z-index: 10000;
}

#GoTop img {
  width: 100%;
  height: auto;
}

#CoinLeft,
#CoinRight {
  position: absolute;
  width: 24vw;
  height: 26%;
}

#CoinLeft {
  top: 66.1vw;
  left: 0;
}

#CoinRight {
  bottom: clamp(380px, 52vw, 600px);
  right: 0;
}

#CoinLeft img,
#CoinRight img {
  width: 100%;
  height: auto;
}

@media (max-width: 750px) {
  .container {
    max-width: 750px;
  }

  .subtitle {
    margin-top: 0;
  }

  #imgAward {
    width: 100%;
  }

  #Award .subtitle {
    margin: 2vw auto 6vw;
  }

  #Rule .subtitle {
    margin: 0 auto 5vw;
  }

  .subtitle img:first-child {
    margin-right: 2.2vw;
  }

  .subtitle img:last-child {
    margin-left: 2.2vw;
  }

  #Rule {
    margin-top: 10vw;
  }

  .rules {
    width: 100%;
  }

  .rules ol:last-child li {
    /* margin-bottom: 4vw; */
    font-size: 12px;
    line-height: 1.5;
  }

  .rules img {
    margin: 1.5vw auto;
  }

  #GoTop {
    bottom: 30vw;
  }

  #CoinLeft,
  #CoinRight {
    display: none;
  }
}

.footer_content {
  position: relative;
  display: flex;
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
}

.footer_content .footer_img,
.footer_content .footer_img img {
  position: relative;
  width: 100%;
  bottom: -2px;
}

@media (max-width: 750px) {
  .footer_content {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
  }
}

@media (max-width: 340px) {
  .subtitle p {
    font-size: min(4.8vw, 50px);
  }
}

/* Go Top按鈕 */
.top_btn_div {
  position: fixed;
  bottom: 0px;
  text-align: right;
  max-width: 375px;
  width: 100%;
  z-index: 9999;
}

#top_btn {
  cursor: pointer;
  margin: 0 10px 10px;
}

#top_btn:hover {
  opacity: 0.6;
}

/* Go Top按鈕 END */

/*-- header --*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 100%;
  background: #000;
}
.header .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
}
.header .header-container .logo {
  width: 120px;
  padding: 0 0.5rem 0 0;
}

/* 為桌面和筆記本電腦設定圖片大小 */
.logo img {
  width: 130px;
}

.flex {
  display: flex;
}

/* 為手機設定圖片大小 */
@media only screen and (max-width: 750px) {
  .logo img {
    width: 100px;
  }

  .header .header-container {
    padding-left: 0px;
    padding-right: 3px;
  }

  .language-pack {
    margin-right: 13px;
  }

  .language-pack .language-icon {
    padding: 0.2rem 0.8rem !important;
  }
}

.template-area {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin-bottom: 5vw;
}

.image-container {
  position: relative;
  display: inline-block;

  margin-right: 10px;
  margin-left: 10px;

  /* 讓圖片並排顯示 */
}

.schedule_area img {
  width: 170px;
  border-radius: 10px;
  /* 圖片的圓角 */
}

.game_img {
  width: 220px;
  margin-bottom: 10px;
}

.game_text {
  text-align: center;
  font-size: 14px;
}

.overlay {
  position: absolute;
  font-size: small;
  top: 5px;
  left: 5px;
  background: var(--item-main-color);
  color: white;
  padding: 5px;
  border-radius: 10px;
}

.item .image-container:first-child .overlay,
.item .image-container:first-child .date-overlay {
  background-color: var(--item-sub-color) ;
}

.date-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(100% / 4.5);
  background: var(--item-main-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.date-overlay-non-date {
  font-size: 1.05vh;
}

.not-started-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.image-title {
  top:55px;
  @media (max-width: 750px) {
    top:45px;
  }
  position: relative;
  width: 100%;
}

#title_image {
  width: 100%;
}

.title_text_container {
  width: 100%;
  position: absolute;
  top: 40%;
  left: -33%;
  right: 0;
  margin: 0 auto;
}

#title-text {
  text-align: center;
  color: #faff5d;
  font-size: 1.25vw;
}

#coin-animation {
  position: absolute;
  width: 100%;
  top: 0;
}

#banner_layer_1 {
  position: absolute;
  width: 100%;
  top: 0%;
  left: 0%;
  right: 0;
  margin: 0 auto;
}

#game_list {
  width: 50vw;
  /* width: auto; */
  display: flex;
  font-size: 13px;
  border-top: 1px solid rgb(255, 255, 255);
  border-bottom: 1px solid rgb(255, 255, 255);
  /* padding-top: 10px;
    padding-bottom: 10px; */
  margin-top: 25px;
  justify-content: center;
  line-height: 43px;
  padding: 10px 20px;
  text-align: center;
}

#good_luck {
  text-align: center;
  position: absolute;
  top: 87%;
  left: 75%;
  width: 7vw;
  font-size: 1vw;
}

.tc-button {
  width: auto;
  padding: 6px 24px;
  min-width: 70px;
  text-align: center;
  font-size: 20px;
  font-family: Tahoma, sans-serif;
  font-weight: bold;
  letter-spacing: 0px;
  color: #fff;
  background:var(--rule-btn-color) 0% 0% no-repeat padding-box;
  border: 2px solid #ffffff;
  border-radius: 20px;
  opacity: 1;
  cursor: pointer;
}

@media (max-width: 750px) {
  .tc-button {
    font-size: 12px;
  }

  #coin-animation {
    position: absolute;
    width: 100%;
    /* top: 60%; */
    left: 0%;
  }

  #title-text {
    text-align: center;
    font-size: 4vw;
    font-weight: 400;
  }

  .image-container {
    margin: 10px;
    align-content: flex-start;
  }

  .container .close-button {
    font-size: 10vw;
  }

  .game_img {
    width: 150px;
  }

  .schedule_area img {
    width: 120px;
  }

  .game_text {
    text-align: center;
    font-size: 11px;
    width: 150px;
  }

  .game_area {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
  }

  #game_list {
    width: 80vw;
    font-size: 2.5vw;
    line-height: 25px;
  }

  #good_luck {
    top: 86%;
    left: 77%;
    font-size: 2.4vw;
    width: 17%;
  }
}

/* Modal 視窗 */
.modal {
  display: none;
  /* 預設隱藏 modal 視窗 */
  position: fixed;
  /* 固定 modal 視窗的位置 */
  z-index: 1000;
  /* 設定 modal 視窗的層級 */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  /* 允許 modal 視窗中的內容滾動 */
  background-color: rgba(0, 0, 0, 0.4);
  /* 設定 modal 視窗的背景顏色和透明度 */
}

/* Modal 視窗內容 */
.modal-content {
  position: relative;
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 1000px;
  border-radius: 10px;
  color: black;
  top: 180px;
  font: normal normal normal 20px/30px Tahoma;
  /* 設定 modal 視窗的頂部邊距 */
}

/* 關閉按鈕 */
.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  background-color: transparent;
  border: none;
  color: #000;
  font-size: 2vw;
}

.close-button:hover {
  color: #ddd;
}

/* 隱藏圖片 */
#coin-animation {
  display: none;
}

/* 動畫 */
@keyframes coin-animation {
  0% {
    filter: brightness(100%);
    transform: scale(1);
  }

  25% {
    filter: brightness(150%);
    transform: scale(1);
  }

  26% {
    transform: scale(1.04);
  }

  27% {
    transform: scale(1);
  }

  28% {
    transform: scale(1.04);
  }

  29% {
    transform: scale(1);
  }

  50% {
    filter: brightness(100%);
  }

  75% {
    filter: brightness(120%);
  }

  78% {
    transform: scale(1);
  }

  79% {
    transform: scale(1.04);
  }

  80% {
    transform: scale(1);
  }

  81% {
    transform: scale(1.04);
  }

  82% {
    transform: scale(1);
  }

  to {
    transform: scale(1);
    filter: brightness(100%);
  }
}

#coin-animation {
  display: block;
  animation: coin-animation 3s infinite;
}

@keyframes banner_layer_1 {
  0% {
    filter: brightness(85%);
  }

  50% {
    filter: brightness(195%);
  }

  to {
    filter: brightness(85%);
  }
}

#banner_layer_1 {
  display: block;
  filter: brightness(85%);
  animation: banner_layer_1 6s infinite;
}

@keyframes banner_layer_2 {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

.banner_layer_2_container {
  position: absolute;
  width: 34%;
  top: 29%;
  left: -33.7%;
  right: 0;
  margin: 0 auto;
}

#banner_layer_2 {
  display: block;
  position: absolute;
  width: 100%;
  top: 0%;
  left: 0%;
  right: 0;
  margin: 0 auto;
  object-fit: cover;
  clip-path: inset(0 100% 0 0);
  animation: banner_layer_2 4.5s forwards;
}

#banner_layer_3 {
  width: 100%;
  height: auto;
}

.language-pack:hover .language-icon {
  border: 2px solid #c2baff;
  letter-spacing: 0.2em;
  box-shadow: 0 0 25px #c2baff;
}

.language-pack:hover .language-icon span {
  color: #c2baff;
}

.language-pack:hover .currencySelectArrow {
  border-top: 8px solid #c2baff;
}

.language-pack .language-icon {
  display: flex;
  justify-content: space-evenly;
  position: relative;
  align-items: center;
  background: transparent;
  border-radius: 30px;
  border: 2px solid #ffffff;
  padding: 7px 16px;
  cursor: pointer;
  min-width: 80px;
  mix-blend-mode: difference;
  transition: 0.5s;
  font-weight: normal !important;
}

.language-pack .language-icon span {
  display: block;
  color: #ffffff;
  /* font-weight: 800; */
}

.language-pack .language-icon .language::after {
  content: "/";
  margin: 0 0.3rem;
  font-size: 14px;
  font-weight: normal;
}

.language-pack .language-icon img {
  width: 24px;
  height: 24px;
  filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.2));
  margin-right: 5px;
}

.currencySelectArrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid white;
  margin-left: 15px;
}

.switch-list {
  position: fixed;
  display: flex;
  top: 5rem;
  right: 2rem;
  margin-right: 2rem;
  background: rgba(20, 20, 20, 0.97);
  padding: 12px 32px;
  z-index: 1000;
  border-radius: 10px;
  border: 2px solid #ffffff;
  font-weight: normal;
}

.switch-list ul,
.switch-list ul p {
  margin-top: 0;
  margin-bottom: 6px;
}

.switch-list ul:nth-child(1) {
  margin-right: 22px;
}

.switch-list ul p {
  color: rgba(255, 255, 255, 0.4901960784);
  /* padding: 0.6rem 0 0.6rem 0.3rem; */
}

/* .switch-list ul li::after {
   content: "";
    display: block;
    width: 140px;
    height: 0.5px;
    background-color: rgba(255, 255, 255, 0.368627451);
    text-align: center; 
} */

.switch-list ul li a {
  display: flex;
  color: rgba(255, 255, 255, 0.8549019608);
  padding: 6px 0;
  transition: 0.3s;
  position: relative;
  text-decoration: none;
  font-size: 16px !important;
}

.switch-list ul li a:hover {
  filter: contrast(200%);
  transform: translate(-5px);
  transition: 0.3s;
  color: #c2baff;
}

.switch-list ul li .selected {
  color: #c2baff;
}

.switch-list ul li .selected span {
  display: block;
  width: 8px;
  height: 8px;
  position: absolute;
  left: -14px;
  top: 12px;
  background-color: #c2baff;
  border-radius: 50%;
}

.switch-list ul .last-nation::after {
  content: "";
  display: none;
}

@media (max-width: 750px) {
  .switch-list {
    position: absolute;
    display: flex;
    top: unset;
    /* right: unset; */
    right: 15px;
    margin-right: unset;
    /* width: 100%; */
  }

  .modal-content {
    font: normal normal normal 16px / 24px Tahoma;
  }
}
