table {
  width: 98%;
  table-layout: auto;
  border-collapse: collapse;
}
th, td {
  border: 1px solid black;
  padding: 8px;
  text-align: left;
}
th {
  background-color: #f2f2f2;
}

thead th {
  border: 3px solid black;
}

.submitContainer {
  position: relative;
  display: inline-block;
}

/* Spinner styles */
.spinner {
    display: none; /* Hidden by default */
    position: absolute;
    top: 5%;
    left: 30%;
    transform: translate(-50%, -50%);
    border: 8px solid transparent; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-bottom: 8px solid #9834db; /* light grey */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

/*    border: 8px solid #f3f3f3; light grey
    border-top: 8px solid #3498db;  blue
*/

.submitContainer.loading button {
    opacity: 0.5;
}

/* Spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* CSS styles to position radio button groups */
/* display will be flex to show this box on 'show advanced search options' */
.radioGroupContainer {
    display: none; /* Use flexbox to align items horizontally */
    gap: 20px; /* Optional: Add space between the two groups */
    border: 2px solid #000; /* Add a 2px solid black border around the container */
    padding: 10px; /* Optional: Add padding inside the border */
    margin: 5px; /* Optional: Add padding inside the border */
}

.radioGroup {
    display: flex;
    flex-direction: column; /* Arrange radio buttons vertically */
}

.colVertical {
    display: flex;
    flex-direction: column; /* Arrange radio buttons vertically */
}

.formDiv > div, .radioGroupContainer {
    width: 98%;
    box-sizing: border-box;
}

.searchTip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border: 1px solid #888;
    padding: 2px;
    border-radius: 4px;
}

.searchTiptext {
    visibility: hidden;
    width: 600px;
    background-color: #fff;
    color: #000;
    border: 1px solid black;
    text-align: left;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    top: 20px; /* Position below the prompt text */
    right: 0;	/* right border of this pop-up aligns with right border of
                   prompt text */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.searchTip:hover .searchTiptext {
    visibility: visible;
    transition-delay: 0.5s;
    opacity: 1;
}

/* for the pop-up help listings, do not need the list markers */
.noBullets {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#modalWrapper.overlay::before {
    content: " ";
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    background: #000;
    background: rgba(0,0,0,0.7);
}

#modalWindow {
    display: none;
    z-index: 200;
    position: fixed;
    left: 50%;
    top: 50%;
    width: 460px;
    height: 80%;
    overflow: auto;
    padding: 10px 20px;
    background: #fff;
    border: 5px solid #999;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#modalWrapper.overlay #modalWindow {
    display: block;
}

/* allow content in table header cells to overflow to allow tooltip
 *  legend display outside the cell
 */
.dataTable thead tr th {
  overflow: visible;
}

.tooltip {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.dataTable thead tr th:hover .tooltiptext {
  transition-delay: 0.5s;
  visibility: visible;
}

.dataTable thead tr th:hover .tooltiptextright {
  transition-delay: 0.5s;
  visibility: visible;
}

.tooltip .tooltiptext {
  border: 2px solid #000;
  visibility: hidden;
  overflow: visible;
  position: absolute;
  padding: 2px;
  z-index: 5;
  float: left;
  margin: 0 auto;
  height: auto;
  width: 300px;
  color: black;
  left: -10px;
  transform: translate(1px, -110%);
  top: 0;
  background: #ffffff;
  color: #000000;
  font-weight: normal;
}

/* right most two columns have right margins instead of left so as
 *  not to run off the page to the right
 */

.tooltip .tooltiptextright {
  border: 2px solid #000;
  visibility: hidden;
  overflow: visible;
  position: absolute;
  padding: 2px;
  z-index: 5;
  float: right;
  margin: 0 auto;
  height: auto;
  width: 300px;
  color: black;
  right: -10px;
  transform: translate(1px, -110%);
  top: 0;
  background: #ffffff;
  color: #000000;
  font-weight: normal;
}

.highlight {
  background-color: yellow;
  color: black;
  font-weight: bold;
}
