*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;

  height: 100vh;
  background-color: #0f0f0f;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 45px 45px;
  color: #ffff;
}

#petals {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* Animation */
.petal {
  position: absolute;
  width: 8px;
  height: 12px;
  background: #f8a9d18a;
  border-radius: 50% 10% 50% 10%;
  opacity: 0.6;
  animation: fall linear infinite;
}

.content {
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  margin: 2rem;
  border-radius: 15px;
}

@keyframes fall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) translateX(20px) rotate(360deg);
    opacity: 0;
  }
}


/* Content */
.main-title {
  width: 100%;
  position: absolute;
  top: 0;
  font-size: 1.2em;
  margin-top: 5px;
  padding: 10px;
  color: #FFFFFF;
  opacity: 0.8;
  text-align: center;
}

.main-title .jp {
  color: #BC002D;
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;

  max-width: 600px;
  width: 100%;
  min-height: 400px;
  height: auto;
  padding: 10px;
}

.chapter-input {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.chapter-no-input input {
  padding: 5px 5px;
  max-width: 200px;
  width: 100%;
  color: #fff;
  text-align: center;
  font-size: 15px;
  background: none;
  border: 1px solid #c1bebe78;
  background-color: transparent;
  outline: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.apply-chapter input {
  color: #fff;
  background: none;
  padding: 5px 20px;
  border: 1px solid #c1bebe78;
  transition: background-color 0.3s ease;
}

.apply-chapter input:hover {
  cursor: pointer;
  background-color: #c1bebe78;
}

.question-details {
  height: fit-content;
  width: 100%;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.question-details div {
  height: 100%;
  width: 100%;
  padding: 10px;
  border: 1px solid #c1bebe78;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.question-details .chapter-no {
  border-left: none;
  border-right: none;
}

.question-details span {
  display: block;
  text-align: center;
  color: #dad5d5;
  font-size: 14px;
  font-weight: 400;
}

.container {
  position: relative;
  height: 100%;
  width: 100%;
  padding: 10px;
  margin: 10px;
  border: 1px solid #c1bebe78;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}

.container p {
  color: #008000;
}

.question-div {
  margin-top: 5px;
}

.question p {
  text-align: center;
  color: #fff;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: space-between;

  gap: 10px;
  list-style: none;
}

.option {
  padding: 10px;
  font-size: 15px;
  text-align: start;
  border: 1px solid #c1bebe78;
  transition: background-color 0.3s ease;
}

.option:hover {
  cursor: pointer;
  background-color: #c1bebe78;
}

.disabled {
  pointer-events: none;
  opacity: 0.5;
  color: gray;
}

.answer p {
  text-align: center;
  color: #008000;
}

.reset-next {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.reset-next .reset-btn-01 {
  width: 100px;
  height: 30px;
  color: #fff;
  background: none;
  border: 1px solid #c1bebe78;
}

.reset-next .nxt {
  width: 100px;
  height: 30px;
  color: #fff;
  background: none;
  border: 1px solid #c1bebe78;
  transition: background-color 0.3s ease;
}

.reset-next .nxt:hover {
  cursor: pointer;
  background-color: #c1bebe78;
}

.reset-btn-01 {
  color: #fff;
  background: none;
  padding: 5px 20px;
  border: 1px solid #c1bebe78;
  transition: background-color 0.3s ease;
}

.reset-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  transform: none;
  color: #fff;
  background: none;
  padding: 5px 20px;
  border: 1px solid #c1bebe78;
  transition: background-color 0.3s ease;
}

.reset-btn-01:hover,
.reset-btn:hover {
  cursor: pointer;
  background-color: #c1bebe78;
}

/* Footer */
.footer-message {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: #dad5d5;
  padding: 10px;
  opacity: 0.8;
}

/* Disclaimer */
.disclaimer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  background-color: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 2rem;
}

.disclaimer p {
  position: relative;
  max-width: 400px;
  width: 90%;
  background-color: #7c7b7b33;
  color: #fff;
  font-size: 14px;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.close-btn {
  position: absolute;
  top: 4px;
  right: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  color: #fff;
}