* {
    outline: 0;
    box-sizing: border-box;
}

a {
    color: black;
    opacity: 0.5;
    text-decoration: none;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

button,
input,
html,
body {
    padding: 0;
    border: 0;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: white;
    color: black;
}

.nav,
.nav li {
    padding: 0;
    list-style: none;
    margin: 0;
}

.nav {
    margin: -1.5vw auto 3.5vw;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8vw;
}

.nav li {
    display: flex;
}

.nav li:after {
    content: '|';
    opacity: 0.25;
}

.nav li:last-child:after {
    display: none;
}

.nav li span,
.nav li a {
    padding: 0 1vw;
    display: block;
    text-align: center;
    opacity: 1;
}

.apikey-container .donation-ico span,
.nav li .donation-ico,
.nav li .no {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0 1vw;
    text-indent: -99999px;
    position: relative;
    vertical-align: middle;
    border-radius: 5px;
}

.apikey-container .donation-ico span,
.nav li .donation-ico {
    mask-image: url(../img/donation.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url(../img/donation.svg);
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    background: black;
    position: relative;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.apikey-container .donation-ico span:after,
.nav li .donation-ico:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mask-image: url(../img/donation-heart.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url(../img/donation-heart.svg);
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    background: #3399cc;
    z-index: 10;
    animation: blink 2s infinite;
}

.apikey-container .donation-ico {
    padding: 1vw;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 4vw;
}

.apikey-container .donation-ico span {
    padding: 0;
    margin: 0;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: 75%;
}

html.invert .apikey-container .donation-ico span,
html.invert .nav li .donation-ico {
    background: white;
}

.nav li .no.js {
    background-image: url(../img/js.svg);
}

.nav li .no.css {
    background-image: url(../img/css.svg);
}

.nav li .no:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180%;
    height: 2px;
    border-radius: 3px;
    background: tomato;
    transform: translate(-50%, -50%) rotate(-45deg);
}

/*
.nav li .no {
    color: DarkOrange;
    position: relative;
}

.nav li .no:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 1px;
    background: DarkOrange;
    transform: translate(-50%, -50%) rotate(-25deg);
}
*/

.nav li span {
    opacity: 0.25;
}

.container {
    margin: 0 auto;
    width: calc(100% - 10vw);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 1000px;
    padding: 5vw 0;
}

html.with-results .container {
    transform: none;
    position: static;
    padding: 5vw 0;
}

.search {
    border: .5vw solid black;
    font-size: 5vw;
    padding: 3vw;
    width: calc(100% - 12.8vw);
    text-align: center;
    border-radius: 1.5vw 0 0 1.5vw;
}

.apikey-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: .5vw solid black;
    border-top: 0;
    width: calc(100% - 25.6vw);
    border-radius: 0 0 1.5vw 1.5vw;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.apikey-container--input {
    border: .5vw solid black;
    border-radius: 1.5vw;
    margin-top: 20px;
    margin-bottom: 20px;
}

html.invert .apikey-container {
    border-color: white;
}

html.invert .apikey-container--input {
    border-color: white;
}

.apikey-container input {
    border: 0;
    width: 100%;
    font-size: 1.5vw;
    text-align: center;
    padding: 1vw;
    border-right: .5vw solid black;
}

.apikey-container--input input {
    border: 0;
}

html.invert .apikey-container input {
    border-color: white;
}

/*
html.invert .apikey-container.error input,
.apikey-container.error input,
html.invert .apikey-container.error,
.apikey-container.error {
    border-color: tomato;
}
*/

.apikey-error {
    background: tomato;
    color: white;
    text-align: center;
    padding: .7vw 1.2vw;
    border-radius: .5vw;
    display: inline-block;
    position: relative;
    left: 50%;
    margin-top: .5vw;
    margin-left: -2.2vw;
    transform: translate(-50%, 0);
    font-size: 1.2vw;
    line-height: 2vw;
}

.apikey-error--input {
    left: auto;
    position: static;
    transform: none;
    margin-left: 0;
}

button {
    width: 12.8vw;
    border: .5vw solid black;
    border-left: 0;
    vertical-align: bottom;
    background-color: transparent;
    cursor: pointer;
    font-size: 5vw;
    padding: 3vw;
    text-indent: -100vw;
    overflow: hidden;
    position: relative;
    transition: background-color .1s;
    border-radius: 0 1.5vw 1.5vw 0;
}

button:after,
button:before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    mask-size: contain;
    mask-position: center center;
    mask-repeat: no-repeat;
    mask-image: url(../img/search.svg);
    -webkit-mask-size: contain;
    -webkit-mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-image: url(../img/search.svg);
    background-color: black;
    width: 50%;
    height: 50%;
    content: '';
    transition: background-color .1s;
}

button:after {
    animation: spin 2.5s infinite linear;
    mask-image: url(../img/settings.svg);
    -webkit-mask-image: url(../img/settings.svg);
    opacity: 0;
}

html.loading button:before {
    opacity: 0;
}

html.loading button:after {
    opacity: 1;
}

button:active,
button:focus,
button:hover {
    background-color: black;
}

button:active:after,
button:focus:after,
button:hover:after,
button:active:before,
button:focus:before,
button:hover:before {
    background-color: white;
}

.search::-webkit-input-placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.search:-ms-input-placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.search::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.result {
    border-top: 2vw solid black;
    border-bottom: 2vw solid black;
    margin: 5vw 0;
    padding: 5vw 0;
    font-size: 4vw;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-all;
    word-break: break-word;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.cache {

    margin: 5vw 0 -2.5vw;
    padding-top: 2.5vw;
    border-top: 1vw solid black;
    text-align: center;
    font-size: 1.8vw;

}

html.invert .cache a,
.cache a {
    opacity: 1;
    color: #3399cc;
}

html.direction-rtl .result {
    direction: rtl;
    unicode-bidi: embed;
}

.footer {
    border-top: 1vw solid black;
    margin: 5vw 0 0;
    padding: 3.5vw 0 0;
    font-size: 1.8vw;
    text-align: center;
}

.footer .drag-me,
.footer b {
    border: 3px solid #f5f5f5;
    background-color: #f5f5f5;
    padding: 1vw 1.5vw;
    display: inline-block;
    margin: 0 .5vw;
    font-weight: normal;
    border-radius: 10px;
    cursor: default;
    transition: .3s;
}

.footer a {
    padding: 1vw 0;
    display: inline-block;
}

.footer .drag-me:active,
.footer .drag-me {
    background-color: transparent;
    border: 3px dashed #ccc;
    cursor: move;
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab;
    font-style: normal;
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.footer .drag-me:hover,
.footer .drag-me:active {
    border-color: #3399cc;
    color: #3399cc;
}

.footer .drag-me {
    position: relative;
}

.footer .drag-me a {
    display: none;
}

.footer .drag-me:active {
    cursor: grabbing !important;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
    border-width: 0;
    background-color: #f5f5f5;
}

.footer .drag-me a {
    text-indent: -99999px;
    overflow: hidden;
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.footer a {
    opacity: 1;
}

.footer b span {
    opacity: 0.3;
    font-weight: normal;
}

.footer .disclaimer {
    margin: 20px 0 0;
}

.footer small {
    display: block;
    text-align: center;
    font-size: 8px;
}

.logo {
    margin: 0 auto 5vw;
    border: .5vw solid black;
    width: 22.4vw;
    height: 11.7vw;
    position: relative;
    cursor: pointer;
    border-radius: 1.5vw;
    overflow: hidden;
    display: block;
    opacity: 1;
}

.logo:after,
.logo:before {
    position: absolute;
    top: 0;
    width: 10.7vw;
    height: 10.7vw;
    line-height: 10.7vw;
    transition: left .3s;
    text-align: center;
    font-weight: bold;
    font-size: 5vw;
}

.logo:before {
    background: white;
    color: black;
    content: 'T';
    left: 0;
}

.logo:after {
    background: black;
    color: white;
    content: 'W';
    left: 50%;
}

html.invert .logo:after {
    left: 0;
    content: 'T';
    background: white;
    color: black;
}

html.invert .logo:before {
    left: 50%;
    content: 'W';
    background: black;
    color: white;
}

.message {
    text-align: center;
    font-size: 10vw;
}

.message small {
    display: block;
    font-size: 1.8vw;
}

html.invert .message small a,
.message small a {
    color: #3399cc;
    opacity: 1;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/*
::-webkit-scrollbar-track {}
*/

::-webkit-scrollbar-thumb {
    background: black;
}

html.invert a {
    color: white;
}

html.invert::-webkit-scrollbar-thumb {
    background: white;
}

html.invert body::-webkit-scrollbar-thumb {
    background: white;
}

html.invert,
html.invert input,
html.invert body {
    background: black;
    color: white;
}

html.invert button {
    border-color: white;
}

html.invert button:after,
html.invert button:before {
    background-color: white;
}

html.invert button:active,
html.invert button:focus,
html.invert button:hover {
    background-color: white;
}

html.invert button:active:after,
html.invert button:focus:after,
html.invert button:hover:after,
html.invert button:active:before,
html.invert button:focus:before,
html.invert button:hover:before {
    background-color: black;
}

html.invert .logo:after {
    background: white;
}

html.invert .search {
    border-color: white;
}

html.invert .search::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.3);
}

html.invert .search:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.3);
}

html.invert .search::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

html.invert .footer {
    border-color: white;
}

html.invert .footer b {

    border-color: #222;
    background-color: #222;

}

html.invert .footer .drag-me:active {

    border-color: #222;
    background-color: #222;

}

html.invert .cache,
html.invert .result {
    border-color: white;
}

html.invert .logo {
    border-color: white;
}

@media screen and (min-width: 1000px) {

    .search {
        padding-left: 20px;
        padding-right: 20px;
    }

    .search,
    button {
        font-size: 40px;
    }

    .result {
        font-size: 32px;
    }

    .message {
        font-size: 80px;
    }

    .message small {
        font-size: 18px;
    }

    .cache,
    .nav,
    .footer {
        font-size: 18px;
    }

}

@media screen and (max-width: 640px) {

    .drag-line {
        display: none;
    }

    .cache,
    .nav,
    .footer {
        font-size: 10px;
    }

    .nav li .no {
        width: 14px;
        height: 14px;
    }

    .nav li .no:after {
        height: 1px;
    }

    .message small {
        font-size: 10px;
    }

    .footer b {
        font-size: 8px;
    }

    .apikey-error {
        margin-top: 0px;
        font-size: 7px;
    }

}

#adv {
    font-weight: normal;
    border-radius: 1.5vw 1.5vw 0 0;
    z-index: 999;
    box-shadow: rgba(0, 0, 0, 0.1) 3px 3px 30px;
    bottom: 0;
    left: 50%;
    position: fixed;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 100;
    max-width: 440px;
    width: calc(100% - 20px);
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    transform: translateX(-50%) translateY(100%) translateZ(0px);
}

