@import url("/fonts.css");

@keyframes rotate {
	0%   {transform: rotate(0.5deg);}
	50%  {transform: rotate(-0.5deg);}
	100% {transform: rotate(0.5deg);}
}

@keyframes float {
	0%   {transform: translateY(-2px);}
	50%  {transform: translateY(2px);}
	100% {transform: translateY(-2px);}
}

* {
	font-family:   Go Mono;
	color:         var(--color-fg);
	padding:       0;
	margin:        0;
	overflow-wrap: break-word;
}

html {
	height: 100%;
	font-size: 0.9rem;
}

body {
	background-image:      var(--img-bg);
	background-size:       cover;
	background-repeat:     no-repeat;
	background-attachment: fixed;
}

h1 {
	text-align:    center;
	font-weight:   bold;
	font-size:     1.7rem;
	margin-bottom: 1.7rem;

	padding:          0.7rem;
	color:            var(--color-h1);
	background-color: var(--color-accent);
	background-image: var(--img-dither-alt);
}

h1:not(:first-child) {
	margin-top: 1.7rem;
}

h2 {
	border-left:   0.3rem solid var(--color-accent);
	padding-left:  1rem;
}

h2, h3, h4 {
	margin-bottom: 1rem;
	margin-top:    1.5rem;
}

p {
	margin: 1rem 0;
}

p:last-child {
	margin-bottom: 0;
}

img {
	max-width: 100%;
}

div {
	display:    block;
	box-sizing: border-box;
}

a {
	color:           var(--color-a);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

ul {
	margin-left: 1.5rem;
}

li {
	margin: 0.2rem 0;
}

.hover-float:hover {
	animation: float 1s ease-in-out infinite;
}

.hover-rotate:hover {
	animation: rotate 1s ease-in-out infinite;
}

.small-margin {
	margin: 0.5rem;
}

.flex {
	display: flex;
}

.flex.flex-wrap-center {
	flex-wrap:   wrap;
	align-items: center;
}

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

.full {
	height: 100%;
	width:  100%;
}

.transparent {
	color:            transparent !important;
	background-color: transparent !important;
}

.badge {
	height: 31px;
	width:  88px;
}

.badge, .blinkie, a.tool {
	display: flex;
	margin:  0.1rem;
}

a.tool {
	align-items:      center;
	width:            fit-content;
	background-color: var(--color);
	padding:          0.3rem;
	background-image: var(--img-dither-alt);
}

a.tool img {
	margin-right: 0.5rem;
	height:       1.7rem;
}

a.tool p {
	margin:      0;
	text-align:  center;
	font-weight: bold;
}

a.tool:hover p {
	text-decoration: underline;
}

a.tool.white p {
	color: #fff;
}

a.tool.black p {
	color: #000;
}

a.tool.black img {
	filter: brightness(0%);
}

a.tool.white img {
	filter: invert(100%) brightness(1000%);
}

img.art {
	width: 100%;
}

.monochrome-border {
	border-top:    1px solid #fff;
	border-left:   1px solid #fff;
	border-bottom: 1px solid #000;
	border-right:  1px solid #000;
}

div.footer-columns {
	display:     flex;
	width:       100%;
	align-items: center;
	white-space: nowrap;
	flex-wrap:   wrap;
}

div.footer-columns > div:not(:last-child):not(:first-child) {
	margin-left:  0.5rem;
	padding-left: 0.5rem;
	border-left:  var(--border-separator);
}

div.footer-columns > div:last-child {
	text-align: right;
	flex: 1;
}

.dim {
	opacity:   0.5;
	font-size: 0.9rem;
}

div.footer-columns > div:last-child > p {
	margin:     0.2rem;
	font-style: italic;
}

div.footer-columns a {
	display:   block;
	margin:    0.1rem;
	font-size: 0.9rem;
}

div#site {
	max-width: 800px;
	margin:    0 auto;
	padding:   1rem 0;
}

