/* @import url('https://fonts.googleapis.com/css2?family=Delius+Swash+Caps&family=Lobster&display=swap');*/
/* Manual font imports */
/* latin */
@font-face {
  font-family: 'Delius Swash Caps';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://cienciadegatos.candegarcia.es/assets/fonts/oY1E8fPLr7v4JWCExZpWebxVKORpXUeaIGY.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Lobster';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://cienciadegatos.candegarcia.es/assets/fonts/neILzCirqoswsqX9zo-mM5Ez.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Lobster';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://cienciadegatos.candegarcia.es/assets/fonts/neILzCirqoswsqX9zoamM5Ez.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Lobster';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://cienciadegatos.candegarcia.es/assets/fonts/neILzCirqoswsqX9zo2mM5Ez.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Lobster';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://cienciadegatos.candegarcia.es/assets/fonts/neILzCirqoswsqX9zoymM5Ez.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lobster';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/lobster/v30/neILzCirqoswsqX9zoKmMw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* RESET CSS */

/* Box sizing rules */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Remove default padding */
ul[class],
ol[class] {
	padding: 0;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
	margin: 0;
}

/* Set core body defaults */
body {
	min-height: 100vh;
	scroll-behavior: smooth;
	text-rendering: optimizeSpeed;
	line-height: 1.5;
}

/* Remove list styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
	list-style: none;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
	text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img {
	max-width: 100%;
	display: block;
}

/* Natural flow and rhythm in articles by default */
article > * + * {
	margin-top: 1em;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
	font: inherit;
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* CUSTOM CSS */

:root {
	/* Dark color scheme theme variables
	--primary-color: #89C4C2;
	--secondary-color: #D1EBC6;
	--accent-color: #F3F8C2;
	--dark-color: #F9D5A5;
	--danger-color: #F4A3A2;
	--light-color: #BC789F; */
	/* Light color scheme theme variables */

	--color-text: #3f464e;
	--color-text-light: #4b646a;
	--color-primary: #ff8b94;
	--color-primary-dark: #ff6b81;
	--color-secondary: #96c8d4;
	--color-secondary-dark: #40b2b5;
	--color-secondary-darkest: #1b5a5a;
	--color-secondary-light: #75dcd8;
	--color-secondary-lightest: #e0f6f5;
	--color-detail: #ffd98d;
	--font-primary: 'Delius Swash Caps', sans-serif;
	--font-display: 'Lobster', cursive;
	--border-small: 5px;
	--border-medium: 10px;
	--border-big: 15px;
	--contrast-text-shadow: 0px 2px 0px var(--color-text), 0px -2px 0px var(--color-text), 
	2px 0px 0px var(--color-text), -2px 0px 0px var(--color-text);
	--contrast-text-shadow-small: 0px 1px 0px var(--color-text-light), 0px -1px 0px var(--color-text-light),  1px 0px 0px var(--color-text-light), -1px 0px 0px var(--color-text-light);
}

body {
	background-color: var(--primary-color);
	color: var(--text-color);
	font-family: 'Roboto', sans-serif;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

article .table-wrapper {
	overflow-x: auto;
}

table {
	width: max-content;
    max-width: max(100%, 598px);
	margin: 1rem 0;
	border-spacing: 0;
	border: 3px solid var(--color-secondary-darkest);
	border-radius: var(--border-small);
	overflow: hidden;
}

table th {
	color: var(--color-secondary-darkest);
	background-color: var(--color-secondary-lightest);
}

table td, th {
	padding: .5rem;
	border-right: 3px solid var(--color-secondary-darkest);
	border-bottom: 3px solid var(--color-secondary-darkest);
}

table td:last-child, th:last-child {
	border-right: none;
}

table tr:last-child td {
	border-bottom: none;
}

blockquote {
	position: relative;
	margin: 1rem 0;
    padding: .5rem 1rem;
	color: var(--color-text-light);
	font-weight: 500;
}

blockquote:before {
	content: '';
    width: 4px;
    height: 100%;
    background-color: var(--color-secondary);
    border-radius: 10px;
    position: absolute;
    left: 0;
	top: 0;
}

blockquote cite {
	display: block;
    margin-top: 0.5rem;
}

blockquote cite {
	font-style: italic;
}

hr {
	border-color: var(--color-secondary);
    border-width: 2px;
    border-style: solid;
}

input {
	padding: 0.2rem .5rem;
    border: 2px solid var(--color-secondary);
    border-radius: 5px;
	color: var(--color-text);
}

input:focus {
	outline: none;
	border-color: var(--color-secondary-dark);
	background-color: var(--color-secondary-lightest);
}

code.inline-code {
	background: var(--color-secondary-lightest);
    padding: 0 .5rem;
    color: var(--color-secondary-darkest);
}

/*main {
	position: relative;
	width: 100%;
	margin: auto;
	max-width: 1500px;
    display: flex;
    flex-direction: column;
    align-items: center;
	padding-bottom: 6rem;
}

h1 {
	color: var(--accent-color);
	text-align: center;
	font-size: 2rem;
	text-shadow: 2px 0px 0px var(--text-color), -2px 0px 0px var(--text-color), 0 2px 0px var(--text-color), 0 -2px 0px var(--text-color);
}

nav.main-menu {
	position: sticky;
    top: 0;
    left: 0;
    width: 100%;
	margin-top: 2rem;
    z-index: 3;
    transform: translateY(0);
    transition: transform 1s ease, opacity 1s ease-in-out;
    transform-origin: top;
    opacity: 1;
	background: var(--secondary-color);
	border-radius: 8px;
}
*/
div.task-bar {
	padding: .6rem 1rem .1rem 1rem;
	border: 3px solid var(--color-text);
	border-radius: var(--border-medium) var(--border-medium) 0 0;
	box-shadow: inset 2px 2px 1px 1px white;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
}

div.task-bar span {
	display: inline-block;
	width: 1rem;
	color: var(--color-primary);
}

div.task-bar span svg {
	filter: drop-shadow(0px 2px 0px var(--color-primary-dark));
}

div.task-bar.black {
	background-color: var(--color-text-light);
}

div.task-bar.blue {
	background-color: var(--color-secondary);
}

html {
	font-size: 18px;
}
body {
	font-family: var(--font-primary);
	background-color: var(--color-primary);
	background-image: url(/assets/image/textures/tree-bark.png);
	color: #333;
	margin: 0;
	padding: 0;
	font-size: 1rem;
	/*animation: bg-image-animate 60s infinite linear;*/
}
header {
	padding: 1rem 1.5rem;
	text-align: center;
	position: relative;
	width: 100%;
}
header .title {
	display: flex;
	justify-content: flex-start;
	max-width: 1200px;
	margin: auto;
	gap: 0.6rem;
	padding-right: 1.5rem;
	align-items: center;
	cursor: pointer;
}
header .title img {
	width: 75px;
	height: 75px;
	object-fit: cover;
	background: var(--color-secondary);
    border-radius: 100%;
    padding: 0.1rem;
    border: 2px solid var(--color-text);
}
header .title .site-info {
	text-align: left;
	margin-bottom: 1rem;
}
header .title h1 {
	font-family: var(--font-display);
	color: #ffffff;
	font-size: 1.5rem;
	margin: 0;
	text-shadow: 0 2px 0 var(--color-text);
}
header .title .site-info p {
	line-height: 0.6rem;
    color: var(--color-detail);
    font-weight: bold;
    font-size: 0.8rem;
    text-shadow: 1px 2px var(--color-text-light);
}
.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	gap: 1rem;
}
.nav-container nav {
	flex: 1;
	margin-bottom: 1rem;
}
nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 15px;
}
nav ul li {
	display: inline;
	white-space: nowrap;
}
a {
	color: var(--color-primary-dark);
}
a:visited {
	color: var(--color-primary-dark);
}
nav ul li a {
	color: #ffffff;
	text-decoration: none;
	font-weight: bold;
	transition: color 0.3s;
}
nav ul li a:visited {
	color: #ffffff;
}
nav ul li a:hover {
	color: var(--color-detail);
}
.social-links {
	display: flex;
	gap: 15px;
	margin-bottom: 1rem;
}
.social-links a {
	display: inline-block;
	width: 2rem;
	height: 2rem;
	color: var(--color-secondary-darkest);
	fill: var(--color-secondary);
}
.social-links a:hover {
	fill: var(--color-detail);
	animation: wiggle 1s infinite linear;
}
.social-links img {
	width: 100%;
	height: 100%;
}
main {
	flex: 1;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 1.5rem 2rem 1.5rem;
}
.featured-post {
	position: relative;
	background-image: url('https://placehold.co/800x400');
	background-size: cover;
	background-position: center;
	border-radius: 10px;
	margin-bottom: 40px;
	height: 550px;
	display: flex;
	align-items: flex-end;
	border: 3px solid var(--color-text);
	color: #ffffff;
	transition: transform 250ms, box-shadow 250ms, border-top 250ms;
	cursor: pointer;
	overflow: hidden;
}
.featured-post:hover {
	transform: translateY(-10px);
	border-top: 2px solid var(--color-text);
	box-shadow: 0px 5px 0 var(--color-text);
}
.featured-post::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
}
.featured-post .body {
	position: relative;
	padding: 2rem 2.5rem;
	max-width: 800px;
	font-size: 1.2rem;
}
.featured-post-title {
	font-family: var(--font-display);
	font-size: 3rem;
	margin-bottom: 10px;
	color: var(--color-detail);
	text-shadow: var(--contrast-text-shadow);
}
.featured-post .task-bar {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	border: none;
	border-bottom: 3px solid var(--color-text);
}
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(325px, 1fr));
	gap: 20px;
}
.post {
	background-color: #ffffff;
	border-radius: var(--border-medium);
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
	border: 3px solid var(--color-text);
    transition: transform 250ms, box-shadow 250ms, border-top 250ms;
	cursor: pointer;
	/* remove a features */
	color: unset;
	text-decoration: none;
	min-height: 25rem;
}
.post:visited {
	color: unset;
	text-decoration: none;
}
.post:hover {
	transform: translateY(-10px);
	border-top: 2px solid var(--color-text);
	box-shadow: 0px 5px 0 var(--color-text);
}
.post .task-bar {
	border: none;
	border-bottom: 3px solid var(--color-text);
}
.post .header {
	width: 100%;
	height: 230px;
	position: relative;
	overflow: hidden;
}
.post .header img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.5);
}
.post .header .post-title {
	position: absolute;
	bottom: 1rem;
	left: 1rem;
	font-family: var(--font-display);
	font-size: 1.5rem;
	color: var(--color-primary);
	text-shadow: 0px 1px var(--color-primary-dark);
}
.post .body {
	padding: 1rem;
}

