@import url('https://www.hofinga.at/styles.css');
div.section-buttons {
	display: flex;
	justify-content: space-evenly;
	margin-left: 150px;
	margin-right: 150px;
	& label.section-button {
		display: flex;
		height: 50px;
		width: 100%;
		border: 4px solid var(--section-button-border-color);
		border-radius: 8px;
		border-end-end-radius: 0;
		border-end-start-radius: 0;
		background: var(--section-button-color);
		transition:
			transform 0.05s ease,
			background var(--theme-transition-time) ease,
			border var(--theme-transition-time) ease,
			color var(--theme-transition-time) ease;
		transform-origin: center bottom;
		color: var(--section-button-text-color);
		text-decoration: none;
		align-items: center;
		justify-content: center;
		font-weight: 600;
		font-size: 120%;
	}
}
#section2-toggle:checked ~ .section-carousel .section-track {transform: translateX(0%);} /*move section-track on carousel to section2*/
#section3-toggle:checked ~ .section-carousel .section-track {transform: translateX(-100%);} /*move section-track on carousel to section3*/
#section4-toggle:checked ~ .section-carousel .section-track {transform: translateX(-200%);} /*move section-track on carousel to section4*/
input#section2-toggle:checked ~ div.section-buttons label.section2-button,
input#section3-toggle:checked ~ div.section-buttons label.section3-button,
input#section4-toggle:checked ~ div.section-buttons label.section4-button { /*transform section2/3/4-button when checked*/
	cursor: auto;
	background: var(--section-button-color-highlighted);
	transform: scale(1.05,1.2);
	transition:
			transform 0.2s ease,
			background var(--theme-transition-time) ease,
			border var(--theme-transition-time) ease,
			color var(--theme-transition-time) ease;
}
hr {
	border-top: 4px solid black;
	border-bottom: none;
	border-left: none;
	border-right: none;
	margin: 0;
}
div.section-carousel {
	overflow: hidden;
	width: 100%;
	& div.section-track {
		display: flex;
		width: 100%;
		transform: translateX(0);
		transition: transform 0.6s ease;
	}
}
div.section2 {
	flex: 0 0 100%;
	display: flex;
	flex-direction: column;
}
div.section3 {
	flex: 0 0 100%;
	display: flex;
	flex-direction: column;
	border: 4px solid blue;
	background: lightblue;
}
div.section4 {
	flex: 0 0 100%;
	display: flex;
	flex-direction: column;
	border: 4px solid orange;
	background: yellow;
}
div.section1 {
	border: 4px solid var(--section1-border-color);
	border-radius: 8px;
	margin-left: 1em;
	margin-right: 1em;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	padding: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: -4px 4px 4px var(--section1-border-shadow-color);
	transition: border-color var(--theme-transition-time) ease;
	& div.section1-text {
		padding: 0;
		margin: 0;
		flex-basis: 80%;
		
		& h2 {
			padding: 0;
			margin-top: -20px;
			margin-bottom: 0;
		}
		& p {
			padding: 0;
			margin-top: 5px;
			margin-bottom: 5px;
			margin-right: 0;
			margin-left: 0;
			text-align: center;
		}
	}
	& div.section1-button {
		display: flex;
		justify-content: space-between;
		flex-basis: 20%;
		flex-direction: column;
		padding: 10px;
		& a.button {
			height: 100px;
			width: 100%;
			line-height: 100px;
			padding: 0;
			display: block;
			border: 4px solid var(--button-border-color);
			border-radius: 20px;
			transition-duration: 0.4s;
			background-position: center center;
			background-size: contain;
			background-repeat: no-repeat;
			text-decoration: none;
			text-align: center;
			font-size: 2em;
			box-shadow: -4px 4px 4px var(--button-border-shadow-color);
			&:hover {
				border-left-width: 5px;
				border-bottom-width: 5px;
				border-right-width: 3px;
				border-top-width: 3px;
				border-color: var(--button-border-color-hover);
				filter: brightness(60%);
			}
			& svg {
				width: 100%;
				height: 100%;
				display: block;
				& text {
					x: 150;
					y: 50;
					text-anchor: middle;
					dominant-baseline: middle;
					font-family: Inter, sans-serif;
					font-weight: 800;
					font-size: clamp(16px, 2vw, 36px);
					fill: white;
				}
			}
		}
		& p {
			margin-top: 10px;
			margin-bottom: 0;
			margin-left: -10px;
			margin-right: -10px;
			text-align: center;
			font-size: calc(var(--p-font-size) * 0.8);
			opacity: 0.5;
		}
	}
}

a#jellyfin {background-image: url("images/buttons/jellyfin.png"); background-color: #000b25;}
a#plex {background-image: url("images/buttons/plex.png"); background-color: #282a2d;}
a#immich {background-image: url("images/buttons/immich.png"); background-color: #ffffff;}
a#nextcloud {background-image: url("images/buttons/nextcloud.png"); background-color: #ffffff;}
a#audiobookshelf {background-image: url("images/buttons/audiobookshelf.png"); background-color: #967233;}
a#bier {background-color: #3a0647;}
@media (max-width: 600px) { /*responsive layout or mobile portait-mode*/
	div.section-buttons {
		margin-left: 20px;
		margin-right: 20px;
	}
	div.section1 {
		& div.section1-text {flex-basis: 70%;}
		& div.section1-button {
			flex-basis: 30%;
			& p {
				font-size: calc(var(--p-font-size) * 0.4);
				opacity: 0.7;
			}
		}
	}
	div.section1 a.rainbow-button {flex-basis: 20%;}
	a#audiobookshelf {background-image: url("images/buttons/audiobookshelf-small.png");}
}