/* ###
# COMMON
### */

body {
	font-size: 18px;
	line-height: 28px;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

p, ul, ol, form, table { margin: 0 0 1.6em 0; }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.4; }
h1 { font-size: 1.4em; }
h2 { font-size: 1.25em; }
h3 { font-size: 1.1em; }
ol, ul { padding: 0 0 0 .5em; }
ol { list-style: decimal inside; }
ul { list-style: disc inside; }
ol li, ul li { margin-bottom: 8px; }
hr { border: 0; border-top: 1px solid #f4f5f6; margin: 1.6em 0; }
mark { background: #ff0; }
small { font-size: .65em; color: #333; }
iframe { border: none !important; }

@media (max-width: 600px) {
	.desktop { display: none; }
}

/* ###
# CONTAINER
### */

.container {
	margin: 0 auto;
	max-width: 700px;
	padding: 0 1em;
	position: relative;
	width: 100%;
}

/* ###
# IMAGES
### */

.img {
	display: block;
	max-width: 100%;
	margin: 0 auto 2em auto;
}

@media (min-width: 45rem) {
	.img.left {
		float: left;
		margin: 0 1.6em 1.6em 0;
		max-width: 320px;
	}

	.img.right {
		float: right;
		margin: 0 0 1.6em 1.6em;
		max-width: 320px;
	}
}

/* ###
# TABLE
### */

table {
	border-collapse: collapse;
	border-spacing: 0;
	width: 100%;
	display: table;
	border: 1px solid #ccc;
}

table tr {
	border-bottom: 1px solid #ddd;
}

table th:first-child, table td:first-child {
	padding-left: 16px;
}

table td, table th {
	padding: 8px 8px;
	display: table-cell;
	text-align: left;
	vertical-align: top;
}

table th {
	background-color: #4CAF50;
	color: #fff;
}

table tr:nth-child(odd) {
	background-color: #f9f9f9;
}

/* ###
# GRID
### */

.row {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	width: 100%;
}

.row.nowrap {
	flex-wrap: nowrap;
	gap: 20px;
}

.row .col {
	display: block;
	margin-left: 0;
	max-width: 100%;
	min-width: 0;
	width: 100%;
}

/* ###
# FORMS
### */

label, legend {
	display: block;
	font-weight: bold;
	margin-bottom: .5rem;
}

input, select, textarea {
	margin-bottom: 1em;
}

input[type=number], input[type=text], select, textarea {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-color: transparent;
	border: 1px solid #d1d1d1;
	border-radius: .4rem;
	box-shadow: none;
	box-sizing: inherit;
	height: 2.6rem;
	padding: .6rem 0.65rem;
	width: 100%;
}

select {
	background: url("data:image/png;base64,R0lGODlhDwAUAIABAAAAAP///yH5BAEAAAEALAAAAAAPABQAAAIXjI+py+0Po5wH2HsXzmw//lHiSJZmUAAAOw==") no-repeat 98% center;
	padding-right: 2rem;
}

select:focus {
	outline: none;
}

/* ###
# HEADER
### */

header {
	position: relative;
	z-index: 50;
	background-color: #01a9ec;
	color: #fff;
	margin-bottom: 1em;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px;
}

header .brand {
	text-decoration: none;
	font-size: 1.2em;
	z-index: 25;
}

header a {
	color: #fff;
}

header a:hover {
	opacity: 0.8;
	color: #fff;
}

header nav {
	display: none;
}

header nav ul {
	margin: 15px 0 0 0;
	padding: 0;
	list-style: none;
}

header nav li {
	margin: 0;
}

header nav li a {
	padding: 8px 0;
	display: block;
	text-align: center;
}

header nav li a:hover {
	text-decoration: underline;
}

/* Calculators Dropdown Menu */
header nav li.dropdown {
	position: relative;
}
header nav .dropdown-content {
	display: none;
	position: absolute;
	background-color: #fdfbfb;
	min-width: 190px;
	box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
	border-radius: 4.5px;
	z-index: 100;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
}
header nav .dropdown-content a {
	color: #0b132b !important;
	padding: 10px 16px !important;
	text-decoration: none;
	display: block !important;
	text-align: left !important;
	font-size: 0.9em;
}
header nav .dropdown-content a:hover {
	background-color: #f1f3f5;
	text-decoration: none;
	color: #01a9ec !important;
}
header nav li.dropdown:hover .dropdown-content {
	display: block;
}

/* Responsive Mobile Navigation Adaptations */
@media (max-width: 1023px) {
	header nav .dropdown-content {
		position: static;
		display: block; /* Render inline statically in mobile drawer overlay */
		background-color: rgba(255, 255, 255, 0.08);
		box-shadow: none;
		transform: none;
		margin: 6px 0;
		border-radius: 4px;
	}
	header nav .dropdown-content a {
		color: #fff !important;
		text-align: center !important;
		padding: 8px 0 !important;
	}
	header nav .dropdown-content a:hover {
		background-color: transparent;
		text-decoration: underline;
		color: #fff !important;
	}
}

header #nav {
	display: none;
}

header #nav:checked ~ nav {
	background-color: rgba(1, 169, 236, .96);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 20;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

header #nav:checked ~ label:after {
	content: "\00D7";
}

header label {
	float: right;
	cursor: pointer;
	line-height: .8;
	z-index: 25;
}

header label:after {
	content: "\2261";
	font-size: 2.0em;
	font-weight: normal;
}

@media (min-width: 1024px) {
	header .brand {
		font-size: 1.5em;
	}

	header label {
		display: none;
	}

	header nav {
		display: block;
		width: auto;
		float: right;
	}

	header nav ul {
		margin: 0;
	}

	header nav ul li {
		float: left;
	}

	header nav li a {
		padding: 8px;
		display: inline-block;
	}
}

/* ###
# FOOTER
### */

footer {
	background-color: #fdfbfb;
	padding: 10px 10px 40px 10px;
	margin: 40px 0 0 0;
	color: #444;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
}

footer ul, footer ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* breadcrumb */
.breadcrumb {
	list-style: none;
	display: inline-block;
	margin: 0;
	padding: 0;
}

.breadcrumb li {
	float: left;
	margin: 0;
}

.breadcrumb li::after {
	content: "› ";
	white-space: pre;
}

.breadcrumb li:last-child:after {
	content: "";
}

/* ###
# NOWRAP
### */

.nowrap, .nowrap li {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ###
# SPOON
### */

.spoon {
	/* display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center; */
	display: block;
	text-align: center;
	padding: 20px 0;
	border-top: 1px solid #f4f5f6;
	border-bottom: 1px solid #f4f5f6;
	margin-bottom: 2em;
}

.spoon img {
	margin: 0 auto;
}

.spoon::before {
	content: 'Tool sponsor';
	color: #999;
	text-transform: uppercase;
	font-size: .7em;
	display: block;
	text-align: center;
}

/* ###
# FLYER
### */

.flyer {
	margin: .2em auto 2em auto;
	padding: 10px 0;
	min-height: 300px;
	text-align: center;
	width: 100%;
	background: repeating-linear-gradient(45deg, transparent 0 10px, #fcfcfd 10px 20px);
}

/* ###
# RIO
### */

.rio {
	display: none;
}

@media (min-width: 1200px) {
	.rio {
		position: absolute;
		display: inline-block;
		width: 200px;
		height: 400px;
		text-align: center;
		background: repeating-linear-gradient(45deg, transparent 0 10px, #e8d5d114 10px 20px);
	}

	.rio::before {
		content: 'Advertisement';
		color: #999;
		text-transform: uppercase;
		font-size: .7em;
		display: block;
	}

	.rio.left {
		top: 85px;
		left: calc(50% - 560px);
	}

	.rio.right {
		top: 85px;
		right: calc(50% - 560px);
	}
}

/* ###
# INTERACTIVE TOOLS STYLING
### */

.calculator-card {
	background: #ffffff;
	border: 1px solid #e1e8ed;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	margin-bottom: 2.5em;
}

.calculator-card h2 {
	font-size: 1.3em;
	color: #0b132b;
	margin-top: 0;
	margin-bottom: 8px;
	border-bottom: 2px solid #01a9ec;
	display: inline-block;
	padding-bottom: 4px;
}

.calculator-card > p {
	font-size: 0.9em;
	line-height: 1.5;
	color: #5b657a;
	margin-bottom: 20px;
}

/* Dropzone styling */
.dropzone-container {
	border: 2px dashed #01a9ec;
	border-radius: 8px;
	background: #f4faff;
	padding: 30px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	margin-bottom: 20px;
}

.dropzone-container:hover {
	background: #ebf5ff;
	border-color: #0088cc;
}

.dropzone-content p {
	margin: 10px 0 0 0;
	font-weight: 500;
	color: #4a5568;
}

.dropzone-content p span {
	color: #01a9ec;
	text-decoration: underline;
}

.dropzone-icon {
	color: #01a9ec;
	transition: transform 0.3s ease;
}

.dropzone-container:hover .dropzone-icon {
	transform: scale(1.1);
}

.dropzone-container input[type=file] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

/* Results grid & stats styling */
.results-container {
	animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.results-stats {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.stat-box {
	flex: 1;
	min-width: 150px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px;
	text-align: center;
	display: flex;
	flex-direction: column;
}

.stat-label {
	font-size: 0.75em;
	text-transform: uppercase;
	color: #64748b;
	font-weight: 600;
	margin-bottom: 4px;
}

.stat-val {
	font-size: 1.25em;
	font-weight: 700;
	color: #0f172a;
}

.stat-val.highlight {
	color: #01a9ec;
}

/* Crop Previews Grid */
.crop-previews {
	border-top: 1px solid #edf2f7;
	padding-top: 20px;
}

.crop-previews h3 {
	font-size: 1.05em;
	color: #1a202c;
	margin-bottom: 4px;
}

.crop-previews p {
	font-size: 0.85em;
	color: #718096;
	margin-bottom: 16px;
}

.preview-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 20px;
}

.preview-item {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.preview-label {
	font-size: 0.75em;
	font-weight: 600;
	color: #4a5568;
	margin-bottom: 8px;
	text-align: center;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.aspect-box {
	width: 100%;
	max-width: 200px;
	background: #e2e8f0;
	border: 2px solid #cbd5e0;
	border-radius: 6px;
	overflow: hidden;
	position: relative;
}

.aspect-box.ratio-1-1 { aspect-ratio: 1 / 1; }
.aspect-box.ratio-9-16 { aspect-ratio: 9 / 16; }
.aspect-box.ratio-16-9 { aspect-ratio: 16 / 9; }

.aspect-img-wrap {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

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

/* Video Simulator display */
.video-simulator {
	border-top: 1px solid #edf2f7;
	padding-top: 20px;
	margin-top: 20px;
}

.video-simulator h3 {
	font-size: 1.05em;
	color: #1a202c;
	margin-bottom: 12px;
}

.simulator-layout {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	justify-content: center;
}

.sim-screen {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	min-width: 260px;
}

.screen-label {
	font-size: 0.75em;
	font-weight: 600;
	color: #64748b;
	margin-bottom: 12px;
	text-align: center;
}

.screen-display {
	width: 100%;
	height: 260px;
	background: #0f172a;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.widescreen-monitor .screen-display {
	max-width: 320px;
	height: 180px;
}

.mobile-device .screen-display {
	max-width: 146px;
	height: 260px;
}

.sim-video-frame {
	background: #01a9ec;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 0 10px rgba(0,255,255,0.2);
	position: relative;
}

.video-content-sim {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: repeating-linear-gradient(45deg, rgba(255,255,255,0.1) 0 10px, transparent 10px 20px);
}

.inner-label {
	color: #fff;
	font-size: 0.7em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-shadow: 0 2px 4px rgba(0,0,0,0.5);
	text-align: center;
	padding: 4px;
}

/* Shape Visualizer display */
.visualizer-display-container {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 20px;
}

.canvas-wrap {
	width: 100%;
	max-width: 400px;
	height: 250px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: repeating-linear-gradient(45deg, #f1f5f9 0 5px, #ffffff 5px 10px);
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	overflow: hidden;
}

.vis-shape-box {
	background: #01a9ec;
	border: 2px solid #0088cc;
	box-shadow: 0 10px 25px rgba(1, 169, 236, 0.2);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vis-shape-box span {
	color: #fff;
	font-weight: 700;
	font-size: 1.1em;
	text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}