:root {
    --fontSizeFixed1: 12px;
    --fontSizeFixed2: 15px;
    --fontSizeFixed3: 18px;
    --fontSizeFixed4: 21px;
    --fontSizeFixed5: 28px;
    --fontWeight1: 300;
    --fontWeight2: 350;
    --fontWeight2-1: 375;
    --fontWeight3: 450;
    --fontWeight4: 500;
    --lineHeight1: 1;
    --lineHeight2: 1.15;
    --lineHeight3: 1.25;
    --lineHeight4: 1.3333;
    --lineHeight5: 1.4;
    --lineHeight6: 1.5;
    --fontFamilyFallbackSansSerif: -apple-system,system-ui,BlinkMacSystemFont,'Helvetica','Arial',sans-serif;
    --fontFamilyWorkSans: "Work Sans",var(--fontFamilyFallbackSansSerif);
    --lightest: #e6e6e6;
    --light: #d6d6d6;
    --medium: #b5b5b5;
    --darker: #8d8d8d;
    --darkest: #181818;
    --columnWidth: calc((100vw - 10%) / 12);
    --twoColumnWidth: calc((100vw - 10%) / 12 * 2);
    --threeColumnWidth: calc((100vw - 10%) / 12 * 3);
    --sixColumnWidth: calc((100vw - 10%) / 12 * 6);
    --mobileColumnWidth: calc((100vw - 10%) / 6);
    --mobileTwoColumnWidth: calc((100vw - 10%) / 6 * 2);
    --mobileThreeColumnWidth: calc((100vw - 10%) / 6 * 3);
    --mobileSixColumnWidth: calc((100vw - 10%) / 6 * 6);
}

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0px;
    padding: 0px;
    border: 0px none;
    font: inherit;
    vertical-align: baseline;
    font-size: inherit;
    line-height: inherit;
    font-family: inherit;
    scroll-behavior: smooth;
}

html {
    background: var(--lightest);
    color: var(--darkest);
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    min-height: 100%;
}

*, ::before, ::after {
    box-sizing: border-box;
}

::selection {
    background: var(--darkest);
    color: var(--lightest);
}

strong {
    font-weight: var(--fontWeight4);
}

i {
    font-style: italic;
}

sup {
    vertical-align: super;
    font-size: var(--fontSizeFixed1);
}

body {
    font-family: var(--fontFamilyWorkSans);
    font-weight: var(--fontWeight2);
    font-size: var(--fontSizeFixed2);
    line-height: var(--lineHeightBody2);
}

#page-container {
    position: relative;
    min-height: 100vh;
}

a {
    color: black;
    text-decoration: none;
}

a:hover {
    color: black;
    text-decoration: underline;
}

.input-select {
    grid-column: 1 / span 3;
    grid-row: 1;
    display: flex;
    gap: 12px;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.5vw 0% 1vw 5%;
    margin: 0.5vw 0% 1vw -5%;
}

label {
    font-size: var(--fontSizeFixed1);
    font-weight: var(--fontWeight2-1);
    padding: 5px 10px;
    background-color: var(--medium);
    border-radius: 5px;
    margin-right: 2px;
}

#input-originals {
    grid-column: 10 / span 1;
    grid-row: 1;
    display: flex;
    flex-direction: row;
}

/* #originals {
    appearance: none;
    background-color: none;
    border-radius: 100%;
    height: 100%;
    width: 24px;
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
} */

/* #originals:checked::before {
    content: "";
    width: 16px;
    height: 16px;
    background-color: var(--darkest);
    position: absolute;
    top: 4px;
    left: 4px;
    border-radius: 100%;
} */

button {
    background-color: var(--light);
    border: none;
    padding: 5px 10px;
    font-family: "Work Sans";
    font-size: var(--fontSizeFixed1);
    font-weight: var(--fontWeight2-1);
}

button:active {
    background: var(--medium);
    color: var(--darkest);
}

#reset-button {
    border-radius: 5px;
    margin-top: auto;
    margin-right: 2px;
}

#viz-button {
    border-radius: 5px;
    margin-top: auto;
}

.input-var {
    /* margin-top: 0.6vw; */
    margin-right: 30px;
    display: flex;
}

