*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    font-family: 'Inconsolata', sans-serif !important;
    -webkit-transition: all 200ms linear;
    -ms-transition: all 200ms linear;
    transition: all 200ms linear;
}

html,
body {
    background-color: #000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    min-width: 100%;
}

@media (scripting: enabled) {
    .preload * {
        -webkit-transition: none !important;
        -moz-transition: none !important;
        -ms-transition: none !important;
        -o-transition: none !important;
        transition: none !important;
    }
}

@supports (-webkit-touch-callout: none) {
    .preload * {
        -webkit-transition: none !important;
        -moz-transition: none !important;
        -ms-transition: none !important;
        -o-transition: none !important;
        transition: none !important;
    }
}

.container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem;
}

.length {
    display: flex;
    position: relative;
    width: 16rem;
    white-space: break-spaces
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin-left: .55rem;
}

input[type="range"]::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #454545 0%, #454545 var(--percent), #141414 var(--percent), #141414 100%);
    height: 1.25rem;
    border-radius: 2.5rem;
    border: 1px solid #808080;
    margin-inline: -3px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    background-color: #454545;
    border-radius: 50%;
    height: 1.125rem;
    width: 1.125rem;
    position: relative;
    border: 0;
}

input[type="range"]::-moz-range-track {
    background: linear-gradient(to right, #454545 0%, #454545 var(--percent), #141414 var(--percent), #141414 100%);
    height: 1.25rem;
    border-radius: 2.5rem;
    border: 1px solid #808080;
    margin-inline: -1px;
}

input[type="range"]::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    background-color: #454545;
    border-radius: 50%;
    height: 1.25rem;
    width: 1.25rem;
    position: relative;
    border: 0;
}

.range-label {
    position: absolute;
    top: 2px;
    transform: translateX(70px);
    pointer-events: none;
    font-size: 14px;
    font-weight: bold;
    color: #757575;
    white-space: nowrap;
    user-select: none;
    transition: none !important;
}

@-moz-document url-prefix() {
    .range-label {
        transform: translateX(71px);
    }
}

#special a {
    color: #808080;
}

#special a:not(.toggled) {
    text-decoration: none;
}

.settings {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.hidden-span {
    visibility: hidden;
    white-space: pre;
    position: absolute;
}
#secret,
.hidden-span {
    background-color: #121212;
    border: 1px solid #808080;
    padding-block: 12px;
    border-radius: .8rem;
    text-align: center;
    font-size: 32px;
    font-family: 'Inconsolata';
    font-weight: 500;
	color: #E8B901 !important;
    cursor: pointer;
    -webkit-transition: border 200ms linear;
    -ms-transition: border 200ms linear;
    transition: border 200ms linear;
    -webkit-font-smoothing: antialiased;
}
#secret:focus {
    outline: none;
    border-color: #E8B901;
}
p {
    font-size: 18px;
    color: #808080;
    font-weight: 500;
}

.copytext {
    margin-top: 1rem;
}

h1 {
    font-weight: 400;
    margin-bottom: 1.1rem;
}

a.github {
    position: fixed;
    width: 40px;
    height: 40px;
    right: 0;
    top: 0;
    margin: 2rem;
}

a.github:hover img {
    opacity: 1;
}

.github img {
    width: 100%;
    height: 100%;
    filter: invert(1);
    opacity: .15;
}

form {
    display: contents;
}

.regenerate {
    all: unset;
    text-decoration: underline;
    cursor: pointer;
}

.tippy-box canvas {
    filter: drop-shadow(0 0 4px #000);
}

.tippy-box[data-theme~=translucent] {
    background-color: #262626;
    border-radius: 2.65rem;
    padding: .8rem
}

.tippy-box[data-theme~=translucent]>.tippy-arrow {
    width: 14px;
    height: 14px
}

.tippy-box[data-theme~=translucent][data-placement^=top]>.tippy-arrow:before {
    border-width: 7px 7px 0;
    border-top-color: #262626
}

.tippy-box[data-theme~=translucent][data-placement^=bottom]>.tippy-arrow:before {
    border-width: 0 7px 7px;
    border-bottom-color: #262626
}

.tippy-box[data-theme~=translucent][data-placement^=left]>.tippy-arrow:before {
    border-width: 7px 0 7px 7px;
    border-left-color: #262626
}

.tippy-box[data-theme~=translucent][data-placement^=right]>.tippy-arrow:before {
    border-width: 7px 7px 7px 0;
    border-right-color: #262626
}

.tippy-box[data-theme~=translucent]>.tippy-backdrop {
    background-color: #262626
}

.tippy-box[data-theme~=translucent]>.tippy-svg-arrow {
    fill: #262626
}

@-moz-document url-prefix() {
    input {
        padding: 13px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    layflags-rolling-number {
        padding: 5px;
        margin: initial;
    }

    ::placeholder {
        font-weight: 300;
    }
}
#rangeLabel {
    margin-left: 40px; 
}
.password-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}
#toggle-visibility {
    position: absolute;
    right: -30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.2s;
	top: 10px;
}
#toggle-visibility:hover {
    opacity: 1;
}
#toggle-visibility svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}
#manualInput {
    display: none;
    width: 60px;
    text-align: center;
    background: #454545;
    border: 1px solid #555;
    color: #fff;
    border-radius: 4px;
    padding: 2px;
    font-family: 'Inconsolata', monospace;
    font-size: 1rem;
}
#secret[type="password"] {
    font-family: 'Inconsolata', monospace;
    letter-spacing: 2px;
}
html, body {
    overflow: hidden;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}
#secret {
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 50vh;
    scrollbar-width: thin;
    scrollbar-color: #ffd700 #1a1a1a; 
}
#secret::-webkit-scrollbar {
    width: 8px;
}
#secret::-webkit-scrollbar-track {
    background: #121212;
    border-radius: 4px;
    margin-block: 10px;
}
#secret::-webkit-scrollbar-thumb {
    background-color: #E8B901;
    border-radius: 10px;
    border: 1px solid #121212;
}