/* Required for sticky footer. */
html {
    position: relative;
    min-height: 100%;
}

/* Set defaults and background. */
body {
    font-family: sans-serif;
    font-size: 100%;
    margin: 0 0 60px; /* Bottom margin is footer height. */
    background: url('background.jpg') no-repeat center center scroll;
    background-size: cover;
}

/* Header container and styling. */
.header {
    background: rgba(100, 100, 100, 0.6);
    overflow: hidden;
}
.header h1 {
    font-size: 3em;
    letter-spacing: 0.1em;
    text-align: center;
    color: rgb(255, 255, 255);
}

/* Scrollable table with sticky headers. */
.table-container {
    overflow-y: auto;
    max-height: 400px;
    max-width: 1000px;
    margin: 10px auto 0;
}
.table-container div.first {
    font-weight: bold;
    color: rgb(255, 255, 255);
    background-color: rgb(127, 128, 127);
    text-align: center;
    padding: 8px 16px;
    position: sticky;
    top: 0;
    left: 0;
}
.table-container thead tr.second th {
    position: sticky;
}

/* Table styling. */
table {
    border-collapse: collapse;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
}
th, td {
    padding: 8px 16px;
}
th {
    font-weight: bold;
    color: rgb(255, 255, 255);
    background-color: rgba(100, 100, 100, 0.8);
}

/* Sticky footer container and styling. */
.footer {
    margin-top: 10px;
    background: rgba(100, 100, 100, 0.6);
    overflow: hidden;
    text-align: center;
    position: absolute;
    left: 0;
    bottom: 0;
    height: 50px;
    width: 100%;
}
.footer a, p {
   color: rgba(255, 255, 255, 0.8);
}

/* For smaller screens. */
@media screen and (max-width: 999px) {
    .header h1 {
        font-size: 2em;
    }
    .table-container {
        width: 90%;
    }
    .table-container table {
        width: 1000px;
    }
}
