:root {
    --clr-black: #101010;
    --clr-grey: #1a1a1a;
    --clr-white: #E7E7E7;
    --clr-light-grey: #a7a7a7;
    --clr-lavender: #e2bcdb;
    --clr-purple: #251657;
    --clr-wenge: #C1ADB7;

    --clr-grey-btn-hover: #111111;
    --clr-grey-btn-pressed: #0e0e0e;

    --clr-grey-btn-hover-secondary: #2e2e2e;
    --clr-grey-btn-pressed-secondary: #202020;

    --clr-wenge-btn-hover: #E2CED2;

    --clr-grey-secondary: #333333;
}

.text-secondary {
    color: var(--clr-light-grey);
}

.text-lavender {
    color: var(--clr-lavender) !important;
}

@font-face {
    font-family: "JetBrainsMono";
    src: url('/static/fonts/JetBrainsMono-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: "JetBrainsMono";
    src: url('/static/fonts/JetBrainsMono-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

body, html {
    margin: 0px;
    padding: 0px;
    background: var(--clr-black);
}

* {
    font-family: "JetBrainsMono";
    color: var(--clr-white);
}

main {
    margin: 50px auto 50px auto;
    max-width: 1100px;
    width: 80vw;
    display: grid;
}

a {
    color: var(--clr-lavender);
    font-weight: 600;
}

h1 {
    font-size: 2.4em;
}

h2 {
    font-size: 2em;
}

h1, h2 {
    color: var(--clr-white);
}

p, ul, li, ol {
    color: var(--clr-light-grey);
}

ol li::marker {
    color: var(--clr-lavender);
}

figcaption {
    font-size: 12px;
    color: var(--clr-wenge);
}

button, .control-icon, .control {
    border: 1.5px solid var(--clr-wenge);
    background: var(--clr-grey);
    border-radius: 5px;
    transition: color, background 0.1s ease-out;
}

button.control-icon {
    --h-padding: 10px;
    --v-padding: 5px;

    width: 80px;
    padding: var(--v-padding) var(--h-padding);
    height: calc(40px + 2 * var(--v-padding));
    display: grid;
    grid-template-rows: 1fr 2fr;
    justify-items: center;
    align-items: center;
    user-select: none;

    transition: border, background 0.1s ease-out;
}

button.control-icon > * {
    font-weight: 700;
}

button > * {
    color: var(--clr-wenge);
    transition: color, background 0.1s ease-out;
}

button:hover {
    border: 1.5px solid var(--clr-wenge-btn-hover);
    background: var(--clr-grey-btn-hover-secondary);
}

button:hover > * {
    color: var(--clr-wenge-btn-hover);
}

button:active {
    background: var(--clr-grey-btn-pressed-secondary);
}

img.copy-icon {
    width: 20px;
}

div.icon-text {
    color: var(--clr-lavender);
    font-size: 12px;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%);
    background: #222;
    color: var(--clr-lavender);
    padding: 8px 16px;
    border-radius: 5px;
    border: 1.5px solid var(--clr-lavender);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;

    z-index: 1000;

    transition: opacity 0.2s ease-in;
}

label {
    font-size: 10pt;
}

input, select {
    font-weight: 500;
    color: var(--clr-purple);
    padding: 1px 2px;
}

option {
    color: var(--clr-purple);
}

input[type="checkbox"] {
    margin: 5px 0px;
    width: 14px;
    height: 14px;
}

pre {
    line-height: 1.2;
}

@keyframes toast-reveal-shake {
    from {
        transform: translate(-50%, 50px);
    }
    20% {
        transform: translate(-50%, 0px);
    }
    50% {
        transform: translate(-50%, -10px);
    }
    70% {
        transform: translate(-50%, 5px);
    }
    100% {
        transform: translate(-50%, 0px);
    }
}

.toast-reveal {
    opacity: 1;
    animation: toast-reveal-shake 0.3s ease-out;
}

@media (width <= 600px) {
    main {
        width: 90vw;
    }
}
