:root {
    /* colors */
    --black: #121212;
    --white: #f6f6f6;
    --shadow: #e7e7e7;
    --background: #f2e8df;
    --accent: #121212;
    --blue: #bae3e6;
    --accent-dark: #121212;
    --highlight: #fff2a1;
    
    /* fonts */
    --basefont: verdana;
    --titlefont: "courier new";
    --labelfont: impactLabelR;
    --text-size: 14px;
    
    /* decorative styling */
    --border-radius: 4px;
    --underline: dotted 2px var(--black);
    --border: dashed 1px var(--black);
    
    /* 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(--black);
    font-family: var(--basefont);
    font-size: var(--text-size);
    line-height: 1.5em;
    background: url("/images/collageback.png") repeat top center, var(--background);
}

/* --------------------LAYOUT------------------------ */

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


/* --------------------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(--half-spacing);
    border-bottom: 2px solid var(--black);
    border-radius: 3% 5% / 3% 5%;
    */
    margin: 1em 50px .5em 50px;
    font-family: var(--labelfont);
    background: var(--black);
    color: var(--white);
    box-shadow: 2px 2px var(--shadow);
    border-radius: 1px;
    transform: rotate(0.5deg);
}

h2 {
    /*
    font-size: 1.5em;
    margin: 1em auto;
    border-bottom: 2px solid var(--black);
    border-radius: 3% 5% / 3% 5%;
    */
    margin: 1em 100px .5em 100px;
    font-family: var(--labelfont);
    background: var(--white);
    color: var(--black);
    box-shadow: 2px 2px var(--shadow);
    border-radius: 1px;
    transform: rotate(-0.5deg);
}

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

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

.h-divider {
    border-bottom: 2px solid var(--black);
    border-radius: 3% 5% / 3% 5%;
}

/* --------------------TEXT------------------------ */
b {
    background: var(--white);
    color: var(--black);
    box-shadow: 2px 2px var(--shadow);
    font-family: var(--labelfont);
    font-size: 10pt;
    text-transform: uppercase;
    padding: 2px 5px 1px 5px;
    text-decoration: none;
    border-radius: 1px;
    letter-spacing: .1em;
}

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(--black);
}

u {
    text-decoration: dotted;
}

small {
    font-size: .7em;
}

.char-quote {
    text-indent: -20px;
    padding-left: 20px;
    margin: 0;
}

.no-margin {
    margin: 0;
}

blockquote {
    border: none;
}

.white {
    color: var(--black);
    background: var(--white);
    box-shadow: 2px 2px var(--shadow);
}

/* --------------------LINKS------------------------ */
a {
    background: var(--black);
    color: var(--white);
    font-family: impactLabelR;
    font-size: 10pt;
    text-transform: uppercase;
    padding: 2px 5px 1px 5px;
    text-decoration: none;
    border-radius: 1px;
}

a:hover {
    background: var(--white);
    color: var(--black);
    box-shadow: 2px 2px var(--shadow);
}

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

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



/* --------------------BUTTONS------------------------ */
.label {
    padding: 2px 10px 0 10px;
    border-radius: 1px;
    border: none;
    font-family: impactLabelR;
    color: var(--white);
    background: var(--black);
    font-size: 26px;
    text-decoration: none;
    transition: transform .2s ease-in-out;
}

.label:hover {
    text-decoration: none;
    color: var(--white);
    background: var(--black);
    box-shadow: none;
}

.small {
    font-size: 20px;
}

#blog-link {
    transform: rotate(-5deg);
}

#blog-link:hover {
    transform: rotate(-1deg);
}

#devlog-link {
    transform: rotate(2deg);
}

#devlog-link:hover {
    transform: rotate(-1deg);
}

#writing-link {
    transform: rotate(-1deg);
    /*margin: auto 20px;*/
}

#writing-link:hover {
    transform: rotate(3deg);
}

#reading-link {
    transform: rotate(2deg);
    /*margin: auto 20px;*/
}

