@charset "utf-8";

@font-face {
 font-family: "OpenDyslexic";
 src: url(../fonts/OpenDyslexic-Regular.otf);
}

@font-face {
 font-family: "AtkinsonHyperlegible";
 src: url(../fonts/AtkinsonHyperlegibleRegular.ttf);
}

* {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

body {
 cursor: url('../images/cursor.png') 10 10, auto;
 /* Source: Monarch Butterfly Illustration, Clipart Library, https://clipart-library.com/clipart/di4okd4AT.htm
 IP Permissions: Non-Commercial, https://clipart-library.com/terms.html */
 background-image: url('../images/bodybackground.jpg');
 /* Source: Own photograph, taken at Kings Park. */
 background-size: cover;
 color: rgb(0, 0, 0);
 font-size: 16px;
}

a {
 font-family: "AtkinsonHyperlegible", sans-serif;
 color: rgb(0, 0, 0);
 text-decoration: none;
 font-weight: bold;
}

img {
 max-width: 100%;
 height: auto;
}

p {
 font-family: "AtkinsonHyperlegible", sans-serif;
}

h2, h3 {
 font-family: "OpenDyslexic", sans-serif;
 letter-spacing: -0.18em;
  word-spacing: -0.3em;
 line-height: 1.2em;
}

main p {
 margin-top: 0.5em;
 margin-bottom: 0.5em;
}

a:hover, body:active {
 cursor: url('../images/hovercursor.png') 10 10, auto;
 /* Source: Monarch Butterfly Illustration, Clipart Library, https://clipart-library.com/clipart/di4okd4AT.htm
 IP Permissions: Non-Commercial, https://clipart-library.com/terms.html */
}

#wrapper {
 max-width: 700px;
 min-height: 100vh;
 margin: 0 auto;

 display: grid;
 grid-template-areas: 
 "header"
 "nav"
 "main"
 "footer";
 grid-template-columns: 1fr;
 grid-template-rows: 
 minmax(50px, auto) 
 minmax(40px, auto) 
 1fr
 minmax(50px, auto);
}

header {
 grid-area: header;
 display: grid;
 grid-template-columns: minmax(0, 20%) minmax(0, 60%) minmax(0, 20%);
 align-items: center;
 color: white;
 background-color: rgb(0, 0, 0, 0.9);
 margin: 1em 1em 0 1em;
}

header .logo {
 max-width: 100%;
 height: auto;
 padding: 0.8em;
}

header h1 {
 font-family: "OpenDyslexic", sans-serif;
 letter-spacing: -0.05em;
 font-size: 2.5em;
 padding: 0.3em;
 text-align: center;
 min-width: 0;
}

nav {
 grid-area: nav;
}

nav ul {
 display: flex;
 flex-direction: row;
 align-items: center;
 justify-content: center; 
 list-style: none;
 gap: 0.5em;
 padding: 1em;
 font-size: medium;
}

nav a {
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 color: white;
 background-color: rgb(0, 0, 0, 0.9);
 text-decoration: none;
 font-weight: bold;
 padding: 0.5em;
 min-height: 4em;
 border-radius: 1em;
 letter-spacing: 0.1em;
}

nav a:hover {
 color: rgb(0, 0, 0);
 background-color:  rgb(223, 244, 229);
 font-style: italic;
}

main {
 grid-area: main;
}

#indexexplore {
 background-color: rgb(223, 244, 229, 0.9);
 padding: 1.5em;
 border-radius: 0.8em;
 height: fit-content;
}

#indexexplore h2 {
 padding-top: 0.3em;
 font-size: xx-large;
}

#errormain {
 padding-left: 1.5em;
 padding-right: 1.5em;
}

#indexabout, #errormessage {
 background-color: rgb(223, 244, 229, 0.9);
 padding: 1em;
 border-radius: 0.8em;
}

#indexabout h2 {
 font-size: large;
}

#indexmain {
 display: flex;
 margin: 0 1em 1em 1em;
 gap: 1em;
}

#bugguide h2 {
 text-align: center;
 background-color: rgb(223, 244, 229, 0.9);
 padding: 0.5em;
 border-radius: 0.8em;
}

#bugguide h3 {
 word-spacing: -0.2em;
 font-size: medium;
 padding-bottom: 0.2em;
}

#bugguide h4 {
 font-family: 'AtkinsonHyperlegible', sans-serif;
 font-weight: lighter;
 font-style: italic;
 padding-bottom: 0.5em;
 font-size: small;
 padding-left: 0.5em;
}

#bugguide ul {
 list-style-type: none;
}

#guidemain {
 display: flex;
 justify-content: center;
 margin: 0 1em 0 1em;
}

#cardcontainer {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 margin: 1em 0 1em 0;
 gap: 1em;
}

.bugcard {
 height: 100%;
 background-color: rgb(223, 244, 229, 0.9);
 padding: 1em;
 border-radius: 0.8em;
}

.bugsource {
 display: block;
 font-style: italic;
 font-weight: lighter;
 line-height: 1em;
 font-size: xx-small;
 padding-left: 0.5em;
}

