html{
    line-height: 1.35;
}

img{
    height: auto;
}

body{
    font-size: 1.1em;
    font-family: 'Inconsolata', serif;
    margin-bottom: 40px;
    &.default-page{
        margin-top: 50px;
    }
    h1{
        font-size: 3em;
    }
    h2{
        font-size: 2em;
    }
    h3{
        font-size: 1.5em;
    }
    h1,h2,h3{
        font-family: 'Teko', sans-serif;
    }
    a{
        color: #05b9ff;
        &:hover{
            animation: hueshift 2s linear infinite;
            text-shadow: 2px 2px 10px #0000006b;
        }
    }
    .site-title{
        text-decoration: none;
        color: inherit;
    }
    .youtube-embed{
        aspect-ratio: 16 / 9;
        width: 100%;
    }
    footer{
        margin-top: 36px;
        .main-container{
            padding-top: 20px !important;
        }
        p{
            max-width: inherit !important;
        }
    }
}

.main-container{
    margin: 0 auto;
    max-width: 992px;
    padding: 0 28px;
    @media only screen and (max-width: 768px){
        padding: 0;
    }
}

.gallery-page{
    .main-container{
        max-width: 1400px;
    }
}

.homepage{
    color: #fff;
    .main-container{
        max-width: 992px;
    }
    #update-section{
        & > p{
            border-bottom: solid #444141 1px;
            padding-bottom: 15px;
            margin-top: 0;
            margin-bottom: 10px;
        }
        .update{
            &:not(:last-child){
                border-bottom: solid #444141 1px;
            }
        }
    }
}
.gradient-bg{
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    position: fixed;
    top: 0px;
    left: 0px;
    background: rgb(0, 5, 30);
    background: linear-gradient(0deg, rgb(14, 41, 66) 0%, rgb(0, 3, 40) 50%);
    z-index: -3;
}

/* Starry Background */
.spacebg1 {
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    position: fixed;
    top: 0px;
    left: 0px;
    background-image: url("../img/stars-anim-bg-1.gif");
    will-change: transform, filter;
    z-index: -1;
    mix-blend-mode: screen;
    animation: backgroundScroll 15s linear infinite;
}

.spacebg2 {
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    position: fixed;
    top: 0px;
    left: 0px;
    background-image: url("../img/new-space-bg-2.png");
    will-change: transform, filter;
    z-index: -2;
    mix-blend-mode: screen;
    animation: backgroundScroll2 25s linear infinite;
    opacity: .6;
}

@keyframes backgroundScroll {
    0% {background-position: 0px -350px; filter: opacity(100%);}
    50% {background-position:0px -175px; filter: opacity(70%);}
    100% {background-position:0px 0px; filter: opacity(100%);}
}

@keyframes backgroundScroll2 {
    0% {background-position: 0px -350px; filter: opacity(70%);}
    50% {background-position:0px -175px; filter: opacity(100%);}
    100% {background-position:0px 0px; filter: opacity(70%);}
}

