:root {
    /* if you want to keep it super simple, you can edit these top variables (variables = the things that start with --) to add some style and leave the rest of the code alone! */

    /* colors */
    --text: #000;
    --background: #fffbed;
    --accent-dark: #1f5356;
    --accent: #37939a;
    --accent-light: #bae3e6;
    --highlight: #fff2a1;

    /* fonts */
    --basefont: verdana;
    --titlefont: "courier new";
    --text-size: 14px;

    /* gallery styling */
    --minimum-img-width: 150px;
    --maximum-img-width: 400px;
    --maximum-columns: 4;
    --image-background: #fff;
    --column-gap: var(--spacing);

    /* misc styling */
    --max-width: 800px;
    --spacing: 15px;
    --border-radius: 4px;
    --underline: dotted 2px var(--accent-light);
    --border: dotted var(--accent-light) 2px;

    /* calculations - don't worry about this */
    --halfspacing: calc(var(--spacing) / 2);
    --doublespacing: calc(var(--spacing) * 2)
}

* {
    box-sizing: border-box;
    max-width: 100%;
    scrollbar-color: var(--accent);
    -ms-overflow-style: none;
    box-decoration-break:clone
}

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, var(--background);
    /* url("/images/corkboard04.png") repeat top left, */
}

h1:has(+ nav) {
    margin-bottom: var(--halfspacing);
}

header {
    text-align: center;
    padding-bottom: var(--spacing);
    /* padding-bottom: 40px;
    background-image: url(/images/maskingtape_transparent.png);
    background-position: bottom;
    background-repeat: no-repeat; */
}

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

#menu {
  width: 150px;
  margin: 10px;
}

#menu img {
  padding: 0px;
  margin: 0px;
}


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

aside {
  font-size:1em;
  line-height:1.3em}
aside.right {
	flex:1 4 200px;
	align-items:stretch
}
aside.left {
	flex:0 2 250px;
}

footer {
    display: block;
    text-align: center;
    font-size: .9em;
    margin: var(--spacing) auto;
}

/* element styling */
a {
    color: var(--accent);
    text-decoration: underline var(--underline);
    text-underline-offset: .3em
}

a:hover {
    color: var(--accent-dark);
}

nav a {
    padding: 5px;
    margin: 5px;
}

.menubutton {
    position: relative;
    display: inline-block;
    text-align: center;
}
.menubutton .menubuttontilt {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99;
    text-align: center;
}
.menubutton:hover .menubuttontilt {
    display: inline;
    text-align: center;
}

#to-top a {
    position: fixed;
    right: var(--spacing);
    bottom: var(--spacing);
    font-size: 50px;
    text-decoration: none;
    color: var(--accent-light);
}

b {
    color: var(--accent-dark)
}

i {
    color: var(--accent)
}

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

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

u {
    background:black;
    color:white;
    font-family: var(--titlefont);
    font-size: 10pt;
    text-transform: uppercase;
    padding:2px 5px;
    text-decoration:none;
    border-radius: var(--border-radius);
    letter-spacing: .1em;
}
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);
}
blockquote {
    padding-left:var(--doublespacing);
    margin:var(--doublespacing);
    border-left: var(--border);
    color:var(--accent-dark)
}

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

img {
   vertical-align: middle;
   max-width:100%;
}

/* boxes & flex */
.box {
    padding: var(--spacing);
    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;
}

.flex {
    display: flex;
    flex-flow: row wrap;
    gap: var(--halfspacing) var(--spacing)
}

.flex > * {
    flex: 1 2 200px;
    margin:0 auto;
}

.center {
    text-align: center;
}

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

/* dividing lines between areas */
hr::after,
footer::before {
    content: "\a0 \a0";
    text-align-last: justify;
    width: 100%;
    margin: var(--spacing) auto;
    display: table;
    text-decoration: underline 3px #bae3e6;
}

/* 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: 2.5em;
    text-align: center;
    letter-spacing: 0.25em;
    
}
   h1 a {
      text-decoration: none;
      color:var(--accent);
    }

h2 {
    font-size: 1.5em;
    margin: 1em auto;
    border-bottom: solid 2px #bae3e6;

}

h3 {
    background: var(--highlight);
    border-radius: var(--border-radius);
}

h4 {
    color: var(--accent-dark);
    background: var(--accent-light);
    font-weight: normal;
}

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

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

table td {
  border-bottom: dotted 2px var(--accent-light);
}

table.blog thead {
  background: var(--highlight);
}

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: 60%;
}

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

/* image gallery */
.tenor-gif-embed {
  text-align: center;
}
#gallery {
    margin: var(--doublespacing) auto;
    display: block;
    text-align: center;
    line-height: 1.2em;
    font-size: .9em;
}
#gallery.columns {
    columns: var(--minimum-img-width) var(--maximum-columns);
    gap: var(--column-gap);
}

#gallery img {
    margin: var(--spacing) auto;
    max-width: min(var(--maximum-img-width), 100%);
    display:block;
    background-color:var(--image-background)
}

figure {
    margin: var(--spacing) auto;
    break-inside: avoid;
}

/* lightbox */
#gallery img:hover {
    border-radius: var(--border-radius);
    cursor: pointer;
    outline: var(--border)
}

#lightbox {
    border: none;
    outline: none;
}
#lightbox img {
  max-height:90vh;
  max-width:90vw;
}

::backdrop {
    backdrop-filter: blur(2px) brightness(80%);
}

#gallery:has(~ #lightbox:popover-open) {
    pointer-events: none;
}
/* makes the lightbox work on small screens, like phones */
@media only screen and (min-width: 600px) {
    #lightbox button {
        display: none;
    }
} 
@media only screen and (max-width: 600px) {
    #lightbox button {
        display: block;
        width:30px;
        height:30px;
        margin:10px auto;
    }
    
    .plain-notes {
      background: url("/images/plainnotes.png");
      padding: 70px 20px;
      background-position: center;
      background-repeat: no-repeat;
      background-size: 475px;
      block-size: 600px;
    }
} 