/* Portfolio Website for Sebastian Zhang */
/* Copyright 2021 Sebastian Zhang */

/* GLOBAL SETTINGS */
/* Variables */
:root {
	--primary-color: #000000;
	--background-color: #FFFFFF;
	--accent-color: #b026ff;
	--medium-accent-color: #b5b5b5;
	--light-accent-color: #e2d1ff;
	--alert-color: #FF0000;
	--highlight-color: #f5e6ff;

	--yellow-color: #FFD000;
	--blue-color: #00D5FF;
	--pink-color: #FF00E1;
	--purple-color: #A106FB;
	
	--font-size-default: calc(16px + .2vw);
	--font-size-fallback: 16px;
	--font-size-mono: calc(13px + .2vw);
	--default-font: barlow, sans-serif;
	--mono-font: jetbrains-mono, monospace;
	
	--default-width: 60%;
		--wide-width: 85%;
	--logo-width: 40%;
}

/* Default Font */
body {
	font-family: var(--default-font);
	background-color: var(--background-color);
	color: var(--primary-color);
}

/* Text Highlighting - Webkit/Blink Browsers Only */
::selection {
	background: var(--highlight-color); 
}

/* Text Modifiers */
.bold {
	font-weight: bold;
}
.italic {
	font-style: italic;
}
.light {
	font-weight: 300;
}
.invert {
	color: var(--background-color); 
	background-color: var(--primary-color); 
	padding: 4px;
}
.invert::selection {
	background: var(--accent-color);
}
.mark {
	background-color: var(--accent-color);
}
.color-primary a{
	color: var(--primary-color);
}

.color-accent {
	color: var(--accent-color);
}
.color-medium-accent {
	color: var(--medium-accent-color);
}
.color-light-accent {
	color: var(--light-accent-color);
}
.indent {
	margin-left: 4vw;
}

/* Font Loading */
@font-face {
	font-family: barlow;
	src: url(fonts/Barlow/Barlow-Regular.woff2);
}
@font-face {
	font-family: barlow;
	src: url(fonts/Barlow/Barlow-Italic.woff2);
	font-style: italic;
}
@font-face {
	font-family: barlow;
	src: url(fonts/Barlow/Barlow-Bold.woff2);
	font-weight: bold;
}
@font-face {
	font-family: barlow;
	src: url(fonts/Barlow/Barlow-BoldItalic.woff2);
	font-weight: bold;
	font-style: italic;
}
@font-face {
	font-family: barlow;
	src: url(fonts/Barlow/Barlow-Light.woff2);
	font-weight: 300;
}
@font-face {
	font-family: barlow;
	src: url(fonts/Barlow/Barlow-LightItalic.woff2);
	font-weight: 300;
	font-style: italic;
}
@font-face {
	font-family: jetbrains-mono;
	src: url(fonts/JetBrains-Mono/JetBrainsMono-Regular.woff2);
}

/* Load Animation */
@keyframes fade-in {
	from {opacity: 0%;}
	to {opacity: 100%;}
}


/* Links */
a {
	text-decoration: none;
	text-decoration-color: var(--accent-color);
	text-decoration-thickness: 0px;
	text-underline-offset: 6px;
	color: var(--accent-color);
	transition: .5s;
}
a:hover {
	text-decoration: none;
	background-color: var(--highlight-color);

}
.buttonlink:hover {
	text-decoration: none;
	background-color: transparent;

}

/* horizontal rules */

hr {
	border: none;
	color: var(--primary-color);
	background-color: var(--primary-color);
	box-shadow: none;
	height: 2px;
}

/* iframes - Used for YouTube Embedded Content */
.youtube {
	border: none;
	height: 65vh;
	width: 100%;
	resize: both;
	overflow: auto;
	margin: 0 auto;
}

.youtubewrap {
	height: 100; 
	text-align: center;
}

/* Paragraphs */
p {
	line-height: 1.5;
}

/* LOCAL SETTINGS */
/* Header */
.header {
	padding: 40px 0 0 0;
}
.logo {
	display: block;
	margin: auto;
	width: var(--logo-width);
	height: 10%;

	fill: var(--primary-color);
	transition: .5s;
}
.logo:hover {
	fill: var(--accent-color);
}

