@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
    --font-family: "DM Sans", sans-serif;
    --box-padding: 0.5rem;

    --blue0: #070C4B;
    --blue1: #1d2482;
    --blue2: #333dbe;
    --blue3: #555cdd;
    --blue4: #898de0;
    --blue5: #dadcfe;

    --warm_grey0: #443e36ff;
    --warm_grey1: #65533aff;
    --warm_grey2: #8f7a59ff;
    --warm_grey3: #ae9878ff;
    --warm_grey4: #c4b49fff;
    --warm_grey5: #e7e2dbff;

    --pass-light: #afe0b7ff;
    --pass: #4ba359ff;
    --pass-dark: #2f6638ff;
    --warn-light: #e8d28fff;
    --warn: #eab30dff;
    --warn-dark: #8d6c08ff;
    --fail-light: #f0c6bcff;
    --fail: #d65d3eff;
    --fail-dark: #862a13ff;
}

body {
    background-color: var(--warm_grey5);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

* {
    padding: 0;
    margin: 0;
    font-family: var(--font-family);
}

.grid-container {
    display: grid;
    grid-template-columns: 0.75fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 0.5rem;

    margin-top: 30px;
    margin-left: 30px;
    margin-right: 30px;

    max-height: 800px;
}

@media (max-width: 768px) {
  .grid-container {
    max-height: max-content; 
  }

  .card-face.card-front.overrepresented_sequences {
    max-height: 400px;
  }
}

hr {
    display: block;

    /* dont think its needed
    margin-left: calc(-1 * var(--box-padding)); 
    margin-right: calc(-1 * var(--box-padding)); */

    unicode-bidi: isolate;
    overflow: hidden;
    border-style: inset;
    border-width: 1px;

    margin-inline-start: auto;
    margin-inline-end: auto;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;

    border: 0px;
}

.box.sidebox {
    grid-row: span 3;
    grid-template-rows: max-content;
    align-items: start;
}

.box.sidebox p {
    padding-bottom: 0px;
    margin-bottom: 0px;
}

.box {
    display: grid;
    grid-template-rows: auto 1fr;

    background-color: #ffffff;
    padding: 0.5rem;
    border: var(--warm_grey4) solid 1px;

    overflow: hidden;
    position: relative;
}

.box h1 {
    font-size: 1rem;

    margin-top: 0px;
    margin-left: calc(-1 * var(--box-padding)); 
    margin-right: calc(-1 * var(--box-padding)); 

    padding-bottom: var(--box-padding);
    padding-left: var(--box-padding);
    padding-right: var(--box-padding);

    border-bottom: 1px solid var(--warm_grey4);
}

.box h1:not(:first-child) {
    padding-top: var(--box-padding);
    border-top: 1px solid var(--warm_grey4);
}

.box:has(table) {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}

.box:has(table) h1 {
    margin-left: 0rem;
    margin-right: 0rem;
    margin-bottom: 0rem;
}

.box table {
    font-size: 13px;

    width: 100%;
    border-collapse: collapse;
    margin-top: var(--box-padding);

    border-top: 0px;
    border-bottom: 0px;

    margin-top: 0px;
    margin-bottom: 0px;
}

.box tr:last-child td {
    border-bottom: none;
}

.box tr:last-child {
    border-bottom: none;
}

span.row-title {
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.25px;
    color: #65533aff;

    font-weight: 500;
}

.box th, .box td {
    text-align: left;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--warm_grey5);
}

.box th:first-child, .box td:first-child {
    padding-left: var(--box-padding);
}

.box th:last-child, .box td:last-child {
    padding-right: var(--box-padding);
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

body .page-columns {
    display: grid;
    gap: 0;
    grid-template-columns: 
    [screen-start] 1.5em 
    [screen-start-inset page-start page-start-inset body-start-outset] 0fr 
    [body-start] 1.5em 
    [body-content-start] 12fr 
    [body-content-end] 0px 
    [body-end] 35px 
    [body-end-outset] 0px 
    [page-end-inset] 0px 
    [page-end] 0fr 
    [screen-end-inset] 1.5em 
    [screen-end]
}

span.row-title.above {
    display: block;
    font-size: 8px;
    font-weight: 600;
}


.box figure {
    margin: 0;
    width: 100%;
}

.box img {
    width: 100%;
    height: 100%;
    margin-left: -10px;
    margin-right: 0px;
    object-fit: contain;
}

#logo {
    max-width: 150px;
    text-align: center;
    margin: auto;
    display: block;
}

