/* This trick removes any default browser styles and only applies margins explicitly
set by your css. For me, Chrome always adds a margin to the body by default,
ruining some of the header and footer styles.*/
*{margin:0;}

header {
  color: white;
  background: linear-gradient(to right, white, purple, gold, white);
  background-image: url('../images/header-image.jpg');
  padding: 3rem;
  height: 20rem;
  width: 100%
  font-family: 'Open Sans', sans-serif;
  background-size: cover;
}
body {
}
.header-h1 {
  color: lime;
  font-family: 'Courgette', cursive;
}
.nav-header {
  font-family: "Arial Black", Gadget, sans-serif;
  height: 1rem;
  background-color: whitesmoke;
  padding: 1rem 10% 2rem;
}
.nav-link {
  text-decoration: none;
}
.bold {
  font-family: 'Open Sans', sans-serif;
}
h1 {
  font-family: "Times New Roman", Times, serif;
  color: rgb(0, 51, 102);
  font-weight: bold;
}
.large-headline {
  font-color: 30rem;
}
.half-width {
  width: 5%;
  margin: 0 auto;
}
/*Lesson 09 assignment jQuery*/
.tile-border {
  outline: 4px solid orange;
}
.image-border {
  outline: 4px dotted blue;
}

h2 {
  font-family: "Times New Roman", Times, serif;
  color: rgb(0, 51, 102);
  font-weight: bold;
  font-size: 1.5rem;
  margin: 0rem 0rem;
}
h3 {
  color: rgb(0, 51, 102);
  font-family: "Times New Roman", Times, serif;
  font-size: 1rem;
  margin: 0.3rem 0rem;
}
p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
.max-img {
  max-width: 350px;
  height: auto;
}
}
.content-box {
  float: right;
  width: 20%;
  padding: 2rem 10% 0rem 0.5rem;
  font-size: 0.8rem;
  font-family: Arial, Helvetica, sans-serif;
}
.content-box-mobile {
  padding: 2rem 10% 0rem 0.5rem;
  font-size: 0.8rem;
  font-family: Arial, Helvetica, sans-serif;
}
.header {
  font-size: 1rem;
  padding: 2rem 1rem 1rem 10%;
  clear: left;
}
.header-image {
/*removed for asgn 6 as it conflicted w/blog view
  padding: 1rem 10%;
  display: flex;
  justify-content: space-evenly; /*align grid items, not text
  font-size: 0.8rem;
  clear: both;
  */
}
p.footer {
  font-family: 'PT Sans', sans-serif;
}
.quote {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2rem;
}
.aligncenter {
  text-align: center;
}
.flex-container {
  display: flex;
  padding: 1rem 10%;
}
.grid-container {
  display:grid;
  grid-gap: 3rem 1rem;
  grid-template-columns: auto auto auto;
  justify-content: space-evenly; /*align grid items, not text*/
  /*use % and not rem for padding*/
  padding: 1rem 10%;
  font-size: 0.8rem;
  clear: left;
}
.grid-container-dogs {
  display:grid;
  grid-gap: 3rem 1rem;
  grid-template-columns: auto auto auto auto;
  justify-content: space-evenly; /*align grid items, not text*/
  /*use % and not rem for padding*/
  padding: 1rem 10%;
  font-size: 0.8rem;
}
img.wrap {
  float: left;
}
.grid-item-1 {
  grid-area: 1/1/1/4;
}
.grid-item-2 {
  text-align: right;
  grid-area: 1/6/1/1;
}
.grid-item-3 {
  grid-area: 1/1/1/3;
}
.grid-item-4 {
  grid-area: 1/3/1/4;
}
.grid-item {
  display:grid;
  flex-direction: column;
  border: 0.125rem solid whitesmoke;
  max-width: 350px;
}
.grid-text {
  padding: 0.5rem 1rem 1rem 1rem;
}
footer {
  background-color: rgb(0, 51, 102);
  text-align: center;
  padding: 1rem 1rem 1rem 1rem;
  color: white;
  font-family: 'PT Sans', sans-serif;
  /*padding: 5rem 15rem 5rem;*/
}
a.footer {
  text-decoration: none;
}
form {
  padding: 1em 10em;
}
label {
  color: rgb(0, 51, 102);
  font-family: "Times New Roman", Times, serif;
  font-size: 1rem;
  font-weight:bold;
}
input[type=text], select {
  width: 65%;
  padding: 0.75rem 1.25rem;
  margin: 0.5rem 0;
  display: inline-block;
  border: 0.08rem solid #ccc;
  box-sizing: border-box;
  margin-bottom: 1.25rem;
}
input[type=email], select {
  width: 65%;
  padding: 0.75rem 1.25rem;
  margin: 0.5rem 0;
  display: inline-block;
  border: 0.08rem solid #ccc;
  box-sizing: border-box;
  margin-bottom: 1.25rem;
}
input[type=number], select {
  width: 65%;
  padding: 0.75rem 1.25rem;
  margin: 0.5rem 0;
  display: inline-block;
  border: 0.08rem solid #ccc;
  box-sizing: border-box;
  margin-bottom: 1.25rem;
}
input[type=submit] {
  min-width:20%;
  width: 20%;
  background-color: #77C425;
  color: white;
  padding: 1rem 1.25rem;
  margin: 0.5rem 0;
  border: none;
  cursor: pointer;
}
input[type=submit]:hover {
  background-color: #45a049;
}
.form-container {
  display:flex;
  grid-template-columns: auto auto auto;
  justify-content: left;
}
.form-city {
  max-width: 40%;
}

