/* ==========================================================================
   element styles
   ========================================================================== */

html,
button,
input,
select,
textarea {
   font-family: sans-serif;
}

body {
    margin: 0;
    margin-top: 84px;
    background-position: 0 -18px;
}
a {
    text-decoration: none;
    font-weight: bold;
    color: #000000;
}
a:hover {
    color: #2288ff;
}
div {
    overflow: auto;
}
h1 {
    margin: 10px;
    color: #2288ff;
}
h2, h3, h4, h5, h6 {
    margin: 10px;
    margin-top: 20px;
    color: #44aaff;
}
p {
    padding: 10px;
}
textarea {
    width: 240px;
    padding: 3px;
    max-width: 100%;
    height: 150px;
    font-family: monospace;
}
table {
    border-collapse: collapse;
}
th {
    background: #f4f4f4;
    text-align: left;
    border: 1px solid #d8d8d8;
    padding: 5px;
}
td {
    text-align: left;
    border: 1px solid #d8d8d8;
    padding: 5px;
}
select {
    -webkit-appearance: none;
    background: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHBvbHlnb24gY2xhc3M9ImNscy0yIiBwb2ludHM9IjEuNDEgNC42NyAyLjQ4IDMuMTggMy41NCA0LjY3IDEuNDEgNC42NyIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIzLjU0IDUuMzMgMi40OCA2LjgyIDEuNDEgNS4zMyAzLjU0IDUuMzMiLz48L3N2Zz4=) no-repeat 95% 50%;
}
input,
select {
    padding: 5px;
    border: 0;
    background-color: #d8d8d8;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 1px;
}
input:disabled,
select:disabled {
    display: none;
    cursor: no-drop !important;
}
input[type="checkbox"],
input[type="radio"] {
    padding: 0;
    width: 1.5em;
    height: 1.5em;
    margin: 5px;
    vertical-align: middle;
}
input[type="button"],
input[type="submit"] {
    background: #2288ff;
    padding: 7px 15px;
    font-size: 12px;
    margin: 2px;
    vertical-align: bottom;
    color: #ffffff;
    font-weight: bold;
    border-radius: 3px;
}
input[type="button"]:hover,
input[type="submit"]:hover {
    background: #1177ff;
}
input[type="text"],
input[type="password"],
textarea {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    margin: 1px;
}
input[type="text"]:hover,
input[type="password"]:hover,
textarea:hover ,
input[type="text"]:active,
input[type="password"]:active,
textarea:active {
    border: 1px solid #d8d8d8;
    background: #f8f8f8;
}
strong {
    font-size: 16px;
    display: inline-block;
    color: #dd0000;
    font-style: italic;
}
img {
    margin: 10px;
}
canvas {
    width: 400px;
    height: 400px;
}

/* ==========================================================================
   generic class styles
   ========================================================================== */

input[type="button"].greybutton,
input[type="submit"].greybutton {
    background: #888888;
}
input[type="button"].greybutton:hover,
input[type="submit"].greybutton:hover {
    background: #a8a8a8;
}
input[type="button"].redbutton,
input[type="submit"].redbutton {
    color: #dd0000;
    background: #e8e8e8;
}
input[type="button"].redbutton:hover,
input[type="submit"].redbutton:hover {
    color: #dd0000;
    background: #f0f0f0;
}
.short {
    width: 40px;
}
.mid {
    width: 90px;
}
.long {
    width: 160px;
}
.verylong {
    width: 240px;
}
.unselected {
    color: #c8c8c8;
}
.scanning {
    position: absolute;
    top: 0;
    right: 0;
}
.otherlinks {
    border: 1px solid #282828;
    margin: -1px;
    background: #686868;
    white-space: nowrap;
}
.otherlinks input {
    margin: 8px;
}
.otherlinks a img {
    width: 32px;
    margin: 5px;
}
.otherlinks a {
    display: inline;
}
.floatleft {
    float: left;
}
.displaynone {
    display: none !important;
}
.floatright {
    float: right;
}
.clear {
    clear: both;
}
.updaterequest {
    background: #cccccc;
}

/* ==========================================================================
   page header
   ========================================================================== */

