/* ~~~ GIPHY Gallery Style - Daniel M 2025 - melonking.net */

:root {
    --bg-color: #000e1a;
    --light-color: #6bffea;
    --base-margin: 20px;
    --text-color: #04ff99;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0px;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: rgb(var(--light-color));
    position: relative;
    float: left;
    text-align: center;
    font-family: Courier New;
}

a,
a:visited {
    color: white;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

header {
    padding-top: 85px;
    background: linear-gradient(0deg, rgba(33, 0, 110, 0) 0%, rgba(var(--light-color), 0.1) 84%, rgba(33, 0, 110, 0) 100%);
}

header h1 {
    padding: 0px;
    margin: 0px;
    filter: drop-shadow(0px 0px 50px rgba(134, 183, 221, 0.7)) brightness(1.3);
}

header h1 .space {
    display: inline-block;
    width: 180px;
}

header h1 img {
    height: 110px;
    /* opacity: 0.9; */
}

button {
    font-size: 13px;
    font-family: Courier New;
    border-width: 1px;
    color: rgba(0, 0, 0, 1);
    border-color: rgba(95, 198, 248, 1);
    font-weight: bold;
    border-radius: 25px;
    box-shadow: inset -4px 6px 10px -1px rgba(174, 217, 240, 1);
    text-shadow: inset 3px 4px 26px rgba(33, 144, 199, 1);
    background: linear-gradient(rgba(0, 158, 236, 1), rgba(145, 210, 241, 1));
}

button:hover {
    background: linear-gradient(rgba(145, 210, 241, 1), rgba(0, 158, 236, 1));
}

footer {
    margin-top: 100vh;
    margin-bottom: 100px;
    clear: both;
}

#shade {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-size: cover;
    opacity: 0.07;
    z-index: -20;
    border: none;
    pointer-events: none;
    /* background-image: linear-gradient(rgba(var(--light-color), 1) .1em, transparent .1em), linear-gradient(90deg, rgba(var(--light-color), 1) .1em, transparent .1em); */
    /* background-size: 4em 4em; */
    background-image: url("/gifs/zinzen-3.gif");
    background-size: auto;
    transform: rotate(35deg);
}

#lamp-wrapper {
    /* animation-name: swing; */
    animation-duration: 4s;
    transform-origin: top center;
}

#lamp {
    width: 150px;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translate(-50%, 0);
    filter: contrast(1.8) grayscale(0.6);
    cursor: pointer;
    z-index: 20;
}

#light-bg,
#light-bg-2 {
    background: rgba(105, 104, 101, 0);
    background: radial-gradient(circle, rgb(var(--light-color)) 0%, rgba(4, 5, 15, 0) 80%, rgba(4, 5, 15, 0) 100%);
    height: 5000px;
    width: 150%;
    position: absolute;
    top: -2852px;
    left: 50%;
    transform: translate(-50%, 0);
    clip-path: polygon(0 100%,
            /* top-left */
            100% 100%,
            /* top-right */
            calc(50% + 5000px) 5000px,
            /* bottom-right, from calc center */
            50% 3000px,
            /* top middle */
            calc(50% - 5000px) 5000px
            /* bottom-left, from calc center */
        );
    filter: brightness(1.2);
    opacity: 0.20;
    z-index: -10;
}

#light-bg-2 {
    clip-path: polygon(0 100%,
            /* top-left */
            100% 100%,
            /* top-right */
            calc(50% + 5000px) 5400px,
            /* bottom-right, from calc center */
            50% 3000px,
            /* top middle */
            calc(50% - 5000px) 5400px
            /* bottom-left, from calc center */
        );
    z-index: -11;
    /* animation: bobbing-light 6s ease-in-out infinite;
    animation-direction: alternate; */
}

#top,
#bottom {
    position: absolute;
    top: 0;
    right: 0;
    scroll-behavior: smooth;
}

#bottom {
    top: 10000px;
}

#main {
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 1;
    padding: 0px 20px 300vh 20px;
}

#portal {
    width: 100%;
    margin-top: -5px;
}

#switch {
    font-size: 20px;
    /* line-height: 90px; */
    padding-top: 200px;
    pointer-events: none;
    max-width: 800px;
    margin: auto;
    text-transform: lowercase;
}

/* Mandy Power! */
.mandy {
    position: sticky;
    display: flex;
    align-items: flex-start;
    align-items: center;
    max-width: max-content;
    margin: 0 auto;
    margin-top: 20px;
    padding: 10px;
    box-sizing: border-box;
}

.mandy .avatar {
    width: 70px;
    flex-shrink: 0;
    border-radius: 50%;
    margin-right: 16px;
    transform: rotate(-7deg);
    filter: grayscale(0.3);
}

