/* Base */

p {
    text-align: justify;
}

h1 {
    text-align: center;
}

h1:hover {
    cursor: pointer;
}

pre {
    padding: 1vh 1vw 1vh 1vw;
    border: 3px solid;
    border-radius: 6px;
    overflow-x: auto;
}

blockquote {
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    border-style: solid;
    border-width: 0px 0px 0px 6px;
}

footer {
    margin-bottom: 2vh;
}

ul {
    list-style-type: circle;
}

img {
    max-width: 100%;
    max-height: 100%;
}

/* Horrible hack used to block transitions on load */
html#transitions-enabled {
    transition: background-color 0.5s;
}

div#content {
    margin-top: 2vh;
    margin-bottom: 2vh;
}

div#navigation {
    display: flex;
    justify-content: center;
    position: relative;
}

a.footer-item:hover {
    cursor: pointer;
}

/* Desktop */

html.desktop h1 {
    font-size: 2.25em;
}

html.desktop h2 {
    font-size: 1.75em;
}

html.desktop h3 {
    font-size: 1.5em;
}

html.desktop p {
    font-size: 1.1em;
}

html.desktop pre {
    font-size: 1.1em;
}

html.desktop blockquote p {
    padding: 1.2vh 1vw 1.2vh 1vw;
}

html.desktop li {
    font-size: 1.15em;
}

html.desktop div#content {
    margin-left: clamp(0px, calc(40vw - 20rem), 100vw);
    margin-right: calc(40vw - 20rem);
}

html.desktop footer {
    margin-left: clamp(0px, calc(40vw - 20rem), 100vw);
    margin-right: calc(40vw - 20rem);
    margin-top: 4vh;
}

html.desktop a.footer-item {
    margin-left: 0.75vw;
    margin-right: 0.75vw;
    width: 3%;
    height: 3%;
}

html.desktop ::-webkit-scrollbar {
    width: 8px;
}

html.desktop ::-webkit-scrollbar-thumb {
    border-radius: 64px;
}

/* Mobile */

html.mobile h1 {
    font-size: 1.6em;
}

html.mobile h2 {
    font-size: 1.3em;
}

html.mobile p {
    font-size: 1em;
    margin-top: 2vh;
    margin-bottom: 2vh;
}

html.mobile li {
    font-size: 1.05em;
}

html.mobile pre {
    margin-top: 2vh;
    margin-bottom: 2vh;
    font-size: 1em;
}

html.mobile blockquote p {
    padding: 1.2vh 2vw 1.2vh 2vw;
}

html.mobile div#content {
    margin-left: 8vw;
    margin-right: 8vw;
}

html.mobile footer {
    margin-top: 2vh;
}

html.mobile a.footer-item {
    margin-left: 2vw;
    margin-right: 2vw;
    width: 6%;
    height: 6%;
}