/* Falling Stars
Adapted from codepen by Yusuke Nakaya */
#falling-stars{
    @media only screen and (max-width: 726px){
        display: none;
    }
    position: fixed;
    width: 100%;
    height: 100%;
    transform: rotateZ(45deg);
    top: 20%;
    z-index: -1;
    .falling-star-blue{
        background-image: url("../img/falling-star-blue.gif");
    }
    .falling-star-pink{
        background-image: url("../img/falling-star-pink.gif");
    }
    .falling-star-babana{
        img{
            width: 100%;
            animation: babanaspin 1s linear infinite;
        }
    }
    .falling-star{
        opacity: 0;
        content: "";
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        width: 64px;
        height: 64px;

        position: absolute;
        left: 50%;
        top: 50%;
        filter: drop-shadow(0 0 6px rgba(255, 232, 246, 0.5)); 

        top: calc(50% - 1px);
        right: 0;

        transform: translateX(50%) rotateZ(45deg);
        animation: 
            shining 15000ms ease-in-out infinite,
            shooting 15000ms ease-in-out infinite;
        transform: translateX(50%) rotateZ(-45deg);

        &:nth-child(1) {
            top: calc(50% - 512px);
            left: calc(50% - 157px);
            animation-delay: 3.4s;
        }
        &:nth-child(1)::before,
        &:nth-child(1)::after {
            animation-delay: 3.4s;
        }

        &:nth-child(2) {
            top: calc(50% - 102px);
            left: calc(50% - 623px);
            animation-delay: 7.1s;
        }
        &:nth-child(2)::before,
        &:nth-child(2)::after {
            animation-delay: 7.1s;
        }

        &:nth-child(3) {
            top: calc(50% - 678px);
            left: calc(50% - 210px);
            animation-delay: 1.9s;
        }
        &:nth-child(3)::before,
        &:nth-child(3)::after {
            animation-delay: 1.9s;
        }

        &:nth-child(4) {
            top: calc(50% - 45px);
            left: calc(50% - 400px);
            animation-delay: 5.8s;
        }
        &:nth-child(4)::before,
        &:nth-child(4)::after {
            animation-delay: 5.8s;
        }

        &:nth-child(5) {
            top: calc(50% - 320px);
            left: calc(50% - 310px);
            animation-delay: 9.0s;
        }
        &:nth-child(5)::before,
        &:nth-child(5)::after {
            animation-delay: 9.0s;
        }

        &:nth-child(6) {
            top: calc(50% - 150px);
            left: calc(50% - 720px);
            animation-delay: 2.5s;
        }
        &:nth-child(6)::before,
        &:nth-child(6)::after {
            animation-delay: 2.5s;
        }

        &:nth-child(7) {
            top: calc(50% - 580px);
            left: calc(50% - 90px);
            animation-delay: 6.7s;
        }
        &:nth-child(7)::before,
        &:nth-child(7)::after {
            animation-delay: 6.7s;
        }

        &:nth-child(8) {
            top: calc(50% - 210px);
            left: calc(50% - 510px);
            animation-delay: 8.3s;
        }
        &:nth-child(8)::before,
        &:nth-child(8)::after {
            animation-delay: 8.3s;
        }

        &:nth-child(9) {
            top: calc(50% - 95px);
            left: calc(50% - 250px);
            animation-delay: 0.7s;
        }
        &:nth-child(9)::before,
        &:nth-child(9)::after {
            animation-delay: 0.7s;
        }

        &:nth-child(10) {
            top: calc(50% - 460px);
            left: calc(50% - 640px);
            animation-delay: 4.2s;
        }
        &:nth-child(10)::before,
        &:nth-child(10)::after {
            animation-delay: 4.2s;
        }

        &:nth-child(11) {
            top: calc(50% - 330px);
            left: calc(50% - 170px);
            animation-delay: 5.6s;
        }
        &:nth-child(11)::before,
        &:nth-child(11)::after {
            animation-delay: 5.6s;
        }

        &:nth-child(12) {
            top: calc(50% - 210px);
            left: calc(50% - 610px);
            animation-delay: 1.2s;
        }
        &:nth-child(12)::before,
        &:nth-child(12)::after {
            animation-delay: 1.2s;
        }

        &:nth-child(13) {
            top: calc(50% - 740px);
            left: calc(50% - 390px);
            animation-delay: 9.8s;
        }
        &:nth-child(13)::before,
        &:nth-child(13)::after {
            animation-delay: 9.8s;
        }

        &:nth-child(14) {
            top: calc(50% - 50px);
            left: calc(50% - 220px);
            animation-delay: 0.4s;
        }
        &:nth-child(14)::before,
        &:nth-child(14)::after {
            animation-delay: 0.4s;
        }

        &:nth-child(15) {
            top: calc(50% - 180px);
            left: calc(50% - 550px);
            animation-delay: 7.5s;
        }
        &:nth-child(15)::before,
        &:nth-child(15)::after {
            animation-delay: 7.5s;
        }

        &:nth-child(16) {
            top: calc(50% - 620px);
            left: calc(50% - 130px);
            animation-delay: 3.9s;
        }
        &:nth-child(16)::before,
        &:nth-child(16)::after {
            animation-delay: 3.9s;
        }

        &:nth-child(17) {
            top: calc(50% - 290px);
            left: calc(50% - 470px);
            animation-delay: 2.0s;
        }
        &:nth-child(17)::before,
        &:nth-child(17)::after {
            animation-delay: 2.0s;
        }

        &:nth-child(18) {
            top: calc(50% - 560px);
            left: calc(50% - 80px);
            animation-delay: 6.4s;
        }
        &:nth-child(18)::before,
        &:nth-child(18)::after {
            animation-delay: 6.4s;
        }

        &:nth-child(19) {
            top: calc(50% - 130px);
            left: calc(50% - 390px);
            animation-delay: 8.9s;
        }
        &:nth-child(19)::before,
        &:nth-child(19)::after {
            animation-delay: 8.9s;
        }

        &:nth-child(20) {
            top: calc(50% - 470px);
            left: calc(50% - 300px);
            animation-delay: 1.5s;
        }
        &:nth-child(20)::before,
        &:nth-child(20)::after {
            animation-delay: 1.5s;
        }

    }
}

