html,
body {
  background-color: #ff0077;
  margin: 0;
  padding: 0;
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

body,
html {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
}

.download-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 2px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: #3452ff;
  border: none;
  border-radius: 6px;
  opacity: 0.5;
  z-index: 50;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.download-btn:hover {
  opacity: 1;
}

.download-btn svg {
  width: 24px;
  height: 24px;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

body.expanded::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  z-index: 9998;
}

body.landscape-mode #grid-container {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  height: 100vh;
  align-content: center;
}

body.landscape-mode .player-container {
  aspect-ratio: 16 / 9;
}

body.landscape-mode #video-element,
body.landscape-mode #canvas-element {
  transform: translate(-50%, -50%) rotate(90deg) scaleY(-1);
  height: auto;
  width: 55%;
}

body.landscape-mode .rank-video {
  transform: translate(-50%, -50%) rotate(90deg);
  height: auto;
  width: 55%;
}

body.landscape-mode #totalJumpCountCircle {
  width: 8vw;
  height: 5.5vw;
}

body.landscape-mode #halfJumpCount {
  font-size: 2vw;
}

body.landscape-mode #totalJumpCount {
  font-size: 1.25vw;
  margin-top: -0.4vw;
}

body.landscape-mode #time-display {
  top: 8%;
  right: 0%;
  width: 7.5vw;
  height: 2.25vw;
  line-height: 2.25vw;
  font-size: 2vw;
  align-items: center;
}

body.landscape-mode .player-container {
  aspect-ratio: 16 / 9;
}

@media (min-width: 2160px) and (orientation: portrait) {
  .button-group {
    height: 8vw;
  }

  #startButton,
  #resetButton,
  #settings-button {
    padding: 1vw 0;
    height: 100%;
  }

  #settings-modal .custom-dropdown-toggle,
  #settings-modal button {
    padding: 1.2vw;
  }
}

@media (min-width: 1920px) and (max-width: 2159px) and (orientation: portrait) {

  .button-group {
    height: 8vw;
  }

  #startButton,
  #resetButton,
  #settings-button {
    padding: 1vw 0;
    height: 100%;
  }

  #settings-modal .custom-dropdown-toggle,
  #settings-modal button {
    padding: 1.2vw;
  }
}

@media (max-width: 1920px) and (orientation: landscape) {
  body.landscape-mode .button-group {
    height: 2vw;
  }

  body.landscape-mode #startButton,
  body.landscape-mode #resetButton {
    padding: 0.3vw 0;
  }

  body.landscape-mode #settings-button {
    height: 3vw;
    width: 3vw;
  }

  body.landscape-mode #settings-modal .custom-dropdown-toggle,
  body.landscape-mode #settings-modal button {
    padding: 6px;
    font-size: 1.6rem;
  }

  body.landscape-mode #zoom-toggle-button {
    width: 2vw;
    height: 2vw;
    font-size: 0.5vw;
  }

  body.landscape-mode .gold-border {
    border-width: 25px !important;
  }

  body.landscape-mode .silver-border {
    border-width: 25px !important;
  }

  body.landscape-mode .bronze-border {
    border-width: 25px !important;
  }
}

@media (min-width: 2160px) and (orientation: landscape) {
  body.landscape-mode .button-group {
    height: 2vw;
  }

  body.landscape-mode #startButton,
  body.landscape-mode #resetButton {
    padding: 0.3vw 0;
  }

  body.landscape-mode #settings-button {
    height: 3vw;
    width: 3vw;
  }

  body.landscape-mode #settings-modal .custom-dropdown-toggle,
  body.landscape-mode #settings-modal button {
    padding: 6px;
    font-size: 1.6rem;
  }

  body.landscape-mode #zoom-toggle-button {
    width: 2vw;
    height: 2vw;
    font-size: 0.5vw;
  }

  body.landscape-mode .gold-border {
    border-width: 40px !important;
  }

  body.landscape-mode .silver-border {
    border-width: 40px !important;
  }

  body.landscape-mode .bronze-border {
    border-width: 40px !important;
  }
}

* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#fullscreen-message,
#mobile-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#fullscreen-message {
  background-color: black;
}

#fullscreen-content,
#mobile-content {
  text-align: center;
  padding: 20px 120px;
  border: 5px solid #8400ff;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#fullscreen-title {
  color: #707070;
  margin-bottom: 50px;
}

#fullscreen-confirm {
  display: none;
  padding: 10px 30px;
  background-color: #8400ff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 3rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

#fullscreen-confirm:hover {
  background-color: #9a00ff;
}

.confirm-button {
  background-color: #8400ff;
  color: white;
  padding: 10px 30px;
  font-size: 3rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.challenge-header {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.selector-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.custom-dropdown {
  position: relative;
}

.custom-dropdown-toggle {
  background-color: #fff;
  border: 1px solid #000;
  color: #000;
  padding: 3px 12px 5px 12px;
  cursor: pointer;
  font-size: 4rem;
  display: inline-flex;
  align-items: center;
}

.custom-dropdown-toggle .arrow {
  margin-left: 8px;
  font-size: 2.5rem;
}

.custom-dropdown-menu {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 200px;
  border: 1px solid #000;
  z-index: 1000;
}

.custom-dropdown:hover .custom-dropdown-menu {
  display: block;
}

.custom-dropdown-menu .dropdown-item {
  width: 100%;
  text-align: left;
  padding: 20px 12px;
  background-color: #fff;
  border: none;
  color: #000;
  cursor: pointer;
  font-size: 3rem;
}

.custom-dropdown-menu .dropdown-item:hover {
  background-color: #f0f0f0;
}

#mobile-message {
  background-color: rgba(0, 0, 0, 1);
  font-family: Arial, sans-serif;
}

#mobile-content {
  text-align: center;
}

#grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 1vw;
  gap: 1vw;
  background-color: #000000;
  justify-items: center;
  align-items: center;
}

.player-container {
  position: relative;
  background-color: #1e2833;
  border: 2px solid #000;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 9 / 16;
  width: 100%;
  height: 100%;
}

.player-container:not(#player-1) {
  font-size: 0.5rem;
  padding: 40px;
  box-sizing: border-box;
}

#player-1 {
  background-color: rgba(0, 0, 0, 0.95);
  position: relative;
}

#video-element,
#canvas-element {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg) scaleY(-1);
  height: 55%;
  width: auto;
  object-fit: contain;
}

#event-display {
  position: absolute;
  bottom: 20%;
  left: 0;
  width: 100%;
  padding: 0.4vh 0;
  background: rgba(0, 0, 0, 0.3);
  text-align: center;
  color: #fff;
  font-family: 'Wallpoet', cursive;
  font-size: 1vh;
  z-index: 2;
}


.rank-overlay {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.3);
  color: #fff;
  border-radius: 10px;
  font-weight: bold;
  left: 0;
  padding-top: 0px;
  padding-left: 0px;
  padding-right: 0px;
  margin-top: 0px;
  margin-left: 0;
  margin-right: 0;
  z-index: 2;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.player-container.expanded .scalable {
  transform: scale(2) !important;
  transform-origin: center;
  transition: transform 0.5s ease-in-out;
}

.player-container.expanded .medal-overlay {
  transform: scale(2.5) !important;
  transform-origin: center;
  transition: transform 0.5s ease-in-out;
}

.player-container.expanded .rank-overlay {
  font-size: 3vw !important;
  padding: 1vw !important;
}

.player-container.expanded .rank-overlay.default-rank {
  font-size: 2vw !important;
  padding: 1vw !important;
}

#ready-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5vw;
  font-weight: bold;
  color: #fff;
  z-index: 2;
  display: none;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

