.hero,
.title-text,
.toolbar {
    display: flex
}

body.loading .download {
    pointer-events: none
}

body.loading,
body.loading * {
    cursor: wait
}

h1 {
    font-weight: 700
}

body,
h1 {
    margin: 0
}

.code-icon,
.download,
.tool {
    background-size: contain
}

.download,
.tool {
    cursor: pointer
}

.glass,
.download,
.tool {
    overflow: hidden
}

body {
    min-height: 100vh;
    position: relative;
    font-family: 'Source Sans 3', sans-serif;
    color: #fff;
    user-select: none
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("bg.jpg") center/cover no-repeat;
    filter: blur(.2rem);
    transform: scale(1.05);
    z-index: -1
}

.glass {
    position: relative
}

main {
    max-width: 47rem;
    margin: 0 auto;
    padding: 5rem 1rem
}

.hero {
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem
}

.download {
    width: 4rem;
    height: 4rem;
    border: 0;
    outline: 0;
    font-size: 1.7rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
    transition: transform .12s, box-shadow .18s, filter .18s;
    background-color: transparent;
    background-image: url("download.png")
}

.subtitle {
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5)
}

.code-icon::before,
.glass::after {
    content: "";
    position: absolute;
    height: 45%;
    pointer-events: none
}

.title-text {
    flex-direction: column;
    line-height: 1.05
}

h1 {
    font-size: 2.8rem;
    letter-spacing: .01em;
    background: linear-gradient(180deg, #6cb6e8 0, #1a5494 38%, #002a55 72%, #000a1c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 0.5px rgba(0, 20, 50, 0.55);
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, .4)) drop-shadow(0 1px 2px rgba(0, 0, 0, .35))
}

.subtitle {
    margin: .15rem 0 0;
    font-size: .95rem;
    font-weight: 400;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .92)
}

.code-icon {
    font-weight: 700;
    position: relative
}

footer {
    color: #fff
}

.glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, .42) 0, rgba(255, 255, 255, .18) 45%, rgba(255, 255, 255, .1) 100%);
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 1.2rem;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), inset 0 -1px 1px rgba(255, 255, 255, .25), 0 8px 22px rgba(0, 0, 0, .25)
}

.glass::after {
    inset: 1px 1px auto 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
    z-index: -1
}

.code-display {
    min-height: 12rem;
    padding: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-content: flex-start
}

.code-display:empty::before {
    content: "click an icon below to begin…";
    color: rgba(255, 255, 255, .7);
    font-style: italic;
    margin: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .3)
}

.code-icon {
    width: 2.5rem;
    height: 2.5rem;
    animation: .22s ease-out pop
}

@keyframes pop {
    from {
        transform: scale(.4);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.toolbar {
    margin-top: 1.25rem;
    padding: 1rem;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: center;
    justify-content: space-between
}

.tool {
    width: 4rem;
    height: 4rem;
    border: 0;
    outline: 0;
    font-size: 1.7rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
    transition: transform .12s, box-shadow .18s, filter .18s;
    background-color: transparent
}

.tool:hover,
.download:hover {
    filter: saturate(1.2) brightness(1.1)
}

.tool:active,
.download:active {
    filter: saturate(1.3) brightness(1)
}

.code-icon.t-rt,
.t-rt {
    background-image: url("next.png")
}

.code-icon.t-lt,
.t-lt {
    background-image: url("prev.png")
}

.code-icon.t-inc,
.t-inc {
    background-image: url("plus.png")
}

.code-icon.t-dec,
.t-dec {
    background-image: url("minus.png")
}

.code-icon.t-dot,
.t-dot {
    background-image: url("printer.png")
}

.code-icon.t-com,
.t-com {
    background-image: url("scanner.png")
}

.code-icon.t-lb,
.t-lb {
    background-image: url("left.png")
}

.code-icon.t-rb,
.t-rb {
    background-image: url("right.png")
}

.t-del {
    background-image: url("backspace.png")
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: .6rem;
    font-size: .85rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .25))
}