/* Base styles remain mostly unchanged */
* {
    font-family: 'Lucida Console', 'Andale Mono', 'Monospac821 BT', 'Courier New', Courier, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    color: #ffde69;
    font-weight: 300;
    font-size: 1em;
    line-height: 1.2em;
}
body {
    margin: 0 auto;
    padding-top: 15px;
    max-width: 1200px;
    background-color: #181817;
    color: #FFDf3F;
}
thead {
    font-weight: 200;
    font-size: 1.0em;
}
h1 {
    font-weight: 200;
    text-align: center;
    font-size: 1.2em;
    line-height: 1.5em;
}
a {
    color: #deff3f;
    text-decoration: none;
}
a:hover {
    color: #fffefe;
    text-decoration: underline;
    background-color: #000000;
}
a.clear, a.clear:link, a.clear:visited {
    color: #333;
    background-color: #000000;
    padding: 2px 0;
    font-weight: 400;
    font-size: 13px;
    margin: 0 0 0 15px;
    line-height: 13px;
    display: inline-block;
    border-bottom: transparent 1px solid;
    vertical-align: -10px;
    transition: all 200ms ease-in;
}
input {
    margin: 0 auto;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 19px;
    color: #555;
    display: inline-block;
    height: 20px;
    padding: 4px 32px 4px 6px;
    margin-bottom: 8px;
    border-radius: 3px;
    width: 196px;
    background-color: #303030;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    transition: border linear .2s, box-shadow linear .2s;
}
input:focus {
    outline: 0;
    border-color: rgba(0,0,0,0.8);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075), 0 0 8px rgba(0,0,0,0.6);
}
input::-moz-focus-inner {
    padding: 0;
    border: 0;
}
#search {
    color: #FFFFFF;
    background-color: #202013;
    display: block;
    margin: 20px auto 0;
    width: 250px;
    box-sizing: content-box;
    transition: all 200ms ease-in;
}
table {
    border-collapse: collapse;
    font-size: 0.9em;
    max-width: 100%;
    margin: 18px auto 0;
    /* Add horizontal scroll if needed */
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}
tr {
    outline: 0;
    border: 0;
}
tr:hover td {
    color: #FFFFFF;
    background: #000000;
}
tr td:first-of-type {
    padding-left: 9px;
    padding-right: 9px;
}
tr.parent a {
    color: #efeeea;
}
th {
    text-align: left;
    font-size: .75em;
    padding-right: 20px;
}
th + th {
    width: 20%;
}
th + th + th + th {
    width: 5%;
}
td {
    padding: 4px 0;
    outline: 0;
    border: 0;
    border-bottom: 1px solid #303030;
    vertical-align: middle;
    text-align: left;
    transition: background 200ms ease-in;
    word-wrap: break-word; /* Allow wrap of long text */
}
/* Truncate or wrap filenames in the first column */
td:first-of-type {
    max-width: 240px; /* limits width on bigger screens */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Keep links block */
td a {
    display: block;
}
.parent a:hover {
    color: #000;
}
footer {
    font-size: 12px;
    text-align: center;
}
footer a {
    text-decoration: underline;
    color: #993300;
}

/* Responsive adjustments for mobile phones */
@media (max-width: 480px) {
    body {
        padding-top: 10px;
        margin: 0 10px;
    }
    h1 {
        font-size: 1em;
        line-height: 1.3em;
    }
    #search {
        width: 100%;
        max-width: 250px;
        margin-top: 10px;
        font-size: 14px;
    }
    table {
        font-size: 0.8em;
        margin: 10px auto 0;
    }
    /* Allow table to scroll horizontally */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Relax ellipsis and wrap text for filenames on narrow screens */
    td:first-of-type {
        white-space: normal;
        max-width: none;
        word-break: break-word;
        overflow: visible;
        text-overflow: clip;
        padding-right: 6px;
    }
    /* Make padding smaller in cells */
    td, th {
        padding: 2px 6px;
    }
    th + th {
        width: 30%;
    }
    th + th + th + th {
        width: 7%;
    }
    input {
        width: 100%;
        max-width: 100%;
    }
}


