@media (max-width: 768px) {
    #information button#close-info {
        top: 5px;  
        right: 5px;
        font-size: 20px;  
    }
}



body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgba(255, 255, 255, 0);
    display: flex;
    flex-direction: column;
    height: 100vh;
}



.container {
    /*
    display: flex;
    flex: 1;
    */
    height: calc(100vh - 62px);
    display: block;
    overflow: hidden;
}


/*arrow right*/

.arrow-container {
    position: fixed; 
    top: 50%; 
    right: 20px; 
    transform: translateY(-70%); 
    z-index: 1000; 
}

.arrow-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 150px;
    background-color: #ffffff;
    cursor: pointer;
    text-decoration: none; 
}



.arrow {
    border: solid #000000;
    border-width: 0 5px 5px 0;
    display: inline-block;
    padding: 15px;
    transform: rotate(-45deg); 

}


 /* Sidebar */

#sidebar-toggle {
    position: absolute;
    top: 40px;
    left: 80px;
    color: #000000;
    background-color: white;
    border: none;
    padding: 10px 16px;
    font-size: 50px;
    font-weight: 600;
    font-family: sans-serif;
    cursor: pointer;
    z-index: 1000;
}

#sidebar-toggle:hover {
    color: #000000;
    background-color:white;
}


#sidebar {
    display: none; 
    position: absolute; 
    top: 75px;  
    left: 120px;  
    background: #fff;
    padding: 12px;
    border: 1px solid #000000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-family: sans-serif;
    z-index: 1000;
    width: auto;
    max-width: 280px;
    height: auto;
    z-index: 10002;

    max-height: calc(100vh - 170px);
    overflow: scroll;
}

#sidebar.show {
    display: block;  
}

#sidebar.hidden {
    display: none; 
}

.sidebar-description {
    margin-top: 15px;
  }
  
  .sidebar-description h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px; 
    font-weight: 600; 
  }




#visualization {
    height: 100%;
    background-color: #fff;
    overflow: hidden;
}

/* Node base style */
.node {
    cursor: pointer;
}

/* Specific node shapes are handled in JS using paths now */
/* But we can style the path element if needed */
.node path {
     stroke: #fff;
     stroke-width: 1.5px;
}

.node text {
    fill: #333;
    font-size: 10px;
    stroke: none;
    font-weight: normal;
    font-family: Arial, sans-serif;
    pointer-events: none; /* Prevent text from blocking node events */
    text-shadow: 0 1px 0 #fff, 1px 0 0 #fff, 0 -1px 0 #fff, -1px 0 0 #fff; /* Basic white outline */
}

.link {
    stroke: #999;
    stroke-opacity: 0.6;
}

#tooltip {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.95); 
   border: 1px solid #000000;
    padding: 10px;
    display: none;
    pointer-events: none;
    max-width: 350px; /* Slightly wider */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: small;
    line-height: 1.4;
    z-index: 1000;
}

.control-group {
    margin-bottom: 15px;
    padding-bottom: 15px;
    font-size:small;
}

.control-group h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: small;
}

.node-details {
    margin-top: 20px;
    padding: 10px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: none;
}

.node-details h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.details-heading {
    font-weight: bold;
    margin-top: 8px;
    margin-bottom: 3px;
    font-size: 13px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="range"] {
    width: 100%;
}

.button {

    border: none;
    background-color:rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display:block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
}


.paper-list {
    max-height: 150px; /* Slightly reduced height */
    overflow-y: auto;
    margin-top: 0px;
    padding: 5px;
    background-color: #f9f9f9;
    border-radius: 3px;
    border: 1px solid #eee;
    list-style-type: none; /* Remove bullets */
    padding-left: 10px; /* Indent items slightly */
}

.paper-list li {
    margin-bottom: 5px;
    font-size: 12px;
}

.legend {
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-color {
    width: 15px;
    height: 15px;
    margin-right: 8px;
    border-radius: 50%; /* Default circle */
    border: 1px solid #ccc; /* Add border for visibility */
}

.legend-color.square {
    border-radius: 0; /* Override for square */
    width: 12px;
    height: 12px;
} 

.papersoverviewcontainer {
    margin-bottom: 5px;
    padding-bottom: 0px;
    font-size:small;
}

.papersoverviewcontainer h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: small;
}

.papersoverview {
    display: inline-block;
    cursor: pointer;
  }

  .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: 0.4s;
  }



/* INFORMATION */
#information {
    position: fixed;
    /*
    position: sticky !important;
    */
    bottom: 0 !important;
    left: 0 !important;
    width: calc(100% - 2px);
    border-top: 1px solid #000;
    border-right: 1px solid #000;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
    z-index: 999999 !important;
    font-family: 'Arial', sans-serif;
}

#information p {
    position: relative;
    max-width: 80%;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    padding-bottom: 20px;
}

#information h1 {
    position: relative;
    max-width: 80%;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    padding-bottom: 0px;
}

#information button#close-info {
    position: absolute;
    top: 10px;
    right: 50px;
    background: none;
    border: none;
    font-size: 24px;
    color: #000000;
    cursor: pointer;
    z-index: 1001;
}

#information-toggle {
    all: unset;
    position: fixed;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    display: block;
    width: 100%;
    background: white;
    color: #000000;
    border-top: 1px solid #000;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
    padding: 17px 25px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 10px;
    cursor: pointer;
    z-index: 10001;
    text-align: center;
    margin-top: 20px;
}

/* Hidden class for elements */
.hidden {
    display: none !important;
}

#shortText, #longText {
    display: inline;
}

#toggleButton {
    all: unset;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    margin-left: 5px;
    display: inline;
}
#information-header p{
    font-weight:900;
    font-style:italic;
}

#information-content {
    position: relative;
    max-width: 80%;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    padding-bottom: 20px;
}
#shortTextContainer, #longTextContainer {
    position: relative;
    max-width: 100%;
    margin: 0;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    display: inline;
}

#shortText, #longText {
    display: inline;
}