/* Home page */

/* small intro with logo */
#section_1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: inherit 80px;
}
#section_1 img {
  width: 15%;
  min-width: 100px;
}
#section_1 p {
  margin: 0 30px;
  padding: 20px 0;
  border-bottom: 1px solid var(--accent);
  text-align: center;
}

/* tiles */
#section_2 {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.tile {
  margin: 15px 30px;
  padding: 20px;

  color: black;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}
.tile:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* About Beverley */
#section_3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--accent);
  padding: 1em;
  color: white;
  text-align: center;
}
#section_3 img {
  border-radius: 50%;
  width: 100px;
  margin-bottom: 20px;
}
#section_3 a {
  color: white;
  text-decoration: underline;
}

/* Contact section */
#section_4 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-left: 30px;
  margin-right: 30px;
}
#section_4 .flex {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

#section_4 h2 {
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0;
}
.iconRow {
  display: flex;
  align-items: center;
  margin: 1.5em 0;
}
.iconRow p {
  padding: 0 1em;
}
.iconRow img {
  width: 50px;
}
#section_4 .twitter {
  margin: 1em auto;
  width: 50%;
  min-width: 300px;
}

@media only screen and (min-width: 700px) {
  #section_4 .flex {
    flex-direction: row;
  }
}

/* Blogs */
#section_5 {
  margin-left: 30px;
  margin-right: 30px;
}
#section_5 h2 {
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0;
}
#section_5 .container {
  display: flex;
  flex-direction: column;
}
#section_5 .blog {
  border-bottom: 1px solid var(--accent);
  margin: 1em 0 0 0;
  padding: 1em;
}
#section_5 .blog:last-child {
  border: 0;
}
#section_5 .link {
  color: var(--accent);
  text-decoration: underline;
}

/* On a computer */
@media only screen and (min-width: 1050px) {
  /* home page */

  /* mini intro */
  #section_1 {
    flex-direction: row;
  }
  #section_1 p {
    text-align: left;
  }

  /* tiles */
  #section_2 {
    flex-direction: row;
  }
  .tile {
    margin: 0;
    margin-right: 30px;
  }
  #section_2 a:last-child {
    margin-right: 0;
  }

  /* about beverley */
  #section_3 {
    flex-direction: row;
    text-align: left;
    justify-content: center;
  }
  #section_3 img {
    margin-right: 20px;
    margin-bottom: 0;
  }
  #section_3 div {
    width: 70%;
  }

  /* contact */
  #section_4 {
    flex-direction: row;
    margin-left: 0;
    margin-right: 0;
  }
  #section_4 .contact {
    width: 30%;
    margin-right: 20px;
  }
  #section_4 .social {
    width: 70%;
  }

  /* Blogs */
  #section_5 {
    margin-left: 0;
    margin-right: 0;
  }
  #section_5 .container {
    flex-direction: row;
  }
  #section_5 .blog {
    border-right: 1px solid var(--accent);
    border-bottom: 0;
    margin: 2em 0 2em 0;
    padding: 0 2em;
  }
  #section_5 .blog:first-child {
    padding-left: 0;
  }
  #section_5 .blog:last-child {
    padding-right: 0;
  }
}
