/* Basic page style resets */
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}

@font-face {
  font-family: "Basteleur";
  src: url("fonts/Basteleur-Bold.woff");
}


body, html {
  min-height: 100%;
  height: 100%; 
  color: #3a112c;
  margin: 0;
/*  background-color: #b8d59d;*/
  scroll-behavior: smooth;
  cursor: url('img/2-22-cardinal_cursor-small-1.png') -10 40, auto;
}

body {
  scroll-behavior: smooth;
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: stretch;
  font-family: monospace;
  font-size: 16px;
  overflow: hidden;
  scrollbar-color: #3a112c transparent;
}





/* Navigation ------------------------------------------------------------------------------------------------------------*/

#mainNav, #vizNav, #berryNav {
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 15px 50px;
  border: 1px solid;
  position: fixed;
  
/*background-image: linear-gradient(90deg, #fccdcd 10%, #fff 600px);*/

  span {
    display: inline-block;
  }

  span a, span a:visited {
    color: #3a112c;
  }

  > span a:not(:first-child) {
    margin-left: 25px;
  }


  #homeNav {
    margin-right: 50px;
   
    & a:first-child {
      font-family: "Basteleur", serif;
      font-weight: 700;
      font-style: bold;
    }

  }
}


@media (width < 900px) {
  #mainNav > span:not(:first-child) {
    display: none;
  }
}

#vizNav {
  justify-content: space-between;
  background-color: #b8d59d;
}

#mainNav {
    background-image: linear-gradient(90deg, #fccdcd 10%, #b8d59d 600px);
}

#berryNav {
      background-image: linear-gradient(90deg, #fccdcd 10%, #fff 600px);
}


/* Main ------------------------------------------------------------------------------------------------------------*/

#berryMain {
    background-image: linear-gradient(90deg, #fccdcd 10%, #fff 100%);

    > section > header {
      background-image: linear-gradient(90deg, #fccdcd 5%, #fff 100%);
    }
}

main {
  scroll-behavior: smooth;
  height: 100vh;
  overflow-y: scroll;
  min-width: 600px;
  background-image: linear-gradient(90deg, #fccdcd 10%, #b8d59d 100%);
/*  background-image: linear-gradient(90deg, #fccdcd 10%, #fff 100%);*/

  > section > *:first-child {
    margin-top: 0;
  }

  > section, > header {
    padding-top: 50px;
  }

  > section, > header,  > footer {
    width: 100%;
    max-width: 600px;
    padding: 50px 25px 75px 50px;
  }

  > section, > footer {
    min-height: 100%;
  }

  > section > header {
    padding: 25px 0;
    position: sticky;
    top: 25px;
    background-image: linear-gradient(90deg, #fccdcd 5%, #b8d59d 100%);
/*      background-image: linear-gradient(90deg, #fccdcd 5%, #fff 100%);*/

    nav a {
      margin-right: 25px;
    }
  }

  > section > header nav {
    padding: 25px 0 0 0;

  }

  footer {
    width: 100%; 
  }

  /* Images ------------------------------------------------------------------------------------------------------------*/

  img {
    max-width: 100%;  
  }

  figure {
    margin: 0; 
    
    figcaption {
      margin: 16px 0; 
      font-size: 14px;
      font-style: italic;
      line-height: 21px;
    }
  }

  #logo-grid {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;

    img {
      width: 150px;
      height: auto;
      margin: 0 25px 25px 0;
    }
  }
}



/* Type ------------------------------------------------------------------------------------------------------------*/

/* Links -------------------------------------------------*/

a {
  text-decoration: #8b10503d underline wavy;
  text-decoration-thickness: 0.5px;
}

a text {
  text-decoration: underline;
}

a, a:visited {
  color: #8b1050;
  font-weight: bold;
}


/* Headings -------------------------------------------------*/

h1, h2, h3 {
  font-weight: normal;
  line-height: 2rem;
}

h1 {
  font-size: 3rem;
  line-height: 3rem;
}

h2 {
  font-size: 2.1rem;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.7rem;
}
    
h1, h2, h3, h4 {
  font-family: "Basteleur", serif;
  font-weight: 600;
  font-style: normal;
  margin-bottom: 0px;
}

h4 {
  font-weight: 800;
}

/* Emphasis -------------------------------------------------*/

.highlighted {
  color: #8b1050;
}

em {
  font-weight: 600;
}

/* Body text -------------------------------------------------*/

ul, ol {
  padding-left: 40px;
}

ul {
/*  list-style-type: "→";*/
    list-style-type: "●---";

}

li::marker {
  color: #8b1050;
}

ul li, ol li {
  padding: 5px 15px;
  line-height: 1.5em;
}

p {
  line-height: 1.5em;
}


/* Table -------------------------------------------------*/

table {
  text-align: left;

  th, td  {
    padding-bottom: 15px;
  }

  td {
    padding-right: 45px;
  }

  th {
    padding-right: 15px;
    vertical-align: top;
  }
}





/* Sidebar ------------------------------------------------------------------------------------------------------------*/

#sidebar {
  width: 100%;
  min-height:   100%;
  flex-direction: column;
  overflow-y: scroll;
} 


#canvas-container {
  width: 100%;
  height: 100%;
  margin-top: 49.5px;

  canvas {
    margin-top: -90px;
  }
}

#berry-container {
  cursor: url('img/berry-cursor.png') 0 0, auto;
  background-image: url('img/2.7.25-large-berry-2.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  max-height: 600px;
  max-width:  600px;
  height: 100%;
  width:  100%;
  
  text-align: center;
  text-anchor: middle;
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%);
  display: flex;
  align-content: center;
  justify-content: center;

  text {
    font-size: 25px;
  }

  path {
    stroke: transparent; 
    fill: transparent; 
  }

  text, #berry-close, #gift-data-container {
    text-anchor: middle;
    fill: #E2C5DA;
    color: #E2C5DA;
    stroke-width: 0.25;
    stroke-miterlimit: 10;
    font-family: monospace;
  }

  #gift-data-container {
    position: absolute;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    #description {
      display: inline-block;
      font-size: 12px;
      line-height: 18px;
      max-height: 150px; 
      overflow-y: scroll;
      max-width:  500px;
    }
  }

  #berry-close {
    display: flex; 
    justify-content: center; 
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    opacity: 1; 
    position: absolute;
    width: 80px;
    height: 80px;
    right: 0;
    bottom: 0;
    background-image: url('img/2.7.25-large-berry-2.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }


  #bird-open {
    opacity: 1;
    position: absolute;
    width: 900px;
    height: 900px;
    right: -737px;
    bottom: -404px;
    background-image: url('img/2-22-cardinal_large-3.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transform: rotate(25deg);
    z-index: -1;
  }

  .italic {
    font-style: italic;
    opacity: .8;
  }
}



