.center,
.centerdiv,
.con,
.divcontainer,
.iforgor,
.newdiv {
    display: flex
}

.aLab,
.filename,
body {
    color: #c4abab
}

.brand .gallerylink,
.tb-nav a,
a {
    text-decoration: none
}

.centerdiv,
.editorcard,
.thumb {
    overflow: hidden
}

.thumb::after,
body::before {
    content: '';
    pointer-events: none
}

.aLab,
.bottom,
.newdiv p,
.thumb .caption {
    text-align: center
}

.gallery-modal,
.thumb::after {
    inset: 0;
    opacity: 0;
    pointer-events: none
}

.tb-btn:focus,
.thumb:focus {
    outline: rgba(255, 179, 71, .12) solid 2px
}

body,
html {
    height: 100%;
    margin: 0;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scrollbar-gutter: stable;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scrollbar-gutter: stable
}

body {
    background-color: #1c1818;
    background-image: url("https://www.hamburger.cool/assets/img/square.png");
    background-size: 70px 70px;
    background-position: var(--bg-x, 0) var(--bg-y, 0);
    font-family: Arial, sans-serif;
    transition: background-position .1s ease-in-out
}

body::before {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(28, 24, 24, .1) 120px, #060404b3 70%, #060404e6 100%);
    z-index: -1
}

img {
    border-radius: 50%;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none
}

a {
    transition: .3s
}

.newdiv {
    flex-direction: column
}

.newdiv p {
    font-size: 20px
}

.centerdiv {
    align-items: center;
    justify-content: center;
    flex-direction: row;
    height: 100%;
    transform: perspective(800px) rotateY(var(--tilt-x, 0deg)) rotateX(var(--tilt-y, 0deg));
    transition: transform .2s cubic-bezier(.4, 0, .2, 1);
    position: relative
}

.electron,
.electron-hamburger,
.nucleus,
.nucleus-hamburger,
.orbit {
    left: 50%;
    transform: translate(-50%, -50%)
}

.center {
    align-items: center;
    justify-content: center;
    flex-direction: row
}

.bottom {
    position: absolute;
    bottom: 0;
    transition: .3s
}

.gallerylink,
.link {
    transition: .1s ease-in-out
}

.typing {
    font-family: monospace;
    white-space: nowrap;
    width: 0;
    animation: 2s steps(30, end) forwards typing
}

.divcontainer {
    flex-direction: row;
    margin-top: 50px;
    align-items: top;
    justify-content: center
}

.aLab {
    font-size: 25px
}

.con {
    flex-direction: column;
    align-items: center;
    margin: 0 150px
}

.nucleus-hamburger {
    position: absolute;
    top: 50%;
    width: 60px;
    height: 60px;
    z-index: 2
}

.nucleus-hamburger img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 20px #ffb34788;
    object-fit: cover
}

.electron-hamburger {
    position: absolute;
    top: 0;
    width: 32px;
    height: 32px
}

.nucleus,
.orbit {
    top: 50%;
    border-radius: 50%
}

.electron-hamburger img {
    width: 70%;
    height: 70%;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff4;
    object-fit: cover
}

.atom {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 60px auto
}

.electron,
.nucleus,
.orbit,
.thumb .caption,
.thumb::after {
    position: absolute
}

.nucleus {
    width: 40px;
    height: 40px;
    background: #ffb347;
    box-shadow: 0 0 20px #ffb34788
}

.orbit {
    border: 2px dashed #c4abab55;
    animation: linear infinite orbit-rotate
}

.electron {
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 0 10px #06cf88
}

@keyframes orbit-rotate {
    100% {
        transform: translate(-50%, -50%) rotate(360deg)
    }
}

@keyframes moveBg {

    0%,
    100% {
        background-position: 0 0
    }

    25% {
        background-position: 100px 100px
    }

    50% {
        background-position: 100px 0
    }

    75% {
        background-position: 0 100px
    }
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

.blink {
    animation: 1s steps(1, start) infinite blink
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

.newdiv p img {
    vertical-align: middle;
    display: inline-block;
    margin: 0 4px;
    width: 35px
}

.iforgor {
    width: 100%;
    justify-content: right;
    margin-right: 10px
}

.editorcard {
    width: 400px;
    height: 200px;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 24px #0008;
    margin: 30px auto;
    font-family: 'Fira Mono', Consolas, monospace;
    border: 1.5px solid #222;
    user-select: none
}

.cardtitlelikelinux {
    background: #232323;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #222
}

.dot,
.gallerylink,
.link {
    display: inline-block
}

.titleimg {
    height: 18px;
    width: 18px
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer
}

.red {
    background: #ff5f56
}

.yellow {
    background: #ffbd2e
}

.green {
    background: #27c93f
}

.filename {
    margin-left: 16px;
    font-size: 1em;
    font-family: inherit
}

.editor {
    padding: 18px 16px 14px;
    background: #1e1e1e;
    color: #d4d4d4;
    font-size: 1.05em;
    height: 100%;
    width: 100%
}

.editor pre {
    margin: 0;
    font-family: inherit;
    white-space: pre-line;
    text-align: left
}

.var {
    color: #569cd6
}

.name {
    color: #9cdcfe
}

.eq,
.semi {
    color: #d4d4d4
}

.link,
.str {
    color: #ce9178
}

.link:hover {
    color: #1180db;
    transform: scale(1.1)
}

.gallerylink {
    color: #3d578d
}

.gallerylink:hover {
    color: #4770c1
}

:root {
    --g-bg: rgba(12, 11, 11, 0.72);
    --card-bg: rgba(24, 24, 24, 0.5);
    --glass-border: rgba(255, 255, 255, 0.06);
    --accent: #ffb347;
    --muted: #bfb3b3
}

.gallery.search-results {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    max-width: 1200px;
    margin: 28px auto;
    padding: 8px;
    justify-content: flex-start
}

.gallery.search-results .thumb {
    flex: 0 0 144px;
    width: 144px;
    display: flex;
    align-items: center;
    justify-content: center
}

.gallery.search-results,
.thumb {
    justify-content: center
}

.thumb img,
.thumb:hover .caption {
    display: block
}

.gallery.search-results .thumb img {
    width: 100%;
    height: 141px;
    object-fit: cover
}

.brand,
.tb-nav,
.titlebar-inner {
    display: flex;
    align-items: center
}

body::-webkit-scrollbar,
html::-webkit-scrollbar {
    width: 0;
    height: 0
}

.titlebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 1000;
    background: rgba(12, 11, 11, .48);
    backdrop-filter: blur(8px) saturate(120%);
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .45)
}

