* {
    box-sizing: border-box;
}

/* Your css goes here */

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

header h1 {
    margin: 0;
    color: white;
    text-align: center;
    line-height: 4em;
    font-size: 3em;
}
/* I had to chnage the size and height of the text since it didnt fit right */

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

table {
    width: 80%;
    border-collapse: collapse;
    background-color: rgb(116, 116, 255);
    margin: 0 auto;
    text-align: center;
}

thead th {
    background-color: #ffc60c;
    color: #000;
    font-weight: bold;
    border: 2px solid #333;
    padding: 10px
}

tbody td {
    border: 1px solid #666;
    padding: 8px;
    background-color: #ffffff;
}

tfoot td {
    background-color: #e21515;
    color: white;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

@media only screen and (max-width: 720px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    table {
        margin-left: auto;
        margin-right: auto;
        width: 90%;
        max-width: 600px;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 15px;
        border: 2px solid #333;
        padding: 10px;
        background-color: #fff;
    }

    td {
        width: auto;
        position: relative;
        padding-left: 120px;
        border: none;
        text-align: right;
    }
    
    td::before {
        position: absolute;
        left: 15px;
        top: 10px;
        font-weight: bold;
        content: attr(data-label);
    }

    tfoot {
        display: block;
        width: 100%;
        text-align: center;
        clear: both;
    }

    tfoot td {
        clear: both;
        display: block;
        width: 95%;
        margin: 10px;
        background-color: #e21515;
        color: white;
        font-style: italic;
        text-align: center;
        padding-left: 0;
    }
}