body, main {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #f4f4f4;
    color: black; 
    padding: 0;
}

.hero {
    text-align: center;
    padding: 100px 20px;
    background-color: #f4f4f4;
}

.hero h1 {
    font-size: 3em;
    color: #333;
}

.hero p {
    font-size: 1.2em;
    color: #666;
    max-width: 600px;
    margin: 20px auto;
}

input[type="text"], button {
    margin: 10px 0;
}

.styled-button, button, input[type="submit"] {
    display: inline-block;
    padding: 10px 20px;
    background-color: #002E5D;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #002E5D;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
}

.cta-button:hover, .styled-button:hover, button:hover, input[type="submit"]:hover {
    background-color: #001f3e;
}

.content-section {
    padding: 50px 20px;
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.content-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.feature-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.feature-item {
    flex: 1;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-item img {
    width: 160px;
    height: auto;
    margin-bottom: 15px;
}

.tutorial {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.tutorial-section {
    margin-bottom: 40px;
    text-align: left;
}

.tutorial h1 {
    text-align: center;
}

.figure {
    text-align: center;
    margin: 20px 0;
}

.figure img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}

hr {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 40px 0;
}

.modal {
    position: fixed;
    justify-content: center;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
}

.modal-content {
    background-color: white;
    margin: 8% auto;
    padding: 20px;
    width: 50%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-height: 90vh; /* Set a max height relative to the viewport height */
    overflow-y: auto; /* Add a scrollbar if content exceeds max-height */
}

.modal .columns {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.modal .column {
    flex: 1;
}

.main-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

thead {
    position: sticky;
    top: 0;
    background-color: #f2f2f2;
}

th, td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #e9ecef;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

th:hover {
    background-color: #cfd8dc;
}

td a {
    color: #002e5d;
    text-decoration: none;
}

td a:hover {
    text-decoration: underline;
}

.page-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    padding: 20px;
    min-height: calc(100vh - 196px); 
}

.sidebar {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: calc(100vh - 196px);
}

.sidebar h2 {
    font-size: 1.25em; 
    margin-top: 0;
    margin-bottom: 10px;
    color: #333; 
    border-bottom: 2px solid #002e5d; 
    padding-bottom: 5px;
}

.normal {
    color: black;
}

.variant {
    color: red;
}

span {
  white-space: normal; 
  word-wrap: break-word; 
}

p {
  white-space: normal; 
  word-wrap: break-word; 
}

.hidden {
    display: none;
}

.visible {
    display: block;
    position: absolute;
    margin-left: 20px; 
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 20px;
}

img {
    display: block;
    margin: 20px auto;
}

#dynamic-content p span {
    display: inline-block; 
    white-space: pre;
}

#dynamic-content p {
    word-break: break-all; 
}

#chalf-img {
    width: 800px;
    height: auto;
    display: block;
    margin: 20px auto;
}

.search-container {
    text-align: center;
    margin-bottom: 20px;
}

.search-container input {
    width: 50%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.professional-list {
    list-style-type: none;
    counter-reset: custom-counter;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.professional-list li {

    counter-increment: custom-counter;
    font-family: Arial, sans-serif;
    font-size: 1.1em;
    line-height: 1.6;
    padding: 15px 0;
    position: relative;
    padding-left: 40px; 
    border-bottom: 1px solid #e0e0e0; 
}

.professional-list li::before {
    content: counter(custom-counter) ".";
    position: absolute;
    left: 0;
    top: 15px;
    font-weight: bold;
    font-size: 1.2em;
    color: #002e5d;
}

.professional-list li:last-child {
    border-bottom: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: #002E5D;
    animation: spin 1s ease-in-out infinite;
    -webkit-animation: spin 1s ease-in-out infinite;
}

.htmx-indicator {
    opacity: 0;
    transition: opacity 500ms ease-in;
}

.htmx-request .htmx-indicator {
    opacity: 1;
}

.htmx-request.htmx-indicator {
    opacity: 1;
}

@keyframes spin {
    to { -webkit-transform: rotate(360deg); }
}

@-webkit-keyframes spin {
    to { -webkit-transform: rotate(360deg); }
}

#chalf-graph {
    min-height: 400px; /* Adjust this value as needed */
    width: 100%;
    margin-bottom: 20px; /* Optional: adds space below the graph */
}
