BODY {
  background-color: #669966;
  background-image: url(felt.png);
  /* background: -webkit-canvas(hilbert); */
  margin: 0px;
  font-family: "Verdana",sans-serif;
  padding: 0px;
}

div.scrapbook {
  display: inline-block;
  margin: 16px;
  position: relative;
  width: 330px;
  height: 330px;
}
div.scrapbook img {
  position: absolute;
}
div.scrapbook img:nth-child(3n+3) {
  left: 0%;
  bottom: 1%;
}
div.scrapbook img:nth-child(3n+1) {
  right: 5%;
  top: 5%;
}
div.scrapbook img:nth-child(3n+2) {
  right: 2%;
  top: 50%;
}

H1 {
  display: inline-block;
  margin: 8px 1em 0 32px;
  background: hsl(0,0%,90%);
  padding: 4px 2em;
  border-none;
  border-width: 16px;
  background-clip: padding-box;
  -webkit-border-image: -webkit-canvas(papershadow) 16 16 16 16 stretch stretch;
  -webkit-transform: rotate(-1.2deg);
}
sidebar {
  margin: 0 0 0 1em;
  float: right;
  max-width: 50%;
  background: hsla(0,0%,100%,0.66);
  padding: 8px 24px;
  -webkit-border-bottom-left-radius: 16px;
}
section.stuff {
  clear: both;
  padding: 16px;
}

a, a:visited {
  color: inherit;
}
DIV.notes {
  white-space: nowrap;
}

DIV.note {
  white-space: normal;
  vertical-align: top;
  margin: 16px 0 16px 16px;
  display: inline-block;
  min-height: 330px;
  width: 330px;
  background: #FCE9A3;
  background-image: url(postit.jpg);
  border-none;
  border-width: 16px;
  background-clip: padding-box;
  -webkit-border-image: -webkit-canvas(papershadow) 16 16 16 16 stretch stretch;
  padding: 0;
  /* none of the following works on Safari 5, sigh... */
  break-inside: avoid-column;
  -webkit-column-break-inside: avoid;
  column-break-inside: avoid;
  page-break-inside:avoid;
}
DIV.note H2 {
  background: hsla(30,100%,50%,0.10);
  border-bottom: 1px solid hsla(30,100%,50%,0.15);
  text-align: right;
  margin: 0;
  padding: 4px 16px 0 16px;

  font-family: "Architects Daughter",sans-serif;
  font-weight: normal;
  font-size: 36px;
}

DIV.note:nth-child(3n+1) {
  -webkit-transform: rotate(-0.6deg);
}
DIV.note:nth-child(3n+2) {
  -webkit-transform: rotate(0.8deg);
}
DIV.note:nth-child(3n+3) {
  -webkit-transform: rotate(0.3deg);
}

DIV.note UL {
 -webkit-column-break-inside: avoid;
 -webkit-padding-start: 0px;
  margin: 0 16px;
}
DIV.note UL LI {
  margin-top: 6px;
  margin-bottom: 6px;
  list-style-type: none;
}

div.note a {
  margin: 0px -6px;
  padding: 0px 6px;
  -webkit-border-radius: 4px;
  text-decoration: none;
  background: hsla(220,100%,70%,0.45);
}
div.note li a:nth-child(2n+2) {
  background: hsla(30,100%,70%,0.35) !important;
}
div.note li:nth-child(5n+2) a {
  background: hsla(0,100%,70%,0.35);
}
div.note li:nth-child(5n+3) a {
  background: hsla(60,100%,70%,0.35);
}
div.note li:nth-child(5n+4) a {
  background: hsla(120,100%,70%,0.35);
}

div.greenbar-shadow {
  margin: 1em 0;
  border-none;
  border-width: 16px;
  background-clip: padding-box;
  -webkit-border-image: -webkit-canvas(widepapershadow) 16 16 16 16 stretch stretch;
}

div.greenbar {
  border-width: 0 36px 0 36px;
  -webkit-border-image: url(tractorpaper.png) 0 36 0 36 repeat repeat;
  -webkit-box-shadow: 2px 2px 4px 0px hsla(0,0%,0%,0.35),
                      0px 0px 3px 0px hsla(0,0%,100%,0.35);
  background: #ddd;  /* tractor holes look bad on dark */
  padding-bottom: 1em;
}    
div.greenbar h2 {
  margin: 0 16px 8px 44px;
  font-family: "VT323",monospace;
  font-weight: normal;
  font-size: 36px;
}

div.greenbar ol {
  -webkit-border-radius: 2px;
  margin: 0;
}
div.greenbar ol li {
  color: hsla(126,70%,35%,0.29);
  margin: 0 2px 0 0;
  padding: 0 10px;
  /* white-space: pre-wrap;   */
}

div.greenbar ol li span {
  color: #000;
  color: hsla(0,0%,0%,0.8);
}

div.greenbar ol a {
  padding: 0px 6px;
  -webkit-border-radius: 4px;
  text-decoration: none;
}


div.greenbar ol li:nth-child(6n+1), 
div.greenbar ol li:nth-child(6n+2), 
div.greenbar ol li:nth-child(6n+3) {
  background: hsla(126,70%,50%,0.14);
  padding: 0 10px+2px;           /* covers for the border on the other elements */
}

div.greenbar ol li:nth-child(6n+1) a {
  background: hsla(60,85%,55%,0.50);
}
div.greenbar ol li:nth-child(6n+2) a {
  background: hsla(60,90%,50%,0.50);
}
div.greenbar ol li:nth-child(6n+3) a {
  background: hsla(55,95%,60%,0.50);
}

div.greenbar ol li:nth-child(6n+4), 
div.greenbar ol li:nth-child(6n+5), 
div.greenbar ol li:nth-child(6n+6) {
  border-left: 2px solid hsla(126,70%,50%,0.14);
  border-right: 2px solid hsla(126,70%,50%,0.14);
}
div.greenbar ol li:nth-child(6n+4) a {
  background: hsla(65,85%,55%,0.50);
}
div.greenbar ol li:nth-child(6n+5) a { 
  background: hsla(65,100%,50%,0.50);
}
div.greenbar ol li:nth-child(6n+6) a {
  background: hsla(60,100%,55%,0.50);
}

/*
** The sexy shadows and rotation really bogs down my iPhone.
*/
@media screen and (max-device-width: 1024px) {
  body {
    background-image: none;
  }

  div.note,
  div.greenbar-shadow,
  h1 {
    -webkit-transform: none !important;
    -webkit-border-image: none !important;
    -webkit-box-shadow: 3px 3px 5px 0px hsla( 0,0%,0%,0.33) !important;
    box-shadow: 3px 3px 5px 0px hsla( 0,0%,0%,0.33) !important;
  }
}
