body {
    font-family: sans-serif;
    color: #686868;
    text-align: center;
    line-height: 140%;
    padding-top: 1em;
}

h1 {
    font-family: monospace;
    font-weight: 100;
    font-size: 260%;
    margin-bottom: 1em;
}

h1 span {
    color: #0078e7;
}

form {
    margin: 0 auto;
    position: relative;
}

input, button {
    margin: 1em;
}

input#url {
    margin-top: 0;
    font-size: medium;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 3px #ddd;
    border-radius: 4px;
    vertical-align: middle;
    padding: .5em .6em;
    min-width: 16em;
    max-width: 42em;
    width: 80%;
}

input#url:focus {
    outline: 0;
    border-color: #0078e7;
}

button#submitBtn {
    font-size: medium;
    cursor: pointer;
    padding: .6em 1.6em;
    border: none;
    background-color: #0078e7;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    outline: 0;
}

form button#submitBtn:disabled {
    background-color: #97c8f7;
    background-image: none;
    cursor: not-allowed;
    box-shadow: none;
}

button#submitBtn:hover,
button#submitBtn:focus {
    background-color: #0069d3;
    background-image: linear-gradient(#0075ea, #0066cc);
}

button#submitBtn:active {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 0 6px rgba(0, 0, 0, 0.20) inset;
}

div {
    padding: 0 1em;
    min-width: 16em;
    margin: 1em auto 1em;
    max-width: 44em;
}

@media (min-width: 32em) {
    div {
        width: 80%;
    }
}

div.faq {
    text-align: left;
    margin: 2.5em auto 1em;
}

h2 {
    font-weight: normal;
    font-size: 150%;
    margin-bottom: .5em;
}

p, ul {
    margin-top: 0em;
}

ul li {
    list-style-type: circle;
    margin-left: 0;
    margin-bottom: .3em;
}

a {
    transition: color .2s ease-in-out;
    color: #686868;
}

a:hover, a:focus, a:active {
    color: #0078e7;
}

p.credit {
    text-align: center;
    margin-top: 2em;
}

p.github, p.patreon {
    text-align: center;
    margin: 1em;
}

.loadingButton {
    position: relative;
    margin: 0 auto;
}

.loader {
    position: absolute;
    top: calc( 50% - 13px);
    left: calc( 50% - 12px);
    border: 4px solid transparent;
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    padding: 0px;
    min-width: 0px;
    margin: 0 auto;
    animation: spin 1s linear infinite;
    cursor: not-allowed;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.tooltipped {
    position: relative;
}

.tooltipped::after {
    position: absolute;
    z-index: 1000000;
    display: none;
    padding: .4em 1em;
    font-size: small;
    color: #fff;
    text-align: center;
    pointer-events: none;
    content: attr(tooltiptext);
    background: #686868;
    border-radius: 4px;
    opacity: 0;
    left: 50%;
    transform: translate(-50%, 0);
    bottom: 100%;
    margin-bottom: 10px;
}

.tooltipped::before {
    position: absolute;
    z-index: 1000001;
    display: none;
    width: 0;
    height: 0;
    pointer-events: none;
    content: "";
    border: 6px solid transparent;
    opacity: 0;
    top: -10px;
    left: 50%;
    transform: translate(-50%, 0);
    bottom: auto;
    border-top-color: #686868;
}

@keyframes tooltip-appear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.tooltipped:hover::before,
.tooltipped:active::before,
.tooltipped:focus::before,
.tooltipped:hover::after,
.tooltipped:active::after,
.tooltipped:focus::after {
    display: inline-block;
    animation: tooltip-appear .25s ease-in forwards;
}

@media (prefers-color-scheme: dark) {
    body {
      color: #fff;
      background-color: #343434;
    }

    h1 span {
        color: #5CA6EB;
    }

    input#url {
        background-color: #424242;
        border: 1px solid #666;
        box-shadow: inset 0 1px 3px #343434;
        color: #fff;
    }

    input#url:focus {
        border-color: #5CA6EB;
    }

    a {
        color: #fff;
    }

    a:hover, a:focus, a:active {
        color: #5CA6EB;
    }

    button#submitBtn {
        background-color: #5CA6EB;
        color: #343434;
    }
    
    form button#submitBtn:disabled {
        background-color: #486D90;
    }
    
    button#submitBtn:hover,
    button#submitBtn:focus {
        background-color: #86baeb;
        background-image: linear-gradient(#8dbeeb, #84b9eb);
    }

    .loader {
        border-top: 4px solid #343434;
    }

  }