#totalJumpCountCircle {
  position: absolute;
  top: 2%;
  left: 2%;
  border-radius: 15%;
  width: 15vw;
  height: 10vw;
  border: 0.5vw solid rgba(0, 238, 255, 0.8);
  background-color: rgba(0, 225, 255, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  z-index: 3;
}

#halfJumpCount {
  font-family: 'Graduate', cursive;
  color: #FFF;
  font-size: 4vw;
  line-height: 1;
  margin-bottom: 0.5vw;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

#totalJumpCount {
  font-family: 'Graduate', cursive;
  font-size: 2.5vw;
  color: rgba(255, 225, 255, 0.8);
  line-height: 1;
  margin-top: -0.4vw;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

#time-display {
  position: absolute;
  top: 8%;
  right: 0%;
  border-radius: 10%;
  transform: translateY(-50%);
  color: #fff;
  font-family: 'Wallpoet', cursive;
  font-size: 4vw;
  text-align: center;
  z-index: 3;
  width: 15vw;
  height: 4.5vw;
  line-height: 4.5vw;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

#time-display .integer-part {
  width: 8vw;
  text-align: right;
  padding-right: 0;
}

#time-display .time-separator {
  width: 1vw;
  text-align: center;
  font-family: 'Wallpoet', cursive;
  margin-top: 0;
  font-size: 50%;
  margin-top: 1vw;
}

#time-display .decimal-digits {
  width: 4vw;
  text-align: left;
  font-size: 50%;
  margin-top: 1vw;
  font-family: 'Wallpoet', cursive;
  letter-spacing: 0.1vw;
}

body.landscape-mode #time-display .time-separator {
  margin-top: 1vh;
  line-height: 2.25vw;
  vertical-align: middle;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.landscape-mode #time-display .decimal-digits {
  margin-top: 1vh;
  line-height: 2.25vw;
  display: flex;
  align-items: center;
}

body.landscape-mode #time-display {
  top: 8%;
  right: 2%;
  width: 7.5vw;
  height: 2.25vw;
  line-height: 2.25vw;
  font-size: 2vw;
  align-items: center;
}

body.landscape-mode #time-display .integer-part {
  line-height: 2.25vw;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.button-group {
  position: absolute;
  bottom: 1%;
  left: 1%;
  width: 8vw;
  height: 5vw;
  display: flex;
  flex-direction: column;
  gap: 10px;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.button-group button {
  position: absolute;
  border-radius: 10%;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: all 0.3s ease;
}

#startButton {
  bottom: 2%;
  left: 5%;
  font-size: 1vw;
  background-color: #0056b3;
  color: white;
  width: 7vw;
}

#resetButton {
  bottom: 2%;
  left: 5%;
  font-size: 0.5vh;
  background-color: #c82333;
  color: white;
  width: 7vw;
}

#startButton:hover {
  background-color: #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
  transform: scale(1.05);
}

#resetButton:hover {
  background-color: #dc3545;
  box-shadow: 0 0 10px rgba(220, 53, 69, 0.6);
  transform: scale(1.05);
}

.recording-indicator {
  position: absolute;
  top: 15%;
  right: 25%;
  width: 2vw;
  height: 2vw;
  background-color: red;
  border-radius: 50%;
  display: none;
  box-shadow: 0 0 10px 2px red;
  animation: blink 1s infinite alternate;
  z-index: 3;
}

@media (min-width: 2160px) and (orientation: portrait) {
  .recording-indicator {
    width: 2vw;
    height: 2vw;
  }
}

@media (min-width: 1080px) and (max-width: 1920px) and (orientation: portrait) {
  .recording-indicator {
    width: 2vw;
    height: 2vw;
  }
}

body.landscape-mode .recording-indicator {
  right: 15%;
  width: 1.5vw;
  height: 1.5vw;
  z-index: 10;
}

