body {
  margin-top: 20px;
  margin-bottom: 20px;
  color: #fff;
  font-family: 'Raleway',sans-serif;
  font-weight: 600;
  background: linear-gradient(to right,  #DC2424, #FF4E50, #edc821,  #a8e063, #23D5AB, #23A6D5, #833ab4,#d450d0);
  background-size: 500% 500%;
  animation: gradientChange 30s ease infinite;
}

@keyframes gradientChange {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}

#grid-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 50px 1fr 50px;
  grid-template-areas:
    'header'
    'main'
    'footer';
  height: 20vh;
}

.center {
  display: block;
  margin: 0 auto;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.greeting {
  font-size: 40px;
  font-weight: 900;
  color: #fff;

   /*transition: transform 1s;*/
}

.greeting::after {
  transform: translateX(-150%);
}

.description {
  font-size: 16px;
  text-align:right;
  padding-right: 12px;
}

.poweredby {
  font-weight: bold;
  font-size: 14px;
}
.day {
  color: #71313F;
  font-weight: 900;
}

#date {
  color: #fff;
}

.header {
  color: #fff;
  grid-area: header;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin-left: 10px;
}

.main-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: 175px;
  grid-auto-columns: 175px;
  grid-gap: 3px;
  margin: 20px 30px 30px 30px;
}

.imagecard {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #641414;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.19);
  text-align: center;

}

.titlecard {
  display: flex;
  position:absolute;
  z-index: 3;
  font-size: 16px;
  text-align:center;
  background-color: rgba(0,0,0 ,0.5);
  background-size: 100px 50px;
}

.gallery__img {
    width: 100%;
    height: 100%;
    z-index:1;
    object-fit: cover;
    opacity: 0.8;
}

.footer_text {
  text-align: center;
  font-size: 14px;
  padding-bottom: 10px;
}

a {
  color: #fff;
  text-decoration: none;
}

a:hover {
  opacity: 0.6;
}

/*-------------MEDIA QUERIES-----------------*/

/*
  ##Device = Desktops
  ##Screen = 1441px to higher resolution desktops
*/
@media (min-width: 1441px) {
  body {
    margin-top: 40px;
    margin-bottom: 30px
  }
  .main-overview {
    padding-top: 10px;
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    grid-auto-rows: 290px;
    grid-auto-columns: 290px;
  }

  .titlecard {
    font-size: 25px;
  }

  .greeting {
    font-size: 60px;
  }

  .description {
    font-size: 22px;
  }

  .titlecard {
    font-size: 30px;
  }



}

/*
  ##Device = Laptops, Desktops
  ##Screen = B/w 1025px to 1440px
*/

@media (min-width: 1240px) and (max-width: 1440px) {
  .main-overview {
    grid-template-columns: repeat(5, minmax(220px, 1fr));

  }
}
