:root {
    --color-background: #313244;
    --color-background-header: #45475a;
    --color-text: #cdd6f4;
    --color-accent: #cba6f7;
    --color-link: #89dceb;
    --color-link-hover: #f5e0dc;
}

@font-face {
    font-family: 'iAWriterDuoS-Regular';
    src: url('fonts/iAWriterDuoS-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'iAWriterDuoS-Bold';
    src: url('fonts/iAWriterDuoS-Bold.woff2') format('woff2');
}

* {
    box-sizing: border-box;
}

html {
    background-color: var(--color-background);
    color: var(--color-text);
    margin: 0;
    padding: 0;
}

html {
    -ms-overflow-style: none;
    /* Internet Explorer and Edge */
    scrollbar-width: none;
    /* Firefox */
}

html::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, and Opera */
}

body {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer {
    color: var(--color-text);
    font-size: 1rem;
    inset: auto 0px 0px;
    padding: 1rem 1.5rem;
    position: fixed;
    text-align: center;
    width: 100%;
    font-family: sans-serif;
    background-color: var(--color-background);
}

main {
    margin-bottom: 6rem;
    display: flex;
    flex-direction: column;
}

main section {
    max-width: 60ch;
}

main section {
    font-family: 'iAWriterDuoS-Regular', 'Courier New', Courier, monospace;
    font-size: 16px;
    line-height: 26px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

main h1,
main h2,
main h3 {
    font-family: 'iAWriterDuoS-Bold', 'Courier New', Courier, monospace;
    position: relative;
}

main h1::before,
main h2::before,
main h3::before {
    color: var(--color-accent);

    position: absolute;
    left: -4ch;
    width: 3ch;
    text-align: right;

    font-family: 'iAWriterDuoS-Regular', 'Courier New', Courier, monospace;
}

main h1::before {
    content: "#";
}

main div,
main span {
    display: inline;
}

#dom-tree {
    background-color: var(--color-accent);
    color: var(--color-background);
    padding: 1rem;
    font-size: 0.8rem;
    line-height: 1rem;
    min-width: 100%;
}

#element-counts table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    text-align: left;
}

tr {
    border-bottom: 1px solid var(--color-accent);
}

th {
    padding-bottom: 1rem;
}

td {
    padding: 0.2rem 0.5rem;
}


a {
    color: var(--color-link);
}

a:hover {
    color: var(--color-link-hover);
}