* {
  box-sizing: border-box;
}

@media (max-width: 800px){
  .box-1 {flex-direction: column;
          padding: 0.75rem;
          min-height: auto;}
  .red-line {left: 1rem;}
  h1 {font-size: 2.2rem;}
}

html,body {
  height: 100%;
  margin: 0;
  overflow-x: auto;
}

body {
  font-family: "Pixelify Sans", serif;
  background-color: #eecef1;
  overflow: auto;
}

/* CURSOR */

html {
  cursor: url("https://gifcity.carrd.co/assets/images/gallery251/3382c4a4.png?v=47652796"), auto;
}

a {
	text-decoration-style: wavy;
	color: white;
	cursor: url("https://gifcity.carrd.co/assets/images/gallery294/2dd834c6.gif?v=47652796"), auto;
}

a:hover {
  color: #629E95;
}

/* TEXT */

h1 {
  display: inline-block;
  max-width: 100%;
  width: auto;
  margin: 1rem 0 0 2rem;
  padding: 0 0.5rem;
  color: white;
  text-shadow: 
    -3px -3px 0 #000,  
     3px -3px 0 #000,
    -3px  3px 0 #000,
     3px  3px 0 #000;
  font-size: 5.5em;
  z-index: 1;
  box-sizing: border-box;
  transform: translateY(-2.5rem);
}

h2 {
  font-family: "Nothing You Could Do", cursive;
  color: red;
  font-size: 3em;
  transform: rotate(-20deg);
  align-self: flex-start;
  margin-top: 0.5rem;
  position: relative;
  top: -150px;
  left: 20px;
}

p:not([class]) {
  padding-left: 42px;
}

/* MAIN BOX */

.box-1 {
  width: 90%;
  max-width: 1000px;
  margin: 20px auto;
  height: 600px;
  display: flex;
  gap: 0;
  padding: 0;
  border: 7px ridge black;
  border-radius: 2%;
  background: #FEFEFE;
  position: relative;
  top: 75px;
  overflow: visible;
  box-sizing: border-box;
}

.box-1 h1 {
  margin: 0;
  position: absolute;
  top: -3rem;
  right: 3rem;
  z-index: 2;
}

/* INNER COVER */

.inner-cover, .paper {
  flex: 1 1 500px;
  width: auto;
  min-width: 0;
  height: 600px;
  background: transparent;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  box-sizing: border-box;
}

.inner-cover {
  padding: 1rem;
  display: flex;
  flex: 0 0 50%;
  width: 50%;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 5rem;
}

.belongs-to {
  font-size: 1.3em;
  border-bottom: 2px solid black;
  padding: 4rem 2rem 3rem 2rem;
  text-align: center;
  width: 80%;
  margin: 0 auto;
}

.name {
  font-family: "Nothing You Could Do", cursive;
  font-size: 2em;
  margin-top: .5rem;
  text-align: center;
  position: relative;
  top: -125px;
}

.mood {
  text-align: center;
  position: relative;
  top: -200px;
}

/* DIARY ENTRIES */

.paper {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  box-sizing: border-box;
  background: white;
  position: relative;
  overflow-y: auto;
  border-radius: 0 2% 2% 0;
}

.paper .lines p {
  margin: 0;
  line-height: 15px;
  font-size: 14px;
}

.red-line {
  position: absolute;
  left: 60px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: red;
}

.top-space {
  height: 60px;
  background: transparent;
}

.lines {
  background:
    repeating-linear-gradient(
    to bottom,
    white 0px,
    white 14px,
    lightblue 15px);
    padding: 1rem 1.5rem;
    height: calc(100% - 60px);
    overflow-y: auto;
    background-attachment: local;
}

.spacer {
  height: 15px;
}

/* SEPARATOR */

.box-4 {
  background:
    linear-gradient(
    to right,
    transparent 0,
    rgba(211, 211, 211, 0.0) 25%,
    rgba(211, 211, 211, 1) 50%,
    rgba(211, 211, 211, 1) 50%,
    rgba(211, 211, 211, 0.0) 100%);
  margin: 0 auto;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 12px;
  height: 100%;
}