@keyframes shining {
  0% {
    width: 0;
  }
  
  50% {
    width: 64px;
  }
  
  100% {
    width: 0;
  }
}

@keyframes shooting {
  0% {
    transform: translateX(-1000px);
    opacity: 0.8;
  }
  
  100% {
    transform: translateX(1000px);
    opacity: 0.8;
  }
}

#header-container, .content-container{
    border-radius: 8px;
    background-color: rgba(11, 11, 11, 0.94);
    color: #fff;
}

/* Home Page */
#header-container{
    text-align: center;
    padding: 24px;
    margin: 34px 0px;
    position: relative;
    margin-top: 200px;
    h1{
        margin-top: 8px;
        margin-bottom: 0;
        font-weight: 800;
    }
    border: solid 2px #f08;
    box-shadow: 0 0 18px rgb(255, 75, 168);
    .pivot-peek{
        position: absolute;
        top: -205px;
        width: 470px;
        right: 0;
        @media only screen and (max-width: 726px){
            top: -30.7vw;
            width: 70vw;
            right: 0;
            left: 50%;
            transform: translate(-50%);
        }
    }
}
.content-container{
    @media only screen and (max-width: 726px){
        box-shadow: none;
    }
    padding: 24px;
    border: solid 2px #444141;
    margin-bottom: 36px;
    #home-catagories{
        h3{
            font-size: 1.4em;
            margin-top: 0;
            margin-bottom: 8px;
            position: absolute;
            color: #fff;
            bottom: -2px;
            left: 8px;
            text-shadow: 2px 2px 5px #000;
            z-index: 2;
            transition: left .3s ease-in-out;
        }
        .catagory{
            padding: 18px 0px;
            width: 100%;
            height: 110px;
            border-bottom: solid 1px #646464;
            &:first-of-type{
                padding-top: 0;
            }
            &:last-of-type{
                border: none;
                padding-bottom: 0;
            }
            a{
                @media only screen and (max-width: 726px){
                    box-shadow: none !important;
                }
                width: 310px;
                float: left;
                height: 110px;
                background: #fff;
                text-align: center;
                margin-right: 24px;
                overflow: hidden;
                position: relative;
                outline: solid 2px #444141;
                border-radius: 8px;
                span{
                    @media only screen and (max-width: 726px){
                        box-shadow: none !important;
                    }
                    position: absolute;
                    content: '';
                    background: linear-gradient(to top, rgba(0, 0, 0, 0.89) 0%, rgba(0, 0, 0, 0) 60%);
                    height: 100%;
                    width: 100%;
                    z-index: 1;
                }
                img{
                    width: 105%;
                    transition: transform .3s, scale .3s;
                    margin-left: -10px;
                    margin-top: -17px;
                }
                &:after{
                    position: absolute; 
                    content: ''; 
                    display: block; 
                    top: 0; 
                    left: 0; 
                    height: 100%; 
                    width: 100%;
                    background: linear-gradient(to top,rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%), linear-gradient(to left,rgb(255, 0, 193) 0%, rgb(0, 158, 255) 100%);
                    mix-blend-mode: color;
                    transition: opacity 0.3s ease-in-out;
                }
                &:hover{
                    animation: shadow-hueshift 2s ease-in-out infinite;
                    h3{
                        left: 16px;
                    }
                    img{
                        animation: imghueshift .8s ease-out 1;
                        scale: (1.1);
                        transform: rotate(10deg);
                    }
                    &:after{
                        opacity: 0;
                    }
                }
            }
            p{
                margin-top: 0;
            }
            .catagory-subtitle{
                color: #f08;
                font-weight: 600;
            }
        }
        #catagory-blog img {
            margin-top: -140px;
            width: 100%;
            margin-left: 0px;
        }
        #catagory-music img{
            margin-top: -40px;
        }
        #catagory-art img{
            margin-top: -50px;
        }
        #catagory-photography img{
            margin-top: -60px;
        }
        #catagory-gamedev img{
            margin-top: -170px;
        }
    }
    #home-sociallinks{
        margin: 18px 0px 8px;
        padding-left: 110px;
        a{
            margin: 0 2px;
            line-height: 2rem;
            white-space: nowrap;
            &:first-of-type{
                margin: 0;
            }
        }
    }
}
#sociallinks-section{
    position: relative;
    text-align: right;
    .pivot-falling-container{
        animation: floatrot 5s ease-in-out infinite;
        animation-direction: alternate;
        position: absolute;
        width: 210px;
        left: -50px;
        top: -86px;
        z-index: 1;
        .pivot-falling-anim{
            animation: float 4s ease-in-out infinite;
            width: 100%;
        }
    }
    p:first-of-type{
        margin-top: 0;
    }
}
#featured-section{
    p:first-of-type{
        margin-top: 0;
    }
}
@media only screen and (max-width: 726px){
    .content-container #home-catagories .catagory{
        height: auto ;
        padding-top: 32px ;
        &:first-of-type{
            padding-top: 0 ;
        }
        a{
            width: 100% ;
            height: 27vw ;
            margin-right: 0 ;
            margin-bottom: 15px ;
        }
        h3{
            font-size: 7vw ;
            padding-left: 1vw ;
        }
    }
    .content-container{
        #home-sociallinks{
            padding-left: 15vw;
        }
    }
    #sociallinks-section{
        .pivot-falling-container{
            width: 26vw;
            top: -67px;
            left: -40px;
        }
    }
}
@media only screen and (max-width: 450px){
    .content-container{
        #home-sociallinks{
            padding-left: 0;
        }
    }
}