#header {
    position: fixed;
    top: 0;
    left: 0;
    background: #2288ff;
    margin: 0;
    padding: 0;
    border-width: 0px;
    height: 50px;
    width: 100%;
    z-index: 100;
    overflow: hidden;
    display: -webkit-flex;
}
.gameheaderdiv h1 {
    margin: 10px 180px 10px 10px;
    color: #ffffff;
    text-shadow: 1px 1px 4px #181818;
    font-size: 16pt;
}
.headerlogo {
    height: 50px;
    margin: 0;
    padding: 2px;
    vertical-align: top;
    overflow: hidden;
    display: inline-block;
}
.headersearch {
    height: 50px;
    margin: 0;
    padding: 2px;
    vertical-align: top;
    overflow: hidden;
    display: -webkit-flex;
    -webkit-flex: 1;
}
#platformselect,
#searchtext {
    height: 42px;
    background-color: #3399ff;
    margin: 3px;
    padding: 0 10px;
    color: #ffffff;
    font-size: 1.5em;
    border: 0;
    min-width: 50px;
}
#platformselect {
    width: 200px;
}
#searchtext {
    -webkit-flex: 1;
}
.pageicon {
    height: 46px;
    margin: 0 8px;
}
h1 a {
    font-size: 1.25em;
}

/* ==========================================================================
   member block
   ========================================================================== */

#memberblock {
    position: fixed;
    top: 50px;
    left: 0px;
    right: 0px;
    text-align: center;
    background: #2288ff;
    box-shadow: 0 0 10px 0 #282828;
    color: #ffffff;
    padding-bottom: 2px;
    z-index: 99;
}
.memberinput {
    width: 80px;
    background: #3399ff;
    margin: 2px;
    color: #ffffff;
}
.memberinput:hover,
.memberinput:focus {
    background: #f0f0f0;
    color: #282828;
}

/* ==========================================================================
   content
   ========================================================================== */

.content {
    min-height: 200px;
    margin: 0;
    overflow: hidden;
}
#colcountchart,
#colpricechart,
#colscorechart,
#colcostchart {
    width: 100%;
    max-width: 400px;
    height: 300px;
}
.chart {
    float: left;
    margin: 10px;
}
.listitemtable th,
.listitemtable td {
    border: 0;
}
.tools {
    text-align: center;
}
.gamedetailform {
    position: absolute;
    background: #ffffff;
    border: 1px solid #888888;
    top: 77px;
    left: -1px;
    box-shadow: 1000px 0px 2000px 2000px #00000088;
    z-index: 1;
}
#welcomeimg {
    background-image: url("../img/front.png?v=1");
    background-size: 100%;
    display: block;
    width: 100%;
    padding: 50px;
    background-position: center center;
    margin: 0;
    box-shadow: 0 0 10px 3px #888888;
}
#welcomeimg h1 {
    color: #ffffff;
    font-size: 3.0em;
    text-shadow: 0px 0px 10px #000000;
}
.simpletable {
    margin: 10px;
    margin-top: 0;
}
.cover {
    height: 125px;
    display: block;
    margin: 15px;
    margin-bottom: 0;
}
.gameheaderdiv {
    background: #484848;
    color: #e8e8e8;
    background-repeat: no-repeat;
    background-position: bottom right 120px;
    background-size: auto 100%;
    overflow: hidden;
}
.gameheaderdiv.noasin {
    background-position: bottom right;
}
.gameheadertable {
    margin: -1px;
    max-width: 100%;
    min-width: 50%;
}
.gameheadertable td,
.gameheadertable th {
    border-color: transparent;
    background: #484848;
}
.gameheadertable th {
    margin-top: 10px;
    background: #383838;
}
.gameheadertable span {
    color: #888888;
}

#scored.great {
    color: #00ff00;
}
#scored.good {
    color: #ffcc00;
}
#scored.fair {
    color: #ff7400;
}
#scored.bad {
    color: #ff0000;
}
#amazonlinkframe {
    width: 120px;
    height: 205px;
    float: right;
    margin-bottom: 1px;
    border-left: 1px solid #282828;
}
#platformtd {
    margin-top: -10px;
}
#exclude_platforms {
    background: none;
    height: 200px;
    width: 334px;
}
/* ==========================================================================
   list tables
   ========================================================================== */

