body {
  flex-direction: column;
  pad: 0;
  margin: 0;
}

.title-banner {
  width: 100%;
  box-sizing: border-box;
  background-color: #f8f8f8;
  padding: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.title-banner h1 {
  margin: 0;
  font-size: 1.5em;
  color: #333;
}

#info-button {
  padding: 0.5em 1em;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#info-button:hover {
  background-color: #0056b3;
}

#content {
  display: flex;
  flex-wrap: wrap;
  pad: 0;
  margin: 0;
}

.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.property-wrapper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 1em;
  border: 1px solid #ddd;
  margin: 1em;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  flex: 1;
  min-width: 300px;
}

.summary-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  margin-bottom: 20px;
}

.summary-entries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.summary-header {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 5px;
}

.summary-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 2px;
  padding-bottom: 2px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  flex: 1 1 220px;
  box-sizing: border-box;
}

.summary-label {
  font-weight: normal;
  margin-right: 2px;
}

.summary-value {
  text-align: right;
}

.inputs-div {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.random-variable-inputs-container {
  display: flex;
  align-items: center;
  gap: 0.1em;
  width: 100%;
  box-sizing: border-box; /* Include padding and border in total width */
}

.input-field.random-variable-mean-input,
.input-field.random-variable-stddev-input {
  flex: 1;
  padding: 0.5em;
  max-width: 80px;
  box-sizing: border-box; /* Include padding and border in the total width */
}

.random-variable-plusminus-span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.4em;
  font-size: 1.2em;
}

.input-group-outer {
  padding-bottom: 16px;
  position: relative;
}

.input-group-outer h1 {
  font-size: 1.1em;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.0em;
  margin-top: 0.6em;
  padding: 0;
}

.input-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.input-group-outer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #ccc;
}

.input-div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%; /* Ensure the div takes full width */
  box-sizing: border-box; /* Include padding and border in the total width */
  position: relative; /* For positioning the tooltip box */
}

.input-label {
  width: 100%;
  padding-bottom: 0.5em;
  font-weight: normal;
  font-size: 0.9em;
  color: #333;
  margin-bottom: 0.5em;
  box-sizing: border-box;
  display: inline; /* Inline to allow wrapping */
  position: relative; /* To position the tooltip button */
}

.input-field {
  max-width: 120px;
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box; /* Include padding and border in the total width */
  width: 100%; /* Ensure the input respects the parent's width */
}

.tooltip-button {
  background-color: transparent;
  border: none;
  color: #555; /* Subtle color to blend in */
  cursor: pointer;
  font-size: 0.9em;
  text-decoration: underline; /* Underlined question mark */
  padding: 0;
  margin-left: 0.3em; /* Small space between label text and question mark */
  position: relative;
  display: inline-block;
}

.tooltip-button:hover .tooltip-box {
  display: block;
}

.tooltip-box {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 200px;
  padding: 0.5em;
  background-color: #333;
  color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 1.0em;
  z-index: 100;
  margin-top: 0.5em; /* Space between button and tooltip */
}

.canvas-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1em;
}

.output-canvas {
  max-width: 80em;
  max-height: 40em;
  width: 100%;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
