/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Lined paper background */
body {
  font-family: 'Courier Prime', monospace;
  background-color: #fdfdfd;

  background-image:
    linear-gradient(
      to right,
      transparent 0,
      transparent 64px,
      rgba(220, 80, 80, 0.8) 64px,
      rgba(220, 80, 80, 0.8) 66px,
      transparent 66px
    ),
    repeating-linear-gradient(
      to bottom,
      #A1A1A1,
      #A1A1A1 1px,
      transparent 1px,
      transparent 32px
    );
    background-color: #edede5; /* gray bg color */
    
    /*
    repeating-linear-gradient(
      to bottom,
      #cfe6ff,
      #cfe6ff 1px,
      transparent 1px,
      transparent 32px
    );
    */
  min-height: 100vh;
}




/* Header */
.site-header {
  padding: 16px;
}

.header-image {
  max-width: 120px;
  height: auto;
}

/* Content layout */
.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Content sections */
.post {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  /*border: 1px solid green;*/
}

.content-section {
  max-width: 700px;
  background: white;
  padding: 24px;
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.content-section h2 {
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.content-section p {
  line-height: 1.6;
  color: #333;
  margin-bottom: 15px;
}

.content-section p:last-child {
  margin-bottom: 0px;
}

/* Images inside sections */
.content-section img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px 0;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .header-image {
    max-width: 90px;
  }

  .content-section {
    padding: 16px;
  }

  .content-section h2 {
    font-size: 1.25rem;
  }
}

.margin-drawing {
  position: absolute;
  width: 180px; /* adjust size */
  pointer-events: none; /* makes it non-clickable */
  opacity: 0.95;
}

.margin-drawing.left {
  left: 0px;
}

.margin-drawing.right {
  right: 0px;
}
@media (max-width: 1000px) {
  .margin-drawing {
    display: none;
  }
}

/* Alternate styles for UX of Life Book 
---------------------------------------------------------
*/
body.white {
    background-color: #ffffff; /* white bg color */
    
    background-image: none;
    /*
    background-image:
    linear-gradient(
      to right,
      transparent 0,
      transparent 64px,
      rgba(220, 80, 80, 0.8) 64px,
      rgba(220, 80, 80, 0.8) 66px,
      transparent 66px
    ),     
    repeating-linear-gradient(
      to bottom,
      #cfe6ff,
      #cfe6ff 1px,
      transparent 1px,
      transparent 32px
    );
    */    
}
body.white h1 {
  margin-bottom: 20px;
}

body.white h2 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

body.white h3 {
  margin-top: 40px;
  margin-bottom: 20px;
}

body.white h4 {
  margin-top: 40px;
  margin-bottom: 20px;
}

body.white p {
  line-height: 1.9;
  color: #333;
  margin-bottom: 20px;
}

body.white ul,
body.white ol {
  line-height: 1.9;
  color: #333;
  margin-bottom: 20px;
  margin-left: 30px;
}

body.white ol {
  margin-left: 40px;
}