* {
    box-sizing: border-box;
}

Body{
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f4f4;
}
header{
    height: 200px;
    background-image: url("junkshelf.jpg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #333333;
}
header h1 {
    margin: 0;
    color:white;
    text-align: center;
    font-size: 6em;
    line-height: 2em;
}
main {
    padding: 20px;
}
table {
width: 90%;
margin: 0 auto;
border-collapse: collapse;
background-color: white;
border: 2px solid #333333;
}
th, td {
    padding: 10px;
border: 1px solid #999999;
text-align: left;
}
thead th {
    background-color: #333333;
    color: white;
}
tbody tr:nth-child(even) {
    background-color: #e8e8e8;
}
tfoot td {
    background-color: #cccccc;
    font-weight: bold;
    border-top: 2px solid #333333;
}
.right {
    text-align: right;
}
footer {
    margin-top: 20px;
    border-top: 3px solid red;
    padding: 10px;
    text-align: center;
    font-style: italic;
}
@media only screen and (max-width: 719px) {
    header h1 {
        font-size: 2em;
        line-height: 6.25em;
    }
    table {
        width: 100%;
    }
    table, thead, tbody, tfoot, tr, th, td {
        display:block;
    }
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    tr {
        margin-bottom: 10px;
        border-bottom: 2px solid #333333;
    }
    td {
        border: none;
        border-bottom: 1px solid #cccccc;
        position:relative;
        padding-left: 40%;
        text-align: left;
    }
    td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 35%;
        font-weight: bold;
    }
    td.right {
        text-align: left;
    }
    tfoot tr {
        margin-bottom: 0;
        border-bottom: none;
    }
    tfoot td:empty {
        display:none;
    }
    tfoot td:first-child {
        padding-left: 10px;
    }
}