.gallery-modal,
.thumb {
    backdrop-filter: blur(6px) saturate(120%)
}

.titlebar-inner {
    width: min(1200px, 96%);
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px
}

.gallery-modal .gm-stage,
.thumb {
    align-items: center;
    position: relative
}

.brand {
    gap: 8px;
    color: var(--muted);
    font-size: 16px
}

.brand .gallerylink {
    color: var(--accent);
    font-weight: 600
}

.tb-nav {
    gap: 6px
}

.tb-nav a {
    color: var(--muted);
    margin: 0 6px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    transition: background .18s, color .18s
}

.tb-nav a.active,
.tb-nav a:focus,
.tb-nav a:hover {
    color: #fff;
    background: rgba(255, 179, 71, .06);
    outline: 0
}

.tb-actions .tb-btn {
    background: 0 0;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    border-radius: 8px
}

.titlebar a:focus,
.titlebar button:focus {
    outline-offset: 3px
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    max-width: 1200px;
    margin: 28px auto;
    padding: 8px
}

.thumb {
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(0, 0, 0, .14));
    border-radius: 14px;
    padding: 10px;
    display: flex;
    cursor: pointer;
    transition: transform .28s cubic-bezier(.2, .9, .2, 1), box-shadow .28s;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .02);
    border: 1px solid var(--glass-border)
}

.thumb::after {
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(var(--accent-r, 255, 179, 71), .06);
    transition: opacity .28s
}

.thumb:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .65)
}

.thumb:hover::after {
    opacity: 1
}

.thumb img {
    width: 100%;
    height: 120px;
    max-height: 140px;
    object-fit: cover;
    border-radius: 10px;
    transform-origin: center;
    transition: transform .5s cubic-bezier(.2, .9, .2, 1), filter .28s;
    filter: contrast(1.02) saturate(1.08);
    will-change: transform, filter
}

.thumb:hover img {
    transform: scale(1.04) rotate(-.5deg);
    filter: contrast(1.08) saturate(1.12) brightness(1.02)
}

.thumb .caption {
    left: 10px;
    right: 10px;
    bottom: 10px;
    color: var(--muted);
    font-size: 13px;
    padding: 6px 10px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .45));
    border-radius: 8px;
    display: none
}

.gallery-modal {
    position: fixed;
    display: grid;
    place-items: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .85));
    z-index: 9999;
    transition: opacity .18s
}

.gallery-modal.open {
    opacity: 1;
    pointer-events: auto
}

.gallery-modal .gm-stage {
    width: min(92vw, 1100px);
    height: min(82vh, 900px);
    display: flex;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .55));
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .75);
    border: 1px solid rgba(255, 255, 255, .04)
}

.gallery-modal img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
    transition: transform .28s, filter .28s
}

.gallery-modal .gm-close,
.gallery-modal .gm-next,
.gallery-modal .gm-prev {
    position: absolute;
    border: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .25));
    color: #fff;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .6);
    transition: transform .18s, background .18s;
    font-size: 20px
}

.gallery-modal .gm-close {
    right: 20px;
    top: 18px;
    z-index: 20;
    background: 0 0;
    font-size: 28px;
    color: var(--muted)
}

.gallery-modal .gm-prev {
    left: 18px;
    top: 50%;
    transform: translateY(-50%)
}

.gallery-modal .gm-next {
    right: 18px;
    top: 50%;
    transform: translateY(-50%)
}

.gallery-modal .gm-next:hover,
.gallery-modal .gm-prev:hover {
    transform: translateY(-50%) scale(1.05);
    background: linear-gradient(180deg, rgba(255, 179, 71, .08), rgba(0, 0, 0, .35));
    color: var(--accent)
}

@media(max-width:760px) {
    .titlebar {
        height: 56px
    }

    body {
        padding-top: 56px
    }

    .tb-nav {
        display: none
    }

    .titlebar-inner {
        padding: 0 12px
    }

    .thumb img {
        height: 100px
    }

    .gallery-modal .gm-next,
    .gallery-modal .gm-prev {
        width: 40px;
        height: 40px;
        font-size: 18px
    }

    .gallery-modal .gm-stage {
        padding: 10px;
        border-radius: 10px
    }
}

.thumb:focus {
    outline-offset: 4px;
    transform: translateY(-6px) scale(1.02)
}

.gallery-modal .gm-close:focus,
.gallery-modal .gm-next:focus,
.gallery-modal .gm-prev:focus {
    outline: rgba(255, 179, 71, .14) solid 2px
}

.gallery-modal.open img {
    animation: .32s cubic-bezier(.2, .9, .2, 1) gm-zoom
}

@keyframes gm-zoom {
    from {
        transform: scale(.96) translateY(8px);
        opacity: 0
    }

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

.nimg {
    border-radius: 0px;
}
