:root {
    --canvas-width: 500px;
    --separator-width: 600px;
    --overlay-width: 588px;
    --button-container-margin: 116px;
}

body {
    color: #98c8df;
    background-color: #0d1117;
    font-family: Arial, sans-serif;
    font-size: 16px;
    overflow-x: hidden;
    margin: 0;
    width: 99.7vw;
}

#buttoncontainer {
    width: var(--canvas-width);
    margin: auto;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

#indev {
    width: 10rem;
    font-size: 16px;
    height: 2rem;
    border: none;
    border-radius: 6px;
    outline-style: solid;
    outline-width: 2px;
    outline-color: #1f2b3a;
    background-color: #11171f;
    color: #98c8df;
    margin-left: var(--button-container-margin);
}

#indev:hover,
#howto:hover {
    transition: 120ms;
    outline: #314c6d 2px solid;
    box-shadow: 0px 0px 5px rgb(111, 150, 182);
    background-color: #161d27;
}

#indev:active,
#howto:active {
    transition: 120ms;
    transform: scale(98%);
}

#howto {
    float: right;
    width: 10rem;
    font-size: 16px;
    margin: auto;
    margin-top: 0;
    height: 2rem;
    border: none;
    border-radius: 6px;
    outline-style: solid;
    outline-width: 2px;
    outline-color: #1f2b3a;
    background-color: #11171f;
    color: #98c8df;
    margin-right: var(--button-container-margin);
}

.container {
    margin: 0.5rem;
    padding-bottom: 2rem;
}

.coming,
.instructions {
    position: absolute;
    margin-top: 0.6rem;
    padding: 1em;
    width: var(--overlay-width);
    border-radius: 0.5rem;
    border-style: none;
    outline-color: #171d25;
    outline-style: solid;
    outline-width: 2px;
    background-color: rgba(10, 12, 15, 0.8);
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    backdrop-filter: blur(8px);
}

.display-none {
    display: none;
}

::selection {
    background: #244b7a;
}

.form {
    margin: auto;
    margin-bottom: 1.5rem;
    margin-top: 0;
    width: 21rem;
    padding: 1rem;
    border-radius: 0.5rem;
    border-width: 2px;
    border-style: solid;
    border-color: #171d25;
    background-color: #11171f;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.coordinate {
    width: 6rem;
    height: 1.25rem;
    margin: 5px;
    margin-bottom: 8px;
    font-size: 16px;
    outline-style: solid;
    outline-width: 2px;
    border-style: none;
    border-radius: 6px;
    outline-color: #1f2b3a;
    padding: 0.25rem;
    background-color: #11171f;
    color: #98c8df;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
    transition: 120ms;
}

.coordinate::placeholder {
    opacity: 1;
    color: #3a4452;
    font-size: 12px;
}

.coordinate:focus {
    outline: #314c6d 2px solid;
    box-shadow: 0px 0px 5px rgb(111, 150, 182);
    background-color: #161d27;
}

.all-coordinates label {
    text-align: left;
    margin-left: 5px;
    width: 84px;
}

.start,
.end {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 5px;
}

.age-label {
    margin-right: 0.25rem;
}
.age-selector select {
    height: 28px;
    padding: 4px;
    margin: 5px;
    width: 6.5rem;
    font-size: 16px;
    outline-style: solid;
    outline-width: 2px;
    border-style: none;
    border-radius: 6px;
    outline-color: #1f2b3a;
    background-color: #11171f;
    color: #98c8df;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
    transition: 120ms;
}

.age-selector select:hover {
    outline: #314c6d 2px solid;
    box-shadow: 0px 0px 5px rgb(111, 150, 182);
    background-color: #161d27;
}

.age-selector select:focus {
    outline: #314c6d 2px solid;
    box-shadow: 0px 0px 5px rgb(111, 150, 182);
    background-color: #161d27;
}

.age-standstill-submit {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 5px;
}

.standstill-container {
    margin-left: 5px;
    padding: 4px;
    outline-style: solid;
    outline-width: 2px;
    border-style: none;
    border-radius: 6px;
    outline-color: #1f2b3a;
}

.standstill-container input[type="checkbox"] {
    width: 12px;
    height: 13px;
    border-style: none;
    transition: background-color 0.3s;
    background-color: #fff;
}