@media screen and (max-width: 576px) {
  .grid-container {
    display:flex;
    flex-wrap:wrap;
    justify-content: space-evenly; /*align grid items, not text*/
    padding: 1rem .5rem;
    font-size: 0.8rem;
    clear: left;
  }
  .grid-container-dogs {
    display:flex;
    flex-wrap:wrap;
    justify-content: space-evenly; /*align grid items, not text*/
    padding: 1rem .5rem;
    font-size: 0.8rem;
    clear: left;
  }
  .grid-item {
    width:100%;
    padding: 1rem 0rem;
    font-size: 0.8rem;
  }
}

@media screen and (min-width: 577px) and (max-width: 768px) {
  .grid-container {
    display:flex;
    flex-wrap:wrap;
    justify-content: space-evenly; /*align grid items, not text*/
    padding: 1rem 1rem;
    font-size: 0.8rem;
    clear: left;
  }
  .grid-container-dogs {
    display:flex;
    flex-wrap:wrap;
    justify-content: space-evenly; /*align grid items, not text*/
    padding: 1rem 1rem;
    font-size: 0.8rem;
    clear: left;
  }
  .grid-item {
    width:46%;
    font-size: 0.8rem;
  }
}

@media screen and (min-width: 769px) {
  .content-box {
    float: right;
    width: 20%;
    padding: 2rem 10% 0rem 0.5rem;
    font-size: 0.8rem;
    font-family: Arial, Helvetica, sans-serif;
    max-width: 350px;
  }
  .content-box-mobile {
    display: none;
  }
  .header {
    font-size: 1rem;
    padding: 2rem .5rem 1rem 10%;
    clear: left;
  }
  .grid-container {
    display:grid;
    grid-gap: 3rem 1rem;
    grid-template-columns: auto auto auto;
    justify-content: space-evenly; /*align grid items, not text*/
    /*use % and not rem for padding*/
    padding: 1rem 0rem 1rem 10%;
    font-size: 0.8rem;
    clear: left;
  }
}

@media screen and (max-width: 768px) {
  .content-box-mobile {
    padding: 2rem 10% 0rem 0.5rem;
    font-size: 0.8rem;
    font-family: Arial, Helvetica, sans-serif;
  }
  .content-box {
    display: none;
  }
}

@media print {
  body img {
    display: none; /*body image hides all images in page*/
  }
}
