body {
  background-color: #A9EEE6;
  padding: 20px;
}

main img {
	max-width:90%;
	
}

/* grid layout CSS */

.sidebar {
    grid-area: sidebar;
  }

  .content {
    grid-area: content;
	
  }

  .header {
    grid-area: header;
  }


  .wrapper {
	   background-image: url("../images/tabletop.jpg");
	  background-repeat: no-repeat;
	  background-attachment: fixed;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: 120px;  100%;  120px;
    grid-template-areas:
               "....... header  header"
               "sidebar content content";
    color: #444;
  }
.box {
  padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
	font-size:25px;
}


/* sticky note CSS https://codepen.io/edbond88/pen/DOMYgy */

.notewrapper {
	margin: 60px auto 0 auto; 
}

/* Note styles */
.note-wrap {
	width: 100px;
	min-height: 125px;
	padding: 35px; 
	margin: 0 11px 22px 11px;
	position: relative;
	font-size: 14px;
	vertical-align: top;
  display: inline-block;
	font-family: Englebert, Arial;
	color:#4b453c;
	background: #F7E999;
	line-height: 20px; 
	text-align: center;
	box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
	&:before  {
		display: block;
		content: ""; 
		background: rgba(227, 200, 114, 0.40);
		width: 100px;
		height: 28px;
	  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
	  border-radius: 6px/18px 0;
		position: absolute;
		top: -13px;
		left: 50px;
		-webkit-transform: rotate(-2deg);
		-moz-transform: rotate(-2deg);
		-o-transform: rotate(-2deg);
		-ms-transform: rotate(-2deg);
		transform: rotate(-2deg);
	}

	}
}

.note-yellow {
	background: #F7E999;
	-webkit-transform: rotate(2deg);
	-moz-transform: rotate(2deg);
	-o-transform: rotate(2deg);
	-ms-transform: rotate(2deg);
	transform: rotate(2deg);
}
.note-blue {
	background: #b9dcf4;
	-webkit-transform: rotate(-2deg);
	-moz-transform: rotate(-2deg);
	-o-transform: rotate(-2deg);
	-ms-transform: rotate(-2deg);
	transform: rotate(-2deg);
}
.note-pink {
	background: #FFBDA3;
	-webkit-transform: rotate(1deg);
	-moz-transform: rotate(1deg);
	-o-transform: rotate(1deg);
	-ms-transform: rotate(1deg);
	transform: rotate(1deg);
}
.note-green {
	background: #CAF4B9;
	-webkit-transform: rotate(-1deg);
	-moz-transform: rotate(-1deg);
	-o-transform: rotate(-1deg);
	-ms-transform: rotate(-1deg);
	transform: rotate(-1deg);
}

/* main notebook CSS from https://codepen.io/sareg0/pen/prENzy - modified by me */

.page {
  display: grid;
  width: 700px;
  border: 2px solid #dedede;
  border-radius: 4px;
  box-shadow: 5px 7px 15px #464545;
  margin: 0 auto;
  background-color: #FEFAEC;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
  color: #b3b3b3;
  padding: 10px;
  
  position:relative;
  /* Two columns: sidebar + body */
  grid-template-columns: 200px 1fr;

  /* Four rows:
     1) Header (album info + sticker)
     2) Aside + body content
     3) Auto-fill row for long content
     4) Footer */
  grid-template-rows: auto auto 1fr auto;
  
  z-index: 100;
}


.ring-hole {
  position: absolute;
  background-size: 20px 20px;
  background-position: 0 0, 25px 25px;
  background-image: radial-gradient(ellipse at 10px 11px, black 45%, transparent 11%);
  height: 20px;
  width: 700px;
}

.ring-binder {
  position: absolute;
  background-size: 20px 20px;
  background-position: 10px 0, 25px 25px;
  background-image: linear-gradient(105deg, black 5px, transparent 5px);
  height: 20px;
  width: 700px;
  margin-top: -9px;
}

.noteheader {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  padding-left:50px;
  padding-top:10px;
  padding-bottom:30px;
}

.value {
	text-decoration:underline;
	padding-left:10px;
	padding-right:10px;
	margin:0;
}

.subtitle, .value {
	font-family: 'Cedarville Cursive', cursive;
  line-height: 48px;
  font-size: 24px;
}

.aside {
  grid-column: 1;
  grid-row: 2 / span 2; /* covers both content rows */
  padding: 5px 10px;
  border-right: 2px solid #dedede;
  border-top: 2px solid #dedede;
}

