:root {

	/* Colors source: https://coolors.co/ad343e-474747-f2af29-000000-e0e0ce */
	--primary-color:				#000000;	/* black */
	--secondary-color:				#474747;	/* outer space */
	--secondary-color-dark:			#3d3d3d;	/* onyx */
	--secondary-color-light:		#999999;	/* battleship gray */
	--secondary-color-lighter:		#a3a3a3;	/* silver */
	--accent-color-red:				#ad343e;	/* cardinal */
	--accent-color-red-light:		#D5727A;	/* old rose */
	--accent-color-yellow:			#f2af29;	/* xanthous */
	--accent-color-yellow-light:	#fada9e;	/* peach yellow */
	--accent-color-yellow-dark:		#c2820a;	/* dark goldenrod */
	--background-color:				#e0e0ce;	/* eggshell */
	--background-color-light:		#efefe6;	/* alabaster */
	--glow-color:					#ffff80;	/* white */
	--blue-color:					#4da3ff;	/* blue */


	/*
		Font weights:
		300: light
		400: regular
		500: medium
		600: semi bold
		700: bold
		800: extra bold
	*/
	--font-stack: "Open Sans", "Segoe UI", "Helvetica", sans-serif;
}

body {
	font-family: var(--font-stack) !important;
	font-weight: 400 !important;
	font-style: normal !important;
	font-optical-sizing: auto !important;
	font-variation-settings: "wdth" 100 !important;

	background-color: var(--background-color-light) !important;
	color: var(--secondary-color) !important;

	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

html, body {
	height: 100%;
	margin: 0;
}

a {
	font-weight: 400 !important;
	color: var(--accent-color-red) !important;
}
a.btn-secondary {
	color: white !important;
}
a.btn-light {
	color: var(--secondary-color) !important;
}

.light-text {
	color: var(--secondary-color-light) !important;
}
.light-image {
	opacity: 0.3 !important;
}

h1 {
	margin: 0;
	font-size: 5rem !important;
	font-weight: 300 !important;
	color: var(--background-color) !important;
}
#main-icon {
	font-size: 5rem;
	margin-right: 1.5rem;
	color: var(--background-color) !important;

}

header .main-icon-condensed {
	/* display: flex !important; */
	font-size: 2rem;
	margin-right: 1.5rem;
	color: var(--background-color) !important;
}



h2 {
	margin: 2rem 0 1rem 0 !important;
	font-size: 2.5rem !important;
	font-weight: 300 !important;
	color: var(--secondary-color);
}

.icon-stroked {
	text-shadow:
		-1px -1px 2px var(--secondary-color),
		1px -1px 2px var(--secondary-color),
		-1px  1px 2px var(--secondary-color),
		1px  1px 2px var(--secondary-color);
}
.icon-glowing {
	text-shadow:
		-1px -1px 2px var(--glow-color),
		1px -1px 2px var(--glow-color),
		-1px  1px 2px var(--glow-color),
		1px  1px 2px var(--glow-color);
}

input[type="checkbox"] {
  accent-color: var(--accent-color-red) !important;
}

.subtext {
	font-size: 0.8rem !important;
	color: #666 !important;
}
.subtitle {
	color: var(--accent-color-yellow-light);
}

main {
	padding-top: 0;
	flex: 1;
}

main.condensed {
	padding-top: 16rem;
}


header {
/* 	position: sticky;
	top: 0; */
	
	margin: 0rem 0rem 2rem 0rem;
	padding: 3rem 0rem 1.5rem 0rem;
	background-color: var(--secondary-color-dark);

	z-index: 10000;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0,0,0,0.5);

}


header.condensed {
	position: fixed;
	top: 0;
	width: 100%;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	z-index: 10000;
}
header.condensed .header-jumbotron {
	display: none;
}
header.condensed .header-statistics {
	display: none;
}

header .header-navigation .header-head i {
  opacity: 0;
  /* visibility: hidden; */
  transition: opacity 0.2s ease/* , visibility 0.5s ease */;
}
header.condensed .header-navigation .header-head i {
  opacity: 1;
  /* visibility: visible; */
  transition: opacity 0.3s ease/* , visibility 0.5s ease */;

}