.listitemtable {
    width: 100%;
    border-collapse: collapse;
    border: 0;
    margin: 0;
}
.listitemtable th {
    background: transparent;
    text-align: left;
    font-size: 0.80em;
    cursor: pointer;
}
.listitem {
    width: 100%;
    height: 60px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.listitem:nth-child(odd) {
    background: #f8f8f8;
}
.listitem.playlog_unplayed {
    border-left: 8px solid #cccccc;
}
.listitem.playlog_queued {
    border-left: 8px solid #888888;
}
.listitem.playlog_playing {
    border-left: 8px solid #ff7400;
    color: #ff7400;
    background: #FFECD9;
}
.listitem.playlog_tried {
    border-left: 8px solid #FFD4B0;
}
.listitem.playlog_played {
    border-left: 8px solid #9b4600;
}
.listitem.playlog_quit {
    border-left: 8px solid #ee2222;
}
.listitem.playlog_beat {
    border-left: 8px solid #00cc00;
    background: #DFF9DF;
}
.listitem.playlog_beatother {
    border-left: 8px solid #007c00;
    background: #DFF9DF;
}
.listitem.playlog_complete {
    border-left: 8px solid #ffcc00;
    background: #DFF9DF;
}

#collectioncounttable tbody tr:hover,
#collectionplatformsummarytable tbody tr:hover,
.listitem:hover {
    background: #e8e8e8;
    background-size: contain;
    color: #008888;
    cursor: pointer;
}
.subtitle {
    color: #c8c8c8;
}
.listitem td {
    padding: 0 4px;
    background: none;
    min-width: 50px;
}
.listitem.edition  {
    height: 30px;
    display: none;
}
.listitem.edition .subtitle {
    display: none;
}
.editionchecked {
    opacity: 0.25;
}
.listitem:hover td {
    background: none;
}
.collectioncol {
    text-align: center;
    min-width: 0;
}
.collectionheader {
    max-width: 30px;
    /*transform: rotate(320deg);*/
}
.icon img {
    height: 64px;
    width: 64px;
    object-fit: scale-down;
    padding: 0;
    margin: 0 10px;
    float: none;
}
.icon {
    text-align: center;
    width: 100px;
    overflow: hidden;
}
.notes {
    width: 220px;
    height: 58px;
}
.collectionnotes {
    width: 500px;
    }
.filters {
    margin: 0;
    margin-top: 5px;
    padding: 5px;
    border-top: 1px solid #d8d8d8;
    font-size: 0.75em;
}
.filters div {
    display: inline;
    float: right;
}
.edition {
    color: #d8d8d8;
    font-size: 0.8em;
    display: none;
}
.edition td.icon img {
    display: none;
}

/* ==========================================================================
   footer
   ========================================================================== */

#footer {
    margin: 0;
    margin-top: 100px;
    padding: 20px;
    background: #d8d8d8;
    min-height: 100%;
    align: bottom;
    border-top: 1px dotted #d8d8d8;
    color: #b8b8b8;
}

/* ==========================================================================
   small screens
   ========================================================================== */

@media only screen and (max-width : 640px) {

    html,
    body {
        margin-top: 39px;
        font-size: 0.80em;
    }
    select {
        font-size: 1.2em;
        width: 150px;
    }
    input[type="button"], input[type="submit"] {
        background: #2288ff;
        padding: 4px 8px;
    }
    .icon {
        max-width: 60px;
        overflow: hidden;
    }
    .cover {
        height: 100px;
        margin: 0;
    }
    #platformselect {
        width: 135px;
    }
    .pageicon {
        margin: 0;
    }
    .headerplatform {
        width: 102px;
    }
    .image {
        float: none;
        display: inline-block;
        width: auto;
        height: auto;
        border: 0;
        margin: 10px;
        zoom: 100%;
    }

    #amazonlinkframe {
        display: none;
    }
    .gameheaderdiv {
        background-position: bottom right;
    }
}
