:root {
    /* colors */
    --text: #000;
    /*--background: #fffbed;*/
    --background: #f2e8df;
    --accent: #121212;
    --accent-light: #bae3e6;
    --accent-dark: #121212;
    --highlight: #fff2a1;
    
    /* fonts */
    --basefont: verdana;
    --titlefont: "courier new";
    --text-size: 14px;
    
    /* decorative styling */
    --border-radius: 4px;
    --underline: dotted 2px var(--accent);
    --border: dotted 2px var(--accent-light);
    
    /* misc styling */
    --max-width: 800px;
    --spacing: 15px;
    
    /* calculations */
    --halfspacing: calc(var(--spacing) / 2);
    --doublespacing: calc(var(--spacing) * 2);
}

* {
    box-sizing: border-box;
    max-width: 100%;
    -ms-overflow-style: none;
    box-decoration-break: clone;
}

@font-face {
    font-family: impactLabelR;
    src: url(./fonts/impact_label_reversed.ttf);
}

body {
    overflow-x: hidden;
    overflow-y: scroll;
    padding: var(--spacing) 5%;
    color: var(--text);
    font-family: var(--basefont);
    font-size: var(--text-size);
    line-height: 1.5em;
    background: url("images/rippednotepaper.png") no-repeat top center, url("/images/rippednotepaper_footer.png") no-repeat bottom center, url("/images/paperback.png") repeat top center, #121212;
}

/* layout */
header {
    text-align: center;
    padding-bottom: var(--spacing);
}

main, header, footer {
    max-width: var(--max-width);
    margin: 0 auto;
}

footer {
    display: block;
    text-align: center;
    font-family: var(--titlefont);
    font-weight: 550;
    color: #121212;
    font-size: 20px;
    margin: var(--doublespacing) auto var(--spacing) auto;
}

/* navigation */
.image-nav {
    background: url("/images/maskingtape01.png");
    padding: 35px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
}

