
a {
    text-decoration: none;
}
body {
    display: flex;
    flex-direction: column;
}
h1 {
    font-size: 1rem;
}

.h1__prefix {
    display: inline-block;
    width: 1rem;
}
html {
    box-sizing: border-box;
    height: 100%;
    font-weight: 400;
    font-size: 16px;
    font-family: 'Fira Mono', monospace;
    line-height: 2;

    @media (min-width: 1134px) {
        font-size: 17px;
    }

    @media (min-width: 1200px) {
        font-size: 18px;
    }

    @media (min-width: 1333px) {
        font-size: 20px;
    }

    @media (min-width: 1466px) {
        font-size: 22px;
    }

    @media (min-width: 1600px) {
        font-size: 24px;
    }

    @media (min-width: 1733px) {
        font-size: 26px;
    }

    @media (min-width: 1866px) {
        font-size: 28px;
    }

    @media (min-width: 2000px) {
        font-size: 30px;
    }

    @media (min-width: 2133px) {
        font-size: 32px;
    }

    @media (min-width: 2400px) {
        font-size: 36px;
    }
}
input {
    padding: 0;
    width: 100%;
    height: auto;
    border: none;
    background-color: transparent;
    color: var(--green);
    transition: color .1s .5s ease;

    &:focus {
        outline: none;
        color: inherit;
        transition: none;
    }
}

::-webkit-input-placeholder {
    color: color(var(--gray-light) a(.5));
}

::-moz-placeholder {
    color: color(var(--gray-light) a(.5));
}

:-ms-input-placeholder {
    color: color(var(--gray-light) a(.5));
}

:-moz-placeholder {
    color: color(var(--gray-light) a(.5));
}
::selection {
    background-color: var(--blue);
}

::-moz-selection {
    background-color: var(--blue);
}
* {
    position: relative;
    box-sizing: inherit;
    margin: 0;
    padding: 0;
    color: inherit;
    font-weight: inherit;
    font-style: inherit;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;

    &:after,
    &:before {
        box-sizing: inherit;
    }
}

/* From reboot.css: speed up any delay that might exist for touch users */
a,
button,
input:not([type=range]),
label,
select,
textarea {
    -ms-touch-action: manipulation;
    touch-action: manipulation;
}
.alert--info {
    color: var(--yellow);
}

.alert--danger {
    display: inline-block;
    padding: 0 .5rem;
    background: var(--red);
}
.bookmarklet {
    padding: 0 .5rem;
    border-radius: 9999px;
    background: color(var(--gray-light) a(.35));
    color: var(--gray-dark);
    white-space: nowrap;
}
.carret {
    position: absolute;
    left: -1.5rem;
    display: block;
    width: 1rem;
    color: var(--blue);

    &.-green {
        color: var(--green);
    }
}
.footer {
    padding: 4rem 0 .5rem;
    color: color(var(--gray-light) a(.25));
    font-size: .75rem;
}
header {
    padding-top: 2rem;
}
.layout {
    display: flex;
    flex-direction: column;
    padding: 0 var(--gutter);
    min-height: 100%;
    background-color: var(--gray-dark);
    color: var(--gray-light);

    /* Fade out overflow content on the right */
    &:after {
        position: fixed;
        top: 0;
        right: 0;
        width: var(--gutter);
        height: 100%;
        background-image: linear-gradient(to right, color(var(--gray-dark) a(0)), var(--gray-dark));
        content: '';
    }

    &.-error {
        background-color: var(--blue-bright);

        &:after {
            background-image: linear-gradient(to right, color(var(--blue-bright) a(0)), var(--blue-bright));
        }
    }
}
.main {
    flex-grow: 1;
}

.main__results {
    /* Give the pre a width and some room to scroll horizontally */
    display: inline-block;
    padding-right: var(--gutter);
}
.title {
    font-weight: 700;

    &.-error {
        display: inline-block;
        margin-bottom: 2rem;
        padding: 0 .5rem;
        background-color: var(--gray-light);
        color: var(--blue-bright);
    }
}
.text-break {
    display: inline-block;
    word-break: break-all;
}
:root {
    --gray-dark: #151d21;
    --gray-light: #cdcfcb;
    --blue: #007593;
    --red: #8c251d;
    --green: #6dc53c;
    --yellow: #d9d771;
    --blue-bright: #00F;
}
:root {
    --gutter: 8vw;
}
