html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #171717;
  background-color: #f9f9f9;
}
.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow-x: auto;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5em;
  color: #111;
}
h2 {
  font-size: 1.5rem;
  margin-top: 2em;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  color: #222;
}
h3 {
  font-size: 1.2rem;
  margin-top: 1.5em;
  color: #444;
}
p {
  margin-bottom: 1em;
}
code {
  background-color: #f4f4f4;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: Consolas, Monaco, "Andale Mono", monospace;
  font-size: 0.9em;
  color: #ed6df8;
}
pre {
  background-color: #2d2d2d;
  color: #f8f8f2;
  padding: 15px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.9em;
  line-height: 1.4;
  position: relative;
}
pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  max-width: 100%;
  overflow-x: auto;
}
table th,
table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}
table th {
  background-color: #f8f8f8;
  font-weight: 600;
}
table tr:nth-child(even) {
  background-color: #fcfcfc;
}
ul {
  padding-left: 20px;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}
hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 30px 0;
}
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 0.8rem;
  padding: 4px 8px;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.2s,
    background-color 0.2s;
}
.copy-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
pre:hover .copy-btn {
  opacity: 1;
}

.preview-iframe {
  margin-top: 10px;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  transform: scale(0.75);
  width: 133%;
  height: 90vh;
  min-height: 600px;
  transform-origin: 0 0;
}

.preview-image {
  margin-top: 10px;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
}

.preview-image:not(.justify-right) {
  justify-content: center;
}

.preview-image.justify-right {
  justify-content: flex-end;
}

.preview-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #232535;
  text-decoration: none;
}
