@import url("https://fonts.googleapis.com/css2?family=Arizonia&family=Inter&family=Roboto&family=Roboto+Slab&family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 60.25%;
}

.msg {
  max-width: 99%;
  margin: 3.2rem auto;
  padding: 0.8rem;
  border-radius: 1rem;
  background: linear-gradient(
    90deg,
    rgba(28, 108, 212) 32%,
    rgba(30, 179, 210) 100%
  );
  box-shadow: 0 1.8rem 1.5rem rgba(0, 0, 0, 0.09);
  position: relative;
}

.msg-img {
  float: left;
  height: 10rem;
  padding: 0.5rem;
  border-radius: 1rem;
  cursor: pointer;
}

.msg-text {
  font-size: 1.8rem;
  color: white;
  line-height: 1.5;
  font-family: "Inter", serif;
  text-align: justify;
}

.msg-date {
  float: right;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Inter", serif;
}

.msg-heading {
  text-align: center;
  color: white;
  font-size: 2rem;
  font-weight: 700;
  font-family: "Inter", serif;
}

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 200;
  margin: auto;
  transform: scale(0);
  transform: translate(-50%, -50%);
  animation: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.modal-img {
  border-radius: 1rem;
  height: 40rem;
}

.close-modal {
  position: absolute;
  top: 0;
  font-weight: bold;
  border: none;
  cursor: pointer;

  width: 4.8rem;
  height: 4.8rem;
  color: white;
  background: linear-gradient(
    90deg,
    rgba(30, 179, 210) 32%,
    rgba(28, 108, 212) 100%
  );
  box-shadow: inset 0 0 10px rgb(0, 0, 0, 0.5), 0 3px 5px rgb(0, 0, 0, 0.3);
  padding: 0.5rem;
  border-radius: 1rem;
}

.close-modal:hover {
  background: linear-gradient(
    90deg,
    rgba(28, 108, 212) 32%,
    rgba(30, 179, 210) 100%
  );
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 101;
}

@media (max-width: 510px) {
  .show-modal {
    font-size: 0.8em;
  }
  .modal {
    width: 20em;
  }
}

.hidden {
  display: none;
}