input[type=text] {
    width: 10vw;
}

input[id=profile_id] {
    width: 3vw;
}

input[id=hppid] {
    width: 100%;
}

input:focus, select:focus {
    outline: none;
    box-shadow: none;
}

button:focus {
    outline: none;
    box-shadow: none;
}

input, select {
    background: none;
    border: none;
    font-family: "Work Sans";
    font-size: var(--fontSizeFixed1);
    font-weight: var(--fontWeight2-1);
    padding: 5px 10px;
    background-color: var(--light);
    border-radius: 5px;
}

.custom-select {
    font-size: var(--fontSizeFixed1);
    font-weight: var(--fontWeight2-1);
    padding: 5px 10px;
    background-color: var(--light);
    border-radius: 5px;
    font-family: "Work Sans";
	color: black;
	box-sizing: border-box;
	margin: 0;
	border: none;
	box-shadow: none;
	border-radius: 5px;
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
    /* margin-left: 0.6vw; */
}

.grid-section {
    grid-column: 5 / span 6;
    grid-row: 1 / span 4;
    border-bottom: none;
    margin-bottom: 0.6vw;
    /* width: 450px; */
}

.grid1 {
    border-collapse: separate;
    border-spacing: 2px 6px;
    table-layout: fixed;
    font-size: 0.5vw;
    margin-top: 0.6vw;
    margin-bottom: 0.6vw;
    counter-reset: rowNumber;
    animation: fadein 0.3s;
}
@keyframes fadein {
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}

.grid1 tr::before {
    display: table-cell;
    counter-increment: rowNumber;
    content: counter(rowNumber);
    padding-right: 0.3em;
    text-align: right;
    vertical-align: top;
  }

.grid1 th {
    border: none;
    width: 0.6vw;
    text-align: left;
}

.grid1 tr {
    border: none;
}

.grid1 td {
    /* outline-style: dotted; */
    /* border: 1px; */
    width: 14px;
    height: 12px;
    font-weight: var(--fontWeight3);
    /* margin-bottom: 4px; */
}
.grid1 td:nth-child(6) {
    float: right;
    margin-right:10px;
}

.grid1 td:nth-child(12) {
    float: right;
    margin-right:10px;
}

.grid1 td:nth-child(18) {
    float: right;
    margin-right:10px;
}

.grid1 td:nth-child(24) {
    float: right;
    margin-right:10px;
}
.grid1 td:nth-child(30) {
    float: right;
    margin-right:10px;
}
.grid1 td:nth-child(36) {
    float: right;
    margin-right:10px;
}


.grid1 td:nth-child(-n+6){
    width: 24px;
}

.grid1 td:nth-child(n+7):nth-child(-n+12){
    width: 20px !important;
}

.grid1 td:nth-child(n+13):nth-child(-n+18){
    width: 16px !important;
}

.grid1 td:nth-child(n+19):nth-child(-n+24){
    width: 12px !important;
}

.grid1 td:nth-child(n+25):nth-child(-n+30){
    width: 8px !important;
}

.grid1 td:nth-child(n+31):nth-child(-n+36){
    width: 8px !important;
}

.grid1 td:nth-child(n+37):nth-child(-n+40){
    width: 8px !important;
}

.grid1 tr:nth-child(-n+10) > td{
    height: 14px;
}

.grid1 tr:nth-child(n+11):nth-child(-n+20) > td{
    height: 12px;
}

.grid1 tr:nth-child(n+21):nth-child(-n+30) > td{
    height: 10px;
}

.grid1 tr:nth-child(n+31):nth-child(-n+40) > td{
    height: 8px;
}

td[present="true"] {
    /* outline: 1px dotted black; */
    /* outline-offset: -2px; */
    border: 1px dotted black;
}

td[criteria="true"] {
    background-color: #d92525;
}

.viz1 {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    height: 100%;
    align-items: start;
}

.gen-stats {
    grid-column: 1 / span 3;
    grid-row: 2 / span 2;
    display: grid;
    grid-auto-rows: 70px;
    grid-template-columns: repeat(3, 1fr);
    font-size: var(--fontSizeFixed1);
    font-weight: var(--fontWeight1);
    padding-top: 1.5vw;
    align-items: start;
}

