body {
  margin: 0;
  padding: 0;
  color: #ffffff;
  display: flex;
  line-height: 1.1;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  flex-direction: column;
  background-image: linear-gradient(#2d2d2d, #1c1c1c);  
  font-family: 'Exo 2', sans-serif;
}

small { 
  font-size: large;
}

h1 {
  text-align: center;
  line-height: 0.75;
}

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

img {
  max-width: 100%;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.box {
  background-color: #f1f1f1;
  color: #000000;
  padding: 1rem 1rem;
  display: flex;
  width: 60%;
  flex-direction: column;
  border-radius: 1.7rem;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1);
  background: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)), url(./images/bg.jpg);
  background-position: center;
  background-size: cover;
}

.information {
  display: flex;
  padding: 0.2rem 1rem;
  position: relative;
}

.info:first-child {
  flex-grow: 1;
}

.info:last-child .detail{
  order: -1;
  text-align: right;
}

.info {
  display: flex;
  align-items: center;
}
.detail {
  margin: 0 1rem;
}
.detail p {
  margin: 5px 0;
}

.name {  
  font-weight: 600;
}


.date {
  margin-top: 10rem;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  flex-direction: column;
  font-size: 20pt;
  font-weight: 600;
}


.thank {
  text-align: center;
  margin-block-start: 0;
  margin-bottom: 0;
  font-weight: 300;
  color: #000000;
  opacity: 0.8;
}

.heart-box img{
  position: absolute;
  width: 70px;
  top: calc(50% - 35px);
  left: calc(50% - 35px);
  animation: heartBeat .96s backwards ease infinite;
  transform: scale(1);
}

@keyframes heartBeat {
  0% {
    transform: scale(0.9);
  }

  50% {
    transform: scale(1);
  }
  
  100% {
    transform: scale(0.9);
  }
}


@media screen and (max-width: 998px) { 
  .box {
    padding: 1rem 1rem;
    margin-bottom: 2rem;
    width: 80%;
  }
  .information {
    flex-direction: column;
    align-items: center;
    max-height: 400px;
  }
  .info {
    margin-bottom: 3rem;
    flex-direction: column;
  }
  .detail {
    margin-top: 0.3rem;
  }
  .info:last-child .detail{
    order: 1;
  }

  .info:first-child {
    margin-bottom: 6rem;
  }
  .info:last-child {
    margin-bottom: 0;
  }

  .date {
    margin-top: 2rem;
  }

  .name {
    text-align: center;
  }
  
  .bd {
    text-align: center;
  }
  .time {
    margin-top: 1rem;
    
  }
  .thank {
    margin-top: 0;
  }
}













