/* Style scoped for the After Words Comma Generator tool */
.comma-tool-container {
  border: 1px solid #ccc;
  padding: 20px;
  background-color: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 20px auto;
  font-family: Arial, sans-serif;
}

.comma-tool-title {
  font-size: 2em;
  color: #343541;
  text-align: center;
  margin-bottom: 20px;
}

.comma-tool-form {
  margin-bottom: 20px;
}

.comma-tool-form label {
  display: block;
  font-size: 1em;
  color: #555;
  margin-bottom: 10px;
}

textarea#comma-tool-input {
  width: 100%;
  padding: 12px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

select#comma-tool-delimiter {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 10px;
}

button#comma-tool-convert,
button#comma-tool-reset,
button#comma-tool-copy {
  background-color: #4CAF50;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 1em;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  margin-top: 10px;
}

button#comma-tool-convert:hover,
button#comma-tool-reset:hover,
button#comma-tool-copy:hover {
  background-color: #45a049;
}

.comma-tool-output {
  font-size: 1.2em;
  margin-top: 20px;
  color: #343541;
}

.comma-tool-output p {
  font-weight: bold;
  margin-bottom: 10px;
}

#comma-tool-output {
  padding: 10px;
  font-size: 1em;
  white-space: pre-wrap;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #f2f2f2;
}

/* Responsive styles */
@media (max-width: 600px) {
  .comma-tool-container {
    padding: 15px;
  }
  
  .comma-tool-title {
    font-size: 1.5em;
  }
  
  textarea#comma-tool-input,
  select#comma-tool-delimiter,
  button#comma-tool-convert,
  button#comma-tool-reset,
  button#comma-tool-copy {
    font-size: 0.9em;
  }
  
  .comma-tool-output {
    font-size: 1em;
  }
}

@media (max-width: 320px) {
  .comma-tool-title {
    font-size: 1.2em;
  }
  
  textarea#comma-tool-input,
  select#comma-tool-delimiter,
  button#comma-tool-convert,
  button#comma-tool-reset,
  button#comma-tool-copy {
    font-size: 0.8em;
  }
  
  .comma-tool-output {
    font-size: 0.9em;
  }
}
