/* Container for the pie chart */
body {
  /* background-color: #f5dc5d; */
}

#chart text {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  font-size: 17px;
}
#chart text {
  pointer-events: none;
  max-width: 20px;
}

#chart {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* Make the SVG responsive */
svg {
  width: 100%;
  height: auto;
}

/* Style for the question text below the chart */
#question {
  text-align: center;
  margin-top: 20px;
}

#question h1 {
  font-size: 1.5em;
}

.title {
  text-align: center;
  margin-bottom: 20px;
  color: #f25922;
  font-size: 2rem;
}

/* Modal styles */
.modal-spin {
  display: none;
  position: fixed;
  z-index: 20;
  left: 0;
  top: -20%;
  bottom: 0;
  width: 100%;
  /* height: 100%; */
  background-color: rgba(0, 0, 0, 0.5);
}
.modal-spin-question {
  display: none;
  position: fixed;
  z-index: 20;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content-spin {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 100%;
  max-width: 700px;
  text-align: center;
  border-radius: 20px;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}

.close-btn {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
}

#copyButton {
  background-color: #f25922;
  /* Warna hijau */
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#copyButton:hover {
  background-color: #ffc021;
}

#copyButton:active {
  background-color: #ffc021;
  box-shadow: 0 5px #666;
  transform: translateY(4px);
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Add a blur effect to all text except for the SPIN button text */
.chartholder text {
  /* filter: blur(1px); */
  transition: filter 0.3s ease-in-out;
}

.chartholder .spin-text {
  filter: none;
}

@media screen and (max-width: 768px) {
  .modal-spin {
    top: 0; /* Modal akan berada di atas layar pada perangkat mobile */
  }
}
