

:root {
    --dark-blue: #071a2b;
    --lime: #baff29;
}

@import url('https://fonts.googleapis.com/css2?family=Martian+Mono:wght@100..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Niconne&display=swap');

body {
    font-family: "Martian Mono", monospace;

    background-color: var(--dark-blue);
    color: var(--lime);

    font-weight: 500;

    margin: 0;
    min-height: 100vh;
    overflow: hidden;

}


.site-container {
    position: relative;

    width: 100%;
    max-width: 600px;

    height: 100vh;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;
}

.site-title {
    text-align: center;
    margin: 0;

    color: var(--lime);

    font-size: 2.5rem;
    font-weight: 800;

    letter-spacing: 0em;

    white-space: nowrap;
}


.letter-red {
        color: #ff4d4d;
    }

.letter-orange {
        color: #ff914d;
    }

.letter-yellow {
        color: #ffe44d;
    }

.letter-green {
        color: #baff29;
    }

.letter-blue {
        color: #4dc3ff;
    }

.letter-indigo {
        color: #7c6cff;
    }

.letter-violet {
        color: #c86cff;
    }

.site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    width: 100%;

    margin: 15px 0 20px;
}

.header-socials {
    display: flex;
    align-items: center;

    gap: 14px;
}


.header-socials-left {
    justify-content: flex-end;

    padding-right: 25px;
}

.header-socials-right {
    justify-content: flex-start;
    padding-left: 25px;
}

.boop-button {
    position: absolute;

    left: 50%;
    top: 73.75%;

    transform: translate(-50%, -50%);

    background: transparent;
    color: var(--dark-blue);

    border: none;

    font-family: "Niconne", cursive;
    font-size: 1.00rem;
    font-weight: 400;


    cursor: pointer;

    padding: 8px;

    line-height: 0.9;
    text-align: center;
}

.thought-zone {
    position: absolute;


    top: 0;
    left: 50%;

    transform: translateX(-50%);

    width: 560px;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    gap: 2px;

    z-index: 2;

    pointer-events: none;


}


.thought-bubble {
    width: 130px;
    height: auto;
    display: block;

    opacity: 0;
    transform:scale(0.75);
}


