@font-face {
  font-family: 'FC Friday Medium';
  font-style: normal;
  font-weight: normal;
  src: url('../font/FC-Friday-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'FC Friday Medium ltalic';
  font-style: normal;
  font-weight: normal;
  src: url('../font/FC-Friday-Medium-Italic.ttf') format('truetype');
}

#event-alert {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: none;
}

#event-alert-close-button {
  z-index: 1;
  height: 12%;
  position: absolute;
  right: 20%;
  top: 14%;
}

.warning-text {
  z-index: 1;
  height: 0%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.warning-text p {
  font-family: 'Super Playful', sans-serif;
  font-weight: 500;
  font-size: 2rem;
  margin-top: 0px;
  text-align: center;
  color: #000000;
  line-height: 1;
  margin-bottom: 0 !important;
  white-space: nowrap;

  -webkit-text-stroke: initial !important;
}

.bag-reward {
  position: relative;
  display: inline-block;
}

.notification-badge {
  position: absolute;
  top: 0px;
  left: 0px;
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 2px 8px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
  transform: translate(-30%, -30%);
  z-index: 1;
}


#eventchamboard-canvas {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: none;
}

.eventchamboard-mask {
  background-color: #00000088;
  width: 100%;
  height: 100%;
}

.eventchamboard-window {
  z-index: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  /* max-height: min(100%, 100%); */
  max-height: 100vh;
  height: 50vw;
  color: #FFF;
  font-family: 'Super Playful', sans-serif;
  /* -webkit-text-stroke: 0.9px black; */
}

.bg-inside {
  z-index: -1;
  position: absolute;

  top: 54%;
  left: 52%;
  transform: translateX(-50%) translateY(-50%);
  max-height: min(100%, 900px);
  height: 30vw;
  width: 70%;

}


.detailCham {
  position: absolute;
  z-index: 1;
  width: 50%;
  height: 20%;
  left: -1%;
  bottom: 50%;
  font-size: 0.8rem;
  transform: translateX(60%);

}

.detailCham p {
  font-family: 'Super Playful', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  margin-top: 0px;
  text-align: center;
  color: #7b2b2b;
  line-height: 1.3;
  margin-bottom: 0 !important;
  white-space: nowrap;

  -webkit-text-stroke: initial !important;
}


#SucceedCham {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 2;
  /* display: none; */
  animation: popup-fade-in 4.5s;
}

#FailCham {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 2;
  /* display: none; */
  animation: popup-fade-in 4.5s;
}

.eventchamboard-bg {
  position: relative;
  z-index: 1;
  pointer-events: none;
  height: 100%;
}

.eventchamboard-me-scoreboard {
  z-index: 1;
  position: absolute;
  height: auto;
  top: 22.8%;
  left: 74%;

  transform: translateX(-50%) translateY(-50%);
  font-size: 1.6rem;
  font-weight: bold;
  color: white;
  font-family: 'Playful';
  -webkit-text-stroke: 5px black;
  text-shadow: 0px 0px 0px #000000;
  paint-order: stroke fill;
}

.eventchamboard-me-scoreboard p {
  margin-bottom: 0 !important;
}


.eventchamboard-me-itme {
  z-index: 1;
  position: absolute;
  height: auto;
  top: 22.8%;
  left: 56%;

  transform: translateX(-50%) translateY(-50%);
  font-size: 1.6rem;
  font-weight: bold;
  color: white;
  font-family: 'Playful';
  -webkit-text-stroke: 5px black;
  text-shadow: 0px 0px 0px #000000;
  paint-order: stroke fill;
  padding-left: 15px;
}

.eventchamboard-me-itme p {
  margin-bottom: 0 !important;

}

.eventchamboard-me-itme-exp {
  padding-left: 30px;
}


.eventchamboard-content {
  z-index: 2;
  position: absolute;
  width: 70%;
  height: 52%;
  top: 55.8%;
  left: 53%;
  transform: translateX(-50%) translateY(-50%);
  text-align: center;
  white-space: nowrap;
  overflow-y: scroll;
  overflow-x: hidden;
}

