.modal {
  z-index: 1000;
  position: absolute !important;
  width: 90%;
  width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: none;
}

.modal.visible {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  pointer-events: auto !important;
}
.modal-content {
  background-color: #e8eaed;
  border: 1px solid #e0e0e0;
  border-left: none;
  border-bottom: none;
  box-shadow: 3px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 7px 12px;
  width: 100%;
  transition: opacity 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.modal-header i {
  color: #d94412;
  font-size: 16px;
  margin-right: 8px;
}

.modal-header h2 {
  margin: 0;
  font-size: 0.7rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 2px 4px;
  border-radius: 5px;
  background-color: #c5c5c5;
  display: inline-flex;
  align-items: center;
}

.modal-header h2::before {
  content: "#";
  margin-right: 4px;
  color: black;
}

.modal-header h2:hover {
  background-color: #d94412;
  color: white;
}

.modal-header h2:hover::before {
  color: white;
}
.modal-content__definition {
  font-size: 14px;
  line-height: 1.6;
  color: #4a4a4a;
  text-align: justify;
  margin-bottom: 16px;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #d94412;
}

.modal-link {
  display: inline-block;
  padding: 3px 6px;
  background-color: #d94412;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.modal-link:hover {
  background-color: #b23600;
}

.hidden {
  display: none !important;
}

.modal-aliases {
  margin-top: 8px;
  font-size: 12px;
}

.modal-aliases h3 {
  font-size: 12px;
  margin-bottom: 4px;
  color: #333;
}

.modal-aliases ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.modal-aliases li {
  margin-bottom: 2px;
}

.alias-link {
  font-size: 0.45rem;
  font-weight: bold;
  color: #333 !important;
  text-decoration: none;
  background-color: #c5c5c5;
  padding: 2px 2px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-items: self-start;
}

.alias-link::before {
  content: "#";
  margin-right: 2px;
  color: black;
}

.alias-link:hover {
  background-color: #d94412;
  color: white !important;
}

.alias-link:hover::before {
  color: white;
}
