body {
    font-family: "Roboto", sans-serif;
    background-color: #0f1115;
    color: #e6e9ef;
}

.content {
    position: absolute;
    left: 50%;
    top: 15%;
    width: 40%;
    transform: translateX(-50%);
}

.content > .logo > img {
    width: 40px;
}

.content > .logo {
    font-size: 220%;
    color: #e6e9ef;
    font-weight: 500;
}

.content > span {
    opacity: 60%;
    font-size: 90%;
    color: #9aa4b2;
}

.main > .url {
    all: unset;
    width: 100%;
    height: 45px;
    padding-left: 15px;
    border-radius: 10px;
    color: #e6e9ef;
    display: inline-block;
    position: relative;
    background-color: #1e222b;
    border: 1px solid #2a2f3a;
}

.main > .url:focus {
    border: 1px solid #22c55e !important;
    box-shadow: 0 0 0 2px rgba(34,197,94,0.2);
}

.hist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: stretch;
    margin-top: 10px;
}

@media (max-width: 640px) {
    .hist {
        grid-template-columns: 1fr;
    }
}

.lnk {
    transition: 0.3s;
    background-color: #171a21;
    border: 1px solid #2a2f3a;
    border-radius: 12px;
    padding: 10px;
    position: relative;
    text-align: left !important;
    height: 100px;
    width: 100%;
}

.lnk:hover {
    background-color: #1e222b;
}

.lnk > #qr {
    position: absolute;
    right: 20px;
    top: 20px;
}

#qr > img {
    height: 60px;
}

.lnk > .toolbar {
    position: absolute;
    bottom: 10px;
}

.toolbar > button {
    transition: 0.2s;
    background-color: #1e222b;
    border: 1px solid #2a2f3a;
    font-size: 100%;
    border-radius: 6px;
    color: #e6e9ef;
    margin-left: 3px;
    cursor: pointer;
}

.toolbar > button:hover {
    border-color: #22c55e;
}

.toolbar > button:active {
    transform: scale(0.9);
}

.toolbar > span {
    position: relative;
    display: inline-block;
    top: 20px;
    color: #9aa4b2;
}

.back {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 10px 0 10px 15px;
    font-size: 60%;
    opacity: 70%;
    color: #9aa4b2;
}

.footer > a {
    color: #22c55e !important;
}

#preview-hide {
    accent-color: #22c55e;
}

.main > .mode {
    position: relative;
    display: inline-block;
    font-size: 70%;
    margin-left: 10px;
    line-height: 200%;
    margin-top: 10px;
    opacity: 90%;
    color: #9aa4b2;
}

.main > .mode > a {
    color: #22c55e;
}

.qr-code-win {
    position: fixed;
    width: 40%;
    min-width: 600px;
    max-width: 100% !important;
    background-color: #171a21;
    border-left: 1px solid #2a2f3a;
    top: 0;
    height: 100%;
    z-index: 11;
    right: -150%;
    transition: right 0.4s ease;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.qr-code-win.show {
    right: 0% !important;
}

.qr-code-win > .title {
    position: absolute;
    left: 5%;
    top: 20px;
    color: #e6e9ef;
}

.qr-code-win > .close {
    position: absolute;
    top: 24px;
    right: 20px;
    cursor: pointer;
    color: #9aa4b2;
}

.qr-code-win > #qr-full {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.qr-code-win > img {
    width: 50%;
}

@media (max-width: 480px) {
    .content {
        width: 80% !important;
    }

    .qr-code-win {
        right: -200%;
    }

    .ok {
        display: inline-block !important;
    }
}

.ok {
    position: absolute;
    z-index: 6;
    right: 1px;
    margin-top: 8px;
    background-color: #22c55e;
    border: 2px solid #16a34a;
    border-radius: 6px;
    display: none;
}
