.alert {
  padding: 20px;
  background-color: #f44336;
  color: white;
  opacity: 0;
  position: fixed;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 80%;
  max-width: 400px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 5px;
  transition: top 0.5s ease, opacity 0.5s ease;
  margin-top: 7%;
}

.alert.show {
  top: 50px;
  opacity: 1;
}

.closebtn {
  margin-left: 15px;
  color: white;
  font-weight: bold;
  float: right;
  font-size: 20px;
  line-height: 20px;
  cursor: pointer;
  transition: color 0.3s;
}

.closebtn:hover {
  color: #000;
}