* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
    background-color: black;
    padding: 20px;
    justify-content: center;
    width: 100%;
    height: 100vh;
    bottom: 20px;
}

#root {
    background-color: white;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Styling the header and its contents */
header {
    width: 100%;
}

.title {
    padding: 10px;
    display: flex;
    align-items: baseline;
    justify-content: start;
}

#commit {
    color: grey;
    padding: 10px;
}

.main-report-selector{
    margin: 0 10px;
}
/* Visualization Tabs Styling */
.visual-tab-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    padding: 10px;
}

.visual-tabs {
    padding: 5px;
    width: 100px;
    height: 30px;
    margin: 2px;
}

.visual-tab-content {
    height: 81vh;
    width: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
}


.visual-tabs:hover {
    background-color: lightgreen;
    cursor: pointer;
}

.active {
    background-color: rgb(3, 249, 3);
}

/* Styling the main content which will contain visuals and reports */
main {
    display: flex;
    width: 100%;
}


#performance-difference{
    margin: 5px 15px;
}
/* HTML Table generated from the CSV File using d3 */
table {
    display: block;
    width: 100%;
}

td,
th {

    border: 0.5px solid black;
    padding: 0 10px;
    height: 25px;
}
th{
    cursor: row-resize;
}
/* Mouse Scrollbar modifications */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-thumb {
    background: lightgreen;
}

/* Embed FlameGraph SVG */
#flamegraph {
    display: flex;
    justify-content: center;
}

#flame-selection{
    margin: 0 10px;
}
object {
    height: 80vh;
    width: 120%;
}

/* Components of Performance report */
#performance-report {
    display: flex;
    flex-direction: column;
}

#top-container-report,
#diff-top-container-report {
    display: flex;
    justify-content: start;
}

button {
    margin: 2px;
    padding: 5px;
    color: black;
}

button:hover {
    cursor: pointer;
}

select{
    margin: 2px;
    padding: 5px;
}

input {
    margin: 2px;
    padding: 5px;
}

#html-table,
#diff-html-table {
    display: flex;
    justify-content: start;
    height: 70vh;
    overflow: scroll;
}

/* Difference Report Styling */
.report-diff-or-raw {
    margin-left: 10px;

}

.report-diff-or-raw>button {
    height: 30px;
    padding: 5px;
    border: 0.1;
    cursor: pointer;
}

.report-diff-or-raw>button:hover {
    border-width: 1px;
}

.report-active {
    background-color: springgreen;
    border-width: 2px;
}

.report-type-content {
    margin: 0 10px;
}

/* TreeMaps nodes , labels and value */
#treemaps,
#diff-treemaps {
    margin: 0 10px;
    position: relative;
    height: 75vh;
}

#treemap-header,
#diff-treemap-header, #sunburst-header {
    margin: 0 10px;
    display: flex;
    justify-content: space-between;
}
label{
    font-weight: bold;
}
#treemap-customization,
#diff-treemap-customization {
    display: flex;
    justify-content: end;
    align-items: baseline;
}

.node,
.diff-node {
    box-sizing: border-box;
    position: absolute;
    overflow: hidden;
}

.node-label,
.diff-label {
    color: black;
    padding: 4px;
    line-height: 1em;
    white-space: pre;
}

.node-value,
.diff-node-value {
    font-size: 12px;
    margin-top: 1px;
}

#scatter-plot {
    margin: 10px;
    display: block;
    height: 70vh;
    background-color: antiquewhite;
}

.tooltip {
    position: absolute;
}

.scatter-plot-customization {
    display: flex;
}

#scatter-plot-type {
    margin: 0 10px;
    display: flex;
    justify-content: space-between;
}

#toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle {
    appearance: none;
    width: 50px;
    height: 25px;
    display: inline-block;
    position: relative;
    border-radius: 50px;
    overflow: hidden;
    outline: none;
    border: none;
    cursor: pointer;
    background-color: #707070;
    transition: background-color ease 0.3s;
}

.toggle:before {
    text-align: center;
    content: "on off";
    display: block;
    position: absolute;
    z-index: 2;
    width: 20px;
    height: 20px;
    background: #fff;
    left: 2px;
    top: 2px;
    right: 2px;
    border-radius: 50%;
    font: 10px/25px Helvetica;
    text-transform: uppercase;
    font-weight: bold;
    text-indent: -20px;
    word-spacing: 25px;
    color: #fff;
    text-shadow: -1px -1px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all cubic-bezier(0.3, 1.5, 0.7, 1) 0.3s;
}

.toggle:checked {
    background-color: #4c5cd9;
}

.toggle:checked:before {
    left: 30px;
}

.tooltip {
    display: none;
}

.treemap-type{
   padding: 5px;
   margin: 5px;
}

#diff-treemap-selection{
    font-size: 80%;
}

#sunburst-header{
    margin: 0 10px;
}
#sunburst-chart{
    height : 75vh;
}

/* Testing Some Sunburst Stylings */

path,g,text{
    text-overflow: ellipsis;
}