/*========== Modal ==========*/
#modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out;
  z-index: 200;
}

#modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 80%;
  max-width: 500px;
  background: #fff;
  border-radius: 10px;
  padding: 25px 20px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

#modal.active .modal-content {
  transform: scale(1);
}

/* Close Button */
.close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #222;
  background: #fb0;
  padding: 0 12px;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
}

.close:hover {
  background: #e6e6ff;
  color: #000;
}