/* Navigation */
.navigation {
	display: block;
	margin: auto;
	width: var(--default-width);
	padding: 0 0 10px 0;
	text-align: center;
	
	font-size: var(--font-size-fallback);
	font-size: var(--font-size-default);
}

/* Content */
.content {
	display: block;
	width: var(--default-width);
	margin: auto;
	
	font-size: var(--font-size-fallback);
	font-size: var(--font-size-default);

	animation-name: fade-in;
	animation-duration: 1s;
}
.content-works {
	display: block;
	width: var(--wide-width);
	margin: auto;
	
	font-size: var(--font-size-fallback);
	font-size: var(--font-size-default);

	animation-name: fade-in;
	animation-duration: 1s;
}

.images {
	display: block;
	width: 100%;
	margin: auto;
}
.asalato-images {
	display: block;
	width: 70%;
	margin: auto;
}

.scintillations-diagram:hover {
	content:url (/assets/setups/scintillations-color-setup.png);
}

/* Score Preview Carousel */
.carousel-wrapper {
	width: 100%;
	position: relative;
	overflow: hidden;
	padding-bottom: 20px;
}

.carousel-container {
	display: flex;
	list-style: none;
	overflow: scroll;
	
	margin: 0;
	padding: 0;
	
	scroll-behavior: smooth;
	scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}
.carousel-container::-webkit-scrollbar { 
    width: 0;
    height: 0;
}

.carousel-slide {
	width: 100%;
	height: 100%;
	flex: 1 0 100%;
}

.carousel-arrow {
	position: absolute;
	display: flex;
	top: 0;
	bottom: 0;
	margin: auto;
	height: 4rem;
	color: var(--background-color);
	background-color: var(--primary-color);
	border: none;
	width: 2rem;
	font-size: 3rem;
	padding: 0;
	cursor: pointer;
	transition: .5s;
}

.carousel-arrow:hover,
.carousel-arrow:focus {
	background-color: var(--accent-color);
	cursor: pointer;
}

#carousel-arrow-prev {
  left: 0;
  padding-left: 0.25rem;
  border-radius: 0 2rem 2rem 0;
}

#carousel-arrow-next {
  right: 0;
  padding-left: 0.75rem;
  border-radius: 2rem 0 0 2rem;
}

.carousel-img {
	width: 100%;
}

/* Works Grid Page */

.works-grid {
	display:flex;
	flex-wrap: wrap;
	text-align: center;
	justify-content: center;
	
}

.works-grid > div {
	padding: 7px;
	margin: 7px;
	text-align: center;
}
.works-cover {
	width: 300px;
}

.works-grid-button {
	border: 2px solid;
	border-color: var(--background-color);
	line-height: 1.5;
    padding: 20px 20px 10px 20px;
	text-align: center;
	width: auto;
	
	border-radius: 5px;
	
	font-size: var(--font-size-fallback);
	font-size: var(--font-size-default);
	
	font-family: var(--default-font);
	
	color: var(--primary-color);
	background-color: var(--background-color);
	transition: .5s;
	
	}
.works-grid-button:hover {
	border-color: var(--light-accent-color);
	cursor: pointer;
}


.works-list {
	display:flex;
	flex-wrap: wrap;
justify-content: space-between;
	margin: auto;
	width: 85%;

}

.works-list > div {
	padding: 7px;
	margin: 0px;
	  width: 40%;

}

.works-list-button {
	border: 2px solid;
	border-color: var(--background-color);
	line-height: 1.5;
    padding: 10px 20px;
	margin: 0px;
	text-align: left;
	width: 100%;
	
	border-radius: 5px;
	
	font-size: var(--font-size-fallback);
	font-size: var(--font-size-default);
	
	font-family: var(--default-font);
	
	color: var(--primary-color);
	background-color: var(--background-color);
	transition: .5s;
	
	}
.works-list-button:hover {
	border-color: var(--light-accent-color);
	cursor: pointer;
}
.works-list-narrow {
	display:block;
	width: 100%;

}
.thoughts-list-narrow > div {
	padding: 7px;
	margin: 0px;
	  width: 40%;

}

