.all {
    margin: 20px 20px;
    background: red;
}

.code-container {
  position: relative; /* Essential for absolute positioning of the button */
  width: 65%;
  background-color: #222;
  padding: 10px;
  border: 1px solid #ccc;
  margin: 15px 15px;
  color: white;
  border-radius: 15px;
  font-size: 1rem;
  max-height: 400px; /* Limits growth */
   overflow-y: auto;  /* Adds scrollbar only when needed */
   overflow-x: auto;  /* Optional: adds horizontal scroll for long lines of code */
}

.copy-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 10px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 3px;
}

.copy-btn:hover {
  background-color: #0056b3;
}
