* {
	margin: 0;
	box-sizing: border-box;
}

html{
	background-color: hsl(0, 0%, 0%);
/*	background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 12px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 12px);*/
}

body {
  font-family: 'Courier New', monospace;
}

.page-wrapper {
	width: 85%;
	max-width: 100vw;
	margin: auto;
	text-align: left;
	background-color: hsla(280, 100%, 2%, .6);
	padding: 5% 10%;
	font-size: calc(10px + 1vw);
	overflow-wrap: break-word;
}

.page-wrapper p {
	line-height: 1.5em;
}

header{
	font-size: calc(10px + 2vw);
}

nav{
	margin-bottom: 2%;
}

nav ul {
	list-style: none;
	padding-left: 0;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 3vw;
	flex-wrap: wrap;
}

nav ul li.zero, nav ul li.ellipses{
	color: gray;
}

nav ul li.zero {
	width: 100%;
	text-align: right;
}

nav ul li .nav-links, nav ul li.ellipses-links{
	color:hsl(355,43%,99%);/*#E0E1E4;*/
}

nav ul li {
	font-size: clamp(5px + 1vw, 15px + 2vw, 3vw);
	white-space: nowrap;
	padding: 0.4em 0.3em;
	margin: 0 0 0.5em;
}

nav ul li a {
	text-decoration: none;
}

nav ul li a:hover, nav ul li.ellipses-links:hover { 
	color: hsl(322, 75%, 60%); 
}

.cohomological-arrows{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: visible;
}

.page-title-box, footer{
	padding: 0.8em 1em;
	color:hsl(355, 43%, 100%);
 
	background: linear-gradient(hsla(322, 75%, 60%, 0.52), hsla(322, 75%, 60%, 0.57), hsla(322, 75%, 60%, 0.70));
	/*background-color: hsla(314, 49%, 28%, 1.0);/*rgba(108, 38, 98, .42)*/ /*hsla(322, 80%, 64%, 1.0); */

	/*hsla(309, 48, 29, 1.0) rgba(108, 38, 98, 1.0) rgba(237, 90, 183, 0.42)*/
	border: 5px solid hsla(322, 75%, 60%, 0.52);
	border-radius: 20px;
}

main{
	color: black;
	margin: 5% 0;
}

.flex-container{
	display: flex;
	flex-direction: row;
	gap: 2vw;
	align-items: flex-start;
}

.content-box{
	border: 5px solid hsla(287, 45%, 58%, 0.38);
	color: hsl(355, 43%, 98%);
	border-radius: 20px;
	background: linear-gradient(hsla(287, 45%, 63%, 0.38), hsla(287, 45%, 63%, 0.43), hsla(287, 45%, 63%, 0.51));
	padding: 1em 1.5em;
	min-width: 0;
}


.contacts-box{
	margin-top: 5%;
}

.about-me-box{
	min-width: 30%;
	max-width: 35%;
	/*	background-color:hsla(322, 80%, 60%, 0.45);/*rgba(224, 186, 186, 0.93)*/ /*rgba(108, 38, 98, 1.0)*/

	padding: 1em 1.2em;
	flex: 1;
}

.about-me-box-header{
	margin: 1em 0;
}

object.email{
	height: 2em;
	width: calc(420/24 * 1em);
	vertical-align: middle;
}

#portrait{
	margin-top: 0.4em;
	width: 90%;
	height: auto;
	border-radius: 50%;
	border: 4px solid hsla(287, 45%, 58%, 0.38);
}

.grid-container{
	display: grid;
	grid-template-areas:
	"box1 box1 box1 box1"
	"box2 box2 box2 box2"
	"box3 box3 box4 box4"
	"box5 box5 box6 box6"
	"box7 box7 box7 box7"
	"box8 box8 box8 box9"
	"contacts contacts contacts contacts"
	;
	grid-template-columns: repeat(4, auto);
	grid-auto-rows: auto;
	gap: 1em;
	flex: 1;
	min-width: 0;
}

.grid-box-header{
	margin-bottom: 0.75em;
}

.box1{
	grid-area: box1;
}
.box2{
	grid-area: box2;
}
.box3{
	grid-area: box3;
}
.box4{
	grid-area: box4;
}
.box5{
	grid-area: box5;
}
.box6{
	grid-area: box6;
}
.box7{
	grid-area: box7;
}
.box8{
	grid-area: box8;
}
.box9{
	grid-area: box9;
}


