body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow-x: hidden;
  background-color: #121212; /* Dark background */
  color: #e0e0e0; /* Light text */
}

h1 {
  margin: 0;
  color: #ffffff; /* White text for headers */
}

a {
    color: #1da1f2; /* Twitter blue stays for links */
    text-decoration: none;
    font-size: 2.0rem;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff69b4; /* Hover stays pink */
}

#input-text {
  width: 95%;
  height: 150px;
  margin-bottom: 20px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #444; /* Darker border for dark mode */
  border-radius: 4px;
  background-color: #333; /* Dark input field */
  color: #e0e0e0; /* Light text inside */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

button {
  display: block;
  width: 96%;
  padding: 10px;
  font-size: 16px;
  background-color: #1da1f2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #0d95e8;
}

#output {
  margin-top: 20px;
}

.tweet {
  display: flex;
  align-items: flex-start;
  margin: 27px 22px;
  background-color: #1e1e1e; /* Dark tweet background */
  border: 1px solid #444; /* Darker border for tweets */
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  padding: 20px;
  position: relative;
}

.tweet span {
  font-size: 16px;
  line-height: 1.5;
  color: #e0e0e0; /* Light text inside tweet */
  flex-grow: 1;
  word-wrap: break-word;
}

.copy-btn {
  position: absolute;
  bottom: -22px;
  right: -10px;
  background-color: #1da1f2;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100px;  /* Set a fixed width */
  height: 40px;  /* Fixed height for consistency */
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover {
  background-color: #0d95e8;
}

.header {
  display: flex;
  align-items: center;
  background-color: #111; /* Dark header background */
  color: white;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  margin-top: 0rem;
}

.darkmode-ico {
  width: 2rem;
  height: 2rem;
}

#darkmode-icon {
  position: absolute;
  top: 0.6rem;
  right: 1rem;
  cursor: pointer;
}

.copy-balloon {
  background-color: #1e1e1e; /* Darker background for better contrast */
  color: #e2e2e2; /* Slightly lighter text for readability */
  padding: 8px 12px; /* Slightly larger padding for better visibility */
  border-radius: 8px; /* Softer corners for modern design */
  font-size: 13px; /* Slightly larger font size for readability */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Deeper shadow for depth in dark mode */
  white-space: nowrap;
  pointer-events: none; /* Prevent interference with mouse clicks */
  transform: translateY(-50%); /* Center vertically next to the button */
  opacity: 0.9; /* Slight transparency for a subtle look */
}

/* For modern browsers */
::-webkit-scrollbar {
  width: 8px; /* Width of the scrollbar */
  height: 8px; /* Height for horizontal scrollbar */
}

::-webkit-scrollbar-track {
  background: #1e1e1e; /* Dark background for scrollbar track */
  border-radius: 10px; /* Rounded corners */
}

::-webkit-scrollbar-thumb {
  background: #3a3a3a; /* Slightly lighter thumb for contrast */
  border-radius: 10px; /* Rounded corners */
  border: 2px solid #1e1e1e; /* Creates a gap between thumb and track */
}

::-webkit-scrollbar-thumb:hover {
  background: #555; /* Brighter color on hover */
}

/* For Firefox */
* {
  scrollbar-width: thin; /* Thin scrollbar */
  scrollbar-color: #3a3a3a #1e1e1e; /* Thumb color and track color */
}

/* Help icon styling */
.help-ico {
    width: 2rem;
    height: 2rem;
}

#help-icon {
    position: absolute;
    top: 0.6rem;
    right: 4rem;
    cursor: pointer;
}

/* Help window styling */
#help-window {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  background: #333; /* Dark background for dark mode */
  color: #fff; /* White text for dark mode */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  z-index: 1000;
}

#help-window.dark-mode {
  background: #222; /* Slightly darker background in dark mode */
  color: #ddd; /* Lighter text for dark mode */
}

.help-content {
  padding: 20px;
  text-align: center;
}

.help-content h2 {
  margin-bottom: 10px;
}

.help-content p {
  margin-bottom: 20px;
}

.help-content button {
  padding: 10px 20px;
  background-color: #007bff; /* Button color */
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.help-content button:hover {
  background-color: #0056b3;
}

/* Dark mode button and content */
#help-window.dark-mode .help-content button {
  background-color: #444; /* Darker button in dark mode */
}

#help-window.dark-mode .help-content button:hover {
  background-color: #666; /* Hover state */
}

