/* NOTEBOOK CSS*/

:root {
  /* COLORS */
  --font-color: #000;
  --page-color: #fffff0;
  --line-color: #3ec9d8;
  --line-color2: #ee7a7a;
  --link-color: #c4445a;
  --highlighter: rgba(255, 255, 104, 0.7);
  --title-sticky-note: #ffbfc9;
  --desc-sticky-note: #fff8aa;
  /*IMAGES*/
  /*padding: 0 100px; whatever this was for it broke the mobile page lol*/
  margin: 0 auto;
  background: #ddd;
  background: linear-gradient(rgba(17, 37, 77, 0.9), rgba(4, 16, 41, 0.25)), url('/resources/wolfblkbg.jpg'); /*Gradient makes tiles "fade in".*/
  --tapepattern1: url("/resources/pawprint.jpg");
  --tapepattern2: url("/resources/knots.jpg");
  --tapepattern3: url("/resources/moons.jpg");
}
  
/* FONTS */
@font-face {
  font-family: mainfont;
  src: url("/resources/SedgwickAveDisplay-Regular.ttf");
}
  
@font-face {
  font-family: headerfont;
  src: url("resources/MacondoSwashCaps-Regular.ttf");
}
  
/*GLOBAL*/
body {
  font-family: mainfont, 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  font-size: 18px;
  line-height: 30px;
  margin: 0;
  background-image: var(--bg-image);
  background-attachment: fixed;
  background-size:50%;
  color: var(--font-color);
}

.shadow {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.8), 0 6px 20px 0 rgba(0, 0, 0, 0.8);
}

/*TEXT STYLING*/
h1, h2, h3, h4, h5, h6 {
  font-family: headerfont, 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  font-size: 2em;
  margin: 30px auto 0px;
  text-align: center;
}

h1, h2 {
  background-color: var(--highlighter);
  width: fit-content;
  font-size:45px;
}

h1 {
  text-decoration: underline;
  text-transform: uppercase;
}

h1::before {
  font-family:mainfont;
content: "~ ";
}

h1::after {
  font-family: mainfont;
  content: " ~";
}

p, ol, ul {
  margin-top:30px;
  font-size:30px;
}

ol li, ul li{
  padding: 1px;
  line-height: 35px;
}

li::marker {
  font-weight: bold;
}

b, strong {
  background-color: var(--highlighter);
}

i, em {
  text-decoration: wavy underline;
}

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

/*a::after {
  content: " â˜†";
}*/

a:hover {
  /*background-color: var(--link-color);*/
  color: #0F2145;
}

blockquote {
  border-left: var(--line-color2) solid;
  margin-top:30px;
  padding-left: 1em;
}

/*STICKY NOTE STYLING*/
.sticky {
  height: fit-content;
  width: 300px;
  font-size: 0.9em;
  margin: auto 1em;
  line-height: normal;
  padding: 2em;
  z-index: 10;
  position: relative;
  float: none;
}

.sticky > p {
  margin: 0.5em 0 0 0;
}

.sticky > ul, .sticky > ol {
  margin: 0em;
}

.title {
  background-color: var(--title-sticky-note);
  padding: 1em 0.5em;
  width: 200px;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-2deg);
  z-index: 1;
}

.title > h1 {
  font-size: 2.5em;
  background-color: transparent;
}

.title > h1::before, .title > h1::after {
  content: "";
}

.desc {
  background-color: var(--desc-sticky-note);
  transform: rotate(1deg);
}

/*MAIN CONTENT AREA*/
.box {
  background-color: var(--page-color);
  background-image: linear-gradient(var(--page-color) 1px, var(--page-color) 28px, var(--line-color));
  background-size: 100% 30px;
  padding: 1px 3em 1px 3em;
  clear: right;
  margin: 3em 2em;
}

.byline {
  margin-top: 30px;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 22px;
}

.box:nth-child(odd) {
  transform: rotate(-0.6deg);
}

.box:nth-child(even) {
  transform: rotate(0.6deg);
}

/*
  TAPE
  From Suzanne Aitchison's CSS Tape!
  https://codepen.io/aitchiss/pen/QWKmPqx
  Tape patterns come from pixabay!
*/

.tape::before,
.tape::after {
  content:"";
  width: 100px;
  height: 40px;
  position: absolute;
  background-color: black;
  background-image: url("/resources/moons.jpg");
  background-size: 100%;
  opacity: 0.8;
}

.eventape::before,
.eventape::after {
  background-image: url("/resources/moons.jpg");
}

.oddtape::before,
.oddtape::after {
  background-image: url("/resources/moons.jpg");
}

.tape::before {
  transform: rotate(-45deg);
  left: -5vmin;
  top: 0;
}

.tape::after {
  transform: rotate(45deg);
  right: -5vmin;
  top: 0;
}

.headertape::after {
  transform: rotate(-45deg);
  top: auto;
  bottom: 0;
}

/*The Writing Utensil Overlay Images*/
.desk-decor>img {
  position: fixed;
  z-index: 50;
  filter: drop-shadow(10px 10px 5px rgba(0, 0, 0, 0.5))
}

.credit {
  /*background-color: var(--title-sticky-note);*/
  padding: 0.3em 0.5em;
  width: fit-content;
  font-size: 0.7em;
  position: fixed;
  bottom:0;
  right: 0;
  z-index: 52;
}

/*POSITIONING*/
.container {
  width: 800px;
  max-width: 100%;
  margin: auto;
}

.headersection {
  margin: 1.5em auto 0;
  display: flex;
  gap: 1.5em;
  justify-content: center;
  align-items: center;
}
  
/*MOBILE BEHAVIOR*/
@media screen and (max-width: 800px){

  .desk-decor {
    display:none;
  }
  
  .headersection {
    flex-direction: column;
  }

}

@media screen and (max-width: 400px){
  
  .box {
    padding: 1px 1em 1px 1em;
  }
  
  .byline {
    text-align: center;
  }
}