/* GENERAL */
html {
  /* increase overall scale of UI (affects rem units) */
  font-size: 20px;
}
body {
  font-family: "t26-carbon", monospace;
  font-weight: 400;
  font-style: normal;
  background-color: #cbbdff;
  background-image: url(background.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  image-rendering: pixelated;
}

  h1 {
    font-family: "cc-overbyte-off", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #5f3c8d;
  }



.bestof {
  background: #cbbdff;
  border-radius: 20px;
  border: 7px solid #bbabf3;
  height: 150%;
  /* keep visual size of these buttons unchanged from original design */
  font-size: 32px;
  color: white;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 200ms ease,
    color 180ms ease;
  box-shadow: 0 0 0 rgba(115, 92, 196, 0);
}

.bestof strong {
  font-weight: 700;
  font-size: 2.5rem;
  font-family: "cc-overbyte-off", sans-serif;
}

.bestof:hover,
.bestof:focus-visible {
  background-color: #d9ceff;
  border-color: #c5b8f5;
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(115, 92, 196, 0.28);
  color: #ffffff;
}

.bestof:active {
  transform: scale(0.98);
  box-shadow: 0 6px 12px rgba(115, 92, 196, 0.2);
}

.sub {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #4c3166;}

.arrow {
  /* keep arrow visual size unchanged */
  font-size: 3rem;
  color: #735cc4;
  margin-top: 1rem;
  opacity: 0.7;
  animation: MoveUpDown 0.5s ease-in-out infinite alternate;
}

@keyframes MoveUpDown {
  0% {
    transform: translateY(-10px);
    /* Start at the original vertical position */
  }

  100% {
    transform: translateY(10px);
    /* Move up 20 pixels */
  }
}

.page-content {
  padding: 1rem;
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch; /* allow child rows to be full-width */
  width: 100%;
  box-sizing: border-box;
}

.card-custom {
  width: 100%;
  max-width: 640px; /* controls how wide the content can grow */
  margin: 0 auto;   /* centers the card */
  box-sizing: border-box;
  padding: 1rem;
}

/* TITLE */
.title {
  background: #bbabf3;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  font-size: 2rem;
  display: inline-block;
  font-family: "cc-overbyte-off", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin-top: -3rem;
}

/* INPUT */
.name-input {
  max-width: 240px;
  border-radius: 50px;
  text-align: center;
}

.input {
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.input:hover,
.input:focus-visible {
  border-color: #8e79dd;
  box-shadow: 0 0 5px 4px rgba(115, 92, 196, 0.35);
  outline: none;
}

/* FADE TEXT (later animation target) */
.fade-text {
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

/* Fade-in animation used when welcome text is generated */
.fade-in {
  animation: fadeInText 400ms ease forwards;
}

@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 0.7;
    transform: translateY(0);
  }
}

/* MODE BUTTONS */
.mode-btn {
  width: 100%;
  padding: 1.5rem;
  border-radius: 20px;
  border: none;
  background: #e0e0e0;
  font-size: 1.1rem;
  transition: transform 120ms ease, box-shadow 180ms ease;
}

.mode-btn span {
  font-size: 2rem;
  display: block;
}

/* GAME */
.hand-box {
  height: 120px;
  background: #ddd;
  border-radius: 16px;
  margin-top: 0.5rem;
}

.hp-bar {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* CHOICES */
/* source: https://cssbuttons.io/ */
.choice{
  align-items: center;
  appearance: none;
  background-color: #f8f3ff;
  border-radius: 8px;
  border-width: 2px;
  border-color: #b699f8;
  box-shadow: rgba(143, 83, 254, 0.2) 0 2px 4px, rgba(143, 83, 254, 0.2) 0 7px 13px -3px, #ded6e7 0 -3px 0 inset;
  box-sizing: border-box;
  color: #8e79dd;
  cursor: pointer;
  display: inline-flex;
  height: 56px;
  justify-content: center;
  line-height: 1;
  list-style: none;
  overflow: hidden;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  will-change: box-shadow, transform;
  font-size: 20px;
}

.choice:focus {
  outline: none;
  box-shadow: #f1e6ff 0 0 0 1.5px inset, rgba(157, 83, 254, 0.4) 0 2px 4px, rgba(143, 83, 254, 0.2) 0 7px 13px -3px, #ded6e7 0 -3px 0 inset;
}

.choice:hover {
  box-shadow: rgba(143, 83, 254, 0.2) 0 4px 8px, rgba(143, 83, 254, 0.2) 0 7px 13px -3px, #ded6e7 0 -3px 0 inset;
  transform: translateY(-2px);
}

.choice:active {
  box-shadow: #f1e6ff 0 3px 7px inset;
  transform: translateY(2px);
}
/* RESULTS */
.result-text {
  font-size: 2rem;
  font-weight: bold;
  font-family: "cc-overbyte-on", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* PLAY AGAIN */
/* button from https://getcssscan.com/css-buttons-examples */
.play-again {
  margin-top: 2rem;
  align-items: center;
  appearance: none;
  background-image: radial-gradient(100% 100% at 100% 0, #d9c5fd 0, #9d74e7 100%);
  border: 0;
  border-radius: 6px;
  box-shadow: rgba(45, 35, 66, .4) 0 2px 4px,rgba(45, 35, 66, .3) 0 7px 13px -3px,rgba(58, 65, 111, .5) 0 -3px 0 inset;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  line-height: 1;
  list-style: none;
  overflow: hidden;
  padding-left: 16px;
  padding-right: 16px;
  position: relative;
  text-align: left;
  text-decoration: none;
  transition: box-shadow .15s,transform .15s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  will-change: box-shadow,transform;
  font-size: 18px;
}

.play-again:focus {
  box-shadow: #8a51b9 0 0 0 1.5px inset, rgba(45, 35, 66, .4) 0 2px 4px, rgba(45, 35, 66, .3) 0 7px 13px -3px, #8a51b9 0 -3px 0 inset;
}

.play-again:hover {
  box-shadow: rgba(45, 35, 66, .4) 0 4px 8px, rgba(45, 35, 66, .3) 0 7px 13px -3px, #8a51b9 0 -3px 0 inset;
  transform: translateY(-2px);
}

.play-again:active {
  box-shadow: #8a51b9 0 3px 7px inset;
  transform: translateY(2px);
}


.mode-btn:active,
.choice-btn:active,
.play-again:active {
  transform: scale(0.97);
}
