
@import url('/static/css/font.css');

/* =========================================
   SAM PUCKETT — iCARLY THEME
   Inspired by Sam's personality and style.
========================================= */

:root {
	/* Core colors */
	--sam-black: #171719;
	--sam-dark: #222226;
	--sam-panel: #2c2a30;
	--sam-panel-light: #39343c;

	/* Signature colors */
	--sam-purple: #7025a5;
	--sam-purple-light: #a34bd3;
	--sam-pink: #ff3d96;
	--sam-pink-light: #ff83bb;
	--sam-pink-dark: #c91f70;

	/* Butter yellow */
	--sam-yellow: #f5d442;
	--sam-yellow-light: #ffe987;

	/* Text */
	--sam-white: #f2edf5;
	--sam-gray: #aaa4b0;
	--sam-muted: #77717e;

	/* Borders and states */
	--sam-border: #51465b;
	--sam-red: #e52b36;
	--sam-green: #83d49b;

	/* Effects */
	--sam-shadow: 4px 4px 0 var(--sam-purple);
	--sam-shadow-pink: 4px 4px 0 var(--sam-pink);
	--sam-transition: 150ms ease;
}

/* =========================================
   RESET
========================================= */

html {
	box-sizing: border-box;
	background: var(--sam-black);
	scroll-behavior: smooth;
}

*, *::before, *::after {
	box-sizing: inherit;
}

html, body, h1, h2, h3, p {
	margin: 0;
	padding: 0;
	border: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
}

body {
	font-family: Frutiger, Verdana, "Helvetica Neue", Arial, sans-serif;
	background-color: var(--sam-black);
	background-image:
		radial-gradient(
			circle at 10% 10%,
			rgba(255, 61, 150, 0.07),
			transparent 35%
		),
		radial-gradient(
			circle at 90% 80%,
			rgba(112, 37, 165, 0.09),
			transparent 35%
		);

	color: var(--sam-white);
	font-size: 75%;
	line-height: 1.6;
	padding: 2em;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

/* =========================================
   TYPOGRAPHY
========================================= */

h1 {
	font-size: 3em;
	font-weight: 900;
	line-height: 1.05;
	margin-bottom: 0.5em;
	color: var(--sam-pink);
	text-transform: uppercase;
	letter-spacing: -0.04em;
	text-shadow: 3px 3px 0 var(--sam-purple);
}

h2 {
	font-size: 2em;
	font-weight: 900;
	color: var(--sam-white);
	text-transform: uppercase;
}

h3 {
	font-size: 1.4em;
	font-weight: 800;
	color: var(--sam-pink);
}

p {
	margin-bottom: 1em;
	color: var(--sam-gray);
}

strong, b {
	color: var(--sam-white);
	font-weight: 900;
}

small {
	color: var(--sam-gray);
}

/* =========================================
   LAYOUT
========================================= */

.span-14 {
	max-width: 550px;
}

.span-19 {
	max-width: 750px;
}

.column,
.span-1, .span-2, .span-3, .span-4,
.span-5, .span-6, .span-7, .span-8,
.span-9, .span-10, .span-11, .span-12,
.span-13, .span-14, .span-15, .span-16,
.span-17, .span-18, .span-19, .span-20,
.span-21, .span-22, .span-23, .span-24 {
	margin-right: 10px;
}

/* =========================================
   TOP BAR
========================================= */

#topbar {
	text-align: right;
	width: 100%;
	padding: 1.2em;
	margin-bottom: 2em;

	background: var(--sam-dark);
	border: 2px solid var(--sam-pink);
	border-radius: 5px;

	box-shadow: var(--sam-shadow);
}

#topbar a {
	color: var(--sam-pink);
	font-weight: 900;
	text-transform: uppercase;
}

/* =========================================
   CONTENT SECTIONS
========================================= */

.content_set {
	background: var(--sam-dark);
	border: 2px solid var(--sam-border);
	border-radius: 5px;

	margin-bottom: 1.8em;
	padding: 0 0 0.8em;

	overflow: hidden;

	box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);

	transition:
		border-color var(--sam-transition),
		transform var(--sam-transition),
		box-shadow var(--sam-transition);
}