header.condensed .header-body {
	padding-top: 0.7rem;
}

#header-spacer {
	display: none;
	height: 48px;
}

#header-spacer.condensed {
	display: block;
	height: 196px;
}


header ul.nav {
	padding-left: 0.5rem;
}
header ul.nav a.nav-link {
	padding-top: 0;
}
header ul.nav a {
	color: var(--accent-color-red-light) !important;
}
header ul.nav a.alternate,
footer a.alternate {
	color: var(--accent-color-yellow) !important;
}
header ul.nav a.selected {
	font-weight: 700 !important;
}

footer {
	box-shadow: 0 -2px 4px rgba(0,0,0,0.5);
	margin: 3rem 0rem 0rem 0rem;
    border-top: 1px solid var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
    padding: 3rem 0rem 1rem 0rem;
	background-color: var(--secondary-color-dark);
	color: var(--background-color) !important;
}
footer .nav-item a {
	color: var(--accent-color-yellow) !important;
}
footer .nav-item a:hover {
	text-decoration: underline !important;
}

.header-line,
.item-line,
.footer-line {
	display: flex;
}

.title-line:not(:first-child) {
	margin-top: 2rem !important;
}


.header-jumbotron {
	display: flex;
	margin-bottom: 0.5rem;
}
.header-jumbotron .header-body{
	padding-top: 0.5rem;
}

.header-head,
.item-head,
.footer-head {
	width: 7rem;
	padding: 0rem 0.7rem 0rem 0rem;
	
	display: flex;
    align-items: center;
    justify-content: flex-end;
	/*text-align: right; */
}
.header-head {
	width: 6.5rem !important;
}

.header-body,
.item-body {
	padding: 0;
	width: 90%;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}

.item-body {
	padding-right: 1rem;
}

.footer-body {
	padding: 0;
	width: 90%;
	display: block;
}


.welcome-board {
	max-width: 1000px;
	margin: 1rem auto;
	padding: 3rem 2rem 2rem 2rem;
	background-color: var(--secondary-color-dark);
	border-radius: 1rem;
	color: var(--background-color-light);
}
.blue-color {
	color: var(--blue-color) !important;
}
.hero {
	text-align: center;
	padding: 2.5rem 0.5rem 1.5rem;
}
.hero-subtext {
	font-size: 1.25rem;
	line-height: 1.6;
	margin: 0.5rem auto 0 auto;
}
.hero-subsubtext {
	opacity: 0.8;
	margin-top: 2rem;
}
.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.5rem;
	margin-top: 1.5rem;
}	
.feature-item {
	background: rgba(255,255,255,0.05);
	padding: 1.5rem;
	border-radius: 0.75rem;
	border-radius: 1rem;
}
.feature-icon {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}
.welcome-board h3 {
	margin: 0 0 0.5rem 0;
	font-size: 1.3rem;
}
.feature-description {
	opacity: 0.85;
	line-height: 1.5;
}

.divider {
	height: 1px;
	background: rgba(255,255,255,0.1);
	margin: 3rem 0;
}

.welcome-section {
	background: rgba(255,255,255,0.05);
	padding: 1.5rem;
	border-radius: 1rem;
	margin-bottom: 1.5rem;
}
.welcome-section:last-child {
	margin-bottom: 0;
}

.welcome-section p{
	opacity: 0.85;
	line-height: 1.6;
}

.welcome-section a {
	color: var(--accent-color-yellow) !important;
	font-weight: 600 !important;
}



.item-head,
.item-body {
	margin: 0 0 0.75rem 0;
	align-content: center;
}

.item-body-empty {
	height: 12rem;
    display: flex;
    align-content: flex-start;
}

.feed-stats {
	margin: 0 0 1rem 0.5rem;
	color: var(--secondary-color-light);
}
.feed-stats span {
	margin-right: 1rem;
}

.title-head {
	border-bottom: solid 1px var(--secondary-color-light);
	margin-bottom: 1rem;
}

