/*
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com
Twitter: @rich_clark
*/

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
    margin:0;
    padding:0;
    border:0;
    outline:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
}

body {
    line-height:1;
}

article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
    display:block;
}

nav ul {
    list-style:none;
}

blockquote, q {
    quotes:none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content:'';
    content:none;
}

a {
    margin:0;
    padding:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
}

/* change colours to suit your needs */
ins {
    background-color:#ff9;
    color:#000;
    text-decoration:none;
}

/* change colours to suit your needs */
mark {
    background-color:#ff9;
    color:#000;
    font-style:italic;
    font-weight:bold;
}

del {
    text-decoration: line-through;
}

abbr[title], dfn[title] {
    border-bottom:1px dotted;
    cursor:help;
}

table {
    border-collapse:collapse;
    border-spacing:0;
}

/* change border colour to suit your needs */
hr {
    display:block;
    height:1px;
    border:0;
    border-top:1px solid #cccccc;
    margin:1em 0;
    padding:0;
}

input, select {
    vertical-align:middle;
}


/* MY CODE BELOW */
/* FONTS FOR THE INDEX PAGE HEADER AND NAVIGATION */
@font-face {
  src: url(fonts/LibreBaskerville-Bold.ttf);
  font-family: librebaskervillebold;
}

@font-face {
  src: url(fonts/LibreBaskerville-Italic.ttf);
  font-family: librebaskervilleitalic;
}

@font-face {
  src: url(fonts/LibreBaskerville-Regular.ttf);
  font-family: librebaskervilleregular;
}

@font-face {
  src: url(fonts/SourceSansPro-Black.ttf);
  font-family: sourcesansproblack;
}

@font-face {
  src: url(fonts/SourceSansPro-BlackItalic.ttf);
  font-family: sourcesansproblackitalic;
}

@font-face {
  src: url(fonts/SourceSansPro-Bold.ttf);
  font-family: sourcesansprobold;
}

@font-face {
  src: url(fonts/SourceSansPro-BoldItalic.ttf);
  font-family: sourcesansprobolditalic;
}

@font-face {
  src: url(fonts/SourceSansPro-ExtraLight.ttf);
  font-family: sourcesansproextralight;
}

@font-face {
  src: url(fonts/SourceSansPro-ExtraLightItalic.ttf);
  font-family: sourcesansproextralightitalic;
}

@font-face {
  src: url(fonts/SourceSansPro-Italic.ttf);
  font-family: sourcesansproitalic;
}

@font-face {
  src: url(fonts/SourceSansPro-Light.ttf);
  font-family: sourcesansprolight;
}

@font-face {
  src: url(fonts/SourceSansPro-LightItalic.ttf);
  font-family: sourcesansprolightitalic;
}

@font-face {
  src: url(fonts/SourceSansPro-Regular.ttf);
  font-family: sourcesansproregular;
}

@font-face {
  src: url(fonts/SourceSansPro-SemiBold.ttf);
  font-family: sourcesansprosemibold;
}

@font-face {
  src: url(fonts/SourceSansPro-SemiBoldItalic.ttf);
  font-family: sourcesansprosemibolditalic;
}


/* STYLING THE BODY AND CONTAINER */
body {
	background: #FFFFFF;
	margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
	padding: 0;
	text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
}

#container {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #FFFFFF;
  margin: 0 0 0 0;
  text-align: left; /* this overrides the text-align: center on the body element. */
}


/* DEFINING HEADER, NAVIGATION AND IFRAME FLEXBOXES */
#header {
  display: flex;
  order: 1;
}

#header-title {
  order: 1;
}

#header-author {
  order: 2;
}

#navigation-computer {
  order: 2;
  height: auto;
  width: 100%;
}

#navigation-cellphonetablet {
  order: 2;
  height: 45px;
  width: 100%;
}

#iframe-box {
  order: 3;
  display: flex;
}


/* STYLING THE HEADER */
#header {
  width: 100%;
  background: url(homepageimages/bannerimage-blurrededge.png) center no-repeat;
  height: 150px;
  border-bottom: 1px solid #000000;
  background-color: #BDACFF;
  justify-content: center;
  align-items: center;
}

