/* Custom styles for stdgba book */

/* Inline code in prose */
code {
    font-size: 0.9em;
}

/* Long code blocks (including embedded demo includes) scroll vertically */
.content pre code {
    display: block;
    max-height: 68rem;
    overflow-y: auto;
}

/* Tonc/tonclib comparison blocks */
.tonc-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
}

/* GBA screenshots at 2x integer scale with pixel-perfect rendering */
img[src$=".png"] {
    width: 100%;
    height: 320px;
    image-rendering: pixelated;
}

/* Preserve aspect ratio for the green-low-bit comparison table screenshots */
img {
    object-fit: contain;
    width: 100%;
    height: auto;
}