.post-snippet {
	font-size: 1em;
	line-height: 1.6;
}
body.article main > .container, body.editor main > .container {
	max-width: 1200px;
	margin: auto;
}
article {
	width: 100%;
	background-color: #ffffff;
	border-radius: var(--border-medium);
	border: 3px solid var(--color-text);
}
article .task-bar {
	border: none;
	border-bottom: 3px solid var(--color-text);
}
article section {
	padding: 0 2rem;
	margin: 0 auto;
}
article section h2 {
	font-family: var(--font-display);
	font-size: 2.5rem;
	color: var(--color-detail);
	margin: auto;
	margin-bottom: 1rem;
	text-align: left;
	max-width: 800px;
	text-shadow: var(--contrast-text-shadow);
}
article section.header {
	margin: 2rem 0;
}
article section.header img {
	width: 100%;
    object-fit: cover;
	max-width: 900px;
	margin: auto;
    height: 550px;
	background-color: var(--color-text-light);
    border: 3px solid var(--color-secondary-darkest);
    border-radius: var(--border-medium);
}
article section.header .post-excerpt {
	max-width: 800px;
	margin: auto;
	font-size: 1.2rem;
	line-height: 1.6;
	color: var(--color-text);
	margin-bottom: 1rem;
	text-align: left;
	text-shadow: 0px 1px var(--color-secondary-dark);
}
article section.header .post-details {
	font-size: 0.9rem;
	line-height: 1.4;
	color: var(--color-text-light);
	text-align: center;
	margin-bottom: 1rem;
	display: flex;
	gap: .5rem;
	justify-content: center;
}
article .body-container {
	display: flex;
	margin-bottom: 2rem;
	justify-content: space-between;
}
article .body-container .posts-widget {
	margin: 0 1rem 0 0.5rem;
	border: 3px solid var(--color-secondary-darkest);
	border-radius: var(--border-medium);
	overflow: hidden;
	min-width: 15rem;
	max-width: 15rem;
	flex: 0;
	height: max-content;
}
article .body-container .posts-widget .posts-header {
	background-color: var(--color-secondary);
	padding: 1rem;
	display: flex;
	gap: 1rem;
	align-items: center;
}
article .body-container .posts-widget .posts-header svg {
	width: 1.6rem;
    height: 1.6rem;
	color: var(--color-secondary-darkest);
}
article .body-container .posts-widget .posts-header h3 {
	color: var(--color-secondary-darkest);
	font-size: 1.4rem;
	margin: 0;
	text-align: center;
}
article .body-container .posts-widget .post-grid {
	display: flex;
	flex-direction: column;
	background-color: var(--color-secondary-lightest);
	gap: 0;
}
article .body-container .posts-widget .post-item {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	padding: 1rem .5rem;
	transition: background-color 0.3s ease;
	cursor: pointer;
}
article .body-container .posts-widget .post-item:hover {
	background-color: var(--color-secondary-light);
}
article .body-container .posts-widget .post-item h4 {
	font-family: var(--font-primary);
	color: var(--color-secondary-darkest);
	font-weight: 500;
}
article .body-container .posts-widget .post-item img {
	display: block;
	width: 60px;
	height: 60px;
	object-fit: cover;
	border: 3px solid var(--color-secondary-darkest);
	border-radius: var(--border-small);
}
article section.body {
	flex: 1;
	max-width: 55rem;
	margin: 0;
	line-height: 1.6;
	overflow: hidden;
}
article section.body p {
	text-align: justify;
	margin: 1rem 0;
}
article section.body h3 {
	font-size: 1.5rem;
	margin: 1.5rem 0 1rem 0;
}
article section.body h4 {
	color: var(--color-primary-dark);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
article section.body .curious-box {
	border: 3px solid var(--color-secondary-darkest);
    padding: 1rem;
    border-radius: var(--border-medium);
    background: var(--color-secondary-lightest);
    margin: 2rem 0;
}
article section.body .curious-box h4 {
	margin-bottom: 1rem;
	font-size: 1.2rem;
	display: flex;
	gap: 1rem;
	color: var(--color-secondary-darkest);
}
article section.body .curious-box h4 input {
	color: var(--color-secondary-darkest);
	background: transparent;
	border: none;
	field-sizing: content;
}
article section.body .curious-box h4 svg {
	width: 1.6rem;
	height: 1.6rem;
	color: var(--color-secondary-darkest);
}
article section.body .curious-box textarea {
	background: transparent;
    border: none;
    resize: auto;
    width: 100%;
	field-sizing: content;
}
article .code-block {
	margin: 1rem 0;
}
article .code-block .task-bar {
	box-shadow: inset 2px 2px 1px 1px var(--color-secondary-lightest);
    border: 3px solid var(--color-secondary-darkest);
}
article .code-block pre {
	margin: 0;
	background-color: var(--color-secondary-lightest);
	border: 3px solid var(--color-secondary-darkest);
	border-top: 0;
	border-radius: 0 0 var(--border-medium) var(--border-medium);
	line-height: 1.3;
}
article .code-block pre code {
	background: transparent;
	padding: 1rem;
}
article figure {
	max-width: 100%;
	margin: 0 auto;
	overflow: hidden;
}
article figure.stretched {
	width: 100%;
}
article figure img {
	object-fit: cover;
}
article figure.stretched img {
	width: 100%;
}
article figure.with-border {
	border: 3px solid var(--color-secondary-darkest);
	border-radius: var(--border-medium);
}
article .chart-wrapper {
	margin-top: 1rem;
}
article .chart-wrapper canvas {
	padding: .5rem;
    border: 3px solid var(--color-secondary);
    border-radius: 5px;
}
body.admin .container > h2 {
	margin-bottom: 2rem;
	font-family: var(--font-display);
	font-size: 2.5rem;
	color: var(--color-detail);
	text-shadow: var(--contrast-text-shadow);
}
body.admin .post {
	position: relative;
}
body.admin .post-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 1rem;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 1;
}
body.admin .post-info .badge {
	background-color: var(--color-secondary-lightest);
	color: var(--color-text);
	padding: 0.5rem 1rem;
	border-radius: var(--border-small);
	border: 2px solid var(--color-secondary-darkest);
	font-weight: bold;
}
body.admin .post-info .badge.published {
	background-color: var(--color-primary);
	border-color: var(--color-primary-dark);
	color: var(--color-secondary-lightest);
}
body.admin .post-info svg {
	width: 2rem;
	height: 2rem;
	color: transparent;
	transition: color 0.3s ease;
}
body.admin .post-info .feature-status.featured svg {
	color: var(--color-detail);
}
body.admin .post-info .feature-status:hover svg {
	color: var(--color-detail);
}
div.post.add {
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: transparent;
	border-style: dashed;
}
div.post.add:hover {
	box-shadow: none;
	transform: translateY(0);
	border-width: 3px;
}
div.post.add:hover svg {
	transform: scale(1.2);
}
div.post.add svg {
	color: var(--color-text-light);
	fill: var(--color-text-light);
	width: 40%;
	height: 40%;
	cursor: pointer;
	transition: transform 0.3s ease;
}
footer {
	text-align: center;
	background-color: var(--color-secondary);
	padding: 2rem 1rem;
	color: #ffffff;
	border-top: 3px solid var(--color-text);
}
footer > div {
	max-width: 30rem;
	margin: auto;
	display: flex;
	align-items: center;
	gap: 1rem;
}
footer > div svg {
	color: var(--color-secondary-lightest);
    width: 6rem;
    stroke: var(--color-text-light);
	stroke-width: 0.5;
}
footer p {
	margin: 0;
	text-align: left;
	text-shadow: var(--contrast-text-shadow-small);
}