.title-body {
	width: 90%;
	border-bottom: solid 1px var(--secondary-color);
	margin-bottom: 1rem;
	font-weight: 700;
}

.avatar-head {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	margin-bottom: 2rem;
}
.item-body .avatar-head {
	width: 6rem;
	min-width: 6rem;
	max-width: 6rem;
}

.avatar-image img {
	width: 4rem;
	border-radius: 50% !important;
}
.avatar-name {
	text-align: center;
	font-size: 0.9rem;
}
.avatar-stats {
	font-size: 0.8rem;
	color: var(--secondary-color-light);
}
.avatar-actions {
	display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
.avatar-actions a,
button.action-link {
	font-size: 0.7rem !important;
	display: inline;
}

.inline-button form {
	display: inline;
}


.clip-container {
	display: flex;
	flex-direction: column;
	width: 18rem;
	padding: 0 1.5rem 2rem 0;

	transition: opacity 0.1s linear;
	opacity: 1;
}
/* .clip-container:nth-child(4n) {
	width: 17em;
	padding-right: 0;
} */
.clip-container-fade-out {
	opacity: 0;
}


.clip-image {
	position: relative;
	display: inline-block;
}
.clip-image img {
	margin-bottom: 0.5rem;
	width: 100%;
	border-radius: var(--bs-border-radius) !important;
	display: block;
}
.clip-image:hover img {
	opacity: 0.8;
	cursor: pointer;
	transition: opacity 0.3s;
}
.clip-image img.clip-seen {
	opacity: 0.3;
}

.clip-image-seen-check {
	position: absolute;
	top: 0.6rem;
	left: 0.8rem;
	z-index: 10;

	width: 1rem;
	height: 1rem;
}
.clip-image-seen-check input {
	cursor: pointer;
	width: 1rem;
	height: 1rem;
}
.clip-image-new {
	position: absolute;
	top: 0.5rem;
	right: 0.8rem;
	z-index: 10;
	font-size: 1rem;
	color: var(--secondary-color);
}
.clip-image-length {
	margin-bottom: 0.5rem;
	position: absolute;
	bottom: 0.5rem;
	right: 0.5rem;
	z-index: 10;
	font-size: 0.7rem;
	color: var(--background-color);
	text-shadow:
		-1px -1px 2px var(--secondary-color),
		1px -1px 2px var(--secondary-color),
		-1px  1px 2px var(--secondary-color),
		1px  1px 2px var(--secondary-color);
	background-color: rgba(0, 0, 0, 0.6);
	padding: 0.1rem 0.4rem;
	border-radius: 0.3rem;
}


.loader {
  width: 20px;
  height: 20px;
  border: 3px solid #ccc;
  border-top: 3px solid var(--accent-color-red);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


.clip-name {
	font-size: 0.9rem;
}
.clip-stats {
	font-size: 0.8rem;
	color: var(--secondary-color-light);
}

.category-body .category-name {
	margin-right: 1.3rem;
	font-weight: 700;
}

.category-body .category-action {
	margin-right: 0.5rem;
	height: 1.3rem;
}

.category-body .category-action a,
.category-body .category-action a:visited,
.category-body .category-action button,
.action-link,
.action-link:visited,
.inline-button form
{
	color: var(--accent-color-red) !important;
	font-size: 0.8rem !important;
	padding: 0 !important;
}

.channel-head .channel-image img {
	width: 2rem;
	border-radius: 50% !important;
}

.channel-body .channel-name {
	margin-right: 1.3rem;
	font-weight: 700;
}
.channel-body .channel-action {
	margin-right: 0.5rem;
	height: 1.3rem;
}
.channel-body .channel-action a,
.channel-body .channel-action button,
.channel-body .channel-action a:visited,
.inline-button form button {
	color: var(--accent-color-red) !important;
	font-size: 0.8rem;
	padding: 0 !important;
}




/* Icon picker styles */
/* Base label styling */
.icon-label {
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease-in-out;
}

/* Highlight the label when its radio is checked */
.icon-picker:checked + i {
  background-color: var(--accent-color-red);
  color: white;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
}


.icon-selected {
	background-color: var(--accent-color-red) !important;
	border-color: white !important;
	color: white !important;
}

.back-to-top {
	position: fixed;
	bottom: 3rem;
	right: 3rem;
	z-index: 10000;
	
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	
	background-color: var(--accent-color-red) !important;
	color: white;

	padding-bottom: 0.3rem;
	font-size: 2rem;
	text-align: center;
	border: none;
	cursor: pointer;

	opacity: 0;
	transform: translateY(0.5rem);
	transition: opacity 0.3s ease, transform 0.3s ease;

	pointer-events: none;
}
.back-to-top.show {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.light-divider .item-head {
	padding-top: 1rem;
}
.light-divider .item-body {
	padding-top: 1rem;
	border-top: solid 1px var(--secondary-color-lighter);
}


.new-clip-glow {
  position: relative;
  border: 1px solid var(--accent-color-yellow);
  border-radius: var(--bs-border-radius);
  box-shadow: 0 0 6px 2px color-mix(in srgb, var(--glow-color) 60%, transparent); 
  transition: box-shadow 0.1s ease-in-out;
}

.new-clip-glow:hover {
  box-shadow: 0 0 8px 4px color-mix(in srgb, var(--glow-color) 60%, transparent);
}

.top-nudge {
	padding-top: 2px;
}

.avatar-actions form {
	margin-bottom: 0;
}

a.disabled {
	pointer-events: none;
	cursor: default;
	opacity: 0.5;
}

.mobile-condensed-title {
	display: none;
}
.navbar-toggler {
	display: none;
}

.wd-50 {
	width: 50% !important;
}
.wd-75 {
	width: 75% !important;
}
.wd-25 {
	width: 25% !important;
}
.wd-100 {
	width: 100% !important;
}

/* Mobile */
@media (max-width: 768px) {
	.navbar-toggler {
		display: block;
	}

	.wm-50 {
		width: 50% !important;
	}
	.wm-75 {
		width: 75% !important;
	}
	.wm-25 {
		width: 25% !important;
	}
	.wm-100 {
		width: 100% !important;
	}

	h1 {
		font-size: 9vw !important;
	}

	header {
		padding: 1rem 0rem 1rem 0rem;
	}

	#main-icon {
		font-size: 2.5rem !important;
		margin: 0 !important;
	}

	.header-head,
	.item-head,
	.footer-head {
		width: 4rem;
		padding: 0rem 0.7rem 0rem 0rem;
		
		display: flex;
		align-items: center;
		justify-content: flex-end;
	}
	.header-head {
		width: 4rem !important;
		padding: 0rem 0 0 0 !important;
		justify-content: center;
	}
	.header-body {
		padding: 0rem 0 0 0 !important;
	}
	.header-jumbotron {
		padding: 1rem 0 0 0 !important;
	}

	.header-title {
		justify-content: space-between;
	}


	.header-statistics {
		color: green;
	}

	.header-navigation .header-head {
		padding-top: 4px;
		align-items: flex-start;
	}
	.header-navigation .header-body {
		justify-content: center;
	}

	.navbar-toggler {
		border: none !important;
		margin-right: 0.5rem;
	}

	.footer-last {
		order: -1;
	}
	.feed-stats span {
		font-size: 0.8rem;
	}
	.stats-label {
		display: none;
	}
	.mobile-condensed-title {
		display: flex;
		justify-content: space-between;
		width: 100%;
		font-size: 1.5rem;
		color: var(--background-color) !important;
	}

	#navbarSupportedContent ul {
		text-align: center;
	}

	.nudge-right-mobile {
		margin-right: 4rem !important;
	}

	footer {
		padding-bottom: 3rem;
	}

	.navbar-toggler span {
		font-size: 1rem !important;
	}

	.mobile-hidden {
		display: none !important;
	}

	.hero-logo {
		width: 6rem;
	}
	.hero h1 {
		font-size: 3.5rem !important;
	}
}

.hero-logo {
	width: 6rem;
}

