/* General body and container styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h1 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #0056b3;
}

h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #444;
}

/* Form label and input styling */
label, div {
    display: block;
    font-weight: normal;
    margin-bottom: 5px;
    color: #555;
    font-size: 1em; /* Ensures uniform font size between labels and divs */
}

input[type="text"],
input[type="url"],
input[type="number"],
textarea,
select {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #999;
    border-radius: 4px;
    font-size: 1em;
    background-color: #f9f9f9; /* Less bright */
    margin-right: 20px; /* Added margin on the right */
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: #007BFF;
    outline: none;
}

/* Button styling */
button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1em;
}

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

/* Tooltip styling */
.label-container {
    display: flex;
    align-items: center;
}

.info-icon {
    margin-left: 5px;
    font-size: 1.2em;
    color: #007BFF;
    cursor: help;
}

.label-container .info-icon {
    font-size: 1.2em; /* Adjust size as needed */
    cursor: pointer; /* Show pointer cursor on hover */
    margin-left: 5px; /* Adjust spacing as needed */
    position: relative; /* Required for tooltip positioning */
}

.info-icon .tooltiptext {
    visibility: hidden;
    width: 600px; /* Adjust as needed */
    background-color: #555;
    color: #fff;
    text-align: left; /* Adjust text alignment as needed */
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position above the info icon */
    left: 50%;
    margin-left: -100px; /* Center the tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Adjust as necessary */
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.info-icon:hover .tooltiptext {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Information Structure Section: Four Columns */
.info-structure-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* Four equal columns */
        gap: 20px; /* Adjust the space between the columns */
    }
    .info-structure-grid div {
        border: 1px solid #ccc;
        padding: 10px;
    }
    .checkbox-container {
        display: block; /* Ensure checkbox and label are on the same line, and each pair starts on a new line */
        margin-bottom: 5px; /* Add spacing between checkbox-label pairs */
    }
    input[type="checkbox"] {
        margin-right: 5px; /* Space between checkbox and label */
    }
    h4 {
        margin-bottom: 10px;
    }

/* Similarity Links Section */
.link-fields {
  display: flex;
  gap: 10px; /* Space between field groups */
  margin-bottom: 15px; /* Space between rows */
}

.field-group {
  display: flex;
  flex-direction: column; /* Stack label on top of input/select */
}

/* First field takes up half the space */
.field-half {
  flex: 1; /* 50% width of the row */
  margin-right: 20px;
}

/* Remaining fields share the other half equally */
.field-third {
  flex: 0.33; /* Each takes approximately 1/3 of the remaining space */
}

.similarityLink_Cx {
  width: 100%; /* Full width of the field container */
}

.field-group select,
.field-group input {
  width: 100%; /* Full width for all inputs and selects */
}

/* Optional spacing between label and field */
.field-group label {
  margin-bottom: 5px;
}

/* Examples Section */
.example {
    border-top: 1px solid #ccc;
    padding-top: 20px;
    margin-top: 20px;
}

/* Styling for forms and sections */
textarea {
    resize: none;
}

textarea::placeholder {
    font-style: italic;
}

textarea:focus {
    border-color: #007BFF;
}

input[type="url"]::placeholder {
    font-style: italic;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#ExamplesContainer {
    margin-top: 20px;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    .info-structure-grid,
    .similarityLink {
        grid-template-columns: 1fr;
    }

    .field-group {
        display: block;
        width: 100%;
    }

    .field-half,
    .field-third {
        width: 100%;
    }
}

/* Table styling */
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* Table header styling */
th {
    background-color: #b3c5ff;
    color: #3d3d3d;
    font-weight: bold;
    text-align: center;
    padding: 12px;
    border: 1px solid #ddd;
}

/* Table cell styling */
td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

/* Hover effect for rows */
tr:hover {
    background-color: #f5f5f5;
}

/* Colors for construction elements */
:root {
    --highlight-padding: 2px 4px;
    --highlight-border-radius: 3px;
    --tooltip-bg: #333;
    --tooltip-color: #fff;
    --tooltip-padding: 4px 8px;
    --tooltip-border-radius: 4px;
    --tooltip-font-size: 14px;
}
ce1, ce2, ce3, ce4, ce5, ce6, ce7, ce8, ce9, ce10, ce11, ce12 {
    padding: var(--highlight-padding);
    border-radius: var(--highlight-border-radius);
    position: relative;
    display: inline-block;
}

ce1 {
    background-color: #F94144;
    }
ce2 {
    background-color: #F8961E
  }
ce3 {
    background-color: #F9C74F
  }
ce4 {
    background-color: #90BE6D
  }
ce5 {
    background-color: #43AA8B;
  }
ce6 {
    background-color: #577590;
  }
ce7 {
    background-color: #FFD1DC;
  }
ce8 {
    background-color: #E6E6FA;
  }
ce9 {
    background-color: #98FB98;
  }
ce10 {
    background-color: #F0E68C;
  }
ce11 {
    background-color: #FFB6C1;
  }
ce12 {
    background-color: #FFA07A;
  }

ce1::after {
    content: "Element 1";
    }
ce2::after {
    content: "Element 2";
    }
ce3::after {
    content: "Element 3";
    }
ce4::after {
    content: "Element 4";
    }
ce5::after {
    content: "Element 5";
    }
ce6::after {
    content: "Element 6";
    }
ce7::after {
    content: "Element 7";
    }
ce8::after {
    content: "Element 8";
    }
ce9::after {
    content: "Element 9";
    }
ce10::after {
    content: "Element 10";
    }
ce11::after {
    content: "Element 11";
    }
ce12::after {
    content: "Element 12";
    }

/* Tooltip styling for all ceX elements */
ce1::after,
ce2::after,
ce3::after,
ce4::after,
ce5::after,
ce6::after,
ce7::after,
ce8::after,
ce9::after,
ce10::after,
ce11::after,
ce12::after {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--tooltip-bg);
    color: var(--tooltip-color);
    padding: var(--tooltip-padding);
    border-radius: var(--tooltip-border-radius);
    font-size: var(--tooltip-font-size);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

ce1:hover::after,
ce2:hover::after,
ce3:hover::after,
ce4:hover::after,
ce5:hover::after,
ce6:hover::after,
ce7:hover::after,
ce8:hover::after,
ce9:hover::after,
ce10:hover::after,
ce11:hover::after,
ce12:hover::after {
    opacity: 1;
}


.chart-container {
      background-color: #e8e8e8;
      padding: 20px;
      border-radius: 8px;
      margin: 20px auto;
      max-width: 800px;
    }
    .chart-title {
      text-align: center;
      font-size: 18px;
      font-weight: bold;
      margin-bottom: 10px;
    }