* {
    box-sizing: border-box;
}

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

header h1 {
    margin: 0;
    color: #ffffff;
    text-align: center;
    font-size: 6em;
    line-height: 2em; /* Centers the 6em font perfectly inside the 200px container */
}


table {
    width: 100%;
    margin: 30px auto;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}


thead th {
    background-color: #f78a8a;
    color: #ffffff;
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #638aaf;
}


tbody td {
    padding: 12px 15px;
    color: #333333;
    border-bottom: 1px solid #e0e0e0;
}

tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

tbody tr:hover {
    background-color: #f1f3f5;
}


tfoot td {
    background-color: #eaeded;
    font-weight: bold;
    color: #2c3e50;
    padding: 15px;
    border-top: 2px solid #bdc3c7;
}


footer {
    margin-top: 20px;
    border-top: 3px solid rgb(156, 100, 47);
    text-align: center;
    font-style: italic;
    padding: 15px 0;
    color: #555555;
}


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

   
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    
    tr {
        border: 1px solid #ccc;
        margin-bottom: 15px;
        background: #ffffff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }


    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 45% !important; /* Forces text to the right side */
        text-align: left;
        min-height: 35px;
    }

   
    td:before {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 40%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: #2c3e50;
        content: attr(data-label); /* Pulls text from data-label tag */
    }

    
    .mobile-hide {
        display: none;
    }

    
    tfoot td {
        background-color: #f8f9fa;
    }
}