.box hr {
    border-top: 1px solid var(--warm_grey4);
    margin-top: var(--box-padding);
    margin-bottom: var(--box-padding);
    opacity: 1;
}

.title {
    display: none;
}

.pill {
    margin-right: 3px;
    transform: translateY(-2.5px);
    font-size: 8px;
    display: inline-block;
    padding: 1px;
    width: 40px;
    text-align: center;
    border-radius: 2px;
    letter-spacing: .75px;
    margin-left: 1px;
}

span#overrepresented-sequences-count {
    font-size: 100px;
    font-weight: 200;
    display: block;
    margin-top: 10px;
    line-height: .8;
}

.card-front.overrepresented_sequences .no-sequence {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;

    text-align: center;

    align-items: center;
    justify-content: center;
}

.box.overrepresented_sequences  {
    /* min-height: 0;
    overflow-y: scroll; */
    display: flex;
    flex-direction: column;
}

.card-front.overrepresented_sequences td {
    font-size: 10px;
}

.card-front.overrepresented_sequences td:first-child {
  font-size: 8px;
  font-family: monospace;
  overflow-wrap: break-word;
  word-break: break-all;
  letter-spacing: 1px;
}

.card-front.overrepresented_sequences .unit {
  font-size: 8px;
  color: var(--warm_grey3)
}

footer {
    text-align: center;
    padding: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.6rem;
    color: var(--warm_grey1);
}

footer a {
    color: var(--blue2);
    text-decoration: none;
}

a {
    color: var(--blue2);
    text-decoration: none;
    border-bottom: 1px dotted var(--blue4);
}

/* Card info - Start */
#card-toggler-per_base_sequence_quality:checked~.card .card-back#help-per_base_sequence_quality {
    top: 0;
}

#card-toggler-per_sequence_quality_scores:checked~.card .card-back#help-per_sequence_quality_scores {
    top: 0;
}

#card-toggler-per_base_sequence_content:checked~.card .card-back#help-per_base_sequence_content {
    top: 0;
}

#card-toggler-per_base_n_content:checked~.card .card-back#help-per_base_n_content {
    top: 0;
}

#card-toggler-per_sequence_gc_content:checked~.card .card-back#help-per_sequence_gc_content {
    top: 0;
}

#card-toggler-sequence_length_distribution:checked~.card .card-back#help-sequence_length_distribution {
    top: 0;
}

#card-toggler-sequence_duplication_levels:checked~.card .card-back#help-sequence_duplication_levels {
    top: 0;
}

#card-toggler-overrepresented_sequences:checked~.card .card-back#help-overrepresented_sequences {
    top: 0;
}

#card-toggler-adapter_content:checked~.card .card-back#help-adapter_content {
    top: 0;
}

.card-toggler {
    display: none;
}

.card {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-face {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    box-sizing: border-box;
    color: black;
    text-align: center;
}

.card-face.card-front.overrepresented_sequences {
    display: flex;
    flex: 1;
    overflow-y: scroll;
}

.card-front {
    background: white;
}

.card-back {
    background: white;
    top: 100%;
    position: absolute;
    transition: top 0.6s ease;
    height: 100%;
    flex-direction: column;
}

.card-back p {
    font-size: 0.7em;
    text-align: left;
    padding: var(--box-padding);
}

.card-back td {
    font-size: 0.7em;
}

.info-button {
    position: absolute;
    right: calc(1.5 * var(--box-padding));
    top: calc(1.5 * var(--box-padding));
    /* background-color: var(--warm_grey5); */
    border: 1px solid var(--warm_grey4);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--warm_grey4);
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.6s ease;
}

.info-button:hover {
    background-color: var(--warm_grey4);
    color: white;
}
/* Card Info - END */