* {
  margin: 0;
  padding: 0;
}

body {
  background-image: url(../img/b2.jpg);
  background-size: contain;
  font-family: Inter;
}

.main-container {
  display: grid;
  height: 100vh;
  grid-template-rows: 1fr 1fr 8fr 1fr;
  grid-template-areas:
    "nav"
    "header"
    "main"
    "footer";
}

aside {
  display: none;
}

nav {
  grid-area: nav;
  display: flex;
  justify-content: space-between;
  text-align: center;
  align-items: center;
  background-image: linear-gradient(to right, #243949 0%, #517fa4 100%);
}

nav img {
  width: 80px;
  margin: 5px 5px 1px 5px;
}

.index {
  font-size: 20px;
  color: #fdf0d3;
  padding-right: 10px;
}

.index a {
  color: #fdf0d3;
  text-decoration: none;
}

header {
  grid-area: header;
  justify-content: center;
  align-items: center;
  background-image: url(../img/header3.png);
  background-size: cover;
}

header h1 {
  color: rgb(77, 88, 117);
  font-size: 35px;
  font-weight: normal;
  justify-content: center;
  text-align: center;
  padding-top: 20px;
}

header p {
  color: rgb(77, 88, 117);
  font-size: 17px;
  font-weight: normal;
  text-align: center;
  padding: 20px 30px;
}

main {
  grid-area: main;
  display: grid;
  justify-content: center;
  align-items: center;
}

.box {
  width: 375px;
  height: 300px;
  margin-top: 10px;
  animation-name: box;
  animation-iteration-count: infinite;
  animation-duration: 20s;
}

@keyframes box {
  0% {
    background-image: url(../img/r1.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  20% {
    background-image: url(../img/r2.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  40% {
    background-image: url(../img/r3.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  60% {
    background-image: url(../img/r4.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  80% {
    background-image: url(../img/r5.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  100% {
    background-image: url(../img/r6.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}

main button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(77, 88, 117);
  border-color: #fdf0d3;
  color: #fdf0d3;
  margin: 10px;
  font-size: 30px;
  transition: background-color color 0.3s ease;
}

main button:hover {
  background-color: #9c3769;
  color: #fabada;
}

footer {
  grid-area: footer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-image: linear-gradient(to right, #243949 0%, #517fa4 100%);
}

footer h4 {
  color: #fdf0d3;
  font-size: 15px;
  font-weight: lighter;
  padding: 5px;
}

footer p {
  color: #fdf0d3;
  font-size: 12px;
  font-weight: lighter;
  padding: 5px;
}

footer a {
  color: #fdf0d3;
  text-decoration: none;
}

footer h5 {
  color: #fdf0d3;
  font-size: 12px;
  font-weight: lighter;
  padding: 5px;
}

@media (min-width: 576px) {
  .main-container {
    grid-template-columns: 1fr 5fr;
    grid-template-rows: 1fr 1fr 9fr 1fr;
    grid-template-areas:
      "nav header"
      "aside main"
      "aside main"
      "footer footer";
  }

  nav {
    justify-content: center;
  }

  nav img {
    width: 15vh;
  }

  .index {
    display: none;
  }

  aside {
    grid-area: aside;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    background-color: #fdf0d3;
    color: rgb(77, 88, 117);
  }
  
    aside a {
    color: rgb(77, 88, 117);
    text-decoration: none;
  }

  button {
    background-color: transparent;
    color: rgb(77, 88, 117);
    margin: 10px;
    padding: 6px;
    font-size: 22px;
    font-weight: lighter;
    border-color: transparent;
    transition: color 0.3s ease-in;
  }

  button:hover {
    color: rgb(173, 121, 57);
  }

  .box {
    width: 600px;
    height: 400px;
    margin-top: 30px;
    animation-name: box;
    animation-iteration-count: infinite;
    animation-duration: 20s;
  }
}
