:root {
  
    /* colors */
  --btn-main-color: #E1F6FF;
  --btn-main-text: #2961A5;
  --btn-main-hover: #A8DCFF;
  --btn-main-text-hover: #2977A7;

  --btn-sec-color: #5FC2E7;
  --btn-sec-text: #FFFFFF;
  --btn-sec-hover: #3A97D5;
  --btn-sec-text-hover: #FFFFFF;
  
  --btn-shadow-color: #000;
  --btn-shadow-amount: 5px;

  --btn-height: 2.5em;
  --panel-width: min(675px, 80vw);


  --text-color: #81FBFF;
  --text-hover: #FFFFFF;

  --gradient-1: #0E5DA5;
  --gradient-2: #2183A7;
  --gradient-3: #30A2CB;
  --gradient-4: #33BCBC;
  --gradient-5: #33BC93;

  --border-color: #96AAE2;
  --border-color-dark: #84A0D5;
  --hr-panel-color: #96BAE6;
  --updates-bg: #e5f3ff;
  --updates-thumb: #8bd9fe;
}

html, body { margin: 0; padding: 0; overflow-x: hidden; }

/* outside panel elements */

#loading {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12;
    position: fixed;
    transition: opacity 0.5s ease-in-out;
    transition-delay: 0.1s;
    pointer-events: none;
    background: var(--btn-main-color);
}

.shown { opacity: 1; }
.hidden { opacity: 0; }


/* floating panels */
.panel {
	width: var(--panel-width);
	margin: auto;
	display: block;
	padding: 0px 1em;
	margin-top: 100px;
	font-family: Inter;
	margin-bottom: 18em;
	border-radius: 25px;
	color: var(--btn-main-text);
	background: var(--btn-main-color);
	border: solid 3px  var(--border-color);
  	filter: drop-shadow(0px 4px 20px rgba(0,0,0, 0.25));
}
.panel:last-of-type { margin-bottom: 32em; }

.flex {
	display: flex;
	align-items: top;
	justify-content: space-evenly;
}

.panel aside, .panel article {
	flex: 1;
	margin-top: 45px;
}

.panel aside { flex: 0.5; }
.panel .gallery { flex: 0.8; } /* for grat standee */
.panel aside center p { margin: 7px 0px; }
.panel aside img {
	width: 80%;
	margin: auto;
	display: block;
    max-height: 600px;
	margin-bottom: 20px;
}

.panel article hr {
	width: 97%;
	border: none;
	height: 20px;
	margin: auto;
	display: block;
	border-radius: 50px;
	background: var(--hr-panel-color);
}


/* is IS just a list of selectors */
.panel :is(h1, h2, h3, h4, h5, h6, p) {	margin: 10px; }
.panel :is(h1, h2, h3, h4, h5, h6) { font-size: 1.4em; }
.panel :is(ul, ol) {
    margin: 10px;
    padding-left: 20px;
}

.panel hr {
	width: 100%;
	height: 1px;
	display: block;
    margin: 12px auto;
	border-style: solid;
	border-color: var(--gradient-4);
	background-color: var(--gradient-4);
}

/* only panels that does not contain buttons */
.panel:not(:has(.buttons)) hr { margin-bottom: 30px; }

.buttons {
	display: flex;
    margin-bottom: 5px;
	justify-content: space-evenly;	
}
.buttons a, .panel aside center a, .projects .blog-post a, .moar a {
	width: 100%;
	font-weight: 600;
	font-size: 1.1em;
	padding: 5px 15px;
	margin: 15px 10px;
	text-align: center;
	border-radius: 50px;
	text-decoration: none;
	color: var(--btn-main-color);
	transition: 0.25s ease-in-out;
}

/* for pfp */
.rounded {
	border-radius: 300px;
}

/* button margin*/
.buttons a:last-child { margin-right: 0; }
.buttons a:first-child { margin-left: 0; }

/* button colors*/
.buttons a:nth-child(1) { background-color: var(--gradient-1); }
.buttons a:nth-child(2) { background-color: var(--gradient-2); }
.buttons a:nth-child(3) { background-color: var(--gradient-3); }
.buttons a:nth-child(4) { background-color: var(--gradient-4); }
.buttons a:nth-child(5) { background-color: var(--gradient-5); }
.buttons a:hover, .panel aside center a:hover, .projects .blog-post a:hover, .moar a:hover 
{ filter: brightness(1.3); }
.panel aside center a { background-color: var(--gradient-2); }