#header-title {
  z-index: 999;
  font-family: librebaskervilleitalic, serif;
  color: #000000;
  font-weight: 700;
  font-size: 30px;
  padding-bottom: 10px;
  text-align: center;
}

#header-author {
  z-index: 999;
  font-family: librebaskervilleregular, serif;
  color: #000000;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}


/* STYLING THE GENERAL FEATURES OF THE CONTENT */
#content {
  font-family: sourcesansproregular, sans-serif;
  margin: 0;
  padding: 0;
  color: #000000;
}

h2 {
  padding: 0px;
  text-align: center;
}

p {
  padding: 5px;
  text-align: left;
  font-size: 18px;
}

#authorship-statement {
  font-size: 12px;
}


/* STYLING THE NON-TAXON PAGES */
#otherpage-heading {
  font-family: sourcesansprosemibold, sans-serif;
  font-size: 22px;
  padding: 20px;
}

#otherpage-subheading {
  font-family: sourcesansprosemibold, sans-serif;
  font-size: 18px;
  padding-bottom: 5px;
}


/* STYLING THE TAXON PAGES */
#taxonpage-heading {
  font-family: sourcesansprosemibold, sans-serif;
  font-size: 22px;
  padding: 20px;
  text-align: left;
}

#taxonpage-name {
  font-family: sourcesansprosemibold, sans-serif;
  font-size: 22px;
  padding-bottom: 10px;
}

#taxonpage-subheading {
  font-family: sourcesansprosemibold, sans-serif;
  font-size: 18px;
  padding-bottom: 5px;
}


/* STYLING THE TABLES IN THE DICHOTOMOUS KEYS */
table {
  border: 1px solid #000000;
  font-size: 18px;
  margin-right: 10px;
}

table tr {
  border: 1px solid #000000;
}

table td {
  padding: 5px;
  border: 1px solid #000000;
}


/* STYLING NAME LISTINGS */
#namespage-listing {
  line-height: 25px;
}


