* {
    box-sizing: border-box;
}

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

header h1 {
    margin: 0;
    color: white;
    text-align: center;
    font-size: 3em;
    line-height: 4em;
}

table {
    width: 100%;
    background-color: #f5f5f5;
    border: 2px solid #333;
    border-collapse: collapse;
}

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

thead {
    background-color: #333;
    color: white;
}

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

tfoot {
    background-color: #ddd;
    font-weight: bold;
    text-align: center;
}


/* Responsive table for screens less than 720px */
@media screen and (max-width: 719px) {

    table,
    tbody,
    tr,
    td,
    th {
        display: block;
    }


    thead,
    tfoot {
        display: none;
    }


    tbody td {
        position: relative;
        padding-left: 40%;
        min-height: 35px;
        white-space: normal;
    }

    
    tbody td::before {
        content: attr(data-label);
        position: absolute;
        top: 0;
        left: 0;
        width: 40%;
        padding: 10px;
        font-weight: bold;
    }

    @media screen and (max-width: 720px) {
    header h1 {
        font-size: 3em;
        line-height: 4em;
    }
}
}