.panel aside center a {
	height: 30px;
	display: flex;
	margin: 15px 0px;
	align-items: center;
	justify-content: center;
	width: calc(90% - 20px);
}

#artist-name {
    font-weight: bold;
}
#artist-name[href]:hover {
    filter: brightness(1.3);
}
#artist-name:visited {
    color: inherit;
}

.artwork {
	width: 100%;
	display: flex;
	margin: 20px 0px;
	flex-direction: column;
}

.artwork a {
	display: flex;
	justify-content: space-evenly;
    text-decoration: none;
}


.artwork .img {
	--background: url(images/assets/background4.jpg);

	width: 90%;
	height: 300px;
	display: grid;
	overflow: hidden;
	background-size: cover;
	border: 1px solid #000000;
	grid-template-columns: 1fr;
	background-position: left;
    background-color: #fff;
	background-image: var(--background);
}

.artwork .img div {
	z-index: 2;
	opacity: 0;
	width: 100%;
	height: 100%;
	display: flex;
	grid-row-start: 1;
	align-items: center;
	grid-column-start: 1;
	justify-content: center;
	transition: ease-in-out 1s;
	color: var(--btn-sec-text);
}

.artwork .img:hover div:not(.bg) { transition-delay: 0.2s;	}
.artwork .img:hover div { opacity: 1; }

.artwork .img .bg {
	z-index: 1;
	background-size: cover;
	transition-duration: 0.8s;
	background-position: left;
	filter: blur(2px) brightness(50%);
    background-color: #fff;
	background-image: var(--background);
}

.artwork .img:hover .bg {
	transform: scale(1.1);
	transition-property: transform, filter;
} 

.artwork .img div:last-child {
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
}

.artwork .img div:last-child div {
	display: flex;
	width: initial;
	height: initial;
	flex-direction: row;
}

.art-title { font-size: 21px; }

.art-form {
	font-size: 14px;
	color: var(--border-color);
}

.fedi, .updates {
	width: 100%;
	margin: 10px;
}

.updates div {
	max-height: 450px;
	overflow-y: auto;
	border-radius: 15px;
	font-family: var(--atkinson);
	background-color: var(--updates-bg);
	border: solid var(--border-color) 2px;
    scrollbar-color: var(--updates-thumb) var(--updates-bg);
}

.updates div p {
	padding: 15px 0px;
	border-bottom: 1px solid var(--gradient-3);
}

/* blog post styling */
.blog-post {
	display: flex;
	color: inherit;
	margin-bottom: 15px;
	text-decoration: none;
}

.blog-post:hover {	
	border-radius: 15px;
	background-color: var(--btn-main-hover);
}

.blog-post div:first-child {
	--background: url(images/assets/background4.jpg);
	width: 40%;	
	background-size: cover;
	border: solid 1px black;
	background-position: center;
	background-image: var(--background);
}

.blog-post div:last-child {	
	width: 60%;
	padding: 15px;
	padding-top: 0px;
	padding-bottom: 5px;
}