#editor .tc-table {
	border: 2px solid var(--color-secondary-darkest);
	z-index: 0;
}

#editor .tc-table--heading .tc-row:first-child {
	font-weight: 600;
	border-bottom: 2px solid var(--color-secondary-darkest);
	position: sticky;
	top: 0;
	z-index: 2;
	background: var(--color-secondary-lightest);
	color: var(--color-secondary-darkest);
}

#editor .tc-row {
	border-bottom: 2px solid var(--color-secondary-darkest);
}

#editor .tc-row:last-child {
	border-bottom: none;
}

#editor .tc-cell {
	border-right: 2px solid var(--color-secondary-darkest);
}

#editor .cdx-quote__text {
	min-height: 0;
}

#editor .cdx-quote__caption {
	font-style: italic;
}

#editor .ce-delimiter:before {
	display: inline-block;
    content: '';
    font-size: 30px;
    line-height: 65px;
    height: 4px;
    letter-spacing: .2em;
    width: 100%;
    background: var(--color-secondary);
}

#editor .cdx-chart__actions {
	margin-bottom: .5rem;
}
#editor select,
#editor::picker(select) {
  appearance: base-select;
}

#editor select {
	padding: 0.3rem 1rem;
    border: 2px solid var(--color-secondary);
    border-radius: 5px;
	cursor: pointer;
}