.results {
    font-weight: var(--fontWeight1);
}

.gen-stats > table {
    table-layout: auto;
    white-space: nowrap;
    border-collapse: collapse;
}

.table-header {
    text-align: left;
    font-size: var(--fontSizeFixed1);
    font-family: var(--fontFamilyWorkSans);
    font-weight: var(--fontWeight2);
    border-bottom: 1px solid var(--darkest);
}

#count-cells-table {
    grid-column: 1 / span 2;
    grid-row: 1 / span 1; 
}

#count-redcells-table {
    grid-column: 1 / span 2;
    grid-row: 2 / span 1; 
}

#count-uniq-table {
    grid-column: 1 / span 2;
    grid-row: 3 / span 1; 
}

#count-reduniq-table {
    grid-column: 1 / span 2;
    grid-row: 4 / span 1; 
}

#avg-button-div {
    grid-column: 1 / span 2;
    grid-row: 5 / span 1;
    margin-bottom: auto;
    margin-top: auto;
}

#avg-button {
    width: auto;
    border-radius: 5px;
}

button:hover {
    background-color: var(--medium);
} 

#avg-thumbnails {
    grid-column: 1 / span 2;
    grid-row: 6 / span 1;
}

#avg-titles {
    grid-column: 1 / span 2;
    grid-row: 7 / span 1;
}

.active {
    opacity: 1;
}

.inactive {
    opacity: 0.2;
}


.slidecontainer {
    width: 100%; /* Width of the outside container */
    grid-column: 1 / span 3;
    grid-row: 2;
  }
  
/* The slider itself */
.slider {
-webkit-appearance: none;  /* Override default CSS styles */
appearance: none;
width: 100%; /* Full-width */
height: 1px; /* Specified height */
background: var(--darkest); /* Grey background */
border: none;
padding: 0;
outline: none; /* Remove outline */
}

/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
.slider::-webkit-slider-thumb {
-webkit-appearance: none; /* Override default look */
appearance: none;
width: 1.7vw; /* Set a specific slider handle width */
height: 1.7vw; /* Slider handle height */
background: var(--darkest); /* Green background */
cursor: pointer; /* Cursor on hover */
border-radius: 5px;
}

.slider::-moz-range-thumb {
width: 1.7vw; /* Set a specific slider handle width */
height: 1.7vw; /* Slider handle height */
background: var(--darkest); /* Green background */
cursor: pointer; /* Cursor on hover */
}

#sentence {
    grid-column: 1 / span 3;
    grid-row: 3;
    padding-top: 4vw;
    font-size: var(--fontSizeFixed4);
    font-family: var(--fontFamilyWorkSans);
    font-weight: var(--fontWeight2);
    display: block;
}

#footnote {
    grid-column: 10 / span all;
    grid-row: 2;
    padding-top: 3.5vw;
    font-size: var(--fontSizeFixed1);
    font-family: var(--fontFamilyWorkSans);
    font-weight: var(--fontWeight2);
    display: none;
}

#footer {
    background: none;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    font-size: var(--fontSizeFixed1);
    font-weight: var(--fontWeight2);
}

#credits {
    grid-column: 1 / span 3;
    grid-row: 5 / span all;
    vertical-align: top;
    display: flex;
    /* flex-direction: row; */
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
}

.credit-part {
    margin-right: 2px;
    margin-bottom: 2px;
    padding: 5px 10px;
    background-color: var(--light);
    color: var(--darkest);
    font-family: "Work Sans";
    font-size: var(--fontSizeFixed1);
    font-weight: var(--fontWeight2-1);
    border-radius: 5px;
}

#project-name {
    background-color: var(--medium);
}

#chaire {
    background-color: var(--darkest);
    color: var(--lightest)
}

#pcenlogo {
    grid-column: 10 / span 1;
    grid-row: 1 / span all;
    max-width: 100%;
    /* max-width: 130px; */
    height: auto;
}

.credits-label {
    font-weight: var(--fontWeight1);
    padding-left: 2px;
}