html {
    transition: all 0.4s ease;
    background-color: #fafafa;
}

#index [alt="BOOKMAN ARCHIVE LOGO"]{
    max-height: 12em;
    -ms-interpolation-mode: nearest-neighbor; 
    float: left;
    margin-right: 2em;
    margin-bottom: 2em;
}

#index {
max-width: 1024px;
margin   : auto;
padding: 1em !important;
}

#index p {
margin-top   : 8px;
margin-bottom: 12px;
}

#index h1 {
    line-height: 1em;
}

img {
    max-width: 100%;
}

img[alt="BOOKMAN Archive"] {
    height: 10em;
    width: 10em;
    max-width: none !important;
    margin: auto;
}

img[src^="images/support-media/"] {
    width: 100%;
}

h2 {
    background-color: #DFDFDF;
    margin: 1.5em 0;
    padding: 0.75em 1em;
    border-bottom: 1px solid #fafafa;
}

/* Special link sections  */

h2[id^=bookman-cartridges]::after,
h2[id^=bookman-devices]::after,
h2[id^=digital-book-system]::after,
h2[id^=patents]::after,
h2[id^="reverse-engineering"]::after{
    content: '⊞';
    float: right;
    color: red;
}

#index #missing-carts ul {
    margin-left: -4em;
    column-count: 1;
    column-gap: 1em;
}

#index #missing-carts ul li {
    list-style-type: none;
    margin-left: 0;
    display: inline-block;
    padding: .1em .5em;
    background-color: #edd;
    width: 14em;
    font-size: .8em;
    margin-bottom: 1em;
    margin-right: 1em;
    border-radius: .5em;
    cursor: pointer;
    vertical-align: top;
}

#index #missing-carts ul li strong {
    font-size: 1.2em;
}


.clearfix {
    clear: both;
}

#index .layout.imagetable {
box-shadow      : none;
background-color: transparent;
}

.borderless {
    border: none;
}

#index img[src^="images/device"] {
width : 100%;
height: 10em;
}

.goalchart {
    width     : 100%;
    overflow-x: auto;
}

.goalchart img {
    max-width: none;
}

#index .layout img {
    max-width: 100%;
}

#tv-ad-link {
    text-decoration: none;
}

#tv-ad { 
    background-image: url(/promotional/FranklinBookmanArrestMe-1996.jpg);
    background-size: cover;
    color: #000;
    text-align: center;
    padding: 1em;
    border-radius: 0.5em;
}

#tv-ad button {
    padding: 0.5em 1em;
    cursor: pointer;
    font-size: 2em;
    border-radius: 5em;
    border-color: #000;
    background: rgba(0,0,0,0.25);
}

#content-icons {
    background-color: #fff;
    padding: 0.5em;
    margin-bottom: 0.5em;
    text-align: center;
    border-radius: 0.5em;
}

#content-icons img {
    image-rendering: pixelated;
}

.fn-buttons {
    background-color: #303030;
    padding: 0.5em;
    margin-bottom: 0.5em;
    text-align: center;
    border-radius: 0.5em;
}

.fn-button-red,
.fn-button-green,
.fn-button-yellow,
.fn-button-blue {
    position: relative;
    color: black;
    font-weight: bold;
    width: 6em;
    height: 3em;
    display: inline-block;
    margin-left: 0.5em;
    text-align: center;
    line-height: 3em;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.fn-button-red { background-image: url(../images/fn-button-red.svg); }
.fn-button-green { background-image: url(../images/fn-button-green.svg); }
.fn-button-yellow { background-image: url(../images/fn-button-yellow.svg); }
.fn-button-blue { background-image: url(../images/fn-button-blue.svg); margin-right: 0.5em; }

.language-text,
.language-bash {
    display: block;
    padding: 0.5em;
    background-color: #303030;
    color: greenyellow;
    overflow-x: auto;
}

.device-images {
    margin-top: 24px;
    font-size: 0;
}

.device-images > a,
[id^=teardown] > a,
[id^=leaflet] > a {
    width: 33%;
    display: inline-block;
    vertical-align: top;
    padding: 1em;
    text-align: center;
}

.device-images > a {
    padding: 8px;
}

.device-images > a > img,
[id^=teardown] > a > img,
[id^=leaflet] > a > img {
    box-shadow: 1px 1px 8px #777;
    max-width: 100%;
}

.slbContentZoom {
    position: fixed;
    top: 4em;
    left: 4em;
    right: 4em;
    bottom: 4em;
    pointer-events: none;
    z-index: 9000;
}

#index .item-count {
    font-weight: 300;
}

.info {
    margin-top   : 2em;
    border-radius: 2em;
    padding      : 0.5em;
    background   : palegoldenrod;
    text-align   : center;
    margin-bottom: 2em;
}

#PN8800FXB_STRINGS {
    display: block;
    max-height: 60vh;
    font-size: 1em;
    font-weight: bold;
    overflow: auto;
    background-color: #303030;
    color: #fff;
}

pre > code {
    display: block;
}

code {
    background-color: #303030;
    padding: 0.3em 0.5em;
    border-radius: 0.3em;
    color: #33ee00;
}

.rom-file {
    margin: .5em;
}

#changelog {
    max-height: 50vh;
    overflow-y: auto;
}