.eventchamboard-content p {
  top: 8px;
  margin-bottom: 0 !important;
}

.eventchamboard-contennt-icon-question {
  position: absolute;
  z-index: 1;
  bottom: 10.5%;
  left: 8.5%;
  width: 10%;
  cursor: pointer;
}

.eventchamboard-profile-back {
  position: absolute;
  bottom: 0%;
  left: 19%;
  height: 90%;

}

.eventchamboard-profile-back img {
  height: 100%;

}

.eventchamboard-rocket-div {
  width: 100%;
  height: 100%;
}

.horse-img-me {
  width: 108px;
  height: 108px !important;
}

.horse-img {
  width: 80px;
  height: 80px !important;
}

.eventchamboard-rocket-score {
  position: absolute;
  height: 50%;
  bottom: 55%;

  animation: rocket-in 2s;
}

.rocket-position-default {
  transform: scaleX(1) translateX(50%) translateY(0%);
}

.rocket-position-advanced {
  transform: scaleX(-1) translateX(130%) translateY(0%);
}

.eventchamboard-rocket-score-num {
  position: absolute;
  color: #FFF;
  height: auto;
  left: -80px !important;
  top: 0px !important;
  animation: rocket-in 2s;
  font-size: 1.2px;
  -webkit-text-stroke: initial !important;
  transform: scaleX(1) translateX(0%) translateY(0%);
}

.score-num-default {

  transform: translateX(0%) translateY(0%);
}

.score-num-advanced {
  left: -100px !important;
  transform: translateX(0%) translateY(0%);
}


/* Track */
.eventchamboard-content::-webkit-scrollbar {
  z-index: 1;
  width: min(2vh, 20px);
}

/* Track */
.eventchamboard-content::-webkit-scrollbar-track {
  background-color: #ffe8c8;
  border-radius: 100px;
  border-style: solid;
  border-color: rgb(164, 103, 73);
  border-width: 1%;
}

/* Handle */
.eventchamboard-content::-webkit-scrollbar-thumb {
  background-color: #872d00;
  border-radius: 100px;
}

.eventchamboard-content-item {
  background-size: cover;
  background-repeat: no-repeat;
  width: 94.5%;
  height: 20%;
  margin-top: 0%;
  margin-bottom: 0%;
  position: relative;
}

