/*
Description: This is the styling for my self-introduction website.
Version: 1.0.1
Author: Marvin Schank
Author URI: https://marvinschank.de/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/*
 * Load the nimbus font family.
 */
@font-face {
	font-family: "nimbus";
	src: url('../fonts/nimbus-sans_italic_400.woff') format('woff');
	font-weight: 400;
	font-style: italic;
	font-display: auto;
}

@font-face {
	font-family: "nimbus";
	src: url('../fonts/nimbus-sans_italic_700.woff') format('woff');
	font-weight: 700;
	font-style: italic;
	font-display: auto;
}

@font-face {
	font-family: "nimbus";
	src: url('../fonts/nimbus-sans_normal_400.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: auto;
}

@font-face {
	font-family: "nimbus";
	src: url('../fonts/nimbus-sans_normal_700.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: auto;
}


/* -------------------------------------------
 * Variables
 * -------------------------------------------
 */
:root {
	/* -- defining variables -- */
	/* font sizes */
	--h1-font-size: max(48px, 5.5vw);
	--h2-section-font-size: 36px;
	--h2-section-font-size-reduced: 30px;
	/* colors */
	--link-color: rgb(148 163 184);
	--link-hover-color: rgb(61, 172, 100);
	/* media */
	--default-aspect-ratio: 16 / 9;
	--thumbnail-aspect-ratio: 4 / 3;
	/* padding */
	--image-text-padding: 23px;
	--footer-left-right-padding: 24px;
	--header-padding: 16px;

	/* -- depending variables -- */
	/* padding */
	--footer-top-bottom-padding: calc(2 * var(--footer-left-right-padding, 24px));
}

/* -------------------------------------------
 * Default
 * -------------------------------------------
 */
* {
	margin: 0;
}

body {
	font-family: "nimbus", Arial, Helvetica, sans-serif;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
	body {
		background-color: rgb(36 37 39) !important;
		color: white !important;
		-moz-osx-font-smoothing: grayscale !important;
		-webkit-font-smoothing: antialiased !important;
	}
}

header {
	position: sticky;
	top: 0;
	z-index: 1;
}

img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

h1 {
	font-weight: 700;
	font-size: var(--h1-font-size);
	line-height: 0.9;
}

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

a:visited {
	text-decoration: none;
}

pre, pre:hover {
	white-space: pre-wrap;
	word-break: break-all;
}

pre code {
	display: block;
	overflow-x: auto;
}

@media only screen and (max-width:781px) {
	pre {
		white-space: pre;
	}
}

/* -------------------------------------------
 * Define the style.
 * -------------------------------------------
 */
.MathJax {
	font-size: 100% !important;
}

.picAndTitle {
	display: flex;
}

.imageBox {
	flex-shrink: 0;
	aspect-ratio: var(--default-aspect-ratio);
}

.biography {
	display: flex;
}

.bioTextBox {
	padding-top: var(--image-text-padding);
	padding-bottom: var(--image-text-padding);
}

.bioText {
	line-height: 1.5;
}

.placeholder {
	flex-shrink: 5;
}

.sectionPicAndTitle {
	align-items: baseline;
}

@media (max-width: 781px) {
	.sectionImageBox {
		flex-basis: 100% !important;
	}
}

.sectionTitle {
	font-size: var(--h2-section-font-size);
	padding-top: var(--image-text-padding);
}

@media (max-width: 781px) {
	.sectionTitle {
		font-size: var(--h2-section-font-size-reduced) !important;
	}
}

.inPageLinks {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	align-content: space-around;
	justify-content: space-around;
	padding-left: 20%;
	padding-right: 20%;
	padding-bottom: 25px;
}

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

.carousel ul {
	width: 100%;
	height: 100%;
}

.soundbetterBadge {
	text-align: center;
}

.footerFrame {
	padding-left: var(--footer-left-right-padding);
	padding-right: var(--footer-left-right-padding);
}

.footerContentBox {
	display: flex;
	padding-top: var(--footer-top-bottom-padding);
	padding-bottom: var(--footer-top-bottom-padding);
	justify-content: space-between;
	align-items: last baseline;
}

.props {
	text-align: right;
	font-size: 12px;
}

.props a:hover + a:active {
	color: var(--link-hover-color);
}
