/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: white;
    color: black;
    font-family: 'Times New Roman';
    font-size: 15px;
    line-height: 1.4;
    overflow-x: hidden;
}

.container {
    position: relative;
    width: 100vw;
    height: 1800vh;
    min-height: 1800vh;
}

/* Title section */
.title-section {
    font-family: 'Roboto';
    font-weight: 300;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    background-color: white;
    padding: 50px;
}

h2 {
    font-family: 'Roboto';
    font-weight: 300;
    font-size: 55px;
    margin-bottom: 10px;
}

h3 {
    font-weight: 300;
    font-size: 30px;
    margin-bottom: 10px;
}

/* Bibliography section */
.bibliography-section {
    position: absolute;
    bottom: -1200px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    z-index: 2;
    background-color: white;
    padding: 30px;
}

.bibliography-content p {
    line-height: 1.4;
    margin-bottom: 8px;
    text-align: left;
    text-indent: -2em;
    padding-left: 2em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bibliography-content a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
}

/* Paragraph positioning and styling */
.paragraph {
    position: absolute;
    padding: 10px;
    box-sizing: border-box;
    z-index: 1;
    background-color: white;
}

.paragraph p {
    margin: 0;
    text-align: justify;
}

/* Link styles */
.internal-link {
    color: #0000EE;
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.internal-link:hover {
    opacity: 0.7;
}

.internal-link:visited {
    color: #551A8B;
}

/* Citation links */
.citation-link {
    color: black;
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.citation-link:hover {
    opacity: 0.7;
}

.citation-link:visited {
    color: black;
}

/* Connection lines */
.connection-line {
    stroke: #888888;
    stroke-width: 1.5;
    fill: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        font-size: 12px;
    }
    
    .paragraph {
        left: 5% !important;
        width: 90% !important;
        padding: 8px;
    }
    
    .title-section {
        width: 90%;
        padding: 15px;
    }
    
    .bibliography-section {
        width: 90%;
        padding: 20px;
        bottom: -1800px;
    }
}