/* hover effects for the boxes */

.box {
	background-size: 200% 200%; /*zoom in so we when me move the background position it creates a cool shifting effect */
	transition: background-position 0.5s ease, box-shadow 0.5s ease;
}

.box:hover {
	background-position: right center;
	box-shadow: 0 0 10px hsla(360, 100%, 100%, 0.5);
}

.contacts-box-header{
	margin-bottom: 0.4em;
}
.contacts-box p{
	line-height: 1.6em;
}

footer{
	font-size: calc(3px + 2vw);
	padding: 2%;
	margin-bottom: 5%;
}

a:link{
	color: hsl(40, 100%, 47%);
}

a:visited{
	color: hsl(91, 68%, 47%);
}

a:active{
	color: hsl(180, 70%, 47%);
}

/*listfm lmao*/
#lastfm-categories {
	list-style: none;
	padding-left: 0;
	position: relative;
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.3em 0.6em;
	width: 100%;
}

.lastfm-top {
	align-self: stretch;
	font-size: 1em;
	margin-right: -0.2em;
}

.lastfm-type {
	font-size: clamp(0.55em, 1.65vw, 0.8em);
	align-self: stretch;
	display: flex;
	align-items: center
}
.lastfm-time {
	font-size: clamp(0.40em, 1.4vw, 0.6em) ;
	align-self: stretch;
	display: flex;
	align-items: center;
} 

.lastfm-type, .lastfm-time {
	cursor: pointer;
	color: hsl(40, 100%, 47%);
	padding: 0 0.2em;
}

.lastfm-type .scale-wrapper,
.lastfm-time .scale-wrapper {
    display: inline-block;   /* needed for transform */
    opacity: 0.4;
    transition: opacity 0.3s, transform 0.3s;
}

/* Hover over the li or selected li */
.lastfm-type:hover .scale-wrapper,
.lastfm-type .scale-wrapper.selected,
.lastfm-time:hover .scale-wrapper,
.lastfm-time .scale-wrapper.selected {
    transform: scale(1.1);
    opacity: 1;
    cursor: pointer;  /* makes it clear it’s clickable */
}
/* .lastfm-type:hover, .lastfm-time:hover {
	opacity: 1;
	transform: scale(1.1);
}*/

/*.lastfm-type.selected .scale-wrapper, .lastfm-time.selected .scale-wrapper {
	opacity: 1;
	transform: scale(1.1);
}*/

#lastfm-categories hr {
	flex-basis: 100%;
	height: 0;
	margin: 0;
	border: 0;
}

#lastfm-list li a {
	color: hsl(355, 43%, 98%);
}

#lastfm-list li a:hover {
	color: hsl(40, 100%, 47%);
}

@media screen and (max-width: 900px) {
	.page-wrapper{
		text-align: center;
	}

	.flex-container{
		flex-direction: column;
	}

	.about-me-box{
		max-width: 100vw;
		width: 100%;
		margin: 0 0 2%;
	}

	#portrait{
		width: 45%;
		height: auto;
	}

	header{
		flex-direction: column;
	}

	header, footer{
		text-align: center;
	}

	.ellipses {
		margin-right: auto;
		text-align: left;
	}

	nav ul {
		justify-content: space-evenly;
	}
	
	#lastfm-categories {
		justify-content: center;
	}
	.lastfm-top {
		font-size: 1em;
	}

	.lastfm-type {
		font-size: clamp(0.7em, 2.5vw, 0.9em);
	}

	.lastfm-time {
		font-size: clamp(0.6em, 2vw, 0.7em);
	}


}

@media screen and (max-width: 600px) {
	.grid-container{
		grid-template-columns: 1fr;
		grid-template-areas:
		"box1"
		"box2"
		"box3"
		"box4"
		"box5"
		"box6"
		"box7"
		"box8"
		"box9"
	}
	.contacts-box p{
		font-size: calc(6px + 1vw);
	}

	.lastfm-top {
		font-size: 0.95em;
	}
	.lastfm-type {
		font-size: clamp(0.4em, 2.5vw, 0.8em);
	}

	.lastfm-time {
		font-size: clamp(0.35em, 2vw, 0.6em);
	}


}