.mandy #mandy-text {
    position: relative;
    background: black;
    color: #caffe9;
    text-shadow: 0px 0px 5px rgb(255, 255, 255);
    padding: 9px 19px;
    border-radius: 20px;
    flex: 1;
    margin: 0;
    max-width: 800px;
    text-align: left;
}

.mandy #mandy-text::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 6px;
    border-width: 12px 16px 12px 0;
    border-style: solid;
    border-color: transparent black transparent transparent;
}

/* +++ Tile-style! */
#tiles {
    margin-left: calc(-1 * var(--base-margin));
}

.tile,
.info {
    display: inline-block;
    filter: drop-shadow(0px 20px 100px rgba(var(--light-color), 0.2));
    transform-origin: center;
    vertical-align: middle;
}

.tile-flip,
.info {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
    border-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAACd0lEQVR4Xu2b23LDIAxEnf//6Gb60qmx49WyK18me14JQhxA2En7Wnh+hi4vPsQhj44/I+PRE16W3vwjdJly8JEIvYFQFXfJcMcboeLP7FAVKsEC7ngReqenjuxQDLVge0KpADuo/aUjV8Cd34oIPeGWV1dQ7Z8dOhChJHcTdnU+q/FnbvmrJ3C3ExGhAHbDROjdhCKkFS48xnTHl5ipoYjuCXfHl4hQMxFq5lcoOkKonQXF625nH7tQPpt3edQBtbOgeN3tEUq+2qIFidCnCVVBO2Jsv5qOi/gPR/AI/UeEmolQMw6h6NYc6RjzCFTD2XwOSxwbrIJ7AirufCIUrAi7qSL0aqGHK1B490c1ld0RKux8pJo/87s8SjBCB5Aw1M7G6wblay0J2aHbry/tR54FrbCUoAGUn1rTV/HVYHuXFMIxJkOEmolQM7cTim5JhNpfRR2f6l+pZ1TAHdT+Kur4VP8IxUToACVEPWGV3+VZui8BFpSP9Tk5QrdUyuBHIjRCaU4/8iwoQfYPE7phLyX0efs39hG6ZrWBZgpwhEboCrSJ7EceBUSwO7ibU/OZ+cYeceoECpyaT4Q+8J9nra92E1y+Q92gCZ1N63MyuvEcRKiZCDUToQPouRS1u+Oh8VA7C4q3aq/UUCpg4TFEjaf2Z6HGi1BMhA6OKpvmCBSPPvIqKCG2xp79eQp19SpEqJkINfN1QrsnjGDHV2soQspn5mdkacAd1Hhqf+sCRegWaYEitEGoG2mF3RNsiHc4v47n0Ag1E6FmIhTgFmR9TGmokRKVGhqhBBFqJkLNVISyPK1EWGt6hH7hm5J1BxWQTlh2qHmHvgGpulBYopxOzAAAAABJRU5ErkJggg==") 28 / 20px / 0 round;
    border-width: 20px;
    border-style: solid;
}

.info {
    margin-top: 60px;
    max-width: 800px;
    width: unset;
    text-align: left;
    line-height: 1.3;
    letter-spacing: 0.01em;
    word-spacing: 0.03em;
}

.info>div {
    display: inline-block;
    padding: 5px 20px;
    background-color: black;
    color: var(--text-color);
}

.info h2,
.info h3 {
    margin: 10px 0px;
    line-height: 1.25;
    color: var(--text-color);
    font-family: "Times New Roman";
}

.info p {
    color: #bfbfbf;
}

.highlight {
    color: white !important;
}

.nobreak {
    white-space: nowrap;
}

/* Flip it! */
.tile-flip.flip {
    /* transform: rotate3d(0, 1, 0, -180deg); */
    animation: flip 0.8s forwards 1;
}

.tile-flip.flip-back {
    animation: flip 0.8s reverse forwards;
}

.tile-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* box-shadow: 10px 30px 100px -5px rgba(44, 5, 132, 0.655); */
}