.body {
  grid-column: 2;
  grid-row: 2 / span 2;
  background-image: 
    linear-gradient(#dedede 2px, transparent 2px);
  background-size: 95% 24px;
  padding: 5px 10px;
  background-color: transparent;
  line-height: 34px;
  font-size: 20px;
  color: black;
}

.bodyfield {
	color: #b3b3b3;
	margin-top:-35px;
}

/* sticker CSS https://codepen.io/erlgrey/pen/GgJXYWd */
.sticker {
	width:200px;
	height:200px;
	 filter: drop-shadow(4px 0px 0 #FFFFFF)
          drop-shadow(-4px 0px 0 #FFFFFF)
          drop-shadow(0px 4px 0 #FFFFFF)
          drop-shadow(0px -4px 0 #FFFFFF)
          drop-shadow(0px 0px 2px black);
	  padding-left:420px;
	  margin-top:-100px;
}

.journalpic img {
	max-width:90%;
	margin:0 auto;
}

.footer {
   grid-column: 1 / -1;
  grid-row: 4;
  padding: 5px 10px;
  border-top: 2px solid #dedede;
}

.notes p, li {
	position: relative;
	padding: 1px;
}

.aside, .footer li {
	list-style-type:'⭐';
}
/*
.notes > li {
  list-style-type: none;
  overflow: hidden;
  position: relative;
}

.notes > li::after {
  width: 0;
  animation-name: reveal-note;
  animation-duration: 5s;
  animation-timing-function: ease-in;
  animation-iteration-count: once;
  animation-fill-mode: forwards;
  position: absolute;
  content: attr(data-letter);
  overflow:hidden;
  white-space: nowrap;
  color: black;
  left: 0;
}

.notes > li.note-2::after {
  animation-delay: 7s;
}


@keyframes reveal-note {
  from { width: 0;}
  to {width: 100%;}
}
*/


/* from Zonelets template originally */

/*
hr {
  border: solid #c7b591;
  border-width: 2px 0 0 0;
}
*/


.right {
  float: right;
  margin-left: 1em;
}
.left {
  float: left;
  margin-right: 1em;
}
.center {
  display: block;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}


.caption {
  margin-top: 0;
  font-size: 0.9em;
  font-style: italic;
}

a:hover { 
  background-color: #fff6e6;
}


/*#CONTAINER is the rectangle that contains everything but the background!
#container {
  margin: 3em auto;
  width: 90%;
	max-width: 700px;
	background-color: #f1e3c9;
  color: #151515; 
  outline-color: #a9a9a9;
  outline-style: ridge;
  outline-width: 4px;
  outline-offset: 0;
}

#content {
  padding: 10px 5% 20px 5%;
}
*/


/*HEADER STYLE
#header {
  background-color: #384879;
  padding: 0 5%;
  border-color: #a9a9a9;
  border-style: ridge;
  border-width: 0 0 4px 0;
}
#header ul {
  list-style-type: none;
  padding: 0.5em 0;
  margin: 0;
}
#header li {
  font-size: 1.2em;
  display: inline-block;
  margin-right: 1.5em;
  margin-bottom: 0.2em;
  margin-top: 0.2em;
}
#header li a {
  color: white;
  text-decoration: none;
  background-color: inherit;
}
#header li a:hover {
  text-decoration: underline;
}
*/

/*POST LIST STYLE
#postlistdiv ul {
  font-size: 1.2em;
  padding: 0;
  list-style-type: none;
}
#recentpostlistdiv ul {
  font-size: 1.2em;
  padding: 0;
  list-style-type: none;
}
.moreposts {
  font-size: 0.8em;
  margin-top: 0.2em;
}

/*NEXT AND PREVIOUS LINKS STYLE
#nextprev {
  text-align: center;
  margin-top: 1.4em;
}

/*DISQUS STYLE
#disqus_thread {
  margin-top: 1.6em;
}

/*FOOTER STYLE
#footer {
  font-size: 0.8em;
  padding: 0 5% 10px 5%;
}


*/


@media only screen and (max-width: 970px) {

#paper {
  width: 100%;
}
  
    .wrapper {
    display: grid;
grid-row:1;
grid-column:1;
grid-template-columns: 100%;  120px;  120px;
grid-template-areas:
               "sidebar"
               "content";
  }
}


@media only screen and (max-width: 900px) {

#paper {
  width: 100%;
}

.page {
  width: 90%;
}

.ring-hole {
  width: 100%;
}

.ring-binder {
  width: 100%;
}
  
    .wrapper {
    display: grid;
grid-row:1;
grid-column:1;
grid-template-columns: 100%;  120px;  120px;
grid-template-areas:
               "sidebar"
               "content";
  }
  

}


@media only screen and (max-width: 840px) {
	  .sticker {
	width:100px;
	height:100px;
	  padding-left:300px;
	  margin-top:-80px;
}
}

@media only screen and (max-width: 700px) {
  .page {
    width: 100%;
    grid-template-columns: 1fr;     /* one column */
    grid-template-rows: auto auto auto auto; /* header → aside → body → footer */
    padding: 10px;
  }

  .noteheader {
    grid-column: 1;
    grid-row: 1;
    padding-left: 10px;
    padding-top: 10px;
  }

  .aside {
    grid-column: 1;
    grid-row: 2;
    border-right: none;
    border-top: 2px solid #dedede;
    padding: 10px;
	padding-bottom:30px;
  }

  .body {
    grid-column: 1;
    grid-row: 3;
    background-size: 100% 24px;
    padding: 10px;
  }
  
  .bodyfield {
	 margin-top:-45px;
  }

  .footer {
    grid-column: 1;
    grid-row: 4;
    padding: 10px;
  }

  /* Optional: keep sticker inside page width */
  .sticker {
    width: 140px;
    height: auto;
    padding-left: 0;
    margin: 10px auto;
    display: block;
  }
}
