/* Modal Container */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 200; /* Sit on top of everything */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
  font-family: 'Roboto', sans-serif;
  text-align: left;
}

/* Modal Content Box */
.modal-content {
  background-color: #fefefe;
  margin: 5% auto; /* 5% from top and centered */
  padding: 0;
  border: 1px solid #888;
  width: 60%; /* Could be more or less, depending on screen size */
  max-width: 800px;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

/* Modal Header */
.modal-header {
  background-color: #404d68;
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Close Button */
.modal-close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
  color: #fff;
  text-decoration: none;
}

/* Modal Body */
.modal-body {
  padding: 20px;
  overflow-y: auto;
  color: #333;
  line-height: 1.5;
  font-size: 14px;
}

.modal-body h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  color: #404d68;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
}

.modal-body p {
  margin-bottom: 12px;
}

.modal-body ul {
  margin-bottom: 14px;
  padding-left: 20px;
}

.modal-body li {
  margin-bottom: 6px;
}

/* Wiki Table Styles */
.wiki-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}

.wiki-table th, .wiki-table td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}

.wiki-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.wiki-table tr:nth-child(even) {
  background-color: #f9f9f9;
}
