/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #121212;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  margin: 0;
}

/* Main container */
.cloudflare-mock {
  background-color: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  padding: 40px;
  text-align: center;
  width: 100%;
  max-width: 500px;
  transition: all 0.3s ease-in-out;
}

.cloudflare-mock h1 {
  font-size: 1.5em;
  color: #fff;
  margin-bottom: 10px;
}

.cloudflare-mock p {
  color: #bbb;
  margin-bottom: 20px;
  font-size: 1em;
}

.checkbox-container {
  margin-top: 30px;
}

input[type="checkbox"] {
  display: none;
}

/* Style the checkbox */
.checkmark-label {
  position: relative;
  font-size: 1.1em;
  padding-left: 30px;
  cursor: not-allowed;
  color: #bbb;
  user-select: none;
  transition: color 0.3s ease;
}

.checkmark-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border: 2px solid #bbb;
  border-radius: 4px;
  background-color: transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

input[type="checkbox"]:checked + .checkmark-label::before {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

input[type="checkbox"]:checked + .checkmark-label::after {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 2px;
  color: #fff;
  font-size: 1.3em;
}

input[type="checkbox"]:checked + .checkmark-label {
  color: #3b82f6;
}

input[type="checkbox"]:disabled + .checkmark-label {
  cursor: not-allowed;
  color: #888;
}

input[type="checkbox"]:disabled + .checkmark-label::before {
  border-color: #444;
}

/* Styling the label when it is enabled */
input[type="checkbox"]:not(:disabled) + .checkmark-label {
  cursor: pointer;
}

/* Add animation when checkbox becomes clickable */
input[type="checkbox"]:not(:disabled) + .checkmark-label::before {
  transition: all 0.3s ease-in-out;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .cloudflare-mock {
    padding: 20px;
    width: 80%;
  }

  .cloudflare-mock h1 {
    font-size: 1.2em;
  }

  .cloudflare-mock p {
    font-size: 0.9em;
  }

  .checkmark-label {
    font-size: 1em;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .cloudflare-mock {
    padding: 30px;
    width: 70%;
  }

  .cloudflare-mock h1 {
    font-size: 1.4em;
  }

  .cloudflare-mock p {
    font-size: 1em;
  }

  .checkmark-label {
    font-size: 1.1em;
  }
}

/* Add a slight hover effect for better feedback */
.checkmark-label:hover {
  color: #fff;
}

/* Add a soft glow effect for the checkbox before clicking */
input[type="checkbox"]:not(:disabled):hover + .checkmark-label::before {
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}
