@import url("variables.css");

/* register fonts */
@font-face {
	font-family: 'Poppins';
	src: url("../font/Poppins-Light.ttf") format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Poppins';
	src: url("../font/Poppins-SemiBold.woff") format('truetype');
	font-weight: bold;
	font-style: normal;
}

@font-face {
	font-family: 'Sans Code';
	src: url("../font/GoogleSansCode-Regular.ttf") format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Sans Code';
	src: url("../font/GoogleSansCode-Bold.ttf") format('truetype');
	font-weight: bold;
	font-style: normal;
}

body {
	margin: 0;
	display: flex;
	flex-direction: column;

	min-height: 100vh;

	background: var(--back-color);
	color: var(--text-color);
	overflow-x: hidden;
}

body {
	font-size: 1rem;
	font-family: Poppins, sans-serif;
}

h1, h2 {
	margin-top: 1.5em;
}


#title-container {
	padding: 3em 2em 3em 2em;
}

main {
	/* expand on short pages to display footer at bottom */
	flex: 1;
}

#content {
	padding: 0em 0 3em 0;
}

#content, footer > div {
	width: var(--content-width);
	justify-content: left;
	align-items: start;
}

section {
	/* idk quick fix for organic padding on scroll focus */
	padding-top: 1rem;
	margin-top: -1rem;

	width: 100%;
	scroll-margin-top: var(--navbar-height)
}

/* classes to display images next to texts */
.row {
	display: flex;
	flex-direction: column;
	/* gap: 2em; */
}

.row:not(:last-child)::after {
	margin: 0 1em;
}

/* text with & without side images */
.col-text-img .col-text-wide {
	width: 100%
}

.col-img {
	padding: 0 1em;
	margin-bottom: 1.5em;
}

.img-container {
	display: flex;
	flex-direction: column;
	justify-content: left;
	align-items: start;
	width: 100%;
}

.img-container img {
	width: 100%;
}

figcaption {
	font-size: 0.7rem;
	font-style: italic;
}

.centered {
	/* width: 100%; */
	max-width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	/* gap: 0.5rem; */
}

.abs {
	position: absolute;
}

.rel {
	position: relative;
}

.h100 {
	height: 100%;
}

.w100 {
	width: 100%;
}

.mono {
	font-family: 'Sans Code', Courier, monospace;
}

/* hline */
hr {
	margin: 1em 0;
	border: none;
	height: 0;
	border-top: 1px solid #000;
	border-bottom: 1px solid #666
}

#partner-logos img {
	height: 32px;
}

#partner-logos img:hover {
	filter: drop-shadow(0 0 8px rgba(255, 255, 255, .75));
}

footer {
	width: 100%;
	box-sizing: border-box;
	background-color: var(--pastel-red);
	flex-direction: column;
}

details {
	margin-bottom: 1em;
}

/* replace details marker for consistent indentation for that 3px misalignment*/
summary {
	display: list-item;
	list-style: none;
	padding-left: 1.2em;
	position: relative;
}

summary::before {
	content: "\25BC"; /* triangle down, rotated 90°, to avoid safari emojis */
	position: absolute;
	left: 0;
	transform: rotate(-90deg);
}

details[open] summary::before {
	transform: rotate(0);
}

/* you special snowflakes*/
summary::-webkit-details-marker {
	display: none;
}

.nodrag {
	pointer-events: none;
}

.noselect {
	-webkit-touch-callout: none; /* iOS Safari */
	  -webkit-user-select: none; /* Safari */
	   -khtml-user-select: none; /* Konqueror HTML */
	     -moz-user-select: none; /* Old versions of Firefox */
	      -ms-user-select: none; /* Internet Explorer/Edge */
	          user-select: none; /* Non-prefixed version, currently
	                                supported by Chrome, Edge, Opera and Firefox */
}

/* media queries: PCs,tablets > 900px */
@media (min-width: 768px) {
	.row {
		flex-direction: row;
	}

	.col-text-img {
		width: 55%;
	}

	.col-text-wide {
		width: 75%;
	}

	.col-img {
		width: 45%;
		padding: 0;
	}
}