.content_set:hover {
	border-color: var(--sam-pink);
	transform: translateY(-2px);
	box-shadow: var(--sam-shadow);
}

/* =========================================
   SECTION HEADERS
========================================= */

.content_set_title {
	background: var(--sam-pink);
	color: var(--sam-black);

	display: inline-block;

	font-size: 120%;
	font-weight: 900;

	margin: 0;
	padding: 0.65em 1em;

	text-transform: uppercase;
	letter-spacing: 0.04em;

	border-radius: 0;
	border-bottom: 3px solid var(--sam-purple);

	cursor: pointer;

	transition:
		background var(--sam-transition),
		color var(--sam-transition);
}

.content_set_title:hover {
	background: var(--sam-yellow);
	color: var(--sam-black);
}

.content_set_content {
	clear: both;
	padding: 1em 1.2em;
}

.set_description {
	font-size: 85%;
	max-width: 80%;
	color: var(--sam-gray);
	margin: 0.7em 0 1em;
}

/* =========================================
   LINKS
========================================= */

a {
	color: var(--sam-pink);
	text-decoration: none;
	font-weight: 700;

	transition:
		color var(--sam-transition),
		text-decoration var(--sam-transition);
}

a:hover {
	color: var(--sam-yellow);
	text-decoration: underline;
}

a:focus-visible {
	outline: 2px dashed var(--sam-yellow);
	outline-offset: 4px;
}

/* =========================================
   LISTS
========================================= */

ul, ol {
	padding-left: 1.5em;
	margin: 0 1.5em 1.5em 0;
}

ul {
	margin-top: 0.4em;
}

li {
	margin-left: 1em;
	margin-bottom: 0.4em;
	color: var(--sam-gray);
}

li::marker {
	color: var(--sam-pink);
	font-weight: 900;
}

/* =========================================
   TABLES
========================================= */

table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;

	background: var(--sam-panel);

	border: 2px solid var(--sam-border);
	border-radius: 4px;

	overflow: hidden;
}

table, td, th {
	vertical-align: middle;
}

th {
	background: var(--sam-purple);
	color: var(--sam-white);

	font-weight: 900;
	text-align: left;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

th, td, caption {
	padding: 10px 12px;
}

td {
	color: var(--sam-gray);
	border-top: 1px solid rgba(255,255,255,0.07);
}

tr:hover td {
	background: rgba(255, 61, 150, 0.09);
	color: var(--sam-white);
}

.config_table td {
	padding-top: 0.8em;
	padding-bottom: 0.8em;
}

/* =========================================
   FEATURE INFORMATION
========================================= */

.feature_name {
	padding-right: 1em;
	color: var(--sam-pink);
	font-weight: 900;
}

.feature_description {
	padding-left: 0.8em;
	font-size: 85%;
	color: var(--sam-gray);
	width: 30%;
}

/* =========================================
   FORMS
========================================= */

label {
	font-weight: 900;
	color: var(--sam-pink);
	display: inline-block;
	margin-bottom: 0.3em;
}

input[type=text],
input[type=password],
input.text,
input.title,
textarea,
select {
	display: block;

	width: 100%;
	max-width: 100%;

	margin: 0.5em 0;
	padding: 0.8em 1em;

	background: var(--sam-panel);
	color: var(--sam-white);

	border: 2px solid var(--sam-border);
	border-radius: 4px;

	font-family: inherit;
	font-size: 13px;

	transition:
		border-color var(--sam-transition),
		box-shadow var(--sam-transition);
}

textarea {
	min-height: 110px;
	resize: vertical;
}

input::placeholder,
textarea::placeholder {
	color: var(--sam-muted);
}

input:hover,
textarea:hover,
select:hover {
	border-color: var(--sam-pink);
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--sam-pink);
	box-shadow: 3px 3px 0 var(--sam-purple);
}

input:disabled,
textarea:disabled,
select:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* =========================================
   BUTTONS
========================================= */