nav {
    padding-top: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

nav a {
    margin: 5px;
}

/* headers */
h1,
h2,
h3,
h4 {
    font-family: var(--titlefont);
    margin: 1.5em auto;
    line-height: 1.3em;
    text-transform: uppercase;
    text-align: center;
}

h1 {
    font-size: 2em;
    margin: 1em auto;
    padding-top: var(--spacing);
    /*border-top: solid 3px var(--accent-light);
    border-bottom: solid 2px var(--accent-light);*/
    border-bottom: 2px solid #121212;
    border-radius: 3% 5% / 3% 5%;
    /*padding: 2px 10px 0 10px;
    border-radius: 1px;
    font-family: impactLabelR;
    font-size: 2em;
    color: #f6f6f6;
    background: #121212;
    text-decoration: none;
    transform: rotate(0.5deg);*/
}

h2 {
    font-size: 1.5em;
    margin: 1em auto;
    /*border-bottom: solid 2px var(--accent-light);*/
    border-bottom: 2px solid #121212;
    border-radius: 3% 5% / 3% 5%;
}

h3 {
    background: var(--highlight);
    /*border-radius: var(--border-radius);*/
    border-radius: 8% 30% / 54% 40%;
}

h4 {
    color: var(--accent-dark);
    /* NOTE: Just a placeholder. Change when it becomes relevant */
}

/* text */
b {
    background: #121212;
    color: #f6f6f6;
    font-family: impactLabelR;
    font-size: 10pt;
    text-transform: uppercase;
    padding: 2px 5px 1px 5px;
    text-decoration: none;
    border-radius: 1px;
    letter-spacing: .1em;
}

.white {
    background: #f6f6f6;
    color: #121212;
    box-shadow: 2px 2px #e7e7e7;
}

i {
    color: var(--accent);
}

mark {
    background-color: var(--highlight);
    padding: 1px 2px;
    border-radius: var(--border-radius);
}

code {
    font-size: .9em;
    padding: 1px 3px;
    font-family: monospace;
    color: var(--accent-dark);
}

u {
    text-decoration: dotted;
}

small {
    font-size: .7em;
}

/* links */
a {
    /*color: var(--accent);
    text-decoration: underline var(--underline);
    text-underline-offset: .3em;*/
    background: #121212;
    color: #f6f6f6;
    font-family: impactLabelR;
    font-size: 10pt;
    text-transform: uppercase;
    padding: 2px 5px 1px 5px;
    text-decoration: none;
    border-radius: 1px;
}

a:hover {
    /*color: var(--accent-dark);
    text-decoration-color: var(--accent-dark);*/
    background: #f6f6f6;
    color: #121212;
    box-shadow: 2px 2px #e7e7e7;
}

.img-link {
    background: none;
    color: none;
}

.img-link:hover {
    background: none;
    color: none;
    box-shadow: none;
}

.label {
    padding: 2px 10px 0 10px;
    border-radius: 1px;
    font-family: impactLabelR;
    color: #f6f6f6;
    background: #121212;
    font-size: 26px;
    text-decoration: none;
    transition: transform .2s ease-in-out;
}

.label:hover {
    /*transform: rotate(2deg);*/
    text-decoration: none;
    color: #f6f6f6;
    background: #121212;
    box-shadow: none;
}

.tiltR {
    transform: rotate(-5deg);
}
.tiltR:hover {
    transform: rotate(-1deg);
}

.tiltL {
    transform: rotate(2deg);
}
.tiltL:hover {
    transform: rotate(-1deg);
}

.tiltBack {
    transform: rotate(-1deg);
    margin: 20px;
}

.tiltBack:hover {
    transform: rotate(2deg);
}

/* lists */
ol, ul {
    margin: var(--spacing);
}

li {
    padding-left: var(--halfspacing);
    margin: var(--halfspacing) auto;
}

li > ul {
    padding-left: var(--spacing);
    margin: auto;
    font-size: .9em;
}

li::marker {
    color: var(--accent);
}

/* tables */
table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

table td, table th {
    vertical-align: text-top;
    padding-left: 10px;
}

table td {
    border-bottom: var(--border);
}

table.blog thead {
    background: var(--highlight);
    padding-left: 10px;
}

table.blog thead th {
    font-family: var(--titlefont);
    text-transform: uppercase;
}

table.blog tr td:first-of-type {
  width: 20%;
  padding: 10px;
}

table.blog tr td:nth-child(2) {
  width: 55%;
}

table.devlog td{
    vertical-align: text-top;
    border: none;
}

table.devlog tr td:first-of-type {
    width: 20%;
    text-align: right;
}

/* element styling */
blockquote {
    padding-left: var(--doublspacing);
    margin: var(--doublespacing);
    border-left: var(--border);
    color: var(--accent-dark);
}

hr {
    width: 100%;
    border: none;
}

/* area dividers */
hr::after {
    content: "\a0 \a0";
    text-align-last: justify;
    width: 100%;
    margin: var(--spacing) auto;
    display: table;
    text-decoration: underline 3px var(--accent-light);
}

/* containers */
.box {
    padding: var(--spacing);
    border: dashed #121212;
    border-width: 2px 2px 2px 3px;
    border-radius:13% 4% 12% 5%/4% 8% 6% 9%;
    /*border-top: 2px dashed #121212;
    border-bottom: 2px dashed #121212;
    border-radius: 1% 2% / 3% 2%;*/
    /*border-top: var(--border);
    border-bottom: var(--border);*/
    margin: var(--spacing) auto;
    /*border-radius: var(--border-radius);*/
    break-inside: avoid;
}

.container {
    padding: var(--spacing);
    margin: var(--spacing) auto;
    break-inside: avoid;
}

.center {
    text-align: center;
}

.plain-notes {
    background: url("images/plainnotes.png");
    padding: 125px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    block-size: 1000px;
}

.column {
    margin: auto;
}

.column-wrap {
    display: flex;
    justify-content: center;
    gap: 15px 30px;
}

/* mobile formatting */
@media only screen and (max-width: 600px) {
    .plain-notes {
        background: url("images/plainnotes.png");
        padding: 70px 20px;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 475px;
        block-size: 600px;
    }
    
    .column-wrap {
        flex-flow: row wrap;
    }
}

/* NOTE: if any conditioning is needed for desktop, use bracket above, but with "min-width" instead of max */