/* Fonts */
@font-face
{
	font-family: "Abel";
	src: url("../fonts/Abel/Abel-Regular.ttf") format("truetype");
}

@font-face
{
	font-family: "NotoSansSymbols2";
	src: url("../fonts/Noto_Sans_Symbols_2/NotoSansSymbols2-Regular.ttf") format("truetype");
}

@font-face
{
	font-family: "OpenSans";
	src: url("../fonts/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf") format("truetype");
}

@font-face
{
	font-family: "Russo";
	src: url("../fonts/Russo_One/RussoOne-Regular.ttf") format("truetype");
}

/* HTML */
html
{
	font-size: 14px;
	position: relative;
	min-height: 100%;
	font-family: "Abel", sans-serif;
}

@media (min-width: 768px) 
{
	html 
	{
		font-size: 16px;
	}
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus 
{
	box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body 
{
	margin: 0;
	background: #777777;
	color: #ffffff;
}

/* This is the section that fills the middle of the screen. */
.full-page-section 
{
	background: #444444;
	min-height: 100vh;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	padding-bottom: 4rem;
}

/* Support bigger media sizes. */
@media (min-width: 1920px)
{
	.container-3xl, .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container 
	{
		max-width: 1800px;
	}
}

@media (max-width: 992px)
{
	.container
	{
		max-width: 96%;
	}
}

*::-webkit-scrollbar
{
	width: 8px;
	height: 8px;
}

*::-webkit-scrollbar-track
{
	background: #555;
	border-radius: 4px;
}

*::-webkit-scrollbar-thumb
{
	background-color: #888;
	border-radius: 4px;
}

/* Header */
.navbar-brand
{
	font-family: "Russo", sans-serif;
	text-shadow: 1.5px 1.5px #EEEEEE;
}

.navbar img
{
	height: 40px;
	padding: 0.1rem 0.4rem;
}

.site-header 
{
	margin: 0;
	padding: 0;
}

header 
{
	background: #777777;
	padding: 2rem;
	text-align: center;
}

header h1 
{
	margin: 0;
	font-size: 2.5rem;
	color: #00aaff;
}

header p 
{
	font-size: 1.2rem;
	max-width: 1024px;
	margin: 1rem auto;
}

/* Footer*/

footer 
{
	text-align: center;
	padding: 0;
	font-size: 0.9rem;
	background: #ffffff;
}

/* Features */
section.features 
{
	display: grid;
	place-items: center;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
	padding: 2rem;
}

.feature-container 
{
	display: flex;
	flex-wrap: wrap;
	justify-content: center; /* aligns them center if there's an odd number */
	gap: 1.5rem; /* adjust spacing */
	padding: 1.5rem;
}

.feature-box 
{
	flex: 1 1 350px; /* grows/shrinks but starts at 250px */
	max-width: max(22%, 350px);
	display: flex;
	flex-direction: column;
	background: #111;
	color: white;
	padding: 1rem;
	border-radius: 0.5rem;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.feature-box h3 
{
	color: #00ccff;
	margin-top: 0;
}

.feature-box a
{
	text-decoration: none;
}

/* Documentation pages */
.docs-header
{
	position: relative;
	top: 0rem; /* How far from the top it starts sticking */
	text-align: center;
	border-bottom: 2px solid;
	border-color: #000000;
	background: #00aaff;
	padding: 1rem;
}

.docs-layout
{
	display: grid;
	grid-template-columns: 420px 1fr;
	max-width: 100%;
	gap: 0;
}

.docs-item
{
	align-self: center;
	gap: 1.5rem;
	padding: 0rem 1.5rem 1.5rem 1.5rem;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	color: #000000;
	row-gap: 1rem;
	border-radius: 0.7rem;
	background: #ffffff;
	max-width: 100%;
	object-fit: scale-down;
}

.docs-item h1
{
	color: #00aaff;
}

.docs-nav
{
	position: sticky;
	top: 0rem;
	border-right: 1px solid #000000;
	height: 100vh;
	padding: 1rem;
}

.docs-nav ul
{
	list-style-type: none;
	max-height: calc(100vh - 3rem);
	overflow-y: auto;
	padding-left: 0.5rem;
	overscroll-behavior: contain;
}

.docs-nav ul a
{
	color: #FFFFFF;
	text-decoration: none;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.docs-nav ul a.current
{
	text-decoration: underline;
	padding-left: 0px;
	color: #00bfff;
}

.docs-nav ul ul li
{
	padding-left: 2px;
	margin-left: 5px;
}

.docs-nav ul ul li::marker
{
	content: "\25B8";
}

.docs-content
{
	padding: 2rem;
	padding-bottom: 4rem;
	min-height: 100vh;
	height: fit-content;
	overflow: visible;
}

.docs-content h2
{
	color: #00bfff;
}

@media (max-width: 1920px)
{
	.container-3xl, .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container
	{
		max-width: 350px 1fr;
	}
}

@media (max-width: 1400px)
{
	.docs-layout
	{
		grid-template-columns: 300px 1fr;
	}
}

@media (max-width: 1280px)
{
	.docs-layout
	{
		grid-template-columns: 30% 1fr;
	}
}

.markdown-body
{
	max-width: 100%;
	word-break: break-word;
	padding: 1rem;
	overflow: hidden;
}

.markdown-body img
{
	max-width: 100%;
	object-fit: scale-down;
	overflow: clip;
}

.markdown-body table
{
	table-layout: auto;
	width: 100%;
}

.markdown-body th, .markdown-body td
{
	padding: 8px 12px;
	min-width: 160px;
}

/* Button styling */
.rrnavbutton
{
	background-color: #6a0dad;
	color: white;
	padding: 12px 20px;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	cursor: pointer;
	text-decoration: none;
	font-weight: bold;
	transition: background-color 0.2s ease-in-out;
}

.rrnavbutton:hover
{
	background-color: #5a0088;
}

/* Business page */
.business-page
{
	width: 90%;
	max-width: 1200px;
	min-width: 400px;
	align-self: center;
	margin: 0 auto;
	padding: 2rem;
	color: #00aaff;
	background: #f4f4f7;
	min-height: 100vh;
}

.business-page h1
{
	text-align: center;
	font-size: 2rem;
	color: #00bfff;
	margin-bottom: 1rem;
}

.business-page .intro
{
	text-align: center;
	font-size: 1.1rem;
	margin-bottom: 2.5rem;
	color: #333;
}

/* License page */
.early-access
{
	align-self: center;
	gap: 1.5rem;
	padding: 1.5em;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	color: #000000;
	border-radius: 0.7rem;
	margin-bottom: 1.5em;
	background: #ffffff;
	border: 1px solid #ddd;
}

.early-access h1,
.early-access h2,
.early-access h3,
.early-access h4
{
	color: #00aaff;
}

.license-comparison
{
	align-self: center;
	gap: 1.5rem;
	padding: 0.5rem 1rem;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	color: #000000;
	row-gap: 1rem;
	border-radius: 0.7rem;
	background: #ffffff;
}

.feature-row
{
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	vertical-align: central;
	padding: 0.5rem 0.5rem;
	column-gap: 2rem;
}

.license-comparison .feature-row:not(:last-child)
{
	border-bottom: 1px solid #ddd;
}

.features-header
{
	font-weight: bold;
	padding-left: 0.5rem;
	padding-top: 0.5rem;
	min-width: min(160px, 25%);
}

.license-tier-header
{
	font-weight: bold;
	border-bottom: 2px solid #00bfff;
	padding: 0.5rem 0.0rem;
	text-align: center;
	display: inline-block;
	background: #00aaff;
	color: #fff;
	border-radius: 0.7rem;
}

.feature-name
{
	padding-left: 1.5rem;
	min-width: min(160px, 25%);
}

.feature-entry
{
	background: #1a1a1a;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	border-radius: 0.6rem;
	box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.feature-entry h3
{
	color: #00bfff;
	margin-top: 0;
}

.license-tier
{
	/*padding: 0.75rem 0rem;*/
	text-align: center;
}

.support-grid
{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
}

.support-card
{
	background: white;
	padding: 1.5rem;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.support-card h2
{
	font-size: 1.2rem;
	margin-bottom: 0.75rem;
	color: #222;
}

.support-card p
{
	font-size: 0.95rem;
	color: #444;
	margin-bottom: 1rem;
}

.support-button
{
	display: inline-block;
	background-color: #00bfff;
	color: white;
	padding: 0.5rem 1.2rem;
	border-radius: 6px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.support-button:hover
{
	background-color: #0099cc;
}

.email-list
{
	list-style: none;
	padding-left: 0;
}

.email-list li
{
	margin-bottom: 0.5rem;
}

/* Accounts Page & Login */
.account-container
{
	width: 80%;
	max-width: 1000px;
	margin: 0 auto;
	gap: 1.5rem;
	padding: 1rem;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	row-gap: 1rem;
	border-radius: 0.7rem;
	background: #ffffff;
}

.account-container form
{
	align-items: center;
	align-content: center;
	align-self: center;
}

.account-form-item
{
	padding: 0.3rem;
}

/* Downloads */
.download-container
{
	align-self: center;
	margin: 0 auto;
	padding: 1.5rem 1.5rem 1.5rem 1.5rem;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	color: #000000;
	row-gap: 1rem;
	border-radius: 0.7rem;
	background: #ffffff;
	max-width: 900px;
}

.download-form .form-select
{
	min-width: min(160px, 25%);
}

.download-form .submit-button:disabled
{
	background-color: #ccc;
	cursor: not-allowed;
	color: #666;
}

/* Logout */
.logout-box
{
	width: 80%;
	max-width: 400px;
	margin: 0 auto;
	align-items: center;
	text-align: center;
	gap: 2rem;
	padding: 1.5rem;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	row-gap: 1rem;
	border-radius: 0.7rem;
	background: #ffffff;
}

/* Purchase Result */
.purchase-result-waiting
{
	align-items: center;
	text-align: center;
}

.purchase-result-failure
{
	align-items: center;
	text-align: left;
	color: red;
}

.spinner
{
	border: 4px solid #ccc;
	border-top: 4px solid #00aaff;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 0.8s linear infinite;
	margin: 20px auto;
}
@keyframes spin
{
	to
	{
		transform: rotate(360deg);
	}
}

/* Homepage video container */

.video-container
{
	position: sticky;
	top: 0;
	margin: 0;
	padding: 0;
	background: #000000;
}

.text-center
{
	text-align: center;
}

.video-container video
{
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	border: none;
	z-index: 2;
}

#mainVideo
{
	width: 100%;
	height: auto;
	border-radius: 4px;
	opacity: 1;
	transition: opacity 0.325s ease-in-out;
}

.thumbnail-row
{
	display: flex;
	flex-wrap: nowrap; /* ensure all thumbnails stay on one row */
	justify-content: flex-start; /* allow scroll to reveal hidden items */
	overflow-x: auto;
	overflow-y: hidden;
	padding: 1rem 8px;
	gap: 12px;
	margin: 0 0 15px 0;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.5);
	width: 100%;
	scroll-behavior: smooth;
	z-index: 3;
}

.thumb
{
	position: relative;
	cursor: pointer;
	border: 3px solid transparent;
	border-radius: 8px;
	transition: border 0.2s;
	object-fit: contain;
	height: fit-content;
	z-index: 4;
}

.thumb.active
{
	border-color: #007bff;
}

.thumb img
{
	width: 250px;
	border-radius: 8px;
}

.thumb .label
{
	position: absolute;
	bottom: 4px;
	left: 0;
	width: 100%;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	padding: 2px 4px;
	border-radius: 0 0 8px 8px;
}

.text-overlay
{
	position: absolute;
	top: 10%;
	left: 12%;
	z-index: 3;
	color: white; /* Set text color */
	text-align: left; /* Center text within the overlay */
	text-shadow: 1px 1px #000000;
	pointer-events: none;
}

.cta
{
	margin-bottom: 70px;
	bottom: 0;
	padding-top: 15px;
	padding-bottom: 10px;
}

.cta a
{
	display: inline-block;
	padding: 0.5rem 0.75rem;
	background: #00aaff;
	color: #fff;
	font-weight: bold;
	text-decoration: none;
	border-radius: 0.7rem;
	pointer-events: all;
}

.video-caption
{
	margin-top: auto;
	font-size: 1.1rem;
	position: absolute;
	bottom: 40px;
	width: 100%;
	z-index: 3;
	color: white; /* Set text color */
	text-align: center; /* Center text within the overlay */
	text-anchor: end;
	text-shadow: 1px 1px #000000;
	background: rgba(0, 0, 0, 0.6);
	padding: 1rem 1rem 1rem 1rem;
	border-radius: 4px;
	pointer-events: none;
	min-height: 120px;
	transition: opacity 0.3s ease-in-out;
}

.video-caption h3
{
	color: #00aaff;
}

@media (max-width: 1400px)
{
	.video-caption h2,
	.text-overlay h2
	{
		font-size: 1.6rem;
	}

	.video-caption h3,
	.text-overlay h3
	{
		font-size: 1.4rem;
	}

	.video-caption h3,
	.text-overlay h3
	{
		font-size: 1.3rem;
	}

	.video-caption h4,
	.text-overlay h4
	{
		font-size: 1.0rem;
	}

	.video-caption,
	.text-overlay
	{
		padding: 0.8rem;
	}

	.text-overlay
	{
		top: 6%;
		left: 8%;
	}
}

@media (max-width: 992px)
{
	.text-overlay
	{
		top: 2%;
		left: 6%;
	}

	.text-overlay h2
	{
		font-size: 1.3rem;
	}

	.video-caption h3,
	.text-overlay h3
	{
		font-size: 1.2rem;
	}

	.video-caption h4,
	.text-overlay h4
	{
		font-size: 1rem;
	}

	.video-caption,
	.text-overlay
	{
		font-size: 0.9rem;
	}
	
	.text-overlay cta
	{
		font-size: 75%;
		margin-bottom: 20px;
		padding-top: 5px;
		padding-bottom: 5px;
	}

	.text-overlay .cta a
	{
		font-size: 75%;
		margin-bottom: 20px;
		padding-top: 5px;
		padding-bottom: 5px;
		border-radius: 0.5rem;
	}

	.thumbnail-row
	{
		flex-wrap: wrap;
		overflow-x: unset;
		overflow-y: auto;
		padding: 0.5rem 0rem 1.5rem 0rem;
		display: flex;
		justify-content: center;
	}

	.video-caption
	{
		bottom: 0px;
	}

	@media (min-height: 525px), (max-width: 625px)
	{
		.video-caption
		{
			position: relative;
			bottom: 0px;
		}
	}
}