.blog-post div:last-child h2 { color: var(--blog-color, #0542B3); }

.blog-post div:last-child p {
	height: 60px;
	overflow: hidden;
	word-wrap: break-word;
	text-overflow: ellipsis;
}

.blog-post:nth-child(1 of .blog-post) { --blog-color: var(--gradient-2)}
.blog-post:nth-child(2 of .blog-post) { --blog-color: var(--gradient-3)}
.blog-post:nth-child(3 of .blog-post) { --blog-color: var(--gradient-4)}
.blog-post:nth-child(4 of .blog-post) { --blog-color: var(--gradient-5)}
.blog-post:nth-child(4 of .blog-post) { --blog-color: var(--gradient-5)}
.blog-post:nth-child(5 of .blog-post) { --blog-color: var(--gradient-1)}

/* socials page styling*/
.btn-main svg-img svg {
	margin-top: 5px;
	height: 24px;
	width: 24px; 
	fill: var(--btn-main-text);
}
.btn-main svg-img svg path { fill: var(--btn-main-text); }

.row #pfp {
	width: 25%;
	max-width: 250px;
	margin-top: 5%;
  	filter: drop-shadow(0px 4px 20px rgba(0,0,0, 0.25));
}

.row .text {
	color: var(--text-color);
	text-align: center;
	cursor: default;
}

.row .text h1 {
	margin: 0.5em 0 0.3em 0;
	font-size: 32px;
	font-weight: bolder;	
	font-family: var(--atkinson); /*change out with monospace ver*/
}

.row .text p {
	font-family: Inter;
	font-size: 22px;
	font-weight: 600;	
	margin: 0 0 1.5em 0;
}

.row {
	display: flex;
	justify-content: center;
}

.col {
	display: flex;
	flex-direction: column;
}

.btn-main {
	font-size: 1.2em;
	font-family: Inter;
	border-radius: 59px;
	width: 30%;
	max-width: 350px;
	height: var(--btn-height);
	margin-bottom: 0.9em;

	/* align text in the middle of the button */
	display: flex;
	justify-content: space-between;
	align-items: center;

	font-weight: 600;
	text-decoration: none;
	transition: 0.1s linear;
	padding: 0px 1em;

	color: var(--btn-main-text);
	background: var(--btn-main-color);
  	filter: drop-shadow(0px 4px 20px rgba(0,0,0, 0.25));
}

.btn-main:not(:has(svg-img)) {
	justify-content: center;
}

.btn-main:hover {
	cursor: pointer;
	background: var(--btn-main-hover);
	color: var(--btn-main-text);
}

.row .btn-main:first-child:not(:last-child) {
	border-top-right-radius: 0px;
	border-bottom-right-radius: 0px;
	width: 35%;
}

.row .btn-main:last-child:not(:first-child) {
	background-color: var(--btn-sec-color);
	color: var(--btn-sec-text);
	border-top-left-radius: 0px;
	border-bottom-left-radius: 0px;
	width: 35%;
}

.row .btn-main:last-child:not(:first-child) svg-img svg { 
	fill: var(--btn-sec-text);
}

.row .btn-main:last-child:not(:first-child) svg-img svg path { 
	fill: var(--btn-sec-text);
}

.row .btn-main:last-child:not(:first-child):hover {
	background-color: var(--btn-sec-hover);
	color: var(--btn-sec-text-hover);
}

	/* gallery */
.v-flex {
    display: flex;
    flex-direction: column; 
}

.panel article svg-img svg {
	width: 32px; /* cuz svgs don't wanna act */
	height: 32px;
	margin-top: 5px;
	fill: var(--gradient-3);
}

.panel article svg-img svg path { fill: var(--gradient-3); }
.panel article a { text-decoration: none; transition: 0.2s; }  
.panel article a:has(svg-img):hover { filter: brightness(1.3); }
.panel article .icons {
	display: flex;
	margin: 20px 10px;
	justify-content: space-evenly;
}

.panel article .dir {
    flex-grow: 1;
	display: flex;
	margin-bottom: 15px;
	flex-direction: column;
	justify-content: center;
}

.panel article .dir h4 { 
	color: var(--border-color-dark);
	text-align: center;
	font-size: 1em;
}

.panel article .dir div {
	display: flex;
	justify-content: space-evenly;
}

.panel article .dir div :is(a, p) {
	font-size: 1.2rem;
	font-weight: bold;
}

.panel article .dir div p { margin: 0px 10px; pointer-events: none;}
.panel article .dir div a:nth-child(1) { color: var(--gradient-2);}
.panel article .dir div a:nth-child(3) { color: var(--gradient-3);}
.panel article .dir div a:nth-child(5) { color: var(--gradient-4);}
.panel article .dir div a:hover { filter: brightness(1.3); }

/* seperator with names and blurb */
.seperator { margin: 30px 0px; }
.seperator :is(h3 p) { font-family: var(--atkinson); }

.seperator h3 {
    font-size: 1.6em; 
    letter-spacing: 1px;
    color: #0156FF;
    margin: 0;
}
.seperator hr {
    border-color: var(--border-color);
    margin: 5px 0px;
}
.seperator p:before { content: '"';}
.seperator p:after { content: '"';}

.seperator p {
    text-align: right;
    font-weight: bold;
    color: #84A0D5;
    margin: 5px 0px;
}

/* graphics*/
.graphics {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-items: center;
    
}
.graphics div {
    display: flex;
    flex-direction: column;
    justify-content:center;
    width: 30%;
}
.graphics div img {
    display: flex;
    width: 100%;
}
.graphics div p {
    text-align: center;
    font-size: 0.9em;
    color: var(--border-color);
}

.art-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 10px 0px;
}

.art-grid > div {
    width: 190px;
    height: 140px;
    margin: 10px 8px;
    display: block;
    border: 2px solid var(--border-color);
    background-image: var(--image);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    
}