#editor select::picker-icon {
	color: var(--color-secondary);
	transition: 0.4s rotate;
}

#editor select:open::picker-icon {
	rotate: 180deg;
}

#editor select:hover,
#editor select:focus {
  background: var(--color-secondary-lightest);
}

#editor .cdx-chart {
	padding: 0;
	border: none;
	border-radius: 0;
	margin-top: 1rem;
}

#editor .cdx-chart canvas {
	padding: .5rem;
    border: 3px solid var(--color-secondary);
    border-radius: 5px;
	width: 100%;
}

#editor .cdx-chart button {
	background-color: var(--color-secondary-lightest);
	color: var(--color-secondary-darkest);
	font-weight: bold;
	border: 2px solid var(--color-secondary-darkest);
	padding: 0.5rem 1rem;
	border-radius: var(--border-big);
	cursor: pointer;
	font-size: 0.9rem;
	margin: 1rem 0;
	transition: background-color 0.3s ease;
}

#editor .cdx-chart button:hover {
	background-color: var(--color-secondary-darkest);
	color: var(--color-secondary-lightest);
}

#editor .cdx-chart h4 {
	margin-bottom: .5rem;
}

#editor .cdx-chart__datasets-header {
	display: flex;
	gap: .5rem;
	align-items: center;
	padding: .5rem 0;
}