.thoughts-list {
	display:block;
	width: 100%;

}

.thoughts-list > div {
	padding: 7px;
	margin: 0px;
	  width: 40%;

}

/* Works Filter Checkboxes */
.works-filter-container {
	padding: 4px 10px;
		margin: 5px;

	border: 2px solid var(--light-accent-color);
	border-radius: 5px;
		transition: .5s;
		user-select: none;

}

.works-filter-container:hover {
	background-color: var(--light-accent-color);
}
.works-filter-checkmark {
	display: none;
}

.works-filter-checkmark:checked + .works-filter-container {
	background-color: var(--primary-color);
		border-color: var(--primary-color);
	color: var(--background-color);
}

.works-filter-top {
	display:flex;
	justify-content: space-between;
	width: 80%;
	margin: auto;
	padding-bottom: 10px;
	

	
}
.works-filter-cell {
	
}
.works-filter-top-narrow {
	display:flex;
	justify-content: space-between;
	width: 100%;
	margin: auto;
	padding-bottom: 10px;
	display:block;
		line-height: 2.6;
			width: 100%;
	padding-bottom: 0px;

	
}
/* filter toggles */
.gridlisthide {
	display: none;
}

.perchide {
	display: none;
}

.solohide {
	display: none;
}

.statehide {
	display: none;
}

/* friends items */

.friend-button {
	padding: 4px 10px;
	margin: 5px;
	border: none;
	border-radius: 5px;
	transition: .5s;
	user-select: none;
	font-size: inherit;
	font-family: inherit;
	background-color: var(--primary-color);
		border-color: var(--primary-color);
	color: var(--background-color);
}

.friend-button:hover {
	background-color: var(--accent-color);

}



/* Screenshots for tutorials */
.screenshot {
	width: 80%;
	display: block;
	margin-top: 20px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: -10px;
	align: center;
}

/* Payment Button */
.payment-button {
	border: 0;
	line-height: 1.5;
    padding: 10px 20px;
	text-align: center;
	width: auto;
	
	border-radius: 5px;
	
	font-size: var(--font-size-fallback);
	font-size: var(--font-size-default);
	
	font-family: var(--default-font);
	
	color: var(--background-color);
	background-color: var(--primary-color);
	transition: .5s;
}	
.payment-button:hover {
	background-color: var(--accent-color);
	cursor: pointer;
}

/* For the linktree-style buttons on homepage*/
.home-button-container{
	display: flex;
	justify-content: center;
  flex-wrap: wrap;
}
.home-button {
	border: 0;
	line-height: 1.5;
    padding: 10px 20px;
	margin: 5px;
	text-align: center;
	
	border-radius: 5px;
	
	font-size: var(--font-size-fallback);
	font-size: var(--font-size-default);
	
	font-family: var(--default-font);
	
	color: var(--background-color);
	background-color: var(--primary-color);
	transition: .5s;
}	
.home-button:hover {
	background-color: var(--accent-color);
	cursor: pointer;
}

/* Bio Image Text */
.biotext {
	text-align: center;
	position: relative; 
	bottom: 275px;
	color: var(--background-color);
	text-shadow: 2px 2px 4px var(--primary-color);
	margin: 0 0 -40px 0;
}

/* Fleurons/Dingbats */
.asterism {
	display: block;
	margin: auto;
	width: 25px;
	height: 25px;

	fill: var(--primary-color);
}

/* Sticky Notes */
.sticky-yellow {
	background-color: var(--yellow-color); 
	padding: 20px;
}
.sticky-blue {
	background-color: var(--blue-color); 
	padding: 20px;
}
.sticky-pink {
	background-color: var(--pink-color); 
	padding: 20px;
}
.sticky-purple {
	background-color: var(--purple-color); 
	padding: 20px;
}
.sticky-black {
	background-color: var(--primary-color); 
	color: var(--background-color);
	padding: 20px;
}

/* Outline */
.outline {
	border-style: solid;
	border-color: var(--primary-color);
	border-width: 2px;
	padding: 20px;
	line-height: 1.5;
}

/* use when you end an outlined box with something that isn't a <p>*/
.outlinenob {
	border-style: solid;
	border-color: var(--primary-color);
	border-width: 2px;
	padding: 20px 20px 5px 20px;
	line-height: 1.5;
}

