/* -------------------------------------------------------- */
/* ----------------- CSS Home.ejs | Main  ----------------- */
/* -------------------------------------------------------- */
/* ------------------ Bagian Kotak Utama ------------------ */

.RoundedBox {
  height: 35rem;
  width: 35rem;
  border-radius: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  background-color: rgba(27, 27, 27, 0.9);
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 25px;
  overflow: hidden;
}

/* -------- Yang bagian dalam ContainerBoxModeText -------- */

.ContainerBoxModeText {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  transform: translateY(3rem);
}

.BoxTextContainer {
  display: flex;
  gap: 1.4rem;
}

.clicking-counter {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  text-align: center;
}

.BoxTextGameMode,
.BoxTextGameTime {
  height: 3rem;
  width: 15rem;
  font-size: 1.2rem;
  border-radius: 0.3125rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* -------------------------- End ------------------------- */
/* ------ Yang bagian dalam ContainerBoxModeButton -------- */

.ContainerBoxModeButton {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  max-width: 40rem;
}

.mode-selector {
  display: flex;
  justify-content: center;
}

#modeButton {
  font-family: "Montserrat", sans-serif;
  height: 3rem;
  width: 15rem;
  border-radius: 0.3125rem;
  font-size: 1rem;
  margin-top: 3.5rem;
  margin-bottom: 1rem;
  background: #272727;
  border: none;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgb(255, 255, 255);
}

#modeButton:hover {
  background: #3f3f3f;
}

.BoxModeGame {
  display: flex;
  justify-content: center;

}

#ModeGameButton {
  font-family: "Montserrat", sans-serif;
  height: 3rem;
  width: 15rem;
  border-radius: 0.3125rem;
  font-size: 1rem;
  margin-top: 3.5rem;
  margin-bottom: 1rem;
  background: #272727;
  border: none;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

#ModeGameButton:hover {
  background: #3f3f3f;
}

/* -------------------------- End ------------------------- */
/* ---------- Yang bagian dalam ContainerDisplayWKN ------- */

.ContainerDisplayWKN {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  max-width: 40rem;
}

.BoxWaktu,
.BoxKecepatan,
.BoxNilai {
  height: 5rem;
  width: 10rem;
  border-radius: 0.625rem;
  margin-right: -0.8rem;
  margin-left: -0.8rem;
  background-color: #272727;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.BoxWaktu p,
.BoxKecepatan p,
.BoxNilai p {
  margin: 0;
  font-size: 1rem;
  transform: translateY(0.2rem);
}

.BoxWaktu .time-value,
.BoxKecepatan .speed-value,
.BoxNilai .score-value {
  font-size: 1rem;
  margin-top: 0.5rem;
}

.ButtonPlay {
  height: 12rem;
  width: 31.9rem;
  border-radius: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  cursor: pointer;
  margin: 1rem auto 0;
  overflow: hidden;
  position: relative;
  background-color: #272727;
  transition: 0.3s ease;
}

.ButtonPlay p {
  font-size: 1rem;
  transform: translateY(0);
}

.ButtonPlay:hover {
  background-color: #3f3f3f;
}

/* -------------------------- End ------------------------- */
/* -------------------------- End ------------------------- */
/* ----------------- Anim tombol ditekan ------------------ */

.ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: scale(0);
  animation: rippleEffect 0.6s linear;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.hidden {
  display: none;
}
