body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
  }

  form {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
  }

  label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
  }
  
  /* Style for the checkbox input */
input[type="checkbox"] {
  margin-right: 10px;
  cursor: pointer;
}

/* Style for the checked state of the checkbox */
input[type="checkbox"]:checked + span {
  color: #000;
  font-weight: bold;
}

  textarea, input {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
  }

  textarea {
    resize: none;
    height: 150px;
  }

  button {
    background-color: #4CAF50;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

  button:hover {
    background-color: #45a049;
  }
  #loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
  }

  #loader h2 {
    margin-bottom: 1rem;
  }

  #progress-bar {
    width: 80%;
    background-color: #f3f3f3;
    padding: 3px;
    border-radius: 5px;
  }

  #progress-bar-inner {
    width: 0;
    height: 20px;
    background-color: #4CAF50;
    border-radius: 3px;
  }
  .form-group {
  margin-bottom: 1rem;
}

.btn-container {
  display: flex;
  justify-content: space-between;
}

button[type="button"] {
  background-color: #2196F3;
}

button[type="button"]:hover {
  background-color: #1a87da;
}

button[type="submit"] {
  margin-left: auto;
}
textarea#articletext {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  resize: none;
  height: 300px; /* Adjust the height according to your preference */
  margin-bottom: 1.5rem;
}

  .content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.php-output {
  margin-bottom: 2rem;
}
.title-container {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.title-container p {
  margin: 0;
  margin-right: 1rem;
}
.output-container {
  background-color: #ffffff;
  padding: 1rem;
  border-radius: 2px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
  margin-top: 2rem;
}


.checkbox-group {
  display: flex;
  flex-wrap: wrap;
}

.age-group {
  display: inline-block;
  background-color: #eee;
  padding: 5px 10px;
  margin-right: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.age-group.active {
  background-color: #2196F3;
  color: #fff;
}

.age-group:hover {
  background-color: #ccc;
}
  #please-wait {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.5);
        padding: 20px;
        border-radius: 5px;
        color: white;
        font-size: 20px;
    }