.tile-face.front {
    background-color: #ffffffbd;
    background-image: linear-gradient(40deg, #e8e8e8 8.33%, #fafafa 8.33%, #fafafa 50%, #e8e8e8 50%, #e8e8e8 58.33%, #fafafa 58.33%, #fafafa 100%);
    background-size: 9.33px 7.83px;
}

.tile-face.front img {
    /* max-width: 450px; */
}

.tile-face.front nav {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    height: 20px;
    padding: 3px;
    font-size: 18px;
    background-image: linear-gradient(0deg, #496669 8.33%, #000000 8.33%, #000000 50%, #496669 50%, #496669 58.33%, #000000 58.33%, #000000 100%);
    background-size: 12px 12px;
}

.tile-face.front nav h5 {
    padding: 0px;
    margin: 0px;
    text-shadow: inset 3px 4px 26px rgba(33, 144, 199, 1);
    color: var(--text-color);
}

.tile-face.back {
    background: #020006;
    color: var(--text-color);
    transform: rotateY(180deg);
    overflow-y: auto;
}

.tile-face.back h3 {
    color: white;
    margin-top: 25px;
}

.tile-face.back ul {
    list-style: none;
    padding: 0px;
    margin: 0px;
    margin-bottom: 20px;
}

.tile-face.back li {
    margin: 0px;
    margin-bottom: 5px;
}

.tile-face.back button {
    margin-bottom: 20px;
}

/* +++ NAV */

#bloxNav {
    display: flex;
    align-items: center;
    background-color: undefined;
    flex-flow: row;
    justify-content: center;
    width: 100%;
    gap: 30px;
    font-family: monospace;
    font-size: 16px;
    position: absolute;
    top: 20px;
    left: 0px;
    z-index: 100;
}

#bloxNav,
#bloxNav a,
#bloxNav a:visited {
    /* color: #16ff7c; */
    color: rgb(var(--light-color));
    cursor: pointer;
}

#bloxNav a {
    text-decoration: none;
}

.bloxBlock {
    background-color: undefined;
    padding: 2px 5px;
    border: 3px ridge rgba(var(--light-color), 0.4);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: row;
    gap: 3px;
    width: 120px;
    opacity: 0.4;
    border-radius: 10px;
}

.bloxBlock:hover {
    opacity: 1;
}

.bloxBlock img,
.bloxBlock span {
    display: inline-block;
    vertical-align: middle;
}

.bloxBlock img {
    width: 32px;
    image-rendering: pixelated;
}

.bloxBlock span {
    display: inline-block;
}

#audio-toggle {
    width: 28px;
    height: 28px;
    float: left;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 300;
    filter: invert(1);
    cursor: pointer;
}

/* +++ Animations */

@keyframes lamp-flicker {
    0% {
        opacity: 0;
    }

    /* 20% {
        opacity: 0.7;
    }

    30% {
        opacity: 0;
    } */

    75% {
        opacity: 0.1;
    }

    80% {
        opacity: 0.5;
    }

    100% {
        opacity: 0;
    }
}

@keyframes flip {
    from {
        transform: perspective(500px) rotate3d(0, 1, 0, 0deg);
        animation-timing-function: ease-out;
    }

    50% {
        transform: perspective(800px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, 90deg);
        animation-timing-function: ease-in;
    }

    to {
        transform: perspective(500px) rotate3d(0, 1, 0, 180deg);
        animation-timing-function: ease-in;
    }
}

@keyframes swing {
    0% {
        transform: rotate(3deg);
    }

    16% {
        transform: rotate(-2deg);
    }

    33% {
        transform: rotate(1.8deg);
    }

    50% {
        transform: rotate(-1.3deg);
    }

    66% {
        transform: rotate(0.6deg);
    }

    83% {
        transform: rotate(-0.6deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes blackhole {
    0% {
        transform: rotate(0turn) scale(1);
    }

    70% {
        transform: rotate(3turn) scale(0.30);
        filter: none;
    }

    90% {
        transform: rotate(4turn) scale(0.10);
        opacity: 1;
    }

    100% {
        transform: rotate(5turn) scale(0);
        opacity: 0;
    }
}

.bobbing {
    animation: bobbing 4s ease-in-out infinite;
    animation-direction: alternate;
}

@keyframes bobbing {
    0% {
        transform: translateY(5px);
    }

    100% {
        transform: translateY(-5px);
    }
}

/* +++ Mobile */

@media (max-width: 820px) {
    header h1 .space {
        width: 110px;
    }

    header h1 img {
        height: 90px;
    }

    #bloxNav {
        gap: 20px;
    }

    .bloxBlock {
        width: 100px;
    }

    .bobbing {
        animation: none;
    }

    .mandy {
        margin-top: 40px;
    }

    .mandy #mandy-text::before {
        top: 25px;
    }

    #portal {
        margin-top: 10px;
    }

    #tiles {
        margin-left: -80px;
    }

    .tile-face.back,
    .mandy #mandy-text {
        font-size: 1.25rem;
    }

    .tile-face.back button {
        font-size: 1.25rem;
        margin-top: 20px;
        padding: 5px 10px;
    }

    .info {
        font-size: 1.4rem;
    }

    #switch {
        padding-top: 150px;
        font-size: 1.5rem;
    }

    #audio-toggle,
    .nomobile {
        display: none;
    }

    #main {
        padding: inherit 10px inherit 10px;
    }
}