.game {
  position: relative;
  width: 80%;
  height: 80vh;
  margin: auto;
}

.game nav[role="navigation"] img,
svg {
  width: auto;
}

.game text {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  pointer-events: none;
  fill: #0f5961;
  font-family: 'Azuki';
}

.game #chart {
  position: absolute;
  width: 500px;
  height: 500px;
  top: 0;
  left: 0;
}

.game #question {
  position: absolute;
  width: 400px;
  height: 500px;
  top: 0;
  left: 520px;
}

.game #question h1 {
  font-size: 2rem;
  font-weight: bold;
  position: absolute;
  padding: 0;
  margin: 0;
  top: 50%;
  color: #1e7d71;
  -webkit-transform: translate(0, -50%);
  transform: translate(0, -50%);
  font-family: serif;
  border: 0.01rem solid #1e7c70;
  padding: 1rem;
  border-radius: 0.3rem;
  min-width: 100%;
}

.game .dropdown {
  width: 100%;
}

.game .dropdown-menu.show {
  display: block;
  width: 100%;
  padding: 1rem;
  box-shadow: 1px 1px 7px #6c6c6c;
  transform: none !important;
}

.game .row {
  margin-top: 0.3rem;
}

.game .custom_small_btn {
  font-size: 0.8rem;
  color: #fff !important;
  border-radius: 0.3rem;
  padding: 0.2rem 1rem;
}

.game .custom_small_btn.btn-danger {
  background-color: #d30303;
}

.game #answer_value {
  display: none;
  font-size: 2rem;
}

.prize-display {
  min-width: 20rem;
  background-color: #ff0000;
  width: fit-content;
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  position: absolute;
  top: 6rem;
  right: 3rem;
}

.prize-title {
  margin-top: 0;
  color: #fff;
}

#prize-list {
  list-style: none;
  padding: 20px;
  margin: 20px auto;
  max-width: 500px;
  border: 2px solid red;
  border-radius: 5px;
  background-color: white;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

#prize-list li {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  color: white !important;
  text-align: center;
  font-size: 1.4em;
  font-weight: bold;
  position: relative;
  /* Cần thiết nếu bạn muốn điều chỉnh z-index của li */
  z-index: 1;
  /* Đặt li ở lớp giữa (có thể không cần thiết nếu chỉ muốn hoa lá trên nền) */
}

#prize-list li:last-child {
  border-bottom: none;
}

@keyframes backgroundColorChange {
  0% {
    background-color: red;
  }

  50% {
    background-color: gold;
  }

  100% {
    background-color: red;
  }
}

#prize-list li.blinking-bg {
  animation: backgroundColorChange 2s infinite alternate;
  z-index: 0;
  /* Đảm bảo nền ở lớp dưới (nếu cần) */
}

#prize-list::before {
  content: "🌸";
  font-size: 2em;
  position: absolute;
  top: 10px;
  left: 10px;
  opacity: 0.7;
  z-index: 2;
  /* Đưa hoa lên trên */
}

#prize-list::after {
  content: "🌿";
  font-size: 2.5em;
  position: absolute;
  bottom: 5px;
  right: 15px;
  opacity: 0.7;
  transform: rotate(20deg);
  z-index: 2;
  /* Đưa lá lên trên */
}

.light-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.light {
  width: 10px;
  height: 10px;
  background-color: #bbb;
  border-radius: 50%;
  margin: 0 5px;
  box-shadow: 0 0 5px #999;
  animation: blink 1s infinite alternate;
}

.light:nth-child(2) {
  animation-delay: 0.2s;
}

.light:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.4;
  }
}

#chart {
  text-align: center;
}

.cloud-top {
  text-align: center;
}

.cloud-top img {
  width: 75%;
  top: -9rem;
  position: relative;
  margin: auto;
}

.modal-content {
  background: transparent;
  border: none;
}

.cloud-body {
  margin-top: -17rem;
  text-align: center;
  background-color: #57c4f1;
  padding: 1rem;
  border-radius: 5rem;
}

#prize_label_cloud {
  font-size: 5rem;
  color: #e60012;
  text-shadow: 1px 1px 4px #ffffff;
  font-family: 'Baloo Paaji';
}

.modal-backdrop.show {
  opacity: 0.8 !important;
  background-color: #000 !important;
}

@media (max-width: 991px) {
  .prize-display {
    position: static;
    width: 100%;
  }
}

body {
  height: 100vh;
  background-color: #ede8ff; /* Màu nền chính */
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.02),
    rgba(0, 0, 0, 0.02) 1px,
    transparent 1px,
    transparent 10px
  ),
  repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.02),
    rgba(0, 0, 0, 0.02) 1px,
    transparent 1px,
    transparent 10px
  );
}

.default_background {
  background-color: #fff;
}

.custom_list.container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom_list.container h1 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

.custom_list.container .input-group {
  display: flex;
  margin-bottom: 15px;
}

.custom_list.container .input-group input[type="text"] {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 16px;
}

.custom_list.container .input-group button {
  background-color: #5cb85c;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.custom_list.container .input-group button:hover {
  background-color: #4cae4c;
}

.custom_list.container #taskList {
  list-style-type: none;
  padding: 0;
}

.custom_list.container #taskList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dotted #eee;
  font-size: 16px;
}

.custom_list.container #taskList li:last-child {
  border-bottom: none;
}

.custom_list.container .delete-btn {
  background-color: #d9534f;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.custom_list.container .delete-btn:hover {
  background-color: #c9302c;
}