.bugsource:hover{
 text-decoration: underline;
}

#feedmain img {
 display: flex;
 justify-self: center;
}

#feedcontainer {
 gap: 1em;
 margin: 0 1em 1em 1em;
}

#feedcontainer h2 {
 text-align: center;
 background-color: rgb(223, 244, 229, 0.9);
 padding: 0.5em;
 border-radius: 0.8em;
}

#feedmain h3 {
 padding-bottom: 0.5em;
}

.feedpost {
 height: 100%;
 background-color: rgb(223, 244, 229, 0.9);
 padding: 1em;
 border-radius: 0.8em;
}

#postcontainer {
 display: grid;
 list-style: none;
 grid-template-columns: repeat(2, 1fr);
 padding-top: 1em;
 gap: 1em;
}

#conservationmain {
 display: flex;
 flex-direction: column;
 margin: 0 1em 1em 1em;
 gap: 1em;
}

#conservationinfo {
 background-color: rgb(223, 244, 229, 0.9);
 padding: 1em;
 border-radius: 0.8em;
}

#conservationresources {
 background-color: rgb(223, 244, 229, 0.9);
 padding: 1em;
 border-radius: 0.8em;
}

#conservationresources h2 {
 padding-bottom: 0.5em;
}

#conservationresources ul {
 padding-left: 1.5em;
}

#conservationresources a:hover {
 text-decoration: underline;
 font-style: italic;
}

#contactmain {
 margin: 0 1em 1em 1em;
 display: flex;
 flex-direction: column;
}

#contactcontainer {
 display: flex;
 flex-direction: column;
 gap: 1em;
}

#contactcontainer h2 {
 text-align: center;
 background-color: rgb(223, 244, 229, 0.9);
 padding: 0.5em;
 border-radius: 0.8em;
}

#contactparagraph {
 background-color: rgb(223, 244, 229, 0.9);
 padding: 0.5em 1em 0.5em 1em;
 border-radius: 0.8em;
}

form {
 display: flex;
 justify-content: center;
 font-family: "AtkinsonHyperlegible", sans-serif;
 background-color: rgb(223, 244, 229, 0.9);
 padding: 1em;
 margin: 0 5em 1em 5em;
 border-radius: 1.5em;
}

fieldset {
 display: flex;
 flex-direction: column;
 gap: 0.6em;
 border: none;
}

.vcard {
 background-color: rgb(223, 244, 229, 0.9);
 padding: 0.5em 1em 0.5em 1em;
 border-radius: 0.8em;
 font-family: "AtkinsonHyperlegible", sans-serif;
 width: fit-content;
 align-self: center;
}

label {
 display: block;
 margin-top: 0.3em;
 font-weight: bold;
}

input {
 padding: 0.1em;
 margin: 0.1em;
}

#submitbutton {
 font-size: large;
 padding: 0.4em;
 border-width: 0.01em;
}

footer {
 grid-area: footer;
 align-items: center; 
 justify-content: center;
 color: white;
 background-color: rgb(0, 0, 0, 0.9);
 margin: 0 1em 1em 1em;
}

footer p {
 padding: 1em 1em 0 1em;
 font-style: italic;
 text-align: center;
}

footer a {
 color: white;
}

footer a:hover {
 font-style: italic;
 text-decoration: underline;
}

#sitemap {
 list-style-type: none;
 text-align: center;
 padding: 0.2em 0.5em 1em 0.5em;
}

#sitemap li {
 display: inline;
 color: white;
}

.button {
 display: block;
 font-family: "AtkinsonHyperlegible", sans-serif;
 letter-spacing: 0.1em;
 line-height: 1.2em;
 padding: 0.4em;
 text-align: center;
 color: white;
 background-color: rgb(0, 0, 0);
 border-radius: 0.8em;
 font-size: x-large;
}

.button:hover {
 color: rgb(0, 0, 0);
 background-color:  rgb(223, 244, 229);
 font-style: italic;
}

@media screen and (max-width: 700px) {

 body {
  background-size: auto;
  background-position: top center;
 }

 header h1 {
  font-size: 1.8em;
 }

 #hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
 }

 #welcome {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  text-align: left;
 }

 main p {
  font-size: larger;
  padding: 0.2em 0.5em 0 0.5em;
 }

 #indexmain {
  flex-direction: column;
 }

 #indexexplore {
  display: flex;
  flex-direction: row;
  gap: 1em;
 } 

 #indexabout h2 {
  font-size: x-large;
 }

 #herocredit {
  padding-top: 0.5em;
  font-size: small;
  text-align: center;
 }

 #cardcontainer {
  grid-template-columns: 1fr;
 }

 #postcontainer {
  grid-template-columns: 1fr;
 }

 #bugguide h3 {
  font-size: x-large;
 }

 #bugguide h4 {
  font-size: large;
 }

 .bugsource {
  padding-top: 0.5em;
  font-size: medium;
 }

 #conservationresources a {
  font-size: large;
 }

 form {
  font-size: larger;
  margin: 1em;
 }
 
 input {
  font-size: large;
 }

}