/* Essay styles for hifidiy.ca */

* {
    box-sizing: border-box;
    }

HTML {
    margin: 0px;
    padding: 0px;
    }

/* basic display layout */
BODY {
    margin: 0px;
    padding: 0px;
    background-color: white;
    @media screen {
      background-color: #f0f0f0;
      background-image: url("./bgimage.png");
      background-attachment: fixed;
      }
    }

/* main page skeleton, setting Header and Content behaviour */
MAIN {
    display: block;
    width : 98%;
    color: black;
    font: 13pt Arial, sans-serif;
    @media screen {
      min-height: 90vh;
      max-width: 1050px;
      background-color: #F0F0F0;
      margin: 5vh auto 5vh auto;
      padding: 10px 25px 10px 25px;
      border: 1px solid black;
      border-radius: 10px;
      box-shadow: 1px 1px 4px 4px #404040;
      }
    }

/* page headers */
HEADER {
  display: block;
  width: 100%;
  height: fit-content;
  min-height: 55px;
  padding: 5px;
  }

HEADER IMG {
  display: block;
  float: right;
  height: fit-content;
  max-width: 50%;
  margin: 5px;
  }

HEADER H1 {
  margin: 5px 10px 5px 0px;
  text-decoration: underline 4px;;
  text-decoration-color: #A00000;
  }

ARTICLE {
  display: block;
  width: 100%;
  margin: 5px 0px 5px 0px;
  }


FOOTER {
  display: block;
  clear: both;
  width: 100%;
  padding: 3px 10px 3px 10px;
  text-align: left;
  @media screen {
    position: sticky;
    bottom: 0px;
    background-color: #F0F0F0;
    border-top: 1px solid #808080;
    }
  }

FOOTER .date {
  display: inline-block;
  float: right;
  text-align: right;
  }



/* general style tweaks */

A {
  color: #000090;
  text-decoration: underline;
  text-decoration-color: #A00000;
  }

A.plain {
  text-decoration: none;
  }

A:hover {
  color: #A00000;
  text-shadow: 3px 3px 3px #C0C0C0;
  text-decoration: underline 2px;
  }

H3 {
  display:block;
  width: fit-content;
  margin: 10px 0px 0px 0px;
  }

P {
  margin-top: 0px;
  }

BLOCKQUOTE {
  max-width: 80%;
  }

SPAN  {
  display: inline-block;
  }


/* better bullet lists */
UL, OL, DL {
  margin-top: 0px;
  padding: 0px;
  }

LI, DD {
  margin-left: 40px;
  padding-left: 20px:
  }

DT {
  margin-left:25px;
  }


/* comment boxes */
.note {
  display: block;
  clear: both;
  margin: 10px auto 10px auto;
  padding: 4px;
  font-size: 8pt;
  background-color: #FFFFF0;
  width: fit-content;
  height: auto;
  max-width: 50%;
  border: 1px solid black;
  box-shadow: 1px 1px 3px 2px #B0B0B0;
  }

.whitebox {
  display: block;
  clear: both;
  margin: 5px auto 15px auto;
  padding: 6px;
  background-color: white;
  width: fit-content;
  height: auto;
  max-width: 75%;
  border: 1px solid black;
  box-shadow: 1px 1px 4px 4px #B0B0B0;
  }


/* Image trickery */
IMG {               /* default right side */
  display: block;
  width: fit-content;
  height: auto;
  float: right;
  clear: right;
  margin: 0px 0px 5px 10px;
  max-width: 40%;
  }

IMG.multi {       /* side by side */
  display: inline-block;
  float: none;
  max-width: 30%;
  }

IMG.center {    /* large centered images */
  float: none;
  max-width: 90%;
  margin: 5px auto 15px auto;
  }

IMG.photo {      /* dress up photos */
  border: 1px solid black;
  border-radius: 10px;
  box-shadow: 1px 1px 4px 4px #B0B0B0;
  }

IMG.shadow {  /* add ghost shadows */
  box-shadow: 1px 1px 4px 4px #B0B0B0;
  }

/* clickable thumbnails with captions */
FIGURE {
  display: block;
  width: fit-content;
  height: auto;
  float: right;
  clear: right;
  background: white;
  max-width:40%;
  margin: 3px 0px 10px 10px;
  padding: 2px;
  border: 1px solid black;
  border-radius: 10px;
  box-shadow: 1px 1px 4px 4px #B0B0B0;
  }

FIGURE.multi {
  display: inline-block;
  float: none;
  max-width: 30%;
  }

FIGURE.center {
  display: block;
  clear: both;
  float: none;
  width: fit-content;
  max-width: 40%;
  margin: 5px auto 15px auto;
}

FIGCAPTION {
  Width: 100%;
  text-align: center;
  font-size: 10pt;
  padding 2px;
  margin 0px;
  }

 FIGURE IMG {
  display: block;
  margin: 0px;
  padding: 0px;
  max-width: 100%;
  border-radius: 10px 10px 0px 0px;
  }

FIGURE A {
  text-decoration: none;
  }

/* buttons for test tones */
BUTTON {
  display: inline-block;
  width: fit-content;
  min-width: 70px;
  height: fit-content;
  vertical-align: middle;
  background-color: #006090;
  color: white;
  margin: 0px 0px 10px 0px;
  padding: 3px;
  border: 1px solid #a0a0a0;
  border-radius: 4px;
  box-shadow: 2px 2px 3px #c0c0c0;
  }

BUTTON:hover {
  cursor: pointer;
  background-color: #A00000;
  border: 1px solid #808080;
  box-shadow: 3px 3px 5px #a0a0a0;
  }