/* STYLING THE VERTICAL SIDE NAVIGATION BAR FOR LAPTOP AND DESKTOP COMPUTER SCREEN WIDTH */
@media only screen and (min-width: 1101px) {
    #navigation-cellphonetablet {
      display: none;
    }

    #navigation-computer {
      width: 120px;
    }

    #navigation-computer nav {
      padding: 0px;
      background-color: #BDACFF;
      font-family: librebaskervilleregular, serif;
      font-size: 14px;
      color: #000000;
      z-index: 1000;
    }

      /* unindent each unordered list */
    #navigation-computer nav ul {
      position: absolute;
      z-index: 1020;
    }

      /* turn each list item into a solid gray block */
    #navigation-computer nav li {
      position: relative;
      list-style-type: none;
      border: 1px black solid;
      width: 120px;
      height: auto;
      padding: 9px 5px 9px 5px;
      background-color: #BDACFF;
      text-align: center;
    }

    /* set anchors to act like buttons */
    #navigation-computer nav a {
      display: block;
      color: black;
      text-decoration: none;
    }

      /*change boxes to dark purple and text to white when hovered */
    #navigation-computer nav li:hover {
      background-color: #9966CC;
      color: #FFFFFF;
    }

    #navigation-computer nav li a:hover {
      background-color: #9966CC;
      color: #FFFFFF;
    }

      /* collapse nested lists */
    #navigation-computer nav li ul {
      display: none;
      margin-top: -24.5px;
    }

    /* indent nested list items*/
    #navigation-computer nav li ul li {
      width: 135px;
      margin-left: 125px;
      padding: 9px 5px 9px 5px;
      line-height: 18px;
    }

    #navigation-computer nav li ul li ul li {
      width: 135px;
      margin-left: 125px;
      padding: 9px 5px 9px 5px;
    }

    /* display sublists on hover */
    #navigation-computer nav li:hover > ul {
      display: block;
    }


    /* STYLING THE IFRAME FLEXBOX AND IFRAME FOR LAPTOP AND DESKTOP COMPUTER SCREEN WIDTH */
    #iframe-box {
      align-self: flex-end;
      width: calc(100% - 155px);
      padding-right: 5px;
    }

    iframe {
      padding-top: 10px;
    }


    /* DEFININIG THE HOMEPAGE FLEXBOX, AND STYLING THE HOME PAGE FOR LAPTOP AND DESKTOP COMPUTER SCREEN WIDTH */
    #homepage-box {
      display: flex;
      flex-direction: row wrap;
      padding: 10px 10px 0px 0px;
    }

    #homepage-imagegroup1 {
      order: 1;
      flex-direction: column;
      justify-content: flex-start;
      align-self: flex-start;
      font-size: 12px;
    }

    #homepage-text {
      order: 2;
      padding: 0px 10px 0px 10px;
    }

    #homepage-heading {
      font-family: sourcesansprosemibold, sans-serif;
      font-size: 22px;
      padding: 20px;
      }

    #homepage-imagegroup2 {
      order: 3;
      flex-direction: column;
      justify-content: flex-start;
      align-self: flex-start;
      font-size: 12px;
      padding: 0;
    }


    /* DEFINING THE REGIONAL DEFINITION PAGE FLEXBOX, AND STYLING THE REGIONAL DEFINITION PAGE FOR LAPTOP AND DESKTOP COMPUTER SCREEN WIDTH */
    #regiondefinitionpage-box {
      display: flex;
      flex-direction: row;
      padding: 10px 10px 0px 0px;
    }

    #regiondefinitionpage-text {
      order: 1;
      width: calc(100% - 450px);
      font-size: 18px;
    }

    #regiondefinitionpage-image {
      order: 2;
      width: auto;
    }


    /* DEFINING THE TAXON PAGE FLEXBOX, AND STYLING THE TAXON PAGES FOR LAPTOP AND DESKTOP COMPUTER SCREEN WIDTH */
    #taxonpage-box {
      display: flex;
      flex-direction: row;
      padding: 10px 10px 0px 0px;
    }

    #taxonpage-text {
      order: 1;
      width: calc(100% - 450px);
      align-self: flex-start;
      font-size: 18px;
    }

    #taxonpage-images {
      order: 2;
      display: flex;
      flex-direction: column;
      flex: 1;
      width: 450px;
      padding-top: 20px;
      justify-content: flex-start;
      text-align: left;
    }

    #taxonpage-images img {
      padding-top: 15px;
    }
}


