:root {
    color-scheme: dark;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    background: #272822 !important;
    color: #f8f8f2 !important;
    font-family:
        "SFMono-Regular",
        "JetBrains Mono",
        "Cascadia Code",
        Consolas,
        Menlo,
        monospace;
    font-size: 15px;
    line-height: 1.5;
}

body {
    box-sizing: border-box;
    padding: 32px 40px;
}

/* Oldal címe */

h1 {
    margin: 0 0 24px;
    padding-bottom: 14px;
    color: #f8f8f2 !important;
    font-size: 23px;
    font-weight: 600;
    border-bottom: 1px solid #49483e;
}

/* Táblázat */

table,
#list {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
    background: #272822 !important;
    border: 1px solid #49483e !important;
}

/* Fejléc */

thead,
thead tr,
th {
    background: #3e3d32 !important;
    color: #f8f8f2 !important;
}

th {
    padding: 12px 16px !important;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #75715e !important;
}

/* Fejléc rendezési linkjei */

th a,
th a:visited {
    color: #f8f8f2 !important;
    text-decoration: none;
}

th a:hover,
th a:focus {
    color: #fd971f !important;
}

/* Sorok – nincs zebra csíkozás */

tbody tr,
tbody tr:nth-child(odd),
tbody tr:nth-child(even) {
    background: #272822 !important;
}

td {
    padding: 10px 16px !important;
    color: #cfcfc2 !important;
    background: #272822 !important;
    border-bottom: 1px solid #3b3a32 !important;
}

/* Sor kiemelése */

tbody tr:hover,
tbody tr:hover td {
    background: #3e3d32 !important;
}

/* Fájlnevek: élénk citromsárga */

td.link a:not([href$="/"]),
td.link a:not([href$="/"]):visited {
    color: #ffff00 !important;
    text-decoration: none;
    font-weight: 500;
}

/* Könyvtárnevek: Monokai zöld */

td.link a[href$="/"],
td.link a[href$="/"]:visited {
    color: #a6e22e !important;
    text-decoration: none;
    font-weight: 600;
}

/* Szülőkönyvtár: cián
   Ennek a szabálynak a könyvtárszabály után kell lennie. */

td.link a[href="../"],
td.link a[href="../"]:visited {
    color: #66d9ef !important;
}

/* Fájl- és könyvtárnév hover */

td.link a:hover,
td.link a:focus {
    color: #fd971f !important;
    text-decoration: none;
}

/* Fájlméret: világosszürke */

td.size {
    color: #cfcfc2 !important;
    white-space: nowrap;
}

/* Dátum: visszafogott szürke */

td.date {
    color: #75715e !important;
    white-space: nowrap;
}

/* Nginx lábléc elrejtése */

address {
    display: none !important;
}

/* Mobilnézet */

@media (max-width: 700px) {
    body {
        padding: 16px 12px;
        font-size: 13px;
    }

    th,
    td {
        padding: 8px !important;
    }

    th:nth-child(2),
    td.size {
        display: none;
    }
}
