body {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: sans-serif;
}

#container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

#editor {
  width: 50%;
  height: 100vh;
  min-width: 300px;
  resize: horizontal;
  overflow: auto;
  border-right: 1px solid #ccc;
}

#preview-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 300px;
  height: 100vh;
}

#preview {
  flex: 1;
  width: 100%;
  border: none;
}

#actions {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px;
  text-align: center;
  border-top: 1px solid #ccc;
  background: #f9f9f9;
}

#publish {
  background-color: red;
  columns: white;
  height: 50px;
}

.button {
  display: block;
  padding: 0.4rem 0.8rem;
  font-size: 1rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(145deg, #007bff, #0056b3);
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

/* Modal Overlay */
.modal {
  display: none;
  /* By default hidden */
  position: fixed;
  /* Stay in place */
  z-index: 1000;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.7);
  /* Black w/ opacity */
  justify-content: center;
  /* Center horizontally */
  align-items: center;
  /* Center vertically */
  backdrop-filter: blur(5px);
  /* Optional: blur background */
}

/* Modal Content Box */
.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  /* Max width for better readability */
  width: 90%;
  /* Responsive width */
  text-align: center;
  position: relative;
  animation: fadeInScale 0.3s ease-out;
  /* Simple entry animation */
}

/* Close Button */
.close-button {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus {
  color: #333;
  text-decoration: none;
}

/* Modal Title & Message */
#modal-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 15px;
}

#modal-message {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 25px;
}

/* Link Groups */
.link-group {
  margin-bottom: 20px;
  text-align: left;
}

.link-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.link-group input[type="text"] {
  width: calc(100% - 80px);
  /* Adjust width for copy button */
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.95rem;
  font-family: monospace;
  background-color: #eee;
  cursor: text;
  color: #0056b3;
  /* Make link text prominent */
}

.copy-btn {
  width: 70px;
  padding: 10px 5px;
  margin-left: 5px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.copy-btn:hover {
  background-color: #0056b3;
}

/* Action Button in Modal */
.modal-action-btn {
  padding: 12px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  background-color: #28a745;
  /* Success green */
  color: white;
  border: none;
  border-radius: 50px;
  /* Pill shape */
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  margin-top: 20px;
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.2);
}

.modal-action-btn:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(40, 167, 69, 0.3);
}

/* Animations */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}