@media (min-width: 2160px) and (orientation: landscape) {
  body.landscape-mode .recording-indicator {
    right: 15%;
    width: 1.5vw;
    height: 1.5vw;
  }
}

@media (min-width: 1080px) and (max-width: 1920px) and (orientation: landscape) {
  body.landscape-mode .recording-indicator {
    right: 15%;
    width: 1.5vw;
    height: 1.5vw;
  }
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0.3;
  }
}

.rank-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  height: 55%;
  width: auto;
  object-fit: contain;
}

.gold-border .rank-overlay,
.silver-border .rank-overlay,
.bronze-border .rank-overlay {
  padding: 1rem 1rem;
  top: 1%;
  left: 2%;
  font-size: 3rem;
  transform: translate(-10%, -10%);
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.rank-overlay.default-rank {
  top: 1% !important;
  left: 0% !important;
  font-size: 1rem;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.jump-count {
  font-family: 'Graduate', cursive;
  font-size: 1.5vw;
  font-weight: normal;
  margin-top: 5px;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.default-rank .jump-count {
  font-size: 1.5vw;
}

.medal {
  margin-right: 10px;
}

.gold-border {
  border: 40px solid #ffbb00 !important;
  padding: 0 !important;
}

.silver-border {
  border: 40px solid #e6e6e6 !important;
  padding: 0 !important;
}

.bronze-border {
  border: 40px solid #ad8359 !important;
  padding: 0 !important;
}

@keyframes video-zoom-center {
  0% {
    width: 250%;
    height: 250%;
    transform: translate(0, 0);
    z-index: 1;
  }

  10% {
    width: 90%;
    height: 90%;
    transform: translate(-50%, -50%);
    z-index: 999;
  }

  90% {
    width: 90%;
    height: 90%;
    transform: translate(-50%, -50%);
    z-index: 999;
  }

  100% {
    width: 0%;
    height: 0%;
    transform: translate(0, 0);
    z-index: 1;
  }
}

@keyframes medal-stamp {
  0% {
    transform: scale(0) translateY(-100px);
    opacity: 0;
  }

  20% {
    transform: scale(3) translateY(0);
    opacity: 1;
  }

  95% {
    transform: scale(3) translateY(0);
    opacity: 1;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 0;
  }
}

.medal-overlay {
  position: absolute;
  top: 5%;
  right: 10%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  animation: medal-stamp 9.5s ease-in-out;
  opacity: 0;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

@keyframes rank-display {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }

  50% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-20px);
    opacity: 0;
  }
}

@keyframes jumps-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.rank-info {
  position: absolute;
  bottom: 20%;
  left: 0;
  width: 100%;
  font-size: 10rem;
  font-weight: bold;
  color: white;
  text-align: center;
  z-index: 1000;
  animation: rank-display 1.5s ease-in-out;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  background-color: rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.jumps-count {
  animation: jumps-blink 0.7s infinite;
  font-weight: bold;
}

.gold-jumps {
  color: #ffbb00;
}

.silver-jumps {
  color: #e6e6e6;
}

.bronze-jumps {
  color: #ad8359;
}

.gold-border-overlay {
  background-color: rgba(255, 223, 0, 0.5);
}

.silver-border-overlay {
  background-color: rgba(192, 192, 192, 0.5);
}

#snag-log {
  position: absolute;
  top: 15%;
  right: 2%;
  width: 3vw;
  background-color: rgba(0, 0, 0, 0.5);
  color: red;
  font-size: 0.5vh;
  padding: 8px;
  border-radius: 8px;
  text-align: right;
  z-index: 999;
  line-height: 1.2;
}

.snag-log-overlay {
  position: absolute;
  top: 15%;
  right: 1%;
  background-color: rgba(0, 0, 0, 0.5);
  color: red;
  font-size: 0.5vh;
  padding: 8px;
  border-radius: 8px;
  text-align: right;
  z-index: 99;
  line-height: 1.2;
}

.snag-log-overlay .game-over {
  font-size: 1vw;
  color: #ff0000;
  font-weight: bold;
  margin-top: 2px;
}





@media (max-width: 1080px) {

  #fullscreen-content,
  #mobile-content {
    padding: 20px 50px;

  }

  .challenge-header h1 {
    font-size: 2rem !important;
  }

  #fullscreen-confirm {
    font-size: 1.5rem;
  }

  .confirm-button {
    font-size: 1.5rem;
  }

  .custom-dropdown-toggle {
    background-color: #fff;
    border: 1px solid #000;
    color: #000;
    padding: 3px 12px 5px 12px;
    cursor: pointer;
    font-size: 2rem;
    display: inline-flex;
    align-items: center;
  }

  .custom-dropdown-toggle .arrow {
    margin-left: 8px;
    font-size: 1.5rem;
  }


  .custom-dropdown-menu .dropdown-item {
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    background-color: #fff;
    border: none;
    color: #000;
    cursor: pointer;
    font-size: 1.5rem;
  }

  .jump-count {
    font-size: 1vw;
  }


  .medal {
    margin-right: 10px !important;
  }

  .gold-border {
    border: 20px solid #ffbb00 !important;
  }

  .silver-border {
    border: 20px solid #e6e6e6 !important;
  }

  .bronze-border {
    border: 20px solid #ad8359 !important;
  }

  .gold-border .rank-overlay,
  .silver-border .rank-overlay,
  .bronze-border .rank-overlay {
    font-size: 1.2rem;
    padding: 0.5rem 0.5rem;
    top: 1%;
    left: 2%;
    transform: translate(-10%, -10%);
  }

  .rank-overlay.default-rank {
    font-size: 1rem;
  }

  .gold-border .jump-count,
  .silver-border .jump-count,
  .bronze-border .jump-count {
    font-size: 1.5rem;
  }

  .default-rank .jump-count {
    font-size: 1.5rem;
  }

  #settings-modal h2 {
    font-size: 3rem !important;
  }
}

