body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow-x: hidden;

}

h1 {
  margin: 0;
}

a {
    color: #1da1f2; /* Twitter blue, ya know? Feelin' social */
    text-decoration: none; /* Keep it clean, no underlines */
    font-size: 2.0rem; /* Match the h1 size for that consistent vibe */
    transition: color 0.3s ease; /* Smooth color change, like a fade-out */
    flex: 1;
}

a:hover {
    color: #ff69b4; /* Pink on hover, keepin' it lively */
}

    #input-text {
      width: 95%;
      height: 150px;
      margin-bottom: 20px;
      padding: 10px;
      font-size: 16px;
      border: 1px solid #ccc;
      border-radius: 4px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    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: #f5f8fa;
      border: 1px solid #e1e8ed;
      border-radius: 8px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      max-width: 500px; /* Mimics Twitter width */
      padding: 20px;
      position: relative;
    }

    .tweet span {
      font-size: 16px;
      line-height: 1.5;
      color: #14171a;
      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;
  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: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  pointer-events: none; /* Prevent interference with mouse clicks */
  transform: translateY(-50%); /* Center vertically next to the button */
}

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

::-webkit-scrollbar-track {
  background: #f0f0f0; /* Light background for scrollbar track */
  border-radius: 10px; /* Rounded corners */
}

::-webkit-scrollbar-thumb {
  background: #c0c0c0; /* Subtle gray thumb for contrast */
  border-radius: 10px; /* Rounded corners */
  border: 2px solid #f0f0f0; /* Creates a gap between thumb and track */
}

::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0; /* Darker gray on hover */
}

/* For Firefox */
* {
  scrollbar-width: thin; /* Thin scrollbar */
  scrollbar-color: #c0c0c0 #f0f0f0; /* 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: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  z-index: 1000;
}

#help-window.dark-mode {
  background: #333;
  color: #fff;
}

.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;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

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

