@charset "utf-8";

@font-face {
	font-family: "Ravie";
	src: url(../fonts/RAVIE.TTF);
}

@font-face {
	font-family: "Arial Rounded MT Bold";
	src: url(../fonts/ARLRDBD.TTF);
}

* {
  font-family: "Arial Rounded MT Bold", Arial, "sans-serif";
  font-size: 20px;
  color: #000;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: repeat;
  background-image: url("../images/candy.png");
}

#wrapper {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 600px 100px minmax(650px, auto) minmax(100px, auto);
  grid-template-areas:
    "banner"
    "menu"
    "content"
    "footer";
  background-color: rgb(249, 210, 232);
  padding: 20px;
  gap: 1em;
  max-width: 1920px;
  margin: 0 auto;
}

header {
  grid-area: banner;
  background-color: rgb(199, 188, 251);
  display: grid;
  /* gap: 20px; */
  grid-template-areas: "logo" "company";
  grid-template-columns: 100%;
  grid-template-rows: 350px 250px;
  /* padding: 5px; */
  justify-items: center;
  align-content: center;
}

header figure {
  /* name for sub grid section */
  grid-area: logo;
  width: 100%;
  display: flex;
  margin: 0 2%;
  /* padding: 10px; */
  justify-content: center;
  align-items: center;
}

header h1 {
  /*name for sub grid section*/
  grid-area: company;
  color: rgb(253, 253, 185);
  font-size: 3em;
  font-family: 'Ravie';
  /* padding: 5px; */
  align-self: center;
  text-align: center;
  letter-spacing: 0.1em;
  margin: 10px;
  /* width: auto; */
}

h2 {
  font-size: 3em;
  width: 100%;
}

h3 {
  font-size: 2em;
  margin-bottom: 10px;
}

h4 {
  font-size: 1em;
  font-style: italic;
}

nav {
  grid-area: menu;
  background-color: rgb(253, 253, 185);
  padding-top: 1em;
  padding-bottom: 1em;
  align-content: center;
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-evenly;
}

nav a {
  display: block;
  text-decoration: none;
}

nav a:hover {
  font-size: larger;
}

nav li {
  display: inline;
}

main {
  grid-area: content;
  width: 100%;
  min-height: 650px;
  background-color: rgb(199, 188, 251);
  display: flex;
  flex-flow: row wrap;
  align-content: center;
  justify-content: space-around;
  gap: 1em;
  padding: 1em;
}

main section {

  /* max-inline-size: 400px; */
  display: inline-block;
  background-color: rgb(253, 253, 185);
  padding: 20px;
}

main section h3 {
  padding-bottom: 10px;
}

main section img {
  width: 100%;
  padding: 0 20px;
}

/* begin adopt page */

#adoptmain figure {
  width: 400px;
  height: 400px;
  display: block;
  background-color: rgb(253, 253, 185);
  padding: 20px;  
}

#adoptmain figure h2 {
  padding-bottom: 10px;
}

#adoptmain figure img {
  width: 100%;
  padding: 0 40px 0 40px;
}

/* end adopt page */


footer {
  grid-area: footer;
  width: 100%;
  min-height: 100px;
  background-color: rgb(253, 253, 185);
  gap: 1em;
  padding: 1em;
  align-content: center;
}

footer ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

footer a {
  display: block;
  text-decoration: none;
}

footer a:hover {
  font-size: larger;
}

footer li {
  display: inline;
  width: 50%;
}

/* Contact page form */

form {
  width: 100%;
}

main p {
	clear: both;
	padding-top: 10px;
}

p.three label {
	font-weight:bold;
	float: left;
	width: 175px;
	text-align: right;
	padding-right: 10px;
	position: relative;
}

p.two label {
	font-weight:bold;
	float: left;
	width: 175px;
	text-align: right;
	padding-right: 10px;
	position: relative;
}

p.two input, p.two select{
	float: left;
	width: 175px;
	text-align: left;
}

p.two select {
	width: 175px;
}

p.one {
	text-align: center;
}

.one {
  text-align: center;
}

#comment {
  width: 175px;
}

#submit{
	clear: both;
	width: 125px;
	height: 50px;
	background: pink;
	text-align:center;
	line-height:20px;
	font-size:20px;
	font-weight:bold;
}

#submit:disabled {
  background: grey;
  color: white;
}

.tooltip {
	display: block; 
	position: absolute; 
	visibility: hidden;
	left: 35em;
	top: 0;
	width: 10em;
	padding: 0.5em;
	font-weight: normal;
	color: black;
	background-color: rgb(249, 210, 232);
	border:solid 2px black;
}

.correct {
	color: green;
}

span.correct {
	padding-left: 10px;
}

.error {
	color: #D92525;
}

span.error{
	padding-left: 10px;
}

/* end contact page form */

@media only screen and (max-width: 600px) {

  main {
    flex-flow: column wrap;
  }

  .tooltip {
    left: 100%;
    top: 200%;
  }
}