.bg_leaderboard.rank-1-highlight {
  height: 110px;
  /* ปรับความสูงตามต้องการ */
  background-size: cover;
  background-position: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

.bg_leaderboard {
  height: 110px;
  /* ความสูงปกติของ rank อื่น */
  background-size: cover;
  background-position: center;
}

.eventchamboard-ranking-bullet {
  position: absolute;
  bottom: 20%;
  left: 3%;
  height: 65%;
}

.eventchamboard-ranking-bullet img {
  height: 80%;
}

.eventchamboard-ranking-bullet p {
  position: absolute;
  left: 50%;
  top: 45%;
  font-family: 'Zyzol';
  /* font-size: min(min(3vh, 20px), 2vw); */
  font-size: 2rem;
  font-weight: bold;
  transform: translateX(-50%) translateY(-50%);
  /* color: white; */
  text-shadow: -4px 2px #000000;

}

.eventchamboard-profile-image {
  position: absolute;
  bottom: 41%;
  left: 16%;
  height: 100%;
  width: 100%;
  max-height: min(10vw, 50%);
  max-width: min(10vw, 67%);
  /* max-width: min(10vw, 47px); */
  border-radius: 50%;
  object-fit: cover;

}


.eventchamboard-profile-name {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  -webkit-text-stroke: initial !important;
}

.eventchamboard-profile-name svg {
  width: 200px;
  height: 150px;
}

.eventchamboard-profile-name text {
  font-size: 25px;
}


.eventchamboard-level {
  position: absolute;
  top: 100%;
  left: 50%;
  text-align: center;
  transform: translateX(-50%) translateY(-50%);
  font-size: min(min(3vh, 18px), 2vw);
  color: white;
  line-height: 1;
}

.eventchamboard-level p {
  position: absolute;
  top: 115%;
  left: 50%;
  text-align: center;
  transform: translateX(-50%) translateY(-50%);
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  font-family: 'Playful';
  -webkit-text-stroke: 5px black;
  text-shadow: 0px 0px 0px #000000;
  paint-order: stroke fill;

}

.eventchamboard-progress {
  position: absolute;
  top: 65%;
  left: 65%;
  height: 60%;
  transform: translateX(-50%) translateY(-40%);
}

.eventchamboard-progress-empty {
  width: 25.5vw;
  height: 100%;
}

.eventchamboard-progress-full {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  transition: 2s;
  animation: full-in 2s;
  width: 25.5vw;
}

.eventchamboard-progress {
  text-align: left;
  /* ชิดซ้ายข้อความ/รูปภาพ */
  justify-content: flex-start;
  /* ถ้ามี flex อยู่แล้ว */
  align-items: center;
  /* แนวดิ่งให้อยู่ตรงกลาง (ถ้าต้องการ) */
  display: flex;
  /* เพื่อควบคุมทิศทาง */
  flex-direction: row;
  /* เนื้อหาชิดซ้ายเรียงตามแนวนอน */
  padding-left: 0;
  /* ลบระยะ padding ซ้ายถ้ามี */
}

.eventchamboard-rocket {
  position: absolute;
  height: 100%;
  bottom: 75%;
  transform: translateX(-50%) translateY(50%);
  animation: rocket-in 2s;
}



.eventchamboard-horse-score {
  position: absolute;
  height: 50%;
  bottom: 55%;
  /* transform: translateX(100%) translateY(50%); */
  animation: rocket-in 2s;
}

.eventchamboard-km {
  position: absolute;
  right: 7.5%;
  bottom: 3%;
  transform: translateX(50%) translateY(50%);
  text-align: center;
  font-size: min(min(3vh, 18px), 2vw);
  color: white;
}

#eventchamboard-close-button {
  z-index: 1;
  height: 12%;
  position: absolute;
  right: 8%;
  top: 14%;
}

#eventchamboard-close-button:active {
  content: url("../img/New-gaf-Tournament/x-cham-pass.png");
}

#refresh-button {
  cursor: pointer;
  color: #FFF;
}

#refresh-button:hover {
  color: #ffffff94;
}


@media (max-width: 1920px) {
  .eventchamboard-rocket-score img {
    height: 100%;
    width: 100%;
  }

  .eventchamboard-rocket-score-num {
    left: 50px !important;
    top: 0px !important;
    font-size: 15px !important;
    transform: translateX(0%) translateY(0%);
  }

  .eventchamboard-profile-name {
    position: absolute;
    bottom: -57px;
    left: 50%;
    font-size: 50px;
    transform: translateX(-50%);
    color: white;
    -webkit-text-stroke: initial !important;
  }

  .eventchamboard-profile-name svg {
    width: 140px;
    height: 100px;
  }

  .eventchamboard-profile-name text {
    font-size: 23px;
  }

  .score-num-advanced {
    left: -60px !important;
    font-size: 15px;
    transform: translateX(0%) translateY(0%);
  }
}

@media (max-width: 1600px) {
  .eventchamboard-rocket-score-num {
    transform: translateX(0%) translateY(0%);
    left: 50px !important;
    top: -2px !important;
    font-size: 20px;
  }

  .eventchamboard-rocket-score img {
    height: 100%;
    width: 100%;
  }

  .eventchamboard-profile-name {
    position: absolute;
    bottom: -50px;
    left: 50%;
    font-size: 50px;
    transform: translateX(-50%);
    color: white;
    -webkit-text-stroke: initial !important;
  }

  .eventchamboard-profile-name svg {
    width: 100px;
    height: 100px;
  }

  .eventchamboard-profile-name text {
    font-size: 23px;
  }

  .score-num-advanced {
    left: -60px !important;
    transform: translateX(0%) translateY(0%);
  }


}

@keyframes full-in {
  0% {
    clip-path: inset(0 100% 0 0);
  }

  100% {}
}

@keyframes rocket-in {
  0% {
    right: 100%;
  }

  100% {}
}