#adv:hover {
    background-color: #f5f5f5;
}

#adv.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0%) translateZ(0px);
}

#adv *>p:last-child {
    margin-bottom: 0;
}

#adv .close {
    cursor: pointer;
    position: fixed;
    mask-image: url(../img/close.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center center;
    -webkit-mask-image: url(../img/close.svg);
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center center;
    background: #999;
    text-indent: -9999px;
    width: 16px;
    height: 16px;
    top: 22px;
    right: 16px;
    z-index: 100;
    border: 0;
    transition: .3s;
}

#adv .adv {
    color: #666;
    position: relative;
    display: block;
    text-decoration: none;
    padding: 30px;
    opacity: 1;
}

@media screen and (max-width: 600px) {
    #adv .adv {
        padding: 20px;
    }
}

#adv .adv h2 {
    margin: 0 0 10px;
    font-weight: normal;
    font-size: 20px;
    padding-right: 30px;
}

#adv .adv h2:before {
    position: absolute;
    left: 0;
    right: 0;
    height: 5px;
    top: 0;
    content: "";
    z-index: 100;
}

.apikey-container {
    display: flex;
}

/*
.nav li:has(.donation-ico) {
    display: none;
    display: block;
}
*/

.confetti {
    width: 10px;
    height: 10px;
    margin: 0 auto;
}