/* Typographic scale using the golden ratio */
/* 1 rem for text, 1.618 rem for h2 and 2.618 rem for h1 */
/* https://www.modularscale.com/?1&rem&1.618 */

header {
  background-color: red;
}

.logo {
  float: inline-start;
  max-width: 60%;
  height: auto;
}

nav {
  background-color: yellow;
  clear: both;
  display: flex;
}

p {
  font-size: 1.618 rem;
  font-weight: bold;
  line-height: 1.618 rem;
}

nav ul li {
  text-decoration: none;
  list-style-type: none;
  color: black;
  font-size: 2.61 rem;
  font-weight: 800;

  margin-left: -35px;
}

h1 {
  text-align: center;
  font-size: 67.87px;
  line-height: 67.87px;
}
h2 {
  text-align: center;
  font-size: 41.87px;
  padding-bottom: 20px;
}

.row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-top: 10px;
}

main p {
  font-size: 25.88px;
  max-width: 450px;
  line-height: 25.88px;
}

.footer_format {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.menu {
  display: flex;
  flex-direction: row;
  padding-left: 20px;
  justify-content: space-between;
}

figcaption {
  /* max-width: auto; */
  font-size: 1 rem;
}

.column {
  display: grid;
  grid-template-columns: 45% 45%;
  justify-content: space-around;
}

form {
  padding-left: 150px;
}

.error {
  color: red;
}
.photo {
  padding: 10px 10px 10px 20px;
  max-width: 100%;
  height: auto;
}

.photo1 {
  justify-self: baseline;
}

/* Responsive Images */

img {
  height: auto;
  max-width: 100%;
  padding: 10px 10px 10px 10px;
}

/* Setting the grid areas */

.header1 {
  grid-area: header;
}
.nav2 {
  grid-area: nav;
  padding: 10px 10px 10px 10px;
}
.heading {
  grid-area: heading;
  padding: 10px 10px 10px 10px;

  text-align: center;
}

/* Styles for the main grid areas */

.main3 {
  grid-area: main1;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 10px 10px;
  justify-content: space-between;
  align-items: center;
}
.main32 {
  grid-area: main2;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 10px 10px;
  justify-content: space-between;
  align-items: center;
}
.footer4 {
  grid-area: footer;
}

/* Setting up the grid area layout */

.grid {
  display: grid;
  grid-template-areas:
    "header header header"
    "nav heading heading"
    "nav main1 main2"
    "footer footer footer";
  grid-template-columns: 10% 43% 43%;
  justify-content: space-around;
}

a {
  text-decoration: none;
}

nav ul {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: start;
}

.left {
  margin-left: -25px;
  height: auto;
}
html {
  font-size: 25.88px;
}

/* Media query for larger tablets and small laptop monitors */

@media screen and (max-width: 1000px) {
  img {
    max-width: 100%;
    height: auto;
  }
  figcaption {
    font-size: 70%;
    text-wrap: balance;
  }

  h1 {
    font-size: 1.618 rem;
    max-width: 100%;
  }
  .logo {
    max-width: 30%;
    max-height: 60%;
  }
  .grid {
    grid-template-columns: 18% 38% 38%;
  }
}

/* Media query for small tablets and smartphones */

@media screen and (max-width: 600px) {
  .grid {
    display: grid;
    grid-template-columns: 100%;
    grid-template-areas:
      "header"
      "nav"
      "heading"
      "main1"
      "main2"
      "footer";
  }
  .left {
    min-width: 75%;
    height: auto;
  }
  .main3 {
    display: flex;
    flex-direction: column;
    padding: 0px;
    margin-left: -20px;
  }
  .main32 {
    display: flex;
    flex-direction: column;
    margin-left: -10px;
  }
  figcaption {
    font-size: 100%;
  }
  form {
    padding-left: 0px;
  }
  /* Added in Module 6  */

  h1 {
    padding-top: 20px;
    font-size: 50px;
  }
}