#reading-link:hover {
    transform: rotate(-2deg);
}

#watching-link {
    transform: rotate(-2deg);
    /*margin: auto 20px;*/
}

#watching-link:hover {
    transform: rotate(2deg);
}

#btb-link {
    transform: rotate(-1deg);
    margin-top: 10px;
    margin-bottom: 15px;
}

#btb-link:hover {
    transform: rotate(1deg);
}

#returnHome-link {
    transform: rotate(-1deg);
    margin: 20px;
}

#returnHome-link:hover {
    transform: rotate(1deg);
}

/* --------------------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(--black);
}

/* 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);
}

#blog thead{
    background: var(--highlight);
    padding-left: 10px;
    font-family: var(--titlefont);
    text-transform: uppercase;
}

#blog tr td:first-of-type {
    padding: 10px;
}

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

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

#reviews tr td:first-of-type{
    width: 20%;
}

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

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

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

/* --------------------CONTAINERS------------------------ */
.box {
    padding: var(--spacing);
    border: dashed var(--black);
    border-width: 2px 2px 2px 3px;
    border-radius:13% 4% 12% 5%/4% 8% 6% 9%;
    margin: var(--spacing) auto;
    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: 75px 125px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    block-size: 1000px;
}

.legal {
    background: url("images/legal_seamless.png") repeat;
    padding: 20px 50px;
    background-size: 400px;
    position: relative;
    z-index: 2;
    top: -15px;
}

.column {
    margin: auto;
}

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

.columns {
    display: flex;
    justify-content: space-evenly;
}

.tabs {
    background: url("images/blogtabs_writing.png") bottom center no-repeat;
    display: flex;
    justify-content: center;
    gap: 75px;
    background-size: 800px;
    padding-top: 20px;
    padding-bottom: 50px;
    z-index: 1;
}

.folder-writing {
    background: #b5b54f;
    padding: 0 30px 20px 30px;
    border-radius: 0 0 5px 5px;
    z-index: 1;
    box-shadow: 4px 4px 2px #d6d6d6;
}

.torn-top {
    background: url("images/tornLegal01.png") bottom center no-repeat;
    background-size: 760px;
    padding: 45px 20px 5px 20px;
    position: relative;
    z-index: 2;
    top: -15px;
    
}

.tornlegal-top {
    background: url("images/tornLegalTop.png") bottom center no-repeat;
    background-size: 800px;
    padding: 52px 20px 30px 20px;
    position: relative;
}

.torn-bottom {
    background: url("images/tornLegalTop.png") top center no-repeat;
    /*background-size: 100%;*/
    background-size: 800px;
    transform: rotate(180deg);
    padding-bottom: 100px;
    position: relative;
    z-index: 2;
    top: -15px;
}

#blog-subhead {
    font-family: var(--titlefont);
    font-weight: bold;
    border-top: 2px solid var(--black);
    border-bottom: 2px solid var(--black);
    border-radius: 3% 5% / 3% 5%;
    line-height: 1em;
    padding: 10px 0;
}

#page-title {
    border-bottom: 2px solid var(--black);
    border-radius: 3% 5% / 3% 5%;
}

/* --------------------MISC IMAGES------------------------ */
#fourOfour {
    display: block;
    width: 400px;
    margin: 120px auto 30px;
}

/* --------------------MOBILE FORMAT------------------------ */
@media only screen and (max-width: 600px) {
    .plain-notes {
        background: url("images/plainnotes.png");
        padding: 40px 20px;
        background-position: top center;
        background-repeat: no-repeat;
        background-size: 475px;
        /*block-size: 600px;*/
    }
    
    .column-wrap {
        flex-flow: row wrap;
    }
    
    h1 {
        margin: 1em 25px .5em 25px;
    }
    
    h2 {
        margin: 1em 50px .5em 50px; 
    }
    
    .legal {
        padding: 20px;
    }
    
    .tabs {
        background-size: 500px;
        gap: 10px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

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