body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto 12rem auto;
  grid-template-areas: 'sidebar sidebar' 'article article' 'footer footer' 'links links';
  font-size: 19px;
  margin-top: 0px;
  font-family: "Lato", sans-serif;
  margin: 0 auto;
  background-color: #e6e4d9; }

aside {
  grid-area: sidebar;
  width: 100%;
  background-color: #e0b4c3; }

#leftMenu {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding: 0 auto;
  border-bottom: solid 3px;
  border-color: #ac3b61; }
  #leftMenu img {
    margin: 10px; }
  #leftMenu p {
    padding: 10px; }
  #leftMenu a {
    display: block;
    color: deeppink;
    text-align: center;
    text-decoration: none;
    font-weight: 700; }

.bounce {
  -moz-animation: bounce 3s infinite;
  -webkit-animation: bounce 3s infinite;
  animation: bounce 3s infinite; }

@-moz-keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    -moz-transform: translateY(0);
    transform: translateY(0); }
  40% {
    -moz-transform: translateY(-30px);
    transform: translateY(-30px); }
  60% {
    -moz-transform: translateY(-15px);
    transform: translateY(-15px); } }

@-webkit-keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0); }
  40% {
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px); }
  60% {
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px); } }

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0); }
  40% {
    -moz-transform: translateY(-30px);
    -ms-transform: translateY(-30px);
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px); }
  60% {
    -moz-transform: translateY(-15px);
    -ms-transform: translateY(-15px);
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px); } }

main {
  grid-area: article;
  padding: 0.5rem; }

.main {
  display: flex;
  flex-direction: column;
  flex-basis: 60%; }

.depan {
  display: flex;
  flex-direction: column; }

.depan img {
  align-self: center;
  background-color: #cec9c3;
  box-shadow: 0 4px 5px black; }

.pieGallery {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start; }

.pieCard {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  background-color: #cec9c3;
  box-shadow: 0 2px 4px black;
  margin: 0.2rem;
  padding: 0.5rem; }

.pieCard img {
  height: 200px;
  align-self: center; }

.cardRow {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center; }

.box {
  width: 200px;
  height: 100px;
  background-color: #007f24;
  margin: 5px 10px; }

#mainPie {
  display: flex;
  flex-direction: column;
  flex-basis: 60%;
  margin-bottom: 10px; }

.pieRow {
  display: flex;
  flex: row;
  margin-bottom: 40px;
  flex-wrap: wrap;
  align-items: center;
  padding-right: 0.3rem;
  background-color: #cec9c3;
  box-shadow: 0 2px 4px black; }
  .pieRow div {
    flex-grow: 2;
    padding-left: 0.5rem; }
  .pieRow small {
    flex-shrink: 3; }
  .pieRow h5,
  .pieRow p {
    margin: 0; }
  .pieRow a {
    color: white;
    text-decoration: none; }

h1,
h2,
h3 {
  font-family: "Lato", sans-serif;
  font-size: 40px; }

footer {
  grid-area: footer;
  width: 100%;
  background-color: #e0b4c3;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  font-size: small; }

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-emphasis: none;
  padding-left: 10px;
  padding-bottom: 10px; }

#mainHeader {
  grid-area: links; }

nav {
  width: 100%;
  height: 100vh;
  margin: 0 auto;
  padding-top: 10px;
  background-color: #ac3b61; }
  nav li {
    color: #ac3b61;
    font-family: "Lato", sans-serif;
    font-size: 17px;
    font-weight: 700;
    display: block;
    text-align: center;
    margin: 0.5rem 2%;
    padding: 0.5rem;
    background-color: #e0b4c3;
    border-radius: 0.5rem;
    color: #ac3b61; }
  nav a {
    display: block;
    color: white;
    text-align: center;
    padding: 16px;
    text-decoration: none;
    font-weight: 700; }
  nav span {
    display: block;
    color: white;
    text-align: center;
    padding: 16px;
    text-decoration: none;
    font-weight: 700; }

nav > ul {
  list-style-type: none;
  margin: 0;
  padding: 0; }

header,
section,
footer,
aside,
nav,
main,
article,
figure {
  display: block; }

@media only screen and (min-width: 35em) {
  .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 3rem 8rem auto auto auto 6rem;
    grid-template-areas: 'app app' 'header header' 'links links' 'article article' 'sidebar sidebar' 'footer footer';
    margin: 0 auto;
    padding: 10px;
    border: solid 1px #ccc; } }

@media only screen and (min-width: 64em) {
  body {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 1fr;
    grid-template-rows: max-content auto max-content;
    grid-template-areas: 'links links links links' '. sidebar article .' '. footer footer .';
    justify-content: center;
    margin: 0 auto;
    padding: 2px;
    background-color: transparent; }
  nav {
    height: auto;
    background-color: #ac3b61;
    border-bottom: 4px solid #ecc7d3; }
    nav ul {
      display: grid;
      grid-template-columns: repeat(12, 9rem);
      grid-template-rows: 3rem;
      list-style-type: none; }
    nav li {
      color: #302a2c;
      background-color: #e0b4c3; }
    nav .lista {
      grid-column: 3; }
    nav a {
      padding: 0;
      color: #302a2c; }
    nav a:hover {
      color: coral; }
    nav span {
      padding: 0;
      color: #ac3b61; }
  main {
    background-color: #e6e4d9;
    border-right: 1px solid #746e4c;
    border-bottom: 3px solid #746e4c; }
  footer {
    background-color: #ac3b61;
    margin-top: 0;
    color: #fff; } }
