:root {
    --actual-label-color: 1.5px solid #FF5555;
    --expected-label-color: 1.5px solid #5555FF;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Lexend, sans-serif;
    transition: .5s;
}

*:focus {
    outline: 0;
}

:disabled{
    background: #777C;
}

html{
    height: 100dvh;
    font-family: Lexend, sans-serif;
}

body {
    height: 100%;
}

header{
    position: sticky;
    top: 0;
    padding: .25rem;
    box-shadow: 0 0 2px #7777;
    background: #FFF;
    height: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#form{
    height: calc(100% - 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#selectedDataset {
    margin-bottom: .5rem;
    text-align: center;
}

textarea{
    padding: .25rem;
    resize: none;
}

button, #modal label{
    border: 0;
    background: #1F2FE2;
    color: #FFF;
    padding: .5rem;
    font-size: 1rem;
    border-radius: .3rem;
    margin: .25rem;
    display: inline-flex;
    align-items: center;
}

#result{
    display: none;
}

#dist-wrap {
    width: calc(100% - .35rem);
    margin: auto;
    overflow-x: auto;
    font-size: .9rem;
}

table {
    margin: auto;
    margin-top: .5rem;
    width: 100%;
    border-collapse: collapse;
}



td, th {
    text-align: center;
    padding: .35rem;
}

th {
    font-size: .85rem;
}

tbody:nth-child(even) {
    background: #ccc7;
}

#graph #svg {
    margin: auto;
    display: block;
    border-left: .5px solid;
    border-bottom: .5px solid;
}


#result{
    padding: .5rem;
}

#result p{
    margin-bottom: .5rem;
    display: flex;
    flex-direction: column;
}

#stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#graph{
    margin-top: 1rem;
    position: relative;
}

#graph_label{
    position: absolute;
    right: .125rem;
    display: flex;
    align-items: center;
}

#graph_menu{
    font-size: .5rem;
    background: transparent;
    color: #000;
    padding: .15rem;
}

#graph_menu:hover, #graph_menu:focus {
    background: #CCCC;
}

.label {
    display: block;
    font-size: .85rem;
}

.label::before{
    content: "";
    display: inline-block;
    width: 1rem;
    border: 1.5px solid;
    margin-right: .5rem;
}

#expected_label::before{
    border: var(--expected-label-color, none);
}

#actual_label::before {
    border: var(--actual-label-color, none);
}

#actions {
    margin: 1rem auto;
    display: flex;
    justify-content: center;
}

#interpretation {
    margin-top: .25rem;
    display: flex;
    justify-content: space-around;
}

#modalbg {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(2.75px);
    display: none;
    align-items: center;
}

#modal {
    background: #FFF;
    padding: 1rem;
    width: 80%;
    margin: auto;
    box-shadow: 0 0 2px 2px #9997;
    border-radius: .6rem;
}

#modal h3 {
    text-align: center;
}

ul{
    list-style: none;
}

#datalist li {
    padding: .125rem;
    text-align: left;
    border-bottom: 1px solid #cccc;
    display: flex;
    align-items: center;
    width: 100%;
}

#datalist li:last-child {
    border-bottom: 0;
}

#datalist button {
    text-align: left;
    background: transparent;
    color: #000;
    padding: .25rem;
    width: 100%;
    font-size: .85rem;
    word-break: none;
    word-wrap: nowrap;
    overflow-x: auto;
}

#datalist button:focus, #datalist button:hover {
    background: #CCCC;
}

.menu li {
    padding: .5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

select {
    border: 0;
    padding: .25rem;
}

input[type=color] {
    background: transparent;
    border: 0;
}

#modal form {
    padding: .25rem;
}

#modal form div {
    padding: .125rem;
    margin: 1rem auto;
    display: grid;
    place-items: center;
}

#modal form input {
    width: 100%;
    padding: .5rem;
}

#modal form textarea {
    width: 100%;
}

#modal *:not(#modal h3) {
    font-size: .85rem;
}

code {
    font-family: monospace;
}

#fileInput {
    display: none;
}

.uploader {
    display: grid;
    place-items: center;
}

#modal .uploader label span {
    display: flex;
    align-items: center;
}

label#slider {
    padding: 0;
    background: transparent;
    width: 64px;
    height: 30px;
    border-radius: 1rem;
}

label #key {
    display: none;
}

#switch {
    display: inline-block;
    padding: 1rem;
    background: #7777;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    position: relative;
}

#switch::before {
    content: "";
    width: 28px;
    height: 28px;
    background: #555555;
    position: absolute;
    top: 2px;
    left: 2px;
    margin-left: 1px;
    border-radius: 50%;
}

#key:checked+#switch {
    border: 1px solid #7777;
    background: #FFF;
}

#key:checked+#switch::before {
    background: #5555FF;
    left: 32px;
    right: 2px;
}

#version {
    display: block;
    text-align: center;
    margin-top: .5rem;
}