* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lobster', cursive;
}

h1 {
  text-align: center;
}

p {
  font-family: "Quicksand", sans-serif;
}

body {
  background-color: #edcdad;
}

.logo {
    /* makes logo occupy top right of parent div */
  position: absolute;
  top: 0;
  right: 0;
  padding:  10px;
  max-width: 100px;
  height: 100px;
}

nav {
  display: flex;
  width: 100%;
}

header {
  background-image: url(../Images/headerimg.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #edcdad;
  text-shadow: 2px 1px 4px #73492e;
}
header h1{
  padding: 30px;
}

.mytestbtn {
  flex: 1;              
  /* each button grows equally */
  text-align: center;
  padding: 10px 18px;
  background-color: #af7853;
  border-color: #73492e;
  font-size: 16px;
  font-family: "lobster", cursive;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #edcdad;
  text-shadow: 2px 1px 4px #73492e;
}

/* Hover effect */
.mytestbtn:hover {
  background-color: #d4996e;
  border-color: #af7853;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px #000000;
  color: #edcdad;
  text-shadow: 3px 1px 5px #73492e;
}

/* Click effect */
.mytestbtn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px #000000;
}

footer {
    border-top: 1px solid #BFBFCF;
    font-size: 12px;
    background-color: #af7853;
  color: #edcdad;
  text-shadow: 2px 1px 4px #73492e;
}

footer h1 {
  margin: 10px;
}

h2 {
  margin: 1em;
}

#gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1em;
  margin: 1em;
}

.epi_card {
  text-align: center;
  justify-content: center;
}

.epi_card  h3{
  margin: 15px;
}

.epi_card img {
  width: 250px;
  height: 300px;
  border: 3px solid #73492e;
  box-shadow: 0 2px 5px #73492e;
  object-fit: cover;
}

#pb_summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1em;
  margin: 2em;
  border: none;
  border-top: 4px solid #af7853;
}

#pb_summary h4, p {
  grid-column: 1/4;
}
#pb_summary h4 {
  margin-top: 10px;
}
#pb_summary img {
  width: auto;
  max-height: 200px;
  object-fit: cover;
  border: 3px solid #73492e;
  box-shadow: 0 2px 5px #73492e;
  justify-self: center;
}

footer h1, h3 {
  margin: 10px;
}
#socials {
  display: flex;
  justify-content: right;
  margin-top: -45px;
}
#socials img {
  margin: 1em;
  max-width: 50px;
  height: auto;
}

@media screen and (max-width: 900px) {
    #hero, .home-grid {
        display: block;
        height: auto;
    }
    .logo {
        width:110%;
    }
    nav, footer {
        flex-direction: column;
    }
    nav a {
        display: block;
        padding: 15px;
    }
    footer {
        margin-top: 25px;
    }
  }