#editor .cdx-chart__datasets-header h4 {
	margin: 0;
}

#editor .cdx-chart__datasets-header span {
	display: inline-block;
	width: 1.5rem;
	height: 1.5rem;
	fill: var(--color-secondary);
	stroke: var(--color-secondary-darkest);
	cursor: pointer;
}

#editor .cdx-chart__datasets-header span:hover {
	fill: var(--color-secondary-darkest);
	stroke: var(--color-secondary-lightest);
}

#editor .cdx-chart__dataset {
	display: flex;
	gap: 0.5rem;
	margin-bottom: .5rem;
	align-items: center;
}

#editor .cdx-chart__labels-input {
	width: 100%;
}

#editor .cdx-chart__dataset .cdx-chart__remove-dataset {
	cursor: pointer;
	transition: transform 0.3s ease;
}

#editor .cdx-chart__dataset .cdx-chart__remove-dataset:hover {
	transform: scale(1.2);
}

#editor .cdx-chart__dataset-label {
	min-width: 10rem;
	field-sizing: content;
}

#editor .cdx-chart__dataset-data {
	flex: 1;
}

#editor .cdx-chart__actions, #editor .cdx-chart__body, #editor .cdx-chart__footer {
	display: none;
}

#editor .cdx-chart:focus-within {
	padding: 1rem;
    border: 3px solid var(--color-secondary-darkest);
    border-radius: 10px;
}

