/* Global rules - background color, links, font-family, font-color */

body {
    background-color: rgb(255, 255, 255);
    font-family: "Georgia", "Times New Roman", Times, serif;
    color: rgb(20, 20, 20);
    margin: 0;
    padding: 0;
}

a:link {
    color: rgb(20, 20, 20);
    text-decoration: none;
}

a:visited {
    color: rgb(20, 20, 20);
    text-decoration: none;
}

a:hover {
    color: rgb(70, 70, 200);
    text-decoration: underline;
}

a:active {
    color: rgb(20, 20, 20);
    text-decoration: none;
}

#logo {
    position: absolute;
    left: 0%;
    top: 0%;
    width: 10%;
    height: 10%;
    overflow: hidden;
}

#header {
    position: absolute;
    left: 12%;
    top: 0;
    width: 88%;
    height: 10%;
    overflow: hidden;
    background-color: transparent;
}

#chartbutton {
    position: absolute;
    left: 0px;
    top: 10%;
    width: 150px;
    height: 4%;
    overflow: hidden;
}

#aboutbutton {
    position: absolute;
    left: 150px;
    top: 10%;
    width: 150px;
    height: 4%;
    overflow: hidden;
}

#linksbutton {
    position: absolute;
    left: 300px;
    top: 10%;
    width: 150px;
    height: 4%;
    overflow: hidden;
}

#contactbutton {
    position: absolute;
    left: 450px;
    top: 10%;
    width: 150px;
    height: 4%;
    overflow: hidden;
}

#textbox {
    position: absolute;
    left: 0px;
    top: 15%;
    width: 95%;
    height: 100%;
    overflow: visible;
    margin-left: 5%;
}

#info {
    position: absolute;
    left: 0px;
    top: 14%;
    width: 25%;
    height: 0%;
    overflow: hidden;
    border-style: solid;
}

#distributions {
    position: absolute;
    left: 0px;
    top: 14%;
    width: 26%;
    height: 83%;
    overflow: auto;
    border-right: 1px solid #ccc;
    background-color: #fafafa;
}

#Zoomin {
    position: absolute;
    left: 27%;
    top: 15%;
    width: 30px;
    height: 30px;
    overflow: hidden;
    z-index: 10;
    background-color: white;
    border: 1px solid #666;
    border-radius: 3px;
}

#Zoomin:hover {
    background-color: #f0f0f0;
}

#Zoomout {
    position: absolute;
    left: 27%;
    top: 19%;
    width: 30px;
    height: 30px;
    overflow: hidden;
    z-index: 10;
    background-color: white;
    border: 1px solid #666;
    border-radius: 3px;
}

#Zoomout:hover {
    background-color: #f0f0f0;
}

#Charthouse {
    position: absolute;
    left: 26%;
    top: 14%;
    width: 74%;
    height: 83%;
    overflow: auto;
    background-color: #ffffff;
}

#Chart {
    position: relative;
    left: 0px;
    top: 0px;
    display: block;
    max-width: none;
}

/* Button styling */
button {
    cursor: pointer;
    background-color: #f5f5f5;
    border: 1px solid #999;
    padding: 5px;
}

button:hover {
    background-color: #e0e0e0;
}

/* Heading styles */
h1 {
    font-size: 28px;
    font-weight: normal;
    margin: 0;
}

h2 {
    font-size: 20px;
    font-weight: normal;
}

h3 {
    font-size: 16px;
    font-weight: bold;
}

h4 {
    font-size: 14px;
    font-weight: bold;
}

/* Paper detail page styles */
#paper-content {
    position: absolute;
    left: 26%;
    top: 14%;
    width: 74%;
    height: 83%;
    overflow: auto;
    background-color: #ffffff;
    padding: 30px;
}

.paper-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.paper-header h1 {
    margin: 0 0 10px 0;
    font-size: 2em;
}

.paper-header .authors {
    font-size: 1.1em;
    margin: 10px 0;
}

.paper-header .meta {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.9em;
}

.paper-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.paper-section h2 {
    margin-top: 0;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.status-completed {
    background: #22c55e;
    color: white;
}

.status-reading {
    background: #3b82f6;
    color: white;
}

.status-unread {
    background: #94a3b8;
    color: white;
}

.paper-links {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.paper-links a {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

.paper-links a:hover {
    background: #5568d3;
    text-decoration: none;
}

.key-concepts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.concept-tag {
    background: #e0e7ff;
    color: #4f46e5;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.notes-section {
    background: #fefce8;
    padding: 20px;
    border-left: 4px solid #f59e0b;
    margin: 20px 0;
}

.back-link {
    position: absolute;
    left: 26%;
    top: 5%;
    font-size: 14px;
}

.back-link a {
    color: #667eea;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}