button,
.action_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 38px;
	padding: 0.7em 1.3em;

	background: var(--sam-pink);
	color: var(--sam-black);

	border: 2px solid var(--sam-black);
	border-radius: 4px;

	font-family: inherit;
	font-size: 13px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.04em;

	box-shadow: 3px 3px 0 var(--sam-purple);

	cursor: pointer;

	transition:
		background var(--sam-transition),
		transform var(--sam-transition),
		box-shadow var(--sam-transition);
}

button:hover,
.action_btn:hover {
	background: var(--sam-yellow);
	color: var(--sam-black);

	transform: translate(-2px, -2px);

	box-shadow: 5px 5px 0 var(--sam-pink);
}

button:active,
.action_btn:active {
	transform: translate(2px, 2px);
	box-shadow: 1px 1px 0 var(--sam-purple);
}

button:focus-visible,
.action_btn:focus-visible {
	outline: 2px dashed var(--sam-yellow);
	outline-offset: 4px;
}

button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.action_btn {
	width: 150px;
}

.action_desc {
	font-size: 10px;
	color: var(--sam-gray);
	margin-top: 0.5em;
}

/* =========================================
   TEXT BLOCKS
========================================= */

.text {
	text-align: left;
	padding-left: 2em;
	max-width: 360px;
	color: var(--sam-gray);
}

/* =========================================
   OPTIONAL SAM-STYLE UTILITY CLASSES
========================================= */

/* Pink emphasis */

.highlight {
	color: var(--sam-pink);
	font-weight: 900;
}

/* Purple emphasis */

.accent {
	color: var(--sam-purple-light);
	font-weight: 800;
}

/* Butter references */

.warning {
	color: var(--sam-yellow);
	font-weight: 900;
}

/* Errors */

.error {
	color: var(--sam-red);
	font-weight: 900;
}

/* Sarcastic message styling */

.sam_message {
	background: var(--sam-panel);
	border-left: 4px solid var(--sam-pink);
	padding: 1em;
	margin: 1em 0;
	color: var(--sam-white);
	font-weight: 700;
}

/* Butter yellow highlight */

.butter {
	background: var(--sam-yellow);
	color: var(--sam-black);
	padding: 2px 6px;
	font-weight: 900;
	border-radius: 2px;
}

/* Pink sticker effect */

.sam_sticker {
	display: inline-block;
	background: var(--sam-pink);
	color: var(--sam-black);
	padding: 0.35em 0.8em;
	font-weight: 900;
	text-transform: uppercase;
	transform: rotate(-2deg);
	box-shadow: 3px 3px 0 var(--sam-purple);
}

/* =========================================
   SCROLLBARS
========================================= */

* {
	scrollbar-width: thin;
	scrollbar-color: var(--sam-pink) var(--sam-dark);
}

*::-webkit-scrollbar {
	width: 9px;
	height: 9px;
}

*::-webkit-scrollbar-track {
	background: var(--sam-dark);
}

*::-webkit-scrollbar-thumb {
	background: var(--sam-pink);
	border-radius: 2px;
	border: 2px solid var(--sam-dark);
}

*::-webkit-scrollbar-thumb:hover {
	background: var(--sam-yellow);
}

/* =========================================
   SELECTION
========================================= */

::selection {
	background: var(--sam-pink);
	color: var(--sam-black);
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 768px) {
	body {
		padding: 1.2em;
		font-size: 12px;
	}

	h1 {
		font-size: 2.4em;
	}

	#topbar {
		text-align: left;
	}

	.content_set_content {
		padding: 0.8em;
	}

	.set_description {
		max-width: 100%;
	}

	.feature_description {
		width: auto;
	}

	table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	.action_btn {
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	body {
		padding: 0.8em;
	}

	h1 {
		font-size: 2em;
	}

	.content_set {
		margin-bottom: 1.2em;
	}

	.content_set_title {
		font-size: 110%;
		padding: 0.65em 0.8em;
	}

	input[type=text],
	input[type=password],
	input.text,
	input.title,
	textarea,
	select {
		width: 100%;
	}
}

/* =========================================
   TOUCH DEVICES
========================================= */

@media (hover: none) {
	#topbar {
		text-align: left;
	}

	.content_set:hover {
		transform: none;
		box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
	}
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
