/* General Styles */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.section {
    background-color: whitesmoke
}

/* Intro Section Styles */
#intro {
    position: relative;
    background-color: whitesmoke;
    height: 100vh;
    color: rgb(22, 12, 12);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#intro-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

#intro h1 {
    font-family: 'Playfair Display SC';
    font-size: 3em;
    margin-bottom: 0.5em;
}

#intro h2 {
    font-size: 1.5em;
    margin-bottom: 1em;
    font-weight: 400;
}

#intro p {
    font-size: 1.2em;
    line-height: 1.6;
}

#intro a {
    color: #384c7e;
    text-decoration: underline;
}

/* D3.js Section Styles */
.content-container {
    font-family: 'Playfair Display SC';
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

.content-container h2 {
    font-family: 'Playfair Display SC';
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #2e2929;
}


.treemapwrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px; /* Space between treemap and text */
    margin-top: 20px; /* Optional: Space above the wrapper */
}

#treemap {
    flex: 1 1 70%; /* Occupies 60% of the container */
    height: 400px; /* Adjust height as needed */
    border: 1px solid #ddd;
}

/* Paragraph Styles within Flex Container */
.treemapwrapper p {
    flex: 1 1 40%; /* Occupies 40% of the container */
    font-size: 1em;
    line-height: 1.4;
    color: #333;
    text-align: left; /* Align text to the left for readability */
}

.year-selector,
.selector-container {
    margin-bottom: 20px;
    text-align: left;
}

.year-selector label,
.selector-container label {
    font-size: 1.2em;
    margin-right: 10px;
    color: #555;
}

.year-selector select,
.selector-container select {
    font-size: 1em;
    padding: 5px 10px;
}

.wordcloudwrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px; /* Space between treemap and text */
    margin-top: 20px; /* Optional: Space above the wrapper */
}

#wordcloud {
    width: 60%;
    height: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.wordcloudwrapper p {
    flex: 1 1 40%; /* Occupies 40% of the container */
    font-size: 1em;
    line-height: 1.4;
    color: #333;
    text-align: left; /* Align text to the left for readability */
}

.linechartwrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px; /* Space between treemap and text */
    margin-top: 20px; /* Optional: Space above the wrapper */
}

#linechart {
    width: 80%;
    height: 500px;
    margin: 0 auto;
}

.linechartwrapper p {
    flex: 1 1 30%; /* Occupies 40% of the container */
    font-size: 1em;
    line-height: 1.4;
    color: #333;
    text-align: left; /* Align text to the left for readability */
}

.stackedbarchartwrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px; /* Space between treemap and text */
}

#stackedbarchart {
    width: 90%;
    height: 600px;
    margin: 0 auto;
}

.stackedbarchartwrapper p {
    flex: 1 1 50%; /* Occupies 40% of the container */
    line-height: 1.4;
    max-width: 400px;
    color: #333;
    text-align: left; /* Align text to the left for readability */
}

.treemap-rect {
    stroke: #fff;
    fill-opacity: 0.9;
}

.tooltip {
    position: absolute;
    text-align: center;
    width: auto;
    padding: 8px;
    font: 12px sans-serif;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 0px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.label {
    font-size: 0.9em;
    fill: rgb(0, 0, 0);
    text-anchor: middle;
    pointer-events: none;
}

/* Axis Labels */
.axis-label {
    font-size: 12px;
    fill: #333;
}

/* Legend Styles */
.legend {
    font-size: 14px;
    fill: #333;
}

.legend rect {
    stroke-width: 1;
    stroke: black;
}

.conclusion-paragraph {
    width: 60%; /* Adjust the percentage as needed */
    margin: 0 auto; /* Centers the paragraph horizontally */
    /* Optional: Add padding, font-size, etc., if desired */
    padding: 10px;
    font-size: 1.1em;
    line-height: 1.5;
}
