/* style.css */
/* BillMGames.com public site style */

* {
    box-sizing: border-box;
}

html {
    background: #d7efe8;
}

body {
    margin: 0;
    padding: 28px 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.55;
    color: #111;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.35), transparent 22%),
        radial-gradient(circle at 80% 10%, rgba(255,255,255,0.25), transparent 20%),
        radial-gradient(circle at 50% 90%, rgba(255,255,255,0.28), transparent 25%),
        #d7efe8;
}

.page {
    max-width: 700px;
    margin: 0 auto;
    padding: 24px;
    background: #fffdf4;
    border: 6px solid #111;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.22);
}

/* Masthead */

.masthead-image {
    margin: -24px -24px 22px -24px;
    line-height: 0;
    border-bottom: none;
    background: #fff;
}

.masthead-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Tagline */

.tagline {
    margin: 0 0 22px 0;
    padding: 10px 14px;
    font-weight: bold;
    text-align: center;
    background: #000;
    color: #ffe866;
    border: none;
}

/* Main content */

h1 {
    margin: 0 0 18px 0;
    padding-bottom: 8px;
    font-size: 34px;
    line-height: 1.1;
    border-bottom: none;
}

h2 {
    margin-top: 28px;
    font-size: 25px;
}

p {
    margin-top: 0;
}

a {
    color: #0645ad;
    text-decoration-thickness: 2px;
}

a:hover,
a:focus {
    color: #b00000;
}

.content {
    margin-bottom: 28px;
}

.content ul,
.content ol {
    padding-left: 28px;
}

.content blockquote {
    margin: 20px 0;
    padding: 12px 18px;
    background: #eef7ff;
    border-left: 6px solid #1459d9;
}

/* Table of contents */

.site-toc {
    margin-top: 30px;
    padding: 16px;
    background: #f3f8ff;
    border: 4px solid #111;
}

.site-toc h2 {
    margin: 0 0 12px 0;
    font-size: 24px;
}

/* Remove ordinary list bullets everywhere in the TOC */

.site-toc ul,
.site-toc li {
    list-style: none;
}

/* Top-level category list */

.site-toc > ul {
    margin: 0;
    padding-left: 0;
}

.site-toc li {
    margin: 4px 0;
}

/* Category rows */

.toc-category {
    margin-top: 8px;
}

.site-toc details {
    margin: 5px 0;
}

.site-toc summary {
    cursor: pointer;
    display: inline-block;
    padding: 3px 6px;
    font-weight: bold;
    background: #ffffff;
    border: 2px solid #111;
}

.site-toc summary:hover {
    background: #ffe866;
}

/* Nested category branches */

.toc-level {
    margin: 6px 0 0 18px;
    padding-left: 14px;
    border-left: 2px solid rgba(0,0,0,0.18);
}

/* Pages directly inside a category.
   This is the important part:
   the vertical branch line continues alongside the page links. */

.toc-pages {
    margin: 6px 0 8px 18px !important;
    padding-left: 14px !important;
    border-left: 2px solid rgba(0,0,0,0.18);
}

.toc-pages li {
    position: relative;
    margin: 5px 0;
    padding-left: 0 !important;
    list-style: none !important;
}

.toc-pages li::before {
    content: none !important;
    display: none !important;
}

.toc-pages a {
    font-weight: normal;
}

/* Current page highlight */

.toc-pages li.current-page {
    display: inline-block;
    padding: 3px 6px !important;
    background: #ffe866;
    border: none;
}

.toc-pages li.current-page .current-page-label {
    font-weight: bold;
    color: #000;
}

/* Footer */

footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: none;
    font-size: 15px;
}

.footer-disclaimer {
    color: #333;
}

.copyright {
    margin-top: 14px;
    text-align: center;
    font-weight: bold;
}

/* Mobile */

@media (max-width: 520px) {
    body {
        padding: 12px 8px;
        font-size: 17px;
    }

    .page {
        padding: 18px;
        border-width: 4px;
        box-shadow: 5px 5px 0 rgba(0,0,0,0.22);
    }

    .masthead-image {
        margin: -18px -18px 18px -18px;
    }

    h1 {
        font-size: 28px;
    }

    .tagline {
        font-size: 16px;
    }

    .site-toc {
        padding: 12px;
        border-width: 3px;
    }

    .toc-level {
        margin-left: 10px;
        padding-left: 9px;
    }

    .toc-pages {
        margin-left: 10px !important;
        padding-left: 9px !important;
    }
}