/* -------------------------------------------------------- */
/* VARIABLES */
/* -------------------------------------------------------- */

/* Variables are used like this: var(--text-color) */
:root {
    /* Background Colors: */
    --background-color: #4C2719;
    --content-background-color: #FFF7EB;
    --sidebar-background-color: #FFF7EB;
  
  
    /* Text Colors: */
    --text-color: #2E170F;
    --sidebar-text-color: #2E170F;
    --link-color: #A4AF69;
    --link-color-hover: #D35269;
  
    /* Text: */
    --font: Lucida Console, monospace;
    --heading-font: Verdana, monospace;
    --font-size: 12px;
  
    /* Other Settings: */
    --margin: 35px;
    --padding: 24px;
    --border: 0px solid #ffffff;
    --round-borders: 0px;
    --sidebar-width: 300px;
    
    /* colors */
    --cerise: #cd3c57;
    --olivine: rgb(164, 175, 105);
  }

/* -------------------------------------------------------- */
/* structure */
/* -------------------------------------------------------- */

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-size: var(--font-size);
    letter-spacing: 1px;
    margin: 0;
    padding: var(--margin);
    color: var(--text-color);
    font-family: var(--font);
    line-height: 1.2;
    background: var(--background-color);
    background-image: url("/scrapbook/quiltbg5.png");
    background-repeat: repeat;
    /* background-size: 100%; */
    
  }

  .container {
    display: grid;
    grid-gap: 10px;
    grid-template:
      "header"
      "main"
      "footer"
      / 1000px;
  }

  .bookheader {
    grid-area: header;
    margin: auto;
    color: var(--content-background-color);
  }
  .footer {
    margin: auto;
  }
  .footer a {
    color: var(--content-background-color);
    background-color: black;
  }
  .bookcaption {
    display: block;
    position: absolute;
  }
/* -------------------------------------------------------- */
/* links & other */
/* -------------------------------------------------------- */
a {
    text-decoration: underline;
}

a,
a:visited {
color: var(--link-color);
}

a:hover,
a:focus {
color: var(--link-color-hover);
text-decoration: none;
}

::selection {
/* (Text highlighted by the user) */
color: var(--content-background-color);
background: rgba(205, 60, 87, 1);
}

html {
cursor: url('cursors/default.png'), auto;
}


/* -------------------------------------------------------- */
/* CSS BOOK */
/* -------------------------------------------------------- */
.book {
    border: 15px solid black;
    background-color: white;
    background-image: url("/food/formatting/cardboard.png");
    border-radius: 25px;
    padding: 0 4px;
    width: 1000px; /* adjust size */
    max-width: 100%;
    aspect-ratio: 3 / 2;
    display: flex;
  }
  .pageL,	.pageR {
    height: calc(100% - 30px);
    width: 50%;
    display: inline-block;
    position: relative;
    border-radius: 25px;
  }
  .pageL {
    border-left: 1px grey solid;
  }
  .pageR { 
    border-right: 1px grey solid;
  }
  .seam {
    width: 10px;
    background:
      linear-gradient(to right,
      white, grey, white);
  }
  
  /* -------------------------------------------------------- */
  /* SCRAPBOOK ITEMS */
  /* -------------------------------------------------------- */
  .scrapbook {
    max-width: 600px;
    max-height: 600px;
    position: absolute;
  }

  .bookcaption {
    display: block;
    position: absolute;
  }

    
  /* -------------------------------------------------------- */
  /* PHOTO PILE */
  /* -------------------------------------------------------- */

  .figure { 
    position: absolute;
    background: white;
    box-shadow: 0 0 0.4rem rgb(0,0,0,0.75);
  }
.figure img {
    max-width: calc(100% - 2rem);
    margin: 1rem 1rem 0 1rem;
    border: 2px rgb(0,0,0,0.55) inset;
  }
.figure figcaption {
    text-align: center;
    margin: 0.5rem 1rem 1rem 1rem;
    font-size: 10px;
    color: black;
  }