.snag-log-overlay {
  position: absolute;
  top: 15%;
  right: 1%;
  background-color: rgba(0, 0, 0, 0.5);
  color: red;
  font-size: 0.5vh;
  padding: 8px;
  border-radius: 8px;
  text-align: right;
  z-index: 99;
  line-height: 1.2;
}

#settings-button {
  position: absolute;
  bottom: 2%;
  right: 2%;
  width: 4vw;
  height: 4vw;
  border-radius: 10%;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

@media (min-width: 2160px) {
  #settings-button {
    width: 4vw;
    height: 4vw;
  }
}

@media (min-width: 1080px) and (max-width: 1920px) {
  #settings-button {
    width: 4vw;
    height: 4vw;
  }
}

#zoom-toggle-button {
  position: absolute;
  bottom: 1vw;
  left: 50%;
  transform: translateX(-50%);
  width: 4vw;
  height: 4vw;
  border-radius: 50%;
  border: 0.1vw solid white;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1.5vw;
  cursor: pointer;
  z-index: 10;
}

@media (min-width: 2160px) and (orientation: portrait) {
  #zoom-toggle-button {
    width: 4vw;
    height: 4vw;
    font-size: 1.5vw;
  }
}

@media (min-width: 1080px) and (max-width: 1920px) and (orientation: portrait) {
  #zoom-toggle-button {
    width: 4vw;
    height: 4vw;
    font-size: 1.5vw;
  }
}

body.landscape-mode .rank-overlay.default-rank {
  font-size: 1.5rem !important;
  padding: 1vw !important;
}

.default-rank .jump-count {
  font-size: 1.5vw;
}

body.landscape-mode .player-container:not(.gold-border):not(.silver-border):not(.bronze-border) .rank-overlay {
  display: flex;
  flex-direction: column;
  gap: 2.5vh !important;
}

body.landscape-mode .rank-overlay.default-rank .rank-line {
  font-size: 1.8rem !important;
  font-weight: bold;
}