@keyframes float{
    0%{
        transform: translate(0,0);
    }
    50%{
        transform: translate(0,15px);
    }
    100%{
        transform: translate(0,0);
    }
}

@keyframes floatrot{
    0%{
        transform: rotate(-5deg);
    }
    100%{
        transform: rotate(5deg);
    }
}

@keyframes hueshift{
    0%{
        color: #fff;
    }
    33%{
        color: #00FFFF;
    }
    66%{
        color: #FF00FF;
    }
    100%{
        color: #FFFF00;
    }
}

@keyframes shadow-hueshift{
    0%{
        outline-color: #fff;
        box-shadow: 0 0 18px #FFF;
    }
    33%{
        outline-color: #00FFFF;
        box-shadow: 0 0 18px #00FFFF;
    }
    66%{
        outline-color: #FF00FF;
        box-shadow: 0 0 18px #FF00FF;
    }
    100%{
        outline-color: #FFFF00;
        box-shadow: 0 0 18px #FFFF00;
    }
}

@keyframes border-hueshift{
    0% {
        border-color: 0 0 18px #FFF;
    }

    33% {
        border-color: 0 0 18px #00FFFF;
    }

    66% {
        border-color: 0 0 18px #FF00FF;
    }

    100% {
        border-color: 0 0 18px #FFFF00;
    }
}



@keyframes imghueshift{
    0%{
        filter: hue-rotate(0deg);
    }
    100%{
        filter: hue-rotate(360deg);
    }
}

@keyframes babanaspin{
    0%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(360deg);
    }
}