/* Lists */
ul {
	padding: 0px 0px 0px 20px;
	list-style-type: disc;
	line-height: 1.5;
}

/* Code Blocks */
.code-block {
	font-family: var(--mono-font);
	font-size: var(--font-size-mono);
	background-color: var(--light-accent-color);
	padding: 20px;
}
.code-block::selection {
	background-color: var(--medium-accent-color);
}

/* Phonology Table */
.langtable {
	margin-left: auto;
	margin-right: auto;
	overflow-x: hidden;
	width: 100%
}

.tablediv {
	overflow-x: scroll;
	-ms-overflow-style: none;  /* IE and Edge */
	scrollbar-width: none;  /* Firefox */
}
.tablediv::-webkit-scrollbar {
	display: none;
}

/* This is wrong, because it influences all th objects - need to limit to just phonology*/
.langtable, th {
	padding: 5px;
	text-align: left;
}

/* This is wrong, because it influences all td objects - need to limit to just phonology*/
.langtable, td {
	padding: 5px;
	text-align: left;
}

/* Columns */
.columnlayout{
	display: flex;
}
.column {
	flex: 50%;
}

/* Footer */
.footer {
	padding: 25px 0 25px 0;
}
.social-icon-table {
	margin: auto;
	width: 10%;

}
.social-icon-cell {
	padding: 8px;

}
.social-icon {
	display: block;
	margin: auto;
	width: 20px;
	height: 20px;
	
	fill: var(--primary-color);
	transition: .5s;
}
.social-icon:hover {
	fill: var(--accent-color);
}


.social-icon-table-profile {
	margin: 0;
	padding-top: 2px;
	width: auto;
	display:inline-table;


}

/* 404 and 403 Errors */

.page-error {
	padding: 10px;
	margin: auto;
	width: 50%;
	text-align: center;
	border-radius: 5px;
	
	color: var(--background-color);
	background-color: var(--primary-color);
}
.page-error::selection {
	background-color: var(--accent-color);
}


/* Development Warning */
.warning {
	position: fixed;
	top: 0;
	left: 0;
	height: auto;
	width: 100%;
	padding: 10px 0 10px 0;
	
	line-height: 1.5;
	text-align: center;
	
	color: var(--background-color);
	background-color: var(--alert-color);
}
.warning::selection {
	background-color: var(--primary-color);
}

/* Redirects */
.redirect {
	text-align: center;
	padding: 40px;
}

/* RESPONSITIVITY */
/* Smartphones */
@media only screen 
and (any-hover: none) {
	.youtube {
		height: 22.5vh;
		width: 100%
	}
	.logo {
		width: 85%;
	}
	.navigation {
		width: 90%;
	}
	.content {
		width: 90%;
	}
		.content-works {
		width: 90%;
	}
	.home-button {
		width: 100%;
	}
	.screenshot {
		width: 100%;
	}

	.works-cover {
	width: 100%;
}
		.works-list {
		padding: 0px;
	  align-items: center;
	    justify-content: center;
			row-gap: 15px;
		width: 100%;

	}
	.works-list > div {
		padding: 0px;
	  width: 100%;
	}
	.works-list-button {
		  width: 100%;
		  padding: 10px;
		margin: -0px -10px -0px -10px;
		}
	
	.works-filter-top {
	display:block;
		line-height: 2.6;
			width: 100%;
	padding-bottom: 0px;
	}
.asalato-images {
	width: 100%;
}

.home-button-container{
	display: block;
}

}

/* Tablets - Portrait 
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : portrait) {
	.youtube {
		height: 37vh;
		width: 100%
	}
	.logo {
		width: 50%;
	}
	.navigation {
		width: 90%;
	}
	.content {
		width: 90%;
	}
	.home-button {
		width: 50%;
	}
}
*/

/* Tablets - Landscape
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : landscape) {
	.youtube {
		height: 45vh;
		width: 100%
	}
	.logo {
		width: 60%;
	}
	.navigation {
		width: 60%;
	}
	.content {
		width: 60%;
	}
	.home-button {
		width: 60%;
	}
}
 */