* {
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

header {
    background-image: url("junkshelf.jpg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

header h1 {
    margin: 0;
    color: white;
    text-align: center;
    font-size: 6em;
    line-height: 2em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); 
}

footer {
    margin-top: 20px;
    border-top: 3px solid red;
    text-align: center;
    font-style: italic;
}

table {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    border-collapse: collapse;
    font-family: sans-serif;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

thead {
    background-color: #f2f2f2;
    font-weight: bold;
}

tfoot {
    background-color: #f9f9f9;
    font-weight: bold;
}

@media screen and (max-width: 719px) {
    header h1 {
        font-size: 3em;
        line-height: 1.5em;
    }
    
    table, thead, tbody, th, td, tr {
        display: block;
    }
    
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
    }
    
    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }
    
    td:before {
        position: absolute;
        top: 12px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }
    
    td:nth-of-type(1):before { content: "Item:"; }
    td:nth-of-type(2):before { content: "Description:"; }
    td:nth-of-type(3):before { content: "Value:"; }
    td:nth-of-type(4):before { content: "Acquired:"; }
}