/******* Do not edit this file *******
Woody Code Snippets CSS and JS
Saved: Apr 28 2025 | 07:49:14 */
.code-container {
  position: relative;
  margin-bottom: 2em;
  padding: 2.5em 1em 1em 1em;
  background: #f7f7f7;
  border-radius: 10px;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden; /* hide unwanted scroll */
}

.language-label {
  position: absolute;
  top: 8px;
  left: 12px;
  background: #333;
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 5px;
  font-family: monospace;
}

.copy-button {
  position: absolute;
  top: 8px;
  right: 12px;
  background: #eee;
  color: #333;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-family: monospace;
  transition: background 0.3s ease;
}

.copy-button:hover {
  background: #ddd;
}

/* Fix pre inside code-container */
.code-container pre {
  margin: 0;
  background: transparent;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 0; /* remove extra space inside */
}

/* Fix code inside pre */
.code-container code {
  display: block;
  padding: 0; /* no extra padding inside code */
  margin: 0;  /* no extra margin inside code */
}

.code-container pre,
.code-container code {
  white-space: pre-wrap;  /* allow wrapping */
  word-break: break-word; /* break long words if needed */
  overflow-x: auto;       /* scroll only if absolutely needed */
}