* {
    box-sizing: border-box;
    --offwhite: #f5f5f0;
}

h1 {
    margin: 0;
}

h1 a {
    color: inherit;
    text-decoration: inherit;
    border: inherit;
}

h2 {
    margin: 0;
}

body {
    margin: 0;
    background-color: #386DCE;
    background: url(/img/clouds.png) fixed center bottom / 100% no-repeat, #386DCE;
    background: url(/img/clouds.png) fixed center bottom / 100% no-repeat,
                url(/img/moon.svg) fixed top 200px right 160px / 60px 60px no-repeat,
                linear-gradient(to bottom, #10234b 0, #2a4f8e 50%, #486996 100%) fixed center / 100% 100% no-repeat;
    color: #140c1c;
    font-family: serif;
}

#all-content {
    display: flex;
    flex-direction: column;
}

#most-of-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.single-page #most-of-page, .game-page #most-of-page {
    align-items: center;
}

.page-container::before {
    width: 20px;
    display: block;
    background: var(--stripe-background);
    flex-grow: 0;
    content: "";
}

.page-container.game-box::before {
    display: none;
}

.page-container.game-box {
    padding: 0;
    border: 3px solid var(--stripe-background);
}

.page-container {
    margin: 10px;
    /*width: 100%;*/
    max-width: 100%;
    background: var(--offwhite);
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: row;
    --stripe-background: purple;
}

.inner-page-container {
    flex-grow: 1;
    flex-shrink: 99999999;
    padding: 10px 20px;
    text-align: left;
}

.game-box .inner-page-container {
    text-align: center;
}

.game-box .inner-page-container h2 {
    text-align: left;
}

#header {
    display: flex;
    margin: 0 auto -10px auto;
    padding: 10px 0;
    flex-direction: row;
    width: 100%;
    align-items: center;
    color: var(--offwhite);
    text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.75);
}

.double-page #header {
    max-width: 1170px;
}

.single-page #header {
    max-width: 650px;
}

#header img {
    flex-grow: 0;
    height: 60px;
    margin-right: 10px;
    background: var(--offwhite);
    border-radius: 5px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
    display: block;
    border: 0;
}

#header #main-header {
    text-align: left;
    flex-grow: 1;
    padding: 5px 0;
}

#header #nav {
    flex-shrink: 999999;
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
}

#header #nav a {
    font-style: oblique;
    color: var(--offwhite);
    text-decoration: underline;
    border: 0;
    text-align: right;
}

#header a:hover {
    background: inherit;
    text-decoration: inherit;
    border: inherit;
    color: inherit;
}

.game-page #header {
    max-width: 650px;
}

.blog-post-gradient-header {
    padding: 10px 20px 5px 20px;
    margin: -10px -20px 0 -20px;
}

@media (min-width: 1190px) {
    .page-container {
        width: var(--box-width);
    }

    .page-container.game-desc-box {
        max-width: 650px;
    }

    .double-page #most-of-page {
        flex-direction: row;
    }

    .game-table td.datecell {
        white-space: nowrap;
    }
}

@media (max-width: 649px) {
    body {
        margin-bottom: 125px;
    }

    .page-container, .page-container.game-desc-box {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-right: 0;
    }

    #header {
        padding-left: 10px;
        padding-right: 10px;
    }

    .page-container.game-box {
        border-left: none;
        border-right: none;
    }

    .inner-page-container {
        padding: 10px 10px;
    }

    body table, body .game-table, body .post-listing-table {
        width: calc(100% + 20px);
        margin-left: -10px;
        margin-right: -10px;
    }

    table tr td:first-child, table tr th:first-child {
        border-left: none;
    }

    table tr td:last-child, table tr th:last-child {
        border-right: none;
    }

    .blog-post-gradient-header {
        padding: 10px 10px 5px 10px;
        margin: -10px -10px 0 -10px;
    }

}

@media (min-width: 650px; max-width: 1189px) {
    .single-page .page-container, .double-page .page-container {
        width: 650px;
    }

    .game-table td.datecell {
        white-space: nowrap;
    }

    .page-container.game-desc-box {
        max-width: 650px;
    }

    .game-page .page-container.game-box, .game-page .page-container.game-desc-box {
        width: var(--box-width);
    }

    .double-page #header {
        max-width: 650px;
    }

    .double-page #most-of-page {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 400px) {
    #header img {
        display: none;
    }
}

table {
    border-collapse: collapse;
}

.game-table {
    width: 100%;
}

.game-table tr td {
    transition: background 0.5s;
}

.game-table tr:hover td {
    background: white;
    transition: background 0.5s;
}

.game-table tr img {
    transition: margin 0.5s, box-shadow 0.5s;
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.0);
}

.game-table tr:hover img {
    margin: -3px 3px 3px -3px;
    transition: margin 0.3s, box-shadow 0.3s;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.5);
}

.game-table th {
    text-align: center;
    background: #cc9f66;
}

.game-table th.picture-column {
    width: 85px;
}

table td, table th {
    border: 1px dotted black;
}

.game-table td, .game-table th {
    padding: 5px;
    vertical-align: top;
}

.game-table img {
    display: block;
    border: 1px solid black;
}

.post-listing-table {
    width: 100%;
}

.post-listing-table tr td:last-child, .post-listing-table tr th:last-child {
    text-align: right;
}

.post-listing-table td, .post-listing-table th {
    padding: 5px;
}

a {
    color: blue;
    text-decoration: none;
    border-bottom: 1px dotted blue;
}

.page-container a:hover, .page-container a:visited:hover {
    color: black;
    background-color: #fffc9d;
    text-decoration: none;
    border-bottom: 1px dotted black;
}

.page-container a:active, .page-container a:hover:active {
    color: red;
    border-bottom: 1px dotted red;
}

.page-container a:visited {
    color: purple;
    border-bottom: 1px dotted purple;
}

iframe {
    border: 0;
}

td.date-cell {
    white-space: nowrap;
}