#calculate {
    width: 21rem;
    font-size: 24px;
    margin: auto;
    margin-top: 0.75rem;
    height: 3rem;
    border: none;
    border-radius: 6px;
    outline-style: solid;
    outline-width: 2px;
    outline-color: #1f2b3a;
    transition: 120ms;
    background-color: #11171f;
    color: #98c8df;
}

#calculate:hover {
    outline: #314c6d 2px solid;
    box-shadow: 0px 0px 5px rgb(111, 150, 182);
    background-color: #161d27;
}

#calculate:active {
    transform: scale(98%);
}

.rolls-container {
    display: flex;
    padding: 0.5em;
    border-radius: 5px;
    border-width: 2px;
    border-color: black;
    border-style: solid;
    box-shadow:
        rgba(0, 0, 0, 0.02) 0px 1px 3px 0px,
        rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
}

canvaslabel {
    display: block;
    margin-top: 1.25rem;
    margin-left: auto;
    margin-right: auto;
    height: 15px;
    width: var(--canvas-width);
    font-size: 11px;
}

@keyframes fade-in {
    0% {
        opacity: 0%;
        transform: scale(90%);
    }
    100% {
        opacity: 100%;
        transform: scale(100%);
    }
}

.active {
    display: block !important;
}

.invalid-input {
    outline: #5e0b0b 2px solid;
    transition: 200ms;
    box-shadow: 0px 0px 6px rgb(255, 0, 0);
}

#canvas-container {
    width: var(--canvas-width);
    margin-left: auto;
    margin-right: auto;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

#separator {
    width: var(--separator-width);
    margin: auto;
    margin-top: 1.85rem;
    margin-bottom: 1rem;
    border: none;
    border-top: 2px solid #6696dd;
    border-radius: 5px;
    box-shadow: 0px 0px 10px #3f5386;
    outline-style: solid;
    outline-width: 2px;
    outline-color: #000000;
}

#distancecontainer {
    display: flex;
    justify-content: space-between;
    width: var(--canvas-width);
    margin: auto;
}

#distance {
    width: 16rem;
    margin-top: 0.35rem;
}

#leniency {
    height: 28px;
    padding: 4px;
    margin: 0px;
    width: 14rem;
    font-size: 16px;
    outline-style: solid;
    outline-width: 2px;
    border-style: none;
    border-radius: 6px;
    outline-color: #1f2b3a;
    background-color: #11171f;
    color: #98c8df;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
    transition: 120ms;
    align-self: flex-end;
}

#leniency.on {
    outline: #314c6d 2px solid;
    box-shadow: 0px 0px 10px rgb(112, 20, 20);
    background-color: #161d27;
}

#leniency:active {
    transform: scale(98%);
}

#leniency:hover {
    outline: #3e5f88 2px solid;
    box-shadow: 0px 0px 5px rgb(123, 164, 197);
    background-color: #1c2531;
}

.leniency-visualized {
    box-shadow: 0px 3px 8px rgba(112, 20, 20, 1);
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 10px rgba(1, 4, 12, 0.75);
}

::-webkit-scrollbar {
    width: 6px;
    background-color: #0d1117;
}

::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background-color: #1f2b3b;
}

.scrollable::-webkit-scrollbar-thumb {
    border-radius: 3px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #1f2b3a;
}

.solid {
    height: 2px;
    background-color: #171d25;
    color: #171d25;
    border-width: 0;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 6px;
}

ul {
    list-style: none;
}

li {
    margin-top: 4px;
    margin-bottom: 4px;
    font-family: "Press Start 2P", cursive;
    font-size: 16px;
}

#backwalksmall {
    font-size: 12px;
    color: rgb(175, 21, 21);
    text-shadow: 0px 0px 7px rgb(88, 16, 16);
}

#ytembed {
    outline-style: solid;
    outline-width: 2px;
    border-style: none;
    border-radius: 6px;
    outline-color: #1f2b3a;
    background-color: #11171f;
}

.roll-element {
    height: 2em;
    outline: 2px solid black;
    display: flex;
    justify-content: center;
    align-items: center;
    > div {
        font-weight: bold;
        text-shadow:
            black 1px 0 0,
            black 1px 1px 0,
            black 0 1px 0,
            black -1px 1px 0,
            black -1px 0 0,
            black -1px -1px 0,
            black 0px -1px 0,
            black 1px -1px 0,
            rgba(133, 195, 255, 0.5) 0 0 10px,
            black 0 0 4px;
        color: white;
    }
}