body.landscape-mode .score-line {
  display: flex;
  flex-direction: column;
  gap: 1.5vh;
}

body.landscape-mode .default-rank .score-line {
  margin-top: 3vh !important;
}

body.landscape-mode .default-rank .jump-count {
  font-size: 1.8vw !important;
}

.monitor-select-btn:hover:not(:disabled) {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.monitor-select-btn:active:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
}

.monitor-select-btn:disabled {
  transform: none !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

#monitor-selection {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.landscape-mode #zoom-toggle-button {
  width: 1.5vw;
  height: 1.5vw;
  bottom: 0.5vw;
  font-size: 0.6vw;
  border-width: 0.05vw;
}

.rank-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2vw;
  color: white;
}

.rank-info .half-count {
  font-size: 3vw;
  margin-bottom: 0.5vw;
}

.rank-info .total-count {
  font-size: 2vw;
}

@media (min-width: 2160px) and (orientation: portrait) {
  #totalJumpCountCircle {
    width: 15vw;
    height: 10vw;
    border-width: 0.5vw;
  }

  #halfJumpCount {
    font-size: 4vw;
  }

  #totalJumpCount {
    font-size: 2.5vw;
  }
}

@media (min-width: 1080px) and (max-width: 1920px) and (orientation: portrait) {
  #totalJumpCountCircle {
    width: 15vw;
    height: 10vw;
    border-width: 0.5vw;
  }

  #halfJumpCount {
    font-size: 4vw;
  }

  #totalJumpCount {
    font-size: 2.5vw;
  }
}

@media (min-width: 2160px) and (orientation: portrait) {

  body:not(.landscape-mode) .event-du #halfJumpCount,
  body:not(.landscape-mode) .event-bj #halfJumpCount {
    font-size: 6vw;
  }
}

@media (min-width: 1080px) and (max-width: 1920px) and (orientation: portrait) {

  body:not(.landscape-mode) .event-du #halfJumpCount,
  body:not(.landscape-mode) .event-bj #halfJumpCount {
    font-size: 6vw;
  }
}

/* 가로 모드에서 점프 카운트 크기와 글꼴 조정 */
@media (min-width: 2160px) and (orientation: landscape) {
  body.landscape-mode #totalJumpCountCircle {
    width: 8vw;
    height: 5.5vw;
    border-width: 0.5vw;
  }

  body.landscape-mode #halfJumpCount {
    font-size: 2vw;
  }

  body.landscape-mode #totalJumpCount {
    font-size: 1.25vw;
    margin-top: -0.4vw;
  }

  body.landscape-mode.event-du #halfJumpCount,
  body.landscape-mode.event-bj #halfJumpCount {
    font-size: 3.5vw;
  }
}

@media (min-width: 1080px) and (max-width: 1920px) and (orientation: landscape) {
  body.landscape-mode #totalJumpCountCircle {
    width: 8vw;
    height: 5.5vw;
    border-width: 0.5vw;
  }

  body.landscape-mode #halfJumpCount {
    font-size: 2vw;
  }

  body.landscape-mode #totalJumpCount {
    font-size: 1.25vw;
    margin-top: -0.4vw;
   }

  body.landscape-mode.event-du #halfJumpCount,
  body.landscape-mode.event-bj #halfJumpCount {
    font-size: 3.5vw;
  }
}

body.landscape-mode.event-ss #totalJumpCount,
body.landscape-mode.event-se #totalJumpCount {
  margin-top: -0.5vw;
}

body.landscape-mode.event-ss #totalJumpCountCircle,
body.landscape-mode.event-se #totalJumpCountCircle {
  justify-content: center;
  padding-bottom: 0.5vw;
}

body.landscape-mode.event-ss #halfJumpCount,
body.landscape-mode.event-se #halfJumpCount {
  margin-bottom: 0.2vw;
}