* {
    box-sizing: border-box;
}

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

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

body {
    background-color: var(--color-background);
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0 auto;
    padding: 2rem 2rem;
    font-family: sans-serif;
    transform: rotate(180deg);
    cursor: none;
}

header {
    margin: 0px auto;
    max-width: 80ch;
    width: 100%;
}

main {
    flex: 1;
    overflow: auto;
    margin: 2rem;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

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

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

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;
}

main section {
    max-width: 80ch; 
    padding-bottom: 3rem;
}

#cursor {
    pointer-events: none;
    position: absolute;
}

footer * {
    cursor: pointer;
}

/* Fonts */

@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');
}

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

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

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

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

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

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

h2::before {
    content: "##";
}

h3::before {
    content: "###";
}