* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial;
  min-height: 100vh;

  background: #d6ff1a;

  overflow-x: hidden;
  position: relative;
}

/* Background */

body::before {
  content: "";

  position: fixed;

  width: 100%;
  height: 100%;

  background-image: url("assets/paw.png");

  background-size: 90px;

  opacity: 0.18;

  z-index: -2;

  animation: move 20s linear infinite;
}

@keyframes move {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-300px);
  }
}

.overlay {
  position: fixed;

  width: 100%;
  height: 100%;

  background: radial-gradient(
    circle,
    transparent 40%,
    rgba(255, 255, 255, 0.15)
  );

  z-index: -1;
}

.container {
  width: min(1100px, 92%);
  margin: auto;
  padding: 30px 0;
  text-align: center;
  position: relative;
}

.claim-btn {
  position: absolute;
  top: 20px;
  right: 30px;

  background: #16b14b;
  color: #fff;

  padding: 14px 28px;

  text-decoration: none;
  font-weight: bold;
  font-size: 18px;

  border: 4px solid #000;
  box-shadow: 4px 4px 0 #000;

  transition: 0.2s;
}

.claim-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

h1 {
  font-family: "Luckiest Guy";

  font-size: clamp(50px, 8vw, 100px);

  color: #19b547;

  letter-spacing: 4px;

  margin-bottom: 20px;
}

/* Dancing Cat */

.dancing-cat img {
  width: min(220px, 45vw);
}

/* Slider */

.slider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 40px 0;
}

.cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.cards img {
  border-radius: 12px;
  transition: 0.3s ease;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.center-image {
  width: 340px;
  transform: scale(1);
}

.side-image {
  width: 180px;
  opacity: 0.75;
  transform: scale(0.9);
}

.arrow {
  font-size: 50px;
  border: none;
  background: none;
  cursor: pointer;
  color: #222;
}

button {
  font-size: 50px;

  background: none;

  border: none;

  cursor: pointer;

  font-weight: bold;

  color: #333;

  transition: 0.3s;
}

button:hover {
  transform: scale(1.2);
}

/* Requirement */

.requirement {
  max-width: 900px;
  margin: 50px auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 6px solid #000;
  box-shadow: 8px 8px 0 #000;
}

.requirement h2 {
  text-align: center;
  font-size: 60px;
  color: #18a84a;
  margin-bottom: 35px;
  font-family: "Luckiest Guy", cursive;
  letter-spacing: 2px;
}

.task {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 18px;
  padding: 18px;

  background: #fff7d8;
  border: 4px solid #000;
}

.task span {
  font-size: 24px;
  font-weight: 700;
}

.requirements-btn {
  width: 90px;
  height: 50px;
  background: #16b14b;
  color: #fff;
  text-decoration: none;

  display: flex;
  justify-content: center;
  align-items: center;

  border: 4px solid #000;
  box-shadow: 4px 4px 0 #000;

  font-size: 22px;
  font-weight: bold;

  transition: 0.2s;
}

.requirements-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

/* Responsive */

/* Tablet */
@media (max-width: 992px) {
  .center-image {
    width: 280px;
  }

  .side-image {
    width: 140px;
  }
}

@media (max-width: 768px) {
  .cards {
    gap: 0;
  }

  .side-image {
    display: none;
  }

  .center-image {
    width: 280px;
  }

  .slider {
    gap: 10px;
  }

  .arrow {
    font-size: 36px;
  }

  .requirement {
    padding: 20px;
  }

  .requirement h2 {
    font-size: 40px;
  }

  .task {
    padding: 15px;
  }

  .task span {
    font-size: 18px;
  }

  .task button {
    width: 70px;
    height: 42px;
    font-size: 18px;
  }

  .claim-btn {
    top: 10px;
    right: 10px; /* Stay on the right */
    left: auto;

    padding: 10px 16px;
    font-size: 14px;
    z-index: 1000;
  }

  h1 {
    margin-top: 40px; /* Push heading below the button */
  }
}

@media (max-width: 500px) {
  .slider {
    flex-direction: row;
  }

  button {
    font-size: 32px;
  }

  .card img {
    width: 260px;
  }
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.55);

  display: none;

  justify-content: center;
  align-items: center;

  z-index: 9999;
}

.modal-content {
  width: min(450px, 90%);

  background: #fff7d8;

  border: 5px solid #000;

  box-shadow: 8px 8px 0 #000;

  padding: 30px;

  text-align: center;
}

.modal-content h2 {
  font-family: "Luckiest Guy";

  color: #18a84a;

  margin-bottom: 15px;
}

.modal-content p {
  margin-bottom: 20px;

  font-size: 18px;
}

.modal-content input {
  width: 100%;

  padding: 15px;

  font-size: 16px;

  border: 3px solid #000;

  outline: none;
}

.modal-buttons {
  margin-top: 25px;

  display: flex;

  justify-content: space-between;
}

.cancel-btn,
.submit-btn {
  width: 140px;

  padding: 12px;

  border: 4px solid #000;

  font-size: 18px;

  cursor: pointer;

  font-weight: bold;
}

.cancel-btn {
  background: #ff6b6b;
  color: white;
}

.submit-btn {
  background: #16b14b;
  color: white;
}

.success-modal {
  position: fixed;
  inset: 0;

  display: none;
  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.65);

  z-index: 99999;

  animation: fadeIn 0.25s ease;
}

.success-box {
  width: min(420px, 90%);

  background: #fff7d8;

  border: 5px solid #000;

  box-shadow: 10px 10px 0 #000;

  border-radius: 18px;

  text-align: center;

  padding: 35px 25px;

  animation: pop 0.3s ease;
}

.success-icon {
  font-size: 70px;
  margin-bottom: 15px;
}

.success-box h2 {
  font-family: "Luckiest Guy", cursive;

  color: #18a84a;

  font-size: clamp(34px, 5vw, 42px);

  margin-bottom: 15px;
  line-height: 1.2;
}

.success-box p {
  font-size: 20px;

  line-height: 1.6;

  margin-bottom: 30px;

  color: #222;
}

.success-btn {
  width: 180px;

  height: 55px;

  background: #16b14b;

  color: #fff;

  border: 4px solid #000;

  box-shadow: 4px 4px 0 #000;

  font-size: 20px;

  font-weight: bold;

  cursor: pointer;

  transition: 0.2s;
}

.success-btn:hover {
  transform: translate(2px, 2px);

  box-shadow: 2px 2px 0 #000;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pop {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.submit-btn:disabled {
  background: #8b8b8b;

  cursor: not-allowed;

  opacity: 0.8;
}

.loader {
  width: 16px;
  height: 16px;

  border: 2px solid #fff;
  border-top: 2px solid transparent;

  border-radius: 50%;

  display: inline-block;

  margin-right: 8px;

  animation: spin 0.8s linear infinite;

  vertical-align: middle;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