.art-grid > div {
    &:nth-child(1) {--image: url("images/media/lowpoly/desert-rain-frog.png")}
    &:nth-child(2) {--image: url("images/media/lowpoly/wiitri-spin.gif")}
    &:nth-child(3) {--image: url("images/media/lowpoly/strawberry-bot.gif")}
    &:nth-child(4) {--image: url("images/media/sketches/grats.png")}
    &:nth-child(5) {--image: url("images/media/sketches/glorpi_grat.png")}
    &:nth-child(6) {--image: url("images/media/sketches/grot.png")}
    &:nth-child(7) {--image: url("images/media/pixelart/sati-waitscreen.gif")}
    &:nth-child(8) {--image: url("images/media/pixelart/penumbra.png")}
    &:nth-child(9) {--image: url("images/media/pixelart/grat-fumo.png")}
}
/* project, uses blog style as base */
.projects .blog-post div:first-child {
    width: 60%;
    height: 170px;
    border-width: 2px;
    border-color: var(--border-color-dark);
}
.projects .blog-post:nth-child(1) div:first-child { 
    background-image: url("images/assets/thumb/wobblewall.png"); 
}
.projects .blog-post:nth-child(3) div:first-child { 
    background-image: url("images/assets/thumb/hotnode.png"); 
}
.projects .blog-post:nth-child(5) div:first-child { 
    background-image: url("images/assets/thumb/envteaches.png"); 
}
.projects .blog-post:nth-child(7) div:first-child { 
    background-image: url("images/assets/thumb/hot.png"); 
}


.projects .blog-post a { background-color: var(--blog-color) }
.projects .blog-post a {
    width: 30%;
    margin: auto;
    display: block;
    margin-top: 17px;
    margin-bottom: 10px;
}

.projects .blog-post:hover { background-color: transparent; }

.moar {
    display: flex;
    margin-top: 10px;
    flex-direction: column;
    justify-content: center;
}

.moar a {
    width: 25%;
    margin: auto;
    margin-top: 5px;
    font-size: 1.1em;
    background-color: var(--gradient-4);
}
.moar hr { width: 50%; }

/* stop gallery */
/* start links */

.links details summary {
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
}

.links details hr {
    width: 75%;
    height: 4px;
    display: block;
    margin: 15px auto;
    background: var(--gradient-2);
}

.links article details div {
    width: 80%;
    display: flex;
    justify-content: center;
}

.links .dir div:first-of-type {
    width: 85%;
    margin: auto;
}
.links .dir div:last-of-type {
    width: 65%;
    margin: auto;
    margin-bottom: 10px;
}

a:focus:has(:is(.badge-img, .stamp-img)) {outline: none}
a:focus :is(img.badge-img, img.stamp-img) {
    transition-property: scale;
    outline: 3px solid highlight;
    box-shadow: inset 0px 5px black;
}

.badge-img {
    margin: 2px;
    width: 88px;
    height: 31px;
    image-rendering: crisp-edges;
}

.stamp-img {
    margin: 5px;
    width: 95px;
    height: 56px;
}

/* hover effects */
.stamp-img, .badge-img { transition: all 0.5s; }
.stamp-img:hover, .badge-img:hover { transform: scale(2); }

/* stop links */
/* start blog*/

/* the blog's panels are more square than other pages */
.blog { border-radius: 5px;
        position: relative;
        z-index: 2;} 
.blog .v-flex { margin-top: 15px; }

.bg-gear-div {
    z-index: -1;
    position: absolute;
    overflow: hidden;
}

#bg-gear-1 {
    transform: translate(calc(var(--panel-width) / 1.8), -140px);
    left: calc(100vw / 2 - var(--panel-width) / 2);
}

#bg-gear-2 {
    transform: translate(calc(var(--panel-width) / -3.2), 900px);
    left: calc(100vw / 2 - var(--panel-width) / 2);
}

.bg-gear-div .bg-gear {
    width: 460px; 
    display: block;
    overflow: hidden;
    animation: rotate 20s infinite linear;
}

#bg-gear-1 .bg-gear path {
    fill: var(--gradient-4);
}

#bg-gear-2 .bg-gear path {
    fill: var(--gradient-3);
}

.blog .banner div {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    border: solid 3px black;
    background: url("images/assets/blog_banner.png");
    background-size: cover; /* needs to come after background  */
}
.blog .banner h2 {
    --font-outline: #084F91;

    color: #fff;
    font-size: 30px;
    margin-top: 80px;
    text-align: center;
    letter-spacing: 1px;
    font-family: var(--atkinson);
    filter: drop-shadow(1px 1px var(--font-outline)) 
            drop-shadow(1px -1px var(--font-outline))
            drop-shadow(-1px 1px var(--font-outline))
            drop-shadow(-1px -1px var(--font-outline));
}