.thought-wrapper {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.thought-far-left,
.thought-far-right {
    width: 122px;
}


.thought-emoji {

    position: absolute;

    left: 50%;
    top: 45%;

    transform: translate(-50%, -50%);

    font-size: 2.2rem;

    opacity: 0;

    pointer-events: none;

    z-index: 3;
}

.thought-center-wrap .thought-emoji {
    top: calc(45% - 40px);
}

.thought-right-wrap .thought-emoji {
    left: calc(50% + 12px);
    top: calc(45% - 1px);
}

.thought-wrapper:has(.show-bubble) .thought-emoji {
    opacity: 1;
}

.thought-center {
    width: 175px;

    transform: translateY(-25px) scale(0.75);
}


.thought-right {
    width: 145px;
}

.thought-left.show-bubble {
    animation: bubble-pop-left 0.35s ease forwards;
}

.thought-center.show-bubble {
    animation: bubble-pop-center 0.4s ease forwards;
}

.thought-right.show-bubble {
    animation: bubble-pop-right 0.35s ease forwards;
}

.thought-far-left-wrap {
    transform: translate(40px, 60px);
}

.thought-far-right-wrap {
    transform: translate(-40px, 60px);
}

.thought-far-right-wrap .thought-emoji{
    top: calc(45% - 5px);
}

.thought-far-left-wrap .thought-emoji {
    left: calc(50% - 3px);
}

.thought-far-left,
.thought-far-right {
    transform: scaleX(-1) scale(0.75);
}

.thought-far-left.show-bubble,
.thought-far-right.show-bubble {
    animation: bubble-pop-flipped 0.35s ease forwards;
}

@keyframes bubble-pop-flipped {

    0% {
        opacity: 0;
        transform: scaleX(-1) scale(0.75);
    }

    70% {
        opacity: 1;
        transform: scaleX(-1) scale(1.08);
    }

    100% {
        opacity: 1;
        transform: scaleX(-1) scale(1);
    }
}


@keyframes bubble-pop-left{

    0% {opacity: 0;
    transform: scale(0.75);}


70% {
    opacity: 1;
    transform: scale(1.08);
}

100% {
    opacity: 1;

    transform: scale(1);
}
}


@keyframes bubble-pop-center {

    0% {
        opacity: 0;
        transform: translateY(-25px) scale(0.75);
    }

    70% {
        opacity: 1;
        transform: translateY(-25px) scale(1.08);
    }

    100% {
        opacity: 1;
        transform: translateY(-25px) scale(1);
    }
}

@keyframes bubble-pop-right {

    0% {
        opacity: 0;
        transform: scale(0.75);
    }

    70% {
        opacity: 1;
        transform: scale(1.08);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.storm-cluster {
    position: absolute;
    top: -18px;
    left: 46%;
    width: 400px;
    height: 170px;

    transform: translateX(-50%);

    pointer-events: none;
    z-index: 4;
}

.storm-piece {
    position: absolute;
    height: auto;
    display: block;

    opacity: 0;
}

.storm-main {
    width: 230px;
    left: 72px;
    top: -2px;
    z-index: 3;
}

.storm-left {
    width: 180px;
    left: -8px;
    top: 42px;
    z-index: 1;
}

.storm-right {
    width: 185px;
    right: -8px;
    top: 44px;
    z-index: 1;
}

.storm-top {
    width: 165px;
    left: 92px;
    top: 18px;
    z-index: 2;
}

.storm-cluster.show-storm {
    animation: storm-cluster-wiggle 0.18s ease 0.32s 18 alternate;
}

.storm-cluster.show-storm .storm-piece {
    animation: storm-cloud-pop 0.32s ease forwards;
}

.storm-cluster.show-storm .storm-left {
    animation-delay: 0.06s;
}

.storm-cluster.show-storm .storm-right {

    animation-delay: 0.12s;
}

.storm-cluster.show-storm .storm-top {
    animation-delay: 0.18s;
}

@keyframes storm-cloud-pop {
    0% {
        opacity: 0;
        transform: scale(0.75);
    }

    70% {
        opacity: 1;
        transform: scale(1.08);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes storm-cluster-wiggle {
    0% {
        transform: translateX(-50%) rotate(-2deg);
    }

    100% {
        transform: translateX(-50%) rotate(2deg);
    }
}


.emoji-haboob {
    position: absolute;

    width: 600px;
    height: 520px;

    left: 50%;
    top: -40px;

    transform: translateX(-50%);

    overflow: visible;

    pointer-events: none;

    z-index: 5;
}

.haboob-emoji {
    position: absolute;

    top: -60px;

    opacity: 0;

    pointer-events: none;

    animation: emoji-haboob-fall linear forwards;
}

@keyframes emoji-haboob-fall {

    0% {
        transform:
        translate(0, -40px)
        rotate(0deg);

        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        transform:
            translate(180px, 600px)
            rotate(540deg);

        opacity: 0;
    }
    
}

.main-content{
    display: flex;

    justify-content: center;

    flex: 1;
    min-height: 0;

    padding-top: 5px;

    box-sizing: border-box;
}


.photo-column {
    min-height: 0;

    height: 440px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: flex-start;
}

.photo-frame {
    position: relative;

    width: 320px;
    height: 480px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: visible;
}

.photo-frame > img:not(.brain-storm) {

    width: 100%;
    height: 100%;

    object-fit: contain;

    transform: translateY(25px);

    display: block;
}

.fact-area {
    position: relative;

    width: 600px;
    max-width: 100vw;
    height: 120px;
    
    margin-top: 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding: 4px 10px;
}

.random-fact {

    position:  absolute;

    width: 100%;
    max-width: 500px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    text-align: center;

    font-family: "Martian Mono", monospace;
    font-size: 0.7rem;
    font-weight: 500;

    line-height: 1.4;

    color: var(--lime);

    opacity: 1;
    transition: opacity 0.3s ease;
}

.random-fact.fade-out {
    opacity: 0;
}

.fact-area:has(.desert-scene.show-desert) .random-fact {

    opacity: 0;
    visibility: hidden;
}


.social-icon {
    display: block;

    width: 28px;
    height: 28px;

    background-color: #f5efd8;

    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;

    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;

    transition: transform 0.2s ease, background-color 0.2s ease;
        }

.bluesky {
    mask-image: url("images/icons/bluesky.svg");
    -webkit-mask-image: url("images/icons/bluesky.svg");
}
.instagram {
    mask-image: url("images/icons/instagram.svg");
    -webkit-mask-image: url("images/icons/instagram.svg");
}

.substack {
    mask-image: url("images/icons/substack.svg");
    -webkit-mask-image: url("images/icons/substack.svg");
}

.mastodon {
    mask-image: url("images/icons/mastodon.svg");
    -webkit-mask-image: url("images/icons/mastodon.svg");
}


.header-socials a:hover .social-icon {
    background-color: var(--lime);
    transform: scale(1.15);
}



.desert-scene {
    position: absolute;

    left: 50%;
    bottom: 0;

    transform: translateX(-50%);

    width: 100%;
    height: 120px;

    overflow: hidden;

    pointer-events: none;

    z-index: 2;

    opacity: 0;
}

.desert-scene.show-desert {
    opacity: 1;
}



.mountain-strip {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: auto;

    display: block;

    transform: translateX(-110%);
}

.desert-scene.show-desert .mountain-strip {
    animation: mountains-slide-in 1.2s ease forwards;
}

@keyframes mountains-slide-in {
    from {
        transform: translateX(-110%);
    }

    to {
        transform: translateX(0);
    }
}


.cactus {
    position: absolute;

    bottom: 5px;

    width: 45px;
    height: auto;

    display: block;

    opacity: 0;
    transform: translateY(20px) scale(0.85);
}

.desert-scene.show-cacti .cactus{
    animation: cactus-pop 0.4s ease forwards;
}

@keyframes cactus-pop {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.85);
    }

    70% {
        opacity: 1;
        transform: translateY(-4px) scale(1.08);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cactus-1 {
    left: 10%;
    animation-delay: 0s;
}

.cactus-2 {
    left: 47%;
    animation-delay: 0.15s;
}

.cactus-3 {
    left: 82%;
    bottom: 0px;
    animation-delay: 0.3s;
}




@media (max-width: 600px) {

    html,
    body {
        width: 100%;
        overflow-x: clip;
    }

    body {
        overflow-y: scroll;
    }


    /* MAIN MOBILE PAGE */

    .site-container {
        width: 100%;
        max-width: none;

        min-height: 100vh;
        height: auto;

        margin: 0;
        padding: 0;
    }

    .main-content {
        width: 100%;

        display: grid;
        place-items: start center;
    }


    /* HEADER */

    .site-header {
        width: 100%;

        margin: 10px 0 12px;

        padding: 0 12px;

        box-sizing: border-box;
    }

    .site-title {
        font-size: 1.9rem;
    }

    .header-socials {
        gap: 8px;
    }

    .header-socials-left {
        padding-right: 10px;
    }

    .header-socials-right {
        padding-left: 10px;
    }

    .social-icon {
        width: 23px;
        height: 23px;
    }


    /* CUDDLES */

    .photo-column {
        width: 100%;
        height: auto;

        margin: 0;

        align-items: center;
    }

    .photo-frame {
        width: 280px;
        height: 420px;

        margin: 0 auto;
    }


    /* THOUGHT BUBBLES */

    .thought-zone {
        left: 50%;

        width: 560px;

        margin-left: -280px;

        transform: none;

        scale: 0.68;
        transform-origin: center top;
    }


    /* BRAINSTORM */

    .storm-cluster {
        top: -18px;
        left: 50%;

        margin-left: -200px;

        transform: none;

        scale: 0.72;
        transform-origin: center top;
    }


    /* EMOJI HABOOB */

    .emoji-haboob {
        width: 100vw;
        height: 430px;

        left: 50%;
        top: -20px;

        transform: translateX(-50%);
    }


    /* FACT / DESERT */

    .fact-area {
        width: 100%;
        max-width: 437px;

        margin-top: 45px;
        margin-left: auto;
        margin-right: auto;
    }

    .desert-scene {
        left: 50%;
        width: 100%;

        transform: translateX(-50%);
    }


    .storm-cluster.show-storm {
    animation: storm-cluster-wiggle-mobile 0.18s ease 0.32s 18 alternate;
}

    .boop-button {
        position: absolute;

        left: 50%;
        top: 73.75%;

        transform: translate(-50%, -50%);

        background: transparent;
        color: var(--dark-blue);

        border: none;

        font-family: "Niconne", cursive;
        font-size: 1rem;
        font-weight: 400;

        cursor: pointer;

        padding: 8px;

        line-height: 0.9;
        text-align: center;

        touch-action: manipulation;
    }

@keyframes storm-cluster-wiggle-mobile {
    0% {
        transform: rotate(-2deg);
    }

    100% {
        transform: rotate(2deg);
    }
}




}