/* Gallery Styles */
.photography-page, .art-page, .games-page, .goodies-page, .blog-page, .gallery-page, .default-page{
    .youtube{
        aspect-ratio: 16 / 9;
        width: 100%;
        max-width: 1000px;
    }
    .gallery{
        a{
            margin-top: 16px;
            display: block;
            &:hover, &:focus{
                img, video{
                    opacity: 0.7;
                    outline: solid 3px;
                    animation: shadow-hueshift 3s linear infinite;
                }
            }
            picture{
                img{
                    max-width: 100%;
                    height: auto;
                }
            }
        }
        
        .row {
            display: flex;
            flex-wrap: nowrap;
            gap: 16px;
            transition: max-height 0.25s ease-in-out;
        }
    
        /* Create four equal columns that sits next to each other */
        .column {
            flex: 50%;
            max-width: 50%;
        }
    
        .column img, .column video {
            vertical-align: middle;
            width: 100%;
        }
    
        /* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
        @media screen and (max-width: 640px) {
            .row{
                flex-wrap: wrap;
            }
            .column {
                flex: 100%;
                max-width: 100%;
                a:first-of-type{
                    img{
                        margin-top: 0;
                    }
                }
            }
        }
    }

    .collapsible-gallery{
        .row{
            max-height: 0;
            overflow: hidden;
            display: none;
        }
    }

    button{
        border: solid 1px #d7d7d7;
        padding: 5px 15px;
        border-radius: 5px;
        box-shadow: #0000001a 2px 2px 5px;
        &:hover{
            animation: border-hueshift 2s linear infinite;
            background: #f0f0f0;
            cursor: pointer;
        }
        &:active{
            background: #ddd;
        }
    }
    .slbContentOuter button{
        border: none;
        box-shadow: none;
        &:hover{
            background: inherit;
        }
    }
    .collapsible{
        padding: 5px 30px 5px 15px;
        position: relative;
        i{
            position: absolute;
            top: 12px;
            right: 15px;
            transition: all 0.15s ease-in-out;
        }
        &.active{
            i{
                -webkit-transform: rotate(45deg);
                transform: rotate(45deg);
                right: 13px;
                top: 11px;
            }
        }
    }
}

.games-page{
    .gallery{
        margin-top: 15px;
    }
}

.goodies-page{
    li{
        margin-bottom: 10px;
    }
}

.slbIframeCont {
    width: 70em !important;
    
}

.slbDirectionNext .slbIframeCont{
    animation: slbEnterNext 0.4s;
}

.slbDirectionPrev .slbIframeCont{
    animation: slbEnterPrev 0.4s;
}

.arrow {
    border: solid black;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
}

.right {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.gallery-page, .default-page{
    h1, h2, h3{
        border-left: 3px solid #ff006c;
        margin-bottom: 5px;
        margin-top: 45px;
        padding-left: 10px;
        line-height: 38px;
    }
    h1{
        margin-bottom: 15px;
    }
    h3{
        border: none;
        padding-left: 0;
    }
    .site-title h1{
        border: none;
        padding-left: 0;
        font-size: 4.5rem;
        line-height: 1;
        margin-top: 22px;
    }
    p, iframe{
        margin-top: 0;
        margin-bottom: 20px;
    }
    p{
        max-width: 1000px;
    }
    .section{
        margin-top: 85px;
    }
}

.blog-page{
    h2{
        border: none;
        padding-left: 0;
    }
}

.new-highlight{
    animation: hueshift 2s linear infinite;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4196078431);
}

hr{
    color: #fff;
}

.post, .update{
    display: inline-block;
    width: 100%;
    margin: 7px 0px;
    .update-desc{
        margin-top: 10px;
    }
}

.posts{
    .post{
        margin-top: 25px;
    }
}

.update-title{
    font-weight: 800;
}

h1 a, h2 a, h3 a{
    color: #fff;
    text-decoration: none;
}

.update-header{
    margin-bottom: 8px;
}

.blog-page .main-content{
    img{
        max-width: 100%;
        width: 100%;
    }
    .youtube-embed{
        max-width: 1000px;
        display: block;
    }
    #blog-nav{
        display: flex;
        justify-content: space-between;
        border: solid 1px #444141;
        border-style: solid none;
        padding: 30px 0px;
        gap: 30px;
        & > div{
            width: 50%;
        }
    }
}

#web-banners{
    img{
        image-rendering: pixelated;
        transition: transform 0.4s cubic-bezier(.18,.89,.32,1.28);;
        z-index: 1;
        position: relative;
        &:hover{
            transform: scale(2);
            z-index: 2;
            box-shadow: 0px 5px 10px #000;
        }
    }
}

.code-block{
    width: auto;
    display: inline-block;
    padding: 5px 30px;
    background-color: rgba(11, 11, 11, 0.8392156863);
    border-radius: 8px;
    border: solid 2px #444141;
}

/* Bluesky Comments */

bsky-comments {
    --background-color: none;
    --text-color: rgba(255,255,255,0.8);
    --link-color: #0077cc;
    --link-hover-color: #005fa3;
    --comment-meta-color: rgba(255,255,255,0.5);
    --error-color: #ff4d4d;
    --reply-border-color: rgba(255,255,255,0.1);
    --button-background-color: rgba(255, 255, 255, 0.363);
    --button-hover-background-color: rgba(255,255,255,0.2);
    --author-avatar-border-radius: 50%;
    comments{
        margin-left: 0;
        padding-left: 0;
        padding-top: 0;
    }
    max-width: 81%;
    display: block;
    margin-left: -20px;
    margin-top: -45px;
    @media only screen and (max-width: 768px){
        max-width: 100%;
    }
}