.window {
	display:       block;
	box-sizing:    border-box;
	margin-bottom: 0.7rem;

	box-shadow:       var(--shadow-regular);
	background-color: var(--color-bg);

	border-left:   var(--border-regular);
	border-top:    var(--border-regular);
	border-right:  var(--border-regular);
	border-bottom: var(--border-regular);
}

.window:not(#site-header) {
	padding: 0.7rem;
	background-image: var(--img-dither);
}

main#site-main {
	width: 100%;
}

nav#site-nav ul {
	margin: 0;
	list-style-type: none;
}

nav#site-nav li {
	margin:          0.2rem;
	list-style-type: none;
}

nav#site-nav li a {
	color:           var(--color-fg);
	text-decoration: none;
	white-space:     nowrap;
}

nav#site-nav li a:hover {
	text-decoration: underline;
}

nav#site-nav li.active a {
	opacity: 0.5;
}

div.extra {
	flex-grow: 1;
	background-image:    var(--img-decoration);
	background-position: 50% 0%;
}

img#site-banner {
	display: block;
	width:   500px;
	margin:  0 auto;
	content: var(--img-banner);
}

header#site-header {
	background-image:  var(--img-banner-bg);
	background-size:   cover;
	background-repeat: no-repeat;
}

marquee#site-marquee {
	display:          block;
	background-color: var(--color-bg);
	border-top:       var(--border-regular);
}

#last-fm {
	display: block;
	width:   100%;
	height:  auto;
}

div.shield {
	display:     flex;
	margin-left: 0.5rem;
}

div.shield p {
	font-size: 0.7rem;
	padding:   0.1rem 0.3rem;
	margin:    0;
}

div.shield p:last-child, div.shield p:first-child {
	color: var(--color-shield-fg);
}

div.shield p:first-child {
	background-color: var(--color-shield-bg);
}

div.shield:nth-child(6n+1) p:last-child {
	background-color: var(--color-shield-bg-alt1);
}

div.shield:nth-child(6n+2) p:last-child {
	background-color: var(--color-shield-bg-alt2);
}

div.shield:nth-child(6n+3) p:last-child {
	background-color: var(--color-shield-bg-alt3);
}

div.shield:nth-child(6n+4) p:last-child {
	background-color: var(--color-shield-bg-alt4);
}

div.shield:nth-child(6n+5) p:last-child {
	background-color: var(--color-shield-bg-alt3);
}

div.shield:nth-child(6n+6) p:last-child {
	background-color: var(--color-shield-bg-alt2);
}

img.right {
	margin: 0.5rem;
	float:  right;
}

@media screen and (max-width: 800px) {
	html {
		font-size: 0.8rem;
	}
}

div.photos > a {
	padding:      0.4rem;
	width:        calc(100% / 3);
	box-sizing:   border-box;
	aspect-ratio: 1 / 1;
}

@keyframes scroll {
	0%   {background-position: 0% 0%;}
	50%  {background-position: 100% 100%;}
	100% {background-position: 0% 0%;}
}

div.photos > a:hover > div {
	animation: scroll 4s ease-in-out infinite;
}

div.photos > a > div {
	border:     var(--border-regular);
	box-shadow: var(--shadow-regular);
	width:      100%;
	height:     100%;

	background-image:    var(--img);
	background-size:     cover;
	background-repeat:   no-repeat;
	background-position: center;
}

@media screen and (max-width: 650px) {
	html {
		font-size: 0.8rem;
	}

	nav#site-nav {
		width:        fit-content;
		margin-left:  auto;
		margin-right: auto;
	}

	nav#site-nav li {
		display: inline;
	}

	nav#site-nav ul {
		text-align: center;
	}

	div#site {
		margin: 0rem auto !important;
	}
}

@media screen and (min-width: 651px) {
	div.window-flex {
		display:        flex;
		align-items:    stretch;
		flex-direction: row;
	}

	div.window-flex > *:not(:first-child) {
		margin-left: 0.7rem;
	}

	nav#site-nav ul {
		border-bottom:  var(--border-separator);
		padding-bottom: 0.5rem;
	}

	div.extra {
		display: block;
	}
}