.blog article .hr {
    height: 6px;
    margin: auto;
    margin-top: 20px;
    margin-bottom 15px;
    background: color-mix(in oklab, var(--btn-main-color) 80%, black);
}

.blog :is(h1,h2,h3,h4,h5,h6) :not(.blog-post) {
    color: var(--gradient-2);
    margin-top: 45px;
}

.blog .blog-post h2 {
    margin-top 0px;
}

.blog .blog-manga {
    display: flex;
    flex-direction: column;
    overflow-x: scroll;
} 

.blog .blog-manga div {
    display: flex;
    flex-direction: row;
}

.blog .blog-manga div a { margin: 10px; }
.blog .blog-manga div a:first-of-type { margin-left: 0px; }

.blog .blog-manga div img {
    height: 300px;
}

.blog ul li { margin-bottom: 7px; }
.blog ul li a {
    color: var(--gradient-2);
}

.blog p img:not(.keymote) {

	margin: auto;
	display: block;
	width: 95%;
}

/* background scroll styling*/
#background {
  --size: 300px;
  
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  position: fixed;
  background-position: 0px 0px;
  background-size: calc(var(--size));
  animation: 20s linear infinite background-scroll;
}

.diamond { background-image: url("images/assets/diamond_bg.png"); }
.squares { background-image: url("images/assets/square_bg.png"); }
.crossed { background-image: url("images/assets/cross_square_bg.png"); }
.striped { background-image: url("images/assets/square_stripe_bg.png"); }
.triangle { background-image: url("images/assets/triangle_bg.png"); }
.stars   { background-image: url("images/assets/links_bg.png"); }

 @keyframes background-scroll {
    0% {
      background-position: calc(var(--size) * -1) calc(var(--size) * -1);
    }
    100% {
      background-position: var(--size) var(--size);
    }
 }

/* mobile version */
@media (max-width: 600px) {

	/* flex content into a column for mobile display*/
	.flex {
		flex-direction: column;
		align-items: center;
	}

	/* flex buttons and apply styling to make them wide */
	.buttons {	flex-wrap: wrap; }
	.buttons a {
		height: 30px;
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 15px 10px;
	}

	.artwork img { width: 350px; }

	.blog-post div:first-child {
		height: 100px;
		margin-bottom: 15px;
		width: calc(100% - 2px);
	} 
	.blog-post { flex-direction: column; }
	.blog-post div:last-child { width: 95%;	}
    .projects .blog-post div:first-child { width: 100%; }


    .graphics div {
        width: 100%;
    }

    .graphics {
        flex-direction: column;
    }

    .blog .blog-manga { flex-direction: row; }

    /* gallery */
    .art-grid { grid-template-columns: 1fr; }
    .art-grid > div {
        width: 90%;
        height: 180px;
    }

    .bg-gear-div .bg-gear { display: none; }

    .buttons a:first-child { margin-left: 10px; }
    .buttons a:last-child { margin-right: 10px; }
}

/* reduced motion version */
@media (prefers-reduced-motion: reduce) {
	#background { animation-play-state: paused;}

    .gear svg,
    .bg-gear-div .bg-gear { animation-play-state: paused; }
} 

/* darkmode version*/
@media (prefers-color-scheme: dark){
	:root {
		--btn-main-color: #0E216A;
		--btn-main-text: #9ABFFF;
		--btn-main-hover: #243D9F;

        --btn-sec-color: #3A97D5;
        --btn-sec-text: #FFFFFF;
        --btn-sec-hover: #2958AB;
        --btn-sec-text-hover: #FFFFFF;

		--border-color: #5382D8;
		--hr-panel-color: #96BAE6;
		--updates-bg: #153C80;
        --updates-thumb: #005986;

        --gradient-1: #1A84E3;
        --gradient-2: #2CACDB;
        --gradient-3: #59D3FF;
        --gradient-4: #3AE8E8;
        --gradient-5: #3BD7A8;
	}

    .diamond { background-image: url("images/assets/diamond_bg_dark.png"); }
    .squares { background-image: url("images/assets/square_bg_dark.png"); }
    .crossed { background-image: url("images/assets/cross_square_bg_dark.png"); }
    .striped { background-image: url("images/assets/square_stripe_bg_dark.png"); }
    .triangle { background-image: url("images/assets/triangle_bg_dark.png"); }
    .stars   { background-image: url("images/assets/links_bg_dark.png"); }

    /* socials page colors */
    .btn-main { background: #1F5AC1; }
    .row .btn-main:last-child:not(:first-child):hover { background-color: #2473A8; }
    

}
