body {
  font-family: Arial, sans-serif;
  margin: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  background: #111;
  font-size: 14px;
}

nav a {
  color: #fff;
  text-decoration: none;
}

/* Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: flex-end; /* Slide up from bottom */
  justify-content: center;
  z-index: 9999;
}

/* Modal Container */
.modal {
  background: #fff;
  width: 100%;
  max-width: 600px;
  border-radius: 12px 12px 0 0;
  padding: 20px;
  position: relative;
  animation: slideUp 0.4s ease-out;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0%);
    opacity: 1;
  }
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
}

@media (max-width: 600px) {
  .modal {
    font-size: 14px;
  }
  .close-btn {
    font-size: 20px;
  }
}