#editor .cdx-chart:focus-within > * {
	display: block;
}

.edit-image {
	width: 100%;
	max-width: 100%;
	margin: auto;
	overflow: hidden;
	cursor: pointer;
	position: relative;
	border: 2px dashed white;
	animation: imageAppear 1s ease-in-out;
}

.edit-image .placeholder {
	font-size: 2rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
	color: var(--color-text);
	opacity: 0;
}

.edit-image .imagePlaceholder {
	opacity: 0.5;
}

.edit-image img {
	width: 100%;
	height: auto;
	max-height: 70vh;
	object-fit: contain;
	margin: auto;
	overflow: hidden;
}

.edit-image input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.editor-actions {
	margin-bottom: 1rem;
	display: flex;
	justify-content: space-between;
}

.editor-actions > div {
	display: flex;
	gap: 1rem;
}

.editor-actions button {
	background-color: var(--color-secondary);
	color: var(--color-text);
	font-weight: bold;
	border: none;
	padding: 0.5rem 1rem;
	border-radius: var(--border-medium);
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.editor-actions button:hover {
	background-color: var(--color-secondary-dark);
	transform: scale(1.05);
}

.editor-actions button.btn-danger {
	background-color: rgb(141, 24, 24);
	color: #ffffff;
}

.editor-actions button.btn-warning {
	background-color: rgb(194, 133, 21);
	color: #ffffff;
}

body[class="404"] {
	animation: bg-image-animate 60s infinite linear;
	background-image: url(/assets/image/textures/tree-bark.png);
}

body .container-404 {
	max-width: 1000px;
	padding: 1rem 1rem 2rem 1rem;
	margin: auto;
	text-align: center;
}

body .container-404 h1 {
	font-family: var(--font-display);
	font-size: 3rem;
	color: var(--color-detail);
	margin-bottom: 1rem;
	text-shadow: var(--contrast-text-shadow);
}

body .container-404 h2 {
	font-size: 1.8rem;
	color: var(--color-text);
	font-family: var(--font-primary);
	margin-bottom: 1rem;
}

body .container-404 img {
	max-width: 300px;
	margin: 2rem auto;
}

body .container-404 a {
	text-decoration: none;
    padding: 1rem 2rem;
    background: var(--color-secondary);
    color: var(--color-secondary-darkest);
    border: 3px solid var(--color-secondary-darkest);
    border-radius: 10px;
    margin: 0rem auto 0 auto;
    display: block;
    max-width: 20rem;
    font-weight: bold;
}


@keyframes wiggle {
	0% {
		transform: scale(1) rotate(0deg);
	}
	25% {
		transform: scale(1.2) rotate(5deg);
	}
	50% {
		transform: scale(1) rotate(0deg);
	}
	75% {
		transform: scale(1.2) rotate(-5deg);
	}
	100% {
		transform: scale(1) rotate(0deg);
	}
}

@keyframes bg-image-animate {
	0% {
		background-position-y: 100%;
	}
	50% {
		background-position-y: 50%;
	}
	100% {
		background-position-y: 0%;
	}
}

@media screen and (max-width: 1200px) {
	article .body-container {
		flex-direction: column;
		align-items: center;
		gap: 2rem;
	}
	article .body-container .posts-widget {
		width: calc(100% - 2rem);
		max-width: 40rem;
		margin: 0 1rem;
		margin-top: 2rem;
	}
	article .body-container .posts-widget .post-grid {
		margin-bottom: 0;
		border-bottom: 0;
	}
}

@media screen and (max-width: 1024px) {
	main {
		padding: 0rem 0.5rem 2rem 0.5rem;
	}
	.post-grid {
		grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
		gap: 1rem;
	}
	.post {
		min-height: 24rem;
	}
	.post .header {
		height: 200px;
	}
	.post .header .post-title {
		font-size: 1.5rem;
		bottom: .5rem;
		left: .5rem;
	}
	.post .body {
		padding: 0.5rem;
	}
	.featured-post {
		width: 100%;
		max-width: 950px;
		height: 450px;
		margin: 0 auto 1.5rem auto;
	}
}

@media screen and (max-width: 768px) {
	body.article main {
		padding: 0;
	}
	article > .task-bar {
		border-radius: 0;
		box-shadow: inset 0px 2px 1px 1px white;
	}
	article {
		border-radius: 0;
		border-left: 0;
		border-right: 0;
	}
	article section.body {
		width: 100%;
	}
	article section.body h3 {
		font-size: 1.3rem;
	}
}

@media screen and (max-width: 480px) {
	html {
		background: var(--color-secondary);
	}
	body {
		background: var(--color-secondary);
		font-size: 0.9rem;
		background-image: none;
	}
	body > header {
		background: var(--color-secondary);
		border-bottom: 3px solid var(--color-text);
	}
	main {
		padding: 0rem 0.3rem;
	}
	body.home main {
		background: var(--color-primary);
		padding-top: 1rem;
		background-image: url(/assets/image/textures/tree-bark.png);
		/*animation: bg-image-animate 60s infinite linear;*/
	}
	header .title img {
		width: 60px;
		height: 60px;
	}
	body > header {
		padding: 1rem 0;
	}
	body > footer {
		text-align: left;
		text-shadow: var(--contrast-text-shadow-small);
	}
	.social-links {
		display: none;
	}
	.featured-post {
		height: 400px;
		margin: 0;
	}
	.post {
		padding-bottom: 0;
		min-height: 15rem;
	}
	.post:hover {
		transform: translateY(-5px);
	}
	.post .header {
		height: 125px;
	}
	.post .header img {
		filter: brightness(0.35);
	}
	.post .body {
		padding: .3rem;
	}
	.post .header .post-title {
		font-size: 1.1rem;
		max-width: 400px;
		padding-bottom: .5rem;
		text-shadow: var(--contrast-text-shadow);
	}
	.post .post-snippet {
		font-size: 0.8rem;
		line-height: 1.4;
		display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
	}
	.featured-post .body {
		padding: 0 .5rem 1rem .5rem;
		font-size: 1rem;
	}
	.featured-post-title {
		font-size: 2rem;
	}
	/*.post div.task-bar, .featured-post div.task-bar {
		border-radius: 0;
		box-shadow: inset 0px 2px 1px 1px white;	
	}*/
	div.task-bar {
		padding: 0.4rem 1rem 0rem 1rem;
	}
	div.task-bar span {
		width: .8rem;
	}
	.post-grid {
		margin-top: 1rem;
		grid-template-columns: 1fr 1fr;
		margin-bottom: 2rem;
		gap: .5rem;
	}
	article {
		border-top: 0;
	}
	article section.header {
		margin: 1rem 0;
	}
	article section.header img {
		margin: 0 -0.5rem;
		border: 0;
		border-radius: 0;
		width: calc(100% + 1rem);
	}
	article section h2 {
		text-align: left;
		padding: 0 .5rem;
		font-size: 2rem;
	}
	article section.header .post-excerpt {
		text-align: left;
		padding: 0 .5rem;
		font-size: 1rem;
	}
	article section {
		padding: 0 .5rem;
	}
	article .post-grid {
		margin-top: 0;
	}
}