.msg {
  position: fixed;
  overflow: hidden;
  width: 90%;
  text-align: left;
  font-weight: bold;
  opacity: 0;
  right: 0;
  border-radius: 5px;
  margin: 5px auto;
  word-break: break-all;
  transition: 0.3s;
  filter: drop-shadow(3px 3px 3px rgba(0, 0, 0, 0.185));
}

.msg-suc {
  background: rgba(201, 253, 206, 0.918);
}

.msg-suc__text {
  color: #28973A;
}

.msg-err {
  display: table;
  background: rgba(255, 214, 214, 0.918);
}

.msg-err__text {
  color: #BC1E1E;
}

.msg-err__btn--close {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  width: 10px;
  font-size: 40px;
  border-left: solid 1px rgba(0, 0, 0, 0.102);
  padding: 0px 25px 0px 25px;
  transition: 0.3s;
  cursor: pointer;
}

.msg-err__btn--close:hover {
  color: #FFFFFF;
  background: #ffa9a9;
}

@media (min-width: 768px) {
  .msg-suc {
    left: 50px;
  }

  .msg-err {
    left: 50px;
  }

  input:checked ~ .main-content .msg-suc {
    width: calc(90% + 50px - 180px);
    left: 180px;
  }

  input:checked ~ .main-content .msg-err {
    width: calc(90% + 50px - 180px);
    left: 180px;
  }
}

@media (max-width: 767.98px) {
  .msg-suc {
    left: 0;
  }

  .msg-err {
    left: 0;
  }
}

.left-0 {
  left: 0 !important;
}

