body {
  font-family: "Arial", sans-serif;
  background: #111;
  color: white;
  font-size: 60px;
  text-shadow: 0 0 15px #411;
  letter-spacing: 1px;
  line-height: 1.2;
  overflow: hidden;
}

html {
  height: 560px;
  width: 340px;
  border: 1px solid #07d100;
  border-radius: 5px;
}

#title {
  margin: 0.2rem 0 0 0;
  font-weight: bold;
  font-size: 2rem;
  color: lime;
  text-align: center; /* Center text for titles */
  flex: 0 1 auto; /* Allow titles to take up space */
  position: center; /* Positioning titles absolutely */
}

.container {
  padding: 1rem;
}

.list-title {
    color: lime; /* Text color */
    margin: 0px 0px 0px 0px; /* Remove default margin */
    font-size: 20px; /* Adjust font size as needed */
}

.list {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  height: 460px;
  overflow-y: auto;
  border: 1px solid #07d100;
  border-radius: 8px;
  background-color: #1f1f1f;
  box-sizing: border-box;
}

.list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 1rem;
  font-size: 1rem;
  line-height: 1.7;
  background-color: #1f1f1f;
  border: 1px solid #07d100;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}

.list li:hover {
  background-color: #646464;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.empty {
  text-align: center;
  color: green;
  padding: 1rem;
}

footer {
  text-align: center;
  padding: 0.5rem;
  font-size: 0.85rem;
  color: #666;
}

.list-container {
  margin-bottom: 1rem;
  width: 325px;
}

.parent-container {
    display: flex; /* Use Flexbox for layout */
    justify-content: space-between; /* Space between the items */
    align-items: center; /* Center items vertically */
    width: 100%; /* Make it full width */
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

#list-item {
  display: flex;
  flex-direction: column;
}

#list-item h4 {
  margin: 0; /* Optional: to remove default margin */
  color: red;
}

#list-item p {
  margin: 0; /* Optional: to remove default margin */
}

.buttons {
  background-color: #1a1a1a; /* dark background */
  color: #00e600; /* green text */
  border: 2px solid #00e600; /* green border */
  border-radius: 10px; /* rounded corners */
  padding: 6px 12px; /* add some padding */
  font-size: 14px; /* text size */
  font-weight: bold; /* bold text */
  text-align: center;
  cursor: pointer; /* pointer on hover */
  transition: all 0.3s ease; /* smooth transition for hover */
  outline: none; /* remove outline */
  min-width: 150px; /* fixed minimum width */
  max-width: 200px; /* optional max width */
  white-space: nowrap; /* prevent text from wrapping */
  overflow: hidden; /* prevent overflow */
  text-overflow: ellipsis; /* add ellipsis if text overflows */
}

.buttons:hover {
  background-color: #00e600; /* green background on hover */
  color: #1a1a1a; /* black text on hover */
  border-color: #1a1a1a; /* black border on hover */
}

.buttons:active {
  transform: scale(0.98); /* slight scale down on click */
}

@media (max-width: 30px) {
  .buttons {
    width: 100%; /* make the button full width on smaller screens */
    padding: 12px 0; /* adjust padding for better mobile look */
  }
}

#top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

#title {
  margin: 0;
  text-align: center;
  flex-grow: 1;
}

svg {
  margin-left: auto;
  color: lime;
}

svg:hover {
  cursor: pointer;
  fill: green;
}

#settingsBox {
  padding: 0;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  height: 460px;
  overflow-y: auto;
  border: 1px solid #07d100;
  border-radius: 8px;
  background-color: #1f1f1f;
  box-sizing: border-box;
}

#settingsBox p {
  color: lime;
  font-size: 14px;
  font-weight: bold;
  margin: 10px 10px 5px 10px;
}

/* Container for the checkbox and label */
.passive-container {
  display: flex;
  align-items: center;
  margin: 1rem 1rem; /* Further decrease margin for less space */
}

/* Hide the default checkbox appearance */
.passive-container input[type="checkbox"] {
  display: none;
}

/* Style for the custom checkbox */
.passive-container .custom-checkbox {
  width: 12px; /* Size of the custom checkbox */
  height: 12px;
  border: 2px solid lime; /* Border for the checkbox */
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  margin-right: 8px; /* Space between checkbox and label */
  bottom: 1px; /* Adjust this value to vertically align the checkbox with the label */
}

/* When the checkbox is checked, fill the square but leave a little border */
.passive-container input[type="checkbox"]:checked + label .custom-checkbox::after {
  content: '';
  position: absolute;
  top: 0px; /* Adjusted for better alignment */
  left: 0px;
  width: 12px; /* Size of the filled square */
  height: 12px;
  background-color: green; /* Color of the filled square */
  border-radius: 2px; /* Optional: rounded edges for the filled square */
}

/* Style for the label */
.passive-container label {
  font-size: 0.9rem; /* Adjust font size if necessary */
  color: lime;
  display: flex;
  align-items: center; /* Aligns label text vertically */
}

#regex-box {
  background-color: #1a1a1a; /* dark background */
  color: #00e600; /* green text */
  border: 2px solid #00e600; /* green border */
  border-radius: 10px; /* rounded corners */
  padding: 6px 12px; /* padding inside the input */
  font-size: 14px; /* text size */
  font-weight: bold; /* bold text */
  text-align: center;
  cursor: text; /* pointer when clicking to type */
  transition: all 0.3s ease; /* smooth transition on focus */
  outline: none; /* remove outline */
  min-width: 150px; /* fixed minimum width */
  max-width: 200px; /* optional max width */
  white-space: nowrap; /* prevent text from wrapping */
  overflow: hidden; /* prevent overflow */
  text-overflow: ellipsis; /* add ellipsis if text overflows */
}

#regex-box::placeholder {
  color: green;
}