/* -------------------------
   GENERAL
------------------------- */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 30px 20px;

  background: #000;
  color: #d8d8d8;

  font-family: "Courier New", monospace;
  font-size: 15px;
  line-height: 1.5;
}

.page {
  max-width: 850px;
  margin: 0 auto;
}

a {
  color: #ff5555;
}

a:hover {
  color: #fff;
}


/* -------------------------
   NAVIGATION
------------------------- */

.nav {
  margin: 10px 0 35px;

  font-size: 14px;
  line-height: 1.8;
}

.nav a {
  margin: 0 4px;
}

.nav a:first-child {
  margin-left: 0;
}


/* -------------------------
   HEADINGS
------------------------- */

h1 {
  margin-bottom: 5px;

  color: #ff4444;

  font-size: 32px;
  letter-spacing: 1px;
}

h2 {
  margin-top: 35px;
  padding-bottom: 5px;

  color: #ff5555;

  border-bottom: 1px dashed #555;

  font-size: 21px;
}

h3 {
  color: #ff5555;
}


/* -------------------------
   LISTS
------------------------- */

ul {
  padding-left: 25px;
}

li {
  margin: 4px 0;
}


/* -------------------------
   IMAGES
------------------------- */

.main-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 25px 0;
}


/* -------------------------
   DIARY
------------------------- */

.diary {
  position: relative;

  margin-top: 35px;
  padding: 35px 45px;

  color: #222;
  background-color: #d8d1b5;

  border: 7px solid #333;

  box-shadow:
    0 0 0 2px #111,
    8px 8px 0 #111;

  /* Notebook paper */
  background-image:
    linear-gradient(
      transparent 27px,
      rgba(70, 70, 100, 0.20) 28px
    );

  background-size: 100% 28px;
}


/* Red notebook margin */

.diary::before {
  content: "";

  position: absolute;
  top: 0;
  bottom: 0;
  left: 65px;

  width: 1px;

  background: rgba(170, 50, 50, 0.35);
}


/* -------------------------
   DIARY HEADER
------------------------- */

.diary-header {
  margin-bottom: 25px;
  padding-bottom: 12px;

  text-align: center;

  border-bottom: 2px solid #333;
}

.diary-header h2 {
  margin: 0;
  padding: 0;

  color: #222;

  border: 0;

  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: normal;
}

.diary-header p {
  margin: 4px 0 0;

  color: #666;

  font-size: 12px;
}

.heart {
  color: #a33;
}


/* -------------------------
   DIARY ENTRIES
------------------------- */

.entry {
  position: relative;

  margin-left: 45px;
  padding: 10px 0 25px 25px;

  font-family:
    "Comic Sans MS",
    "Comic Sans",
    cursive;

  line-height: 28px;

  border-bottom: 1px dashed #777;
}

.entry:last-child {
  border-bottom: none;
}

.entry p {
  margin: 0 0 12px;
}


/* Date */

.date {
  margin-bottom: 5px;

  color: #777;

  text-align: right;

  font-family: "Courier New", monospace;
  font-size: 12px;
}


/* Entry title */

.entry-title {
  margin-bottom: 8px;

  font-size: 20px;

  text-decoration: underline;
}


/* Handwritten aside */

.scribble {
  display: inline-block;

  color: #555;

  font-family:
    "Comic Sans MS",
    cursive;

  transform: rotate(-3deg);
}


/* -------------------------
   GUESTBOOK
------------------------- */

.sign-page {
  margin-top: 35px;
  padding: 30px 40px;

  color: #222;
  background: #e2dcc5;

  border: 4px solid #444;

  box-shadow: 5px 5px 0 #111;
}

.sign-page h3 {
  margin-top: 0;

  color: #222;

  font-family: Georgia, serif;
  font-size: 24px;
}

.sign-page p {
  font-family:
    "Comic Sans MS",
    cursive;

  line-height: 25px;
}

input,
textarea {
  width: 90%;

  padding: 8px;
  margin: 5px 0 12px;

  background: #eee;
  color: #111;

  border: 1px solid #777;

  font-family: "Courier New", monospace;
}

textarea {
  resize: vertical;
}

button {
  padding: 7px 18px;

  background: #222;
  color: #ddd;

  border: 2px outset #777;

  font-family: "Courier New", monospace;

  cursor: pointer;
}

button:hover {
  background: #555;
}


/* -------------------------
   FOOTER
------------------------- */

.footer {
  margin-top: 40px;

  color: #555;

  text-align: center;

  font-size: 12px;
}


/* -------------------------
   SMALL SCREENS
------------------------- */

@media (max-width: 600px) {

  body {
    padding: 20px 10px;
  }

  .nav {
    line-height: 2;
  }

  .diary {
    padding: 25px 20px;
  }

  .diary::before {
    left: 35px;
  }

  .entry {
    margin-left: 20px;
    padding-left: 20px;
  }

  .date {
    text-align: left;
  }

  .sign-page {
    padding: 25px 20px;
  }

  input,
  textarea {
    width: 100%;
  }
}