/* General Styles */
body {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items at the top */
    height: 100vh;
    margin: 0;
    padding: 10px; /* Adjust this padding for phone screen padding */
    box-sizing: border-box;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Ensure containers are aligned at the top */
    align-items: center;
    width: 100%;
    max-width: 800px; /* Max width for wide screens */
    padding: 20px; /* Padding around the content */
    box-sizing: border-box;
    padding-top: 200px;
}

#tree-container {
    width: 100%;
    max-height: 300px; /* Max height for wide screens */
}

/* Tree Diagram Styles */
svg {
    width: 100%;
    height: 100%; /* Ensure SVG takes full height */
}

/* Style for nodes */
.node {
    cursor: pointer;
}

/* Style for node circles */
.node circle {
    fill: #999;
    stroke: none; /* Remove the outline */
}

/* Style for node text */
.node text {
    /* font-family: "Times New Roman", Times, serif;
    font-size: 14px; */
    font: 14px;
    /* fill: gray;  */
    fill: black;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Style for links between nodes */
.link {
    fill: none;
    stroke: #555;
    stroke-opacity: 0.4;
    stroke-width: 10px; /* Change line thickness here */
}

/* Highlighted link style */
.highlighted-link {
    stroke: red; /* Change highlighted link color here */
    stroke-width: 3px; /* Change highlighted link thickness here */
}

/* Highlighted text style */
.highlighted-text {
    fill: red; /* Change highlighted text color here */
}

/* Form Styles */
body {
    /* font-family: "Times New Roman", Times, serif; */
    font: 14px sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

.outer-border {
    border: 1px solid #000;
    margin: 20px auto;
    padding: 2.0px;
    max-width: 800px;
    width: 100%;
    margin-top: 50px;
}

.inner-border {
    border: 1px solid #000;
    padding: 2.0px;
}

.container-form {
    width: 100%;
    margin: 0 auto;
}

#content {
    display: flex;
    flex-direction: column;
    gap: 2.0px; /* Consistent gap between all rows */
}

.row {
    display: flex;
    gap: 2.0px; /* gap between columns */
}

.section {
    border: .75px solid #000;
    padding: 5px;
    flex: 1;
    font-size: 14px;
    font-family: "Roboto", sans-serif;
    font-style: normal;
    font-weight: 400;
}

.title {
    /* font-family: "Times New Roman", serif; */
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
    /* font: sans-serif; */
    font-size: 24px;
}

.date {
    /* font-family: "Times New Roman", serif; */
    font-family: "Roboto", sans-serif;
    font-style: italic;
    font-weight: 400;

}

.collab {
    /* font-family: "Times New Roman", serif; */
    font-family: "Roboto", sans-serif;
    font-style: italic;
    font-weight: 400;
}

#images img {
    width: 100%;
    display: block;
}

/* Responsive styles for phone screens */
@media only screen and (max-width: 600px) {
    .container {
        padding: 10px; /* Adjust this padding for phone screen padding */
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 120px;
    }

    .node text {
        font-size: 8px; /* Adjust font size for tree nodes on phone screens */
    }

    #tree-container {
        max-height: 150px; /* Ensure the tree container does not exceed 110px on small screens */
    }

    .link {
        stroke-width: 4px; /* Change line thickness here */
    }

    .section {
        font-size: 8px;
    }
    .title {
        font-size: 12px;
    }
}
