body {
  width: 80%;
  margin: 30px auto;
  font-family: sans-serif;
}

h3 {
  text-align: center;
  font-size: 1.65em;
  margin: 0 0 30px;
}

div {
  display: flex;
  flex-wrap: wrap;
}

a {
  display: inline-block;
  margin-bottom: 8px;
  width: calc(50% - 4px);
  margin-right: 8px;
  text-decoration: none;
  color: black;
}

a:nth-of-type(2n) {
  margin-right: 0;
}

@media screen and (min-width: 50em) {
  a {
    width: calc(25% - 6px);
  }

  a:nth-of-type(2n) {
    margin-right: 8px;
  }

  a:nth-of-type(4n) {
    margin-right: 0;
  }
}

a:hover img {
  transform: scale(1.15);
}

figure {
  margin: 0;
  overflow: hidden;
}

figcaption {
  margin-top: 15px;
}

img {
  border: none;
  max-width: 100%;
  height: auto;
  display: block;
  background: #ccc;
  transition: transform 2s ease-in-out;
}

.p a {
  display: inline;
  font-size: 13px;
  margin: 0;
  text-decoration: underline;
  color: blue;
}

.p {
  text-align: center;
  font-size: 13px;
  padding-top: 100px;
}

.bottle_gradient {
  background: -moz-linear-gradient(top, rgba(66,100,122,1) 0%, rgba(32,124,202,0.57) 49%, rgba(41,137,216,0.56) 50%, rgba(30,87,153,0.12) 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top, rgba(66,100,122,1) 0%,rgba(32,124,202,0.57) 49%,rgba(41,137,216,0.56) 50%,rgba(30,87,153,0.12) 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, rgba(66,100,122,1) 0%,rgba(32,124,202,0.57) 49%,rgba(41,137,216,0.56) 50%,rgba(30,87,153,0.12) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#42647a', endColorstr='#1f1e5799',GradientType=0 ); /* IE6-9 */
}

#moon {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  box-shadow: 30px 30px 0 0 grey;
  z-index: -1;
  position: absolute;
}

#rectangle {
	height: 5px;
	background: grey;
  position: relative;
  bottom: 10%;
  left: 0;
  margin-top: 10px;
}

#rectangle2 {
	height: 5px;
	background: grey;
  position: relative;
  bottom: 10%;
  right: 0;
  margin-top: 10px;
}