/* STYLING THE HEADER AND NAVIGATION FOR TABLET AND CELLPHONE SCREEN WIDTH */
@media only screen and (max-width: 1100px) {
    #header {
      border-bottom: #BDACFF;
    }

    #navigation-computer {
      display: none;
    }

    #navigation-cellphonetablet {
      display: flex;
      flex-direction: row;
      background-color: #BDACFF;
      border-bottom: 1px solid #000000;
      justify-content: center;
      width: 100%;
    }

    #navigation-cellphonetablet {
      padding: 0px;
      background-color: #BDACFF;
      font-family: librebaskervilleregular, serif;
      font-size: 14px;
      color: #000000;
      z-index: 1000;
    }

    /* unindent each unordered list */
    #navigation-cellphonetablet ul {
      display: flex;
      position: absolute;
      z-index: 1020;
    }

    /* turn each list item into a solid violet block with black text */
    #navigation-cellphonetablet ul li {
      position: relative;
      list-style-type: none;
      border: 1px black solid;
      width: 75px;
      height: auto;
      padding: 15px;
      background-color: #BDACFF;
      text-align: center;
    }

    #navigation-cellphonetablet ul li ul li {
      color: #000000;
      margin-left: -60px;
      width: 135px;
    }

    #navigation-cellphonetablet ul li ul li ul li {
      color: #000000;
      width: 135px;
    }

    /* set anchors to act like buttons */
    #navigation-cellphonetablet a {
      display: block;
      color: #000000;
      text-decoration: none;
    }

    /*change boxes to dark purple and text to white when hovered */
    #navigation-cellphonetablet ul li:hover {
      background-color: #9966CC;
      color: #FFFFFF;
    }

    #navigation-cellphonetablet ul li a:hover {
      background-color: #9966CC;
      color: #FFFFFF;
    }

    #navigation-cellphonetablet ul li ul li a:hover {
      background-color: #9966CC;
      color: #FFFFFF;
    }

    /* collapse nested lists */
    #navigation-cellphonetablet ul li ul {
      display: none;
      margin-top: 15px;
      margin-left: -60px;
    }

    /* indent nested list items*/
    #navigation-cellphonetablet ul li ul li {
      width: 135px;
      padding: 15px;
      text-align: center;
      line-height: 20px;
    }

    #navigation-cellphonetablet ul li ul li ul {
      display: none;
      margin-top: 15px;
      margin-left: -90px;
    }

    #navigation-cellphonetablet ul li ul li ul li {
      width: 135px;
      padding: 15px;
    }

    /* display sublists on hover */
    #navigation-cellphonetablet li:hover > ul {
      display: block;
    }


    /* EXPAND IFRAME AFTER MOVING NAVIGATION TO HEADER */
    #iframe-box {
      align-self: flex-start;
      padding: 5px;
      width: 100%;
    }

    iframe {
      padding-top: 10px;
    }


    /* STYLING THE HOMEPAGE FOR TABLET AND CELLPHONE SCREEN WIDTH */
    #homepage-box {
      flex-direction: column wrap;
      flex: 1;
    }

    #homepage-imagegroup1 {
      order: 1;
      display: flex;
      flex-direction: row;
      width: 100%;
      justify-content: center;
      font-size: 12px;
    }

    #homepage-text {
      order: 2;
      width;
    }

    #homepage-heading {
      font-family: sourcesansprosemibold, sans-serif;
      font-size: 22px;
      padding: 20px;
      }

    #homepage-imagegroup2 {
      order: 3;
      display: flex;
      flex-direction: row;
      width: 100%;
      justify-content: center;
      padding-top: 10px;
      font-size: 12px;
    }


    /* DEFINING THE REGIONAL DEFINITION PAGE FLEXBOX, AND STYLING THE REGIONAL DEFINITION PAGE FOR LAPTOP AND DESKTOP COMPUTER SCREEN WIDTH */
    #regiondefinitionpage-box {
      display: flex;
      flex-direction: column;
      padding: 10px 10px 0px 0px;
    }

    #regiondefinitionpage-image {
      order: 1;
      flex: 1;
      width: 100%;
      align-self: center;
    }

    #regiondefinitionpage-text {
      order: 2;
      width: 100%;
      align-self: center;
      font-size: 18px;
    }


    /* DEFINING THE TAXON PAGE FLEXBOX, AND STYLING THE TAXON PAGES FOR LAPTOP AND DESKTOP COMPUTER SCREEN WIDTH */
    #taxonpage-box {
      display: flex;
      flex-direction: column;
      padding: 10px 10px 0px 0px;
    }

    #taxonpage-text {
      order: 1;
      width: 100%;
      align-self: flex-start;
      font-size: 18px;
    }

    #taxonpage-images {
      order: 2;
      display: flex;
      flex-direction: column;
      flex: 1;
      width: 450px;
      padding-top: 20px;
      align-self: center;
      text-align: left;
    }

    #taxonpage-images img {
      padding-top: 15px;
    }
}


/* FORMAT AND STYLING FOR CELLPHONES WITH SCREEN VIEWPORTS UP TO 590PX WIDE */
@media only screen and (max-width: 600px) {
  #header {
    height: 100px;
  }

  #header-title {
    font-size: 20px;
  }

  #header-author {
    font-size: 14px;
  }

  #navigation-cellphonetablet ul li {
    width: 60px;
  }

  table {
    width: 95%;
  }

  img {
    width: auto;
    max-width: 90%;
    height: auto;
  }

  #taxonpage-images {
    width: auto;
    max-width: 90%;
    height: auto;
  }
}
