/* General Reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

a {
	color: #fb5ebe;
}

/* Typography */
body {
	font-family: Arial, sans-serif;
	background-color: #000;
	color: #fff;
}

.bgtile {
	animation: background-size-animation 10s infinite alternate ease-in-out;
	background-position: center center;
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bgtile header {
	position: unset;
	padding: 2rem;
	border-radius: 2rem;
}

h1,
h2 {
	color: #fff;
}

.slideshow *, .hide-ui *, .slideshow, .hide-ui {
	scrollbar-width: none;
}
.slideshow *::-webkit-scrollbar, .hide-ui *::-webkit-scrollbar, .slideshow::-webkit-scrollbar, .hide-ui::-webkit-scrollbar {
	display: none;
}

.grecaptcha-badge, .grecaptcha-logo, .grecaptcha-badge * {
	visibility: hidden !important;
}

.grecaptcha-badge {
	
	top: 200vmax !important;
	right: 200vmax !important;
}

/* Header ============================== */
.page-header {
	padding: 0.2em;
	text-align: center;
	z-index: 1000;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	/*
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	background-blend-mode: overlay;
	-webkit-background-blend-mode: overlay;
	*/
	zoom: 1;
}

h1 {
	font-weight: lighter;
	text-transform: lowercase;
	letter-spacing: 0.25em;
	transition: letter-spacing 0.5s ease-in-out;
}

@media (max-width: 500px) {
	h1 {
		letter-spacing: 0.1em;
	}

}

.page-header.mindprint-style {
	background-color: #000;
	color: #fff;
	position: absolute;
}

.page-header.mindprint-style h1 {
	font-size: 1.5rem;
}

.page-header.mindprint-style .topnav {
	padding: 10pt;
	display: flex;
	flex-wrap: nowrap;
	max-width: 1470px;
	margin: 0 auto;
}

.topnav a {
	color: #fff;
	size: 1.2rem;
	text-decoration: none;
	font-family: "Anonymous Pro", sans-serif;
	font-size: 14.7px;
	color: rgba(252, 252, 252, 0.75);
	padding: 10pt;
}

.topnav a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 0.3rem;
}

.page-header.mindprint-style h1 {
	padding: 2pt;
	max-width: 1470px;
	margin: 0 auto;
	color: #fff;
}

header.page-header.section-header,
#zoomed-pattern .section-header {
	padding: 0.5rem 0;
}

#page-header-toolbar {
	display: block;
}
.zoomed #page-header-toolbar {
	display: none;
}

/* Main Content */
main {
	padding: 0;
}

.mindprint-style {
	max-width: 1470px;
	margin: 0 auto;
}

.no-break {
	display: inline-block;
	white-space: nowrap;
}




/* ZOOMED PATTERN ============================== */

#pattern-details-toolbar {
	display: none;
}
.zoomed #pattern-details-toolbar {
	display: block;
}
.zoomed .show-only-on-overview, .zoomed .palette-item.show-only-on-overview {
	display: none !important;
}
html:not(.zoomed) .show-only-on-zoomed {
	display: none !important;
}
html:not(.hide-ui) .show-only-on-fullscreen {
	display: none !important;
}
html:not(.slideshow) .show-only-on-slideshow {
	display: none !important;
}
html.slideshow .hide-on-slideshow {
	display: none !important;
}


.page-header.section-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-direction: row;
	flex-wrap: nowrap;
	container-type: inline-size;
}


.section-header h1 {
	flex: 1 1 min-content;
	/*display: none;*/
	max-height: 64pt;
    overflow-y:hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media screen and (max-width: 1000px) {
    #tips-panel {
        display: none;
    }
}

.section-header > .toolbar-btn {
	margin: 0.5rem;
	flex: 0 1 auto;
	color: #fff;
}

.section-header a.toolbar-expand-btn {
	color: #fff;
	text-decoration: none;
}

.section-header .toolbar {
	flex: 1 1 auto;
}

#zoomed-pattern .section-header {
	background: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	background-blend-mode: normal;
	-webkit-background-blend-mode: normal;
}



@keyframes zoomAnimation {
	to {
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}
}

@keyframes background-size-animation-zoom {
	from {
		background-size: 0;
	}
	to {
		background-size: 30vmin;
	}
}

@keyframes background-size-animation-undo-zoom {
	to {
		background-size: 0;
	}
}

#zoomed-pattern.shown {
	display: block;
	animation: zoomAnimation 0.3s ease both, background-size-animation-zoom 0.3s ease both;
	animation-composition: replace, accumulate, replace;
}

.slideshow #zoomed-pattern.shown {
	transition: background-image 0.5s ease-in-out;
}

#zoomed-pattern.zoomout {
	animation-direction: reverse;
}
#zoomed-pattern {
	position: fixed;
	background-color: #000;
	z-index: 500;
	display: none;
	background-position: 50% 50%;
	background-size: 250px;
	background-attachment: local;
	touch-action: none;
}

#zoomed-pattern .heart {
	display: none;
	flex: 0 0 content;
}

#zoomed-pattern.favorite .heart {
	display: none;
}

#zoomed-pattern.favorite.shown {
	border: 10px solid #fff;
}

html:not(.zoomed-favorite) #unfavorite-btn {
	display: none;
}
html.zoomed-favorite #unfavorite-btn {
	display: inline-block;
}
html.zoomed-favorite #favorite-btn {
	display: none;
}
html:not(.editing-curation) #delete-btn {
	display: none;
}
html.editing-curation #delete-btn {
	display: inline-block;
}

/* Pattern Grid ============================== */

@property --column_count {
	initial-value: 5;
	syntax: '<integer>';
	inherits: true;
}
:root{ --column_count : 5; }

#pattern-grid {
	display: grid;
	grid-auto-rows: auto;
	grid-gap: 4px;
	top: 0;
	left: 0;
	width: 100%;
	background-color: #000;
	margin-bottom: 23vh;
	/*overflow-x: scroll;*/
}

.variable-column-count #pattern-grid {
	grid-auto-columns: minmax(150px, 1fr);
}

.fixed-column-count #pattern-grid {
	grid-template-columns: repeat(var(--column_count), minmax(150px, 1fr));
	grid-auto-columns: 0;
}

.variable-column-count.overview-available.overview-mode #pattern-grid {
	animation: grid-zoom-out-animation-without-fixed-column-count 0.2s forwards;
}
.variable-column-count.overview-available.normal-mode #pattern-grid {
	animation: grid-zoom-in-animation-without-fixed-column-count 0.2s forwards;
}

.fixed-column-count.overview-available.overview-mode #pattern-grid {
	animation: grid-zoom-out-animation-with-fixed-column-count 0.2s forwards;
}
.fixed-column-count.overview-available.normal-mode #pattern-grid {
	animation: grid-zoom-in-animation-with-fixed-column-count 0.2s forwards;
}

@keyframes grid-zoom-out-animation-without-fixed-column-count {
	0% {
		grid-auto-columns: minmax(150px, 1fr);
		opacity: 1;
	}
	98% {
		grid-auto-columns: minmax(150px, 1fr);
		opacity: 0.2;
	}
	99% {
		grid-auto-columns: 1fr;
		opacity: 0.2;
	}
	100% {
		grid-auto-columns: 1fr;
		opacity: 1;
	}
}

@keyframes grid-zoom-in-animation-without-fixed-column-count {
	0% {
		grid-auto-columns: 1fr;
		opacity: 1;
	}
	98% {
		grid-auto-columns: 1fr;
		opacity: 0.2;
	}
	99% {
		grid-auto-columns: minmax(150px, 1fr);
		opacity: 0.2;
	}
	100% {
		grid-auto-columns: minmax(150px, 1fr);
		opacity: 1;
	}
}

@keyframes grid-zoom-out-animation-with-fixed-column-count {
	0% {
		grid-template-columns: repeat(var(--column_count), minmax(150px, 1fr));
		opacity: 1;
	}
	98% {
		grid-template-columns: repeat(var(--column_count), minmax(150px, 1fr));
		opacity: 0.2;
	}
	99% {
		grid-template-columns: repeat(var(--column_count), 1fr);
		opacity: 0.2;
	}
	100% {
		grid-template-columns: repeat(var(--column_count), 1fr);
		opacity: 1;
	}
}

@keyframes grid-zoom-in-animation-with-fixed-column-count {
	0% {
		grid-template-columns: repeat(var(--column_count), 1fr);
		opacity: 1;
	}
	98% {
		grid-template-columns: repeat(var(--column_count), 1fr);
		opacity: 0.2;
	}
	99% {
		grid-template-columns: repeat(var(--column_count), minmax(150px, 1fr));
		opacity: 0.2;
	}
	100% {
		grid-template-columns: repeat(var(--column_count), minmax(150px, 1fr));
		opacity: 1;
	}
}


/* Grouped by style: the page is a stack of per-style rows, each its own grid.
   (Previously the .style-group wrappers were items in the page-wide grid, so
   every style became a one-column-wide stack of tiles and short styles left
   tall black gaps beside the long ones. Tile row placement — the
   .pattern-item grid-row a flat grid needs — is skipped inside a group.) */
#pattern-grid.grouped {
	display: flex;
	flex-direction: column;
}

.style-group {
	display: grid;
	grid-gap: 4px;
}

/* Fixed column count: a style wraps onto extra lines inside its own group
   when it has more patterns than there are columns, and simply leaves the
   line short when it has fewer — no filler cells. */
.fixed-column-count #pattern-grid.grouped .style-group {
	grid-template-columns: repeat(var(--column_count), minmax(150px, 1fr));
}

/* No fixed column count: one line per style, as wide as the style is long
   (the grid scrolls horizontally, as it did before).
   :not(.fixed-column-count) matters — the browser adds fixed-column-count
   alongside the template's variable-column-count rather than replacing it. */
.variable-column-count:not(.fixed-column-count) #pattern-grid.grouped .style-group {
	grid-auto-flow: column;
	grid-auto-columns: minmax(150px, 1fr);
	width: max-content;
}

/* The overview (zoom-out) animations retarget the groups when they own the
   column tracks. */
.variable-column-count:not(.fixed-column-count).overview-available.overview-mode #pattern-grid.grouped .style-group {
	animation: grid-zoom-out-animation-without-fixed-column-count 0.2s forwards;
}
.variable-column-count:not(.fixed-column-count).overview-available.normal-mode #pattern-grid.grouped .style-group {
	animation: grid-zoom-in-animation-without-fixed-column-count 0.2s forwards;
}
.fixed-column-count.overview-available.overview-mode #pattern-grid.grouped .style-group {
	animation: grid-zoom-out-animation-with-fixed-column-count 0.2s forwards;
}
.fixed-column-count.overview-available.normal-mode #pattern-grid.grouped .style-group {
	animation: grid-zoom-in-animation-with-fixed-column-count 0.2s forwards;
}

/* Paging sentinels: zero-height markers either side of the grid that pull the
   neighbouring window in as they approach the viewport. */
.pattern-page-sentinel {
	height: 1px;
	width: 100%;
	pointer-events: none;
}

#pattern-grid.zooming {
	zoom: 800%;
	transition: zoom 1s ease-in-out;
}


.pattern-item {
	position: relative;
	aspect-ratio: 1 / 1;
	container-type: size;
}

.pattern-item .inner-pattern {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	transition: top 0.2s ease-in-out, left 0.2s ease-in-out,
		bottom 0.2s ease-in-out, right 0.2s ease-in-out;
	background-size: 250px;
	background-position: 50% 50%;
	background-color: inherit;
	background-origin: center;
	/* background-attachment: fixed; */
	overflow: hidden;
	cursor: pointer;
}

.pattern-item:hover .inner-pattern {
	box-shadow: inset 0px 0px 0 8px rgba(0,0,0, 1);
}

.show-focus .pattern-item:hover .inner-pattern {
	box-shadow: none;
}

.show-focus .pattern-item.focused .inner-pattern {
	box-shadow: inset 0px 0px 0 8px rgba(0,0,0, 1);
}

.pattern-item.favorite {
	z-index: 100;
	margin: -6px;
	border: 6px solid #fff;
}

/*.pattern-item.favorite .inner-pattern::after {
	content: "✓";
	color: #fff;
	position: absolute;
	z-index: 0;
	font-family: monospace;

	font-size: 1rem;
	text-shadow: 0px 0px 6px #000;
	top: 3px;
	right: 3px;
}

@container (min-width: 100px) {
	.pattern-item.favorite .inner-pattern::after {
		font-size: 2rem;
		text-shadow: 0px 0px 10px #000;
		top: 5px;
		right: 5px;
	}
}
@container (min-width: 250px) {
	.pattern-item.favorite .inner-pattern::after {
		font-size: 2.5rem;
		text-shadow: 0px 0px 12px #000;
		top: 7px;
		right: 7px;
	}
}*/

@keyframes hover-animation {
    0% {
        top: 0;
    }
    100% {
        top: -30px;
    }
}


/* Toolbar ============================== */

.section-header .toolbar {
	text-align: right;
}

.toolbar > a,
.button,
.toolbar-btn {
	text-decoration: none;
	display: inline-block;
	padding: 8px 15px;
	margin: 2px 5px;
	border: 1px solid #999;
	border-radius: 1.5rem;
	background-color: #222;
	box-shadow: 1px 3px 3px 0px rgba(0, 0, 0, 0.3);
	color: #fff;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	outline: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	min-height: 38px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

.toolbar svg,
.toolbar-btn svg {
	vertical-align: bottom;
	margin: 2pt;
	height: 16px;
	width: auto;
	aspect-ratio: 1 / 1;
}

.toolbar a:hover,
.toolbar-btn:hover {
	background-color: #333;
	border-color: #fff;
}

.toolbar a:active,
.button:active,
.toolbar-btn:active {
	background-color: #444;
	border-color: #fff;
}

@media (max-width: 500px) {
	.page-header .toolbar a,
	.page-header .toolbar .button,
	.page-header .toolbar-btn {
        padding: 7px 12px;
        box-shadow: 1px 2px 2px 0px rgba(0, 0, 0, 0.3);
	}
}


/* placeholder transition in */

.pattern-item.grid-placeholder {
	background-color: #333;
	/* animate in a loop */
	animation: fadeToBlue 4s ease-in-out infinite;
	animation-delay: 1.5s;
}

@keyframes fadeToBlue {
	0% {
		background-color: #333;
	}
	15% {
		background-color: #679;
	}
	30% {
		background-color: #333;
	}
	33% {
		background-color: #333;
	}
	48% {
		background-color: #967;
	}
	63% {
		background-color: #333;
	}
	66% {
		background-color: #333;
	}
	81% {
		background-color: #796;
	}
	96% {
		background-color: #333;
	}
}

.pattern-item.grid-placeholder.animate-1 {
	animation-delay: 0s;
}
.pattern-item.grid-placeholder.animate-2 {
	animation-delay: 0.1s;
}
.pattern-item.grid-placeholder.animate-3 {
	animation-delay: 0.2s;
}
.pattern-item.grid-placeholder.animate-4 {
	animation-delay: 0.3s;
}
.pattern-item.grid-placeholder.animate-5 {
	animation-delay: 0.4s;
}
.pattern-item.grid-placeholder.animate-6 {
	animation-delay: 0.5s;
}
.pattern-item.grid-placeholder.animate-7 {
	animation-delay: 0.6s;
}
.pattern-item.grid-placeholder.animate-8 {
	animation-delay: 0.7s;
}
.pattern-item.grid-placeholder.animate-9 {
	animation-delay: 0.8s;
}
.pattern-item.grid-placeholder.animate-10 {
	animation-delay: 0.9s;
}
.pattern-item.grid-placeholder.animate-11 {
	animation-delay: 1s;
}
.pattern-item.grid-placeholder.animate-12 {
	animation-delay: 1.1s;
}
.pattern-item.grid-placeholder.animate-13 {
	animation-delay: 1.2s;
}
.pattern-item.grid-placeholder.animate-14 {
	animation-delay: 1.3s;
}
.pattern-item.grid-placeholder.animate-15 {
	animation-delay: 1.4s;
}
.pattern-item.grid-placeholder.animate-16 {
	animation-delay: 1.5s;
}
.pattern-item.grid-placeholder.animate-17 {
	animation-delay: 1.6s;
}

/* overview zoom functionality */

#zoom-in-btn,
#zoom-out-btn {
	display: none;
}

.overview-available #zoom-out-btn,
.overview-available #zoom-in-btn {
	display: block;
}

#hamburger-toggle {
	flex-shrink: 0;
	flex-basis: max-content;
}

html.menu-open.hide-ui #hamburger-toggle,
html.menu-open.hide-ui #up-btn {
	display: inline-block !important;
}

#hamburger-toggle-text {
	display: none;
}
.menu-open #hamburger-toggle-text {
	display: inline;
	margin-left: 10px;
}

#hamburger-panel {
    position: fixed;
    top: 0;
    left: -300px;
    width: min(300px, 90vw);
    height: 100vh;
    background-color: rgba(50,50,50, 0.9);
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
    z-index: 1000;
    padding: 75px 5px 150px 5px;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#hamburger-panel #close-menu-btn {
	position: relative;
	top: -50px;
	left: 50px;
}

.menu-open #hamburger-panel {
    left: 0;
}

.menu-section-panel {
    margin-bottom: 30px;
}

.menu-section-header {
    color: #fff;
    font-size: 1.2em;
    margin: 20px 0 10px 0;
    padding: 0 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-section-header::after {
	content: "▼";
	font-size: 0.8em;
	transition: transform 0.3s ease;
}

.menu-section-panel:not(.expanded) .menu-section-header::after {
	transform: rotate(-90deg);
}

.menu-section-panel:not(.expanded) .dropdown-palette-content {
	max-height: 0;
}
.menu-section-panel.expanded .dropdown-palette-content {
	max-height: 700px;
}

/* Animate the dropdown content */
.dropdown-palette-content {
	transition: max-height 0.3s ease-in-out;
	overflow: hidden;
}

.toolbar-btn, .palette-item, .dropdown-palette-content > * {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    margin: 5px 0;
    transition: background-color 0.2s;
}

.dropdown-palette-content > *:empty {
	display: none;
}

.dropdown-palette-content > *.no-margin {
	margin: 0;
	padding: 0;
}

.palette-item .keyboard-shortcut {
	text-decoration: underline;
}



a .underline-portion {
	text-decoration: underline;
}

.numeric-input {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: stretch;
}
.numeric-input a.toolbar-btn {
	flex: 0 0 max-content;
	margin: 0;
}
.numeric-input .toolbar-btn:first-child {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	padding-right: 2px;
}
.numeric-input .toolbar-btn:last-child {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	padding-left: 2px;
}
.numeric-input input {
	flex: 1 1 auto;
	margin: 0;
	border-radius: 0;
	border-left: none;
	border-right: none;
	padding: 0 5px;
	text-align: center;
}

#pattern-description {
	max-height: 150px;
	overflow-y: hidden;
}

.table-view .palette-item .shortcut {
	flex-shrink: 0;
	flex-basis: max-content;
}
.table-view .palette-item > *:last-child {
	text-align: right;
}

a.palette-item:not(.hidden) {
	display: block;
}

.palette-item:not(.no-highlight):hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.palette-item.toggler {
    display: none;
    flex-wrap: nowrap;
    background-color: unset;
    border-radius: 20px;
    overflow: hidden;
	column-gap: 0;
}
.overview-available .palette-item.toggler {
    display: flex;
}

.palette-item.toggler .toolbar-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 10px;
    margin: 0;
    border-radius: 0;
    transition: background-color 0.2s, color 0.2s;
}

.palette-item.toggler .toolbar-btn:first-child {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.palette-item.toggler .toolbar-btn:last-child {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.palette-item.toggler .toolbar-btn:hover {
    background-color: inherit;
	border-color: #999;
	color:#fff;
}

#zoom-in-btn,
#zoom-out-btn {
    cursor: default;
}

.overview-available.overview-mode #zoom-in-btn,
.overview-available.normal-mode #zoom-out-btn {
    background-color: rgba(255, 255, 255, 0);
    color: #fff;
}
.overview-available.overview-mode #zoom-in-btn:hover,
.overview-available.normal-mode #zoom-out-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
	border-color: #fff;
}
.overview-available.overview-mode #zoom-in-btn:visited,
.overview-available.normal-mode #zoom-out-btn:visited {
    color: #fff;
}
.overview-available.overview-mode #zoom-out-btn,
.overview-available.normal-mode #zoom-in-btn {
    background-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}
.overview-available.overview-mode #zoom-in-btn {
	cursor:zoom-in;
}
.overview-available.normal-mode #zoom-out-btn {
	cursor:zoom-out;
}

.palette-item {
    display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
    align-items: center;
	column-gap: 5px;
}
.no-wrap span {
	flex-shrink: 0;
}
label.palette-item, .table-view .palette-item {
	flex-wrap: nowrap;
	justify-content: space-between;
}

.palette-item input[type="checkbox"]:not(.toolbar-btn),
.palette-item input[type="number"]:not(.toolbar-btn),
.palette-item input[type="text"]:not(.toolbar-btn) {
    margin-left: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 5px;
}

.palette-item input[type="text"] {
    width: 60%;
}

#pattern-curation-list .palette-item a {
	text-decoration: none;
	color: #fff;
}
#pattern-curation-list .palette-item a.underline-portion, #pattern-curation-list .palette-item a .underline-portion {
	text-decoration: underline;
}

.dropdown-palette-content .list-image,
.dropdown-palette-content .details .purchase_link {
    display: none;
}

#pattern-curation-list {
	margin-top: -10px;
	margin-bottom: -10px;
}

#owner-panel .collection-list-item {
    background-color: transparent;
    border: none;
    padding: 0;
}

#owner-panel .collection-list-item .collection-name {
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 10px;
}

#owner-panel .collection-list-item .collection-details {
    color: #ccc;
    font-size: 0.9em;
}
.dropdown-palette-content .pattern-list-item {
	margin: -5px;
}
.dropdown-palette-content .pattern-list-item .details > * {
	margin: 10px;
}

.linked-list > a {
	display: inline;
	margin-right: 5px;
}
.linked-list > a:not(:last-child)::after {
	content: ",";
	color: #ccc;
	text-decoration: none;
}

.linked-list > *:nth-child(n+6) {
	display: none;
}
.linked-list > a:nth-child(5)::after {
	content: "...";
	color: #ccc;
	text-decoration-style: unset;
	text-decoration-line: none;
	text-decoration-thickness: 0;
}

.bottom-panel {
    transform: translateY(0);
    opacity: 1;
	animation: slideInFade 0.2s ease-out forwards;
}

.bottom-panel.start {
    transform: translateY(100%);
    opacity: 0;
	display: none;
}

.bottom-panel.hidden {
    transform: translateY(100%);
    opacity: 0;
	animation: slideOutFade 0.1s ease-out forwards;
}

@keyframes slideInFade {
    0% {
        transform: translateY(100%);
        opacity: 0;
		display: none;
    }
	1% {
		display: block;
	}
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutFade {
    0% {
        transform: translateY(0);
        opacity: 1;
		display: block;
    }
	99% {
		display: block;
	}
    100% {
        transform: translateY(100%);
        opacity: 0;
		display: none;
    }
}


.bottom-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-height: 50vh;
    width: min(300px, 90vw);
    background-color: #333;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    padding: 15px;
    overflow-y: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.bottom-panel h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #fff;
}

.bottom-panel ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.bottom-panel li {
    margin-bottom: 8px;
    width: 100%;
}

.bottom-panel a,
.bottom-panel .toolbar-btn,
.bottom-panel .curation-list-item {
    display: block;
    padding: 8px 15px;
    background-color: #444;
    border: none;
    border-radius: 4px;
    text-align: left;
    text-decoration: none;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#success-panel-choose-different-curation-btn.hidden {
	display: none;
}

.curation-list-item[data-curation-visibility="2"]::before {
    content: "🌐 ";
}

.curation-list-item[data-curation-visibility="1"]::before {
    content: "🔗 ";
}

.curation-list-item[data-curation-visibility="0"]::before {
    content: "🔒 ";
}

.curation-list-item[data-curation-is-favorites="True"]::before {
    content: "❤️ ";
}

.bottom-panel a:hover,
.bottom-panel .toolbar-btn:hover,
.bottom-panel .curation-list-item:hover {
    background-color: #555;
}

#design-tray-header {
    position: relative;
    z-index: 999;
}

.bottom-panel #success-panel-link-to-curation,
.bottom-panel #new-curation-btn {
    margin-top: 10px;
}
.bottom-panel #new-curation-btn {
    margin-bottom: 20px;
}

#add-to-curation-count {
    font-weight: bold;
}

.bottom-panel .list-image,
.bottom-panel .details .purchase_link {
    display: none;
}

.hidden,
.toolbar > a.hidden {
    display: none;
}

.hide-ui .hidable-ui {
	display: none !important;
}

.show-when-selection {
	display: none;
}
.selection .show-when-selection {
	display: initial;
}
.show-when-logged-out {
	display: none;
}
.show-when-logged-in {
	display: none;
}
.logged-in .hide-when-logged-in {
	display: none;
}
.logged-out .hide-when-logged-out {
	display: none;
}
.logged-out .show-when-logged-out {
	display: initial;
}
.logged-in .show-when-logged-in {
	display: initial;
}
.logged-out .toolbar-btn.show-when-logged-out,
.logged-in .toolbar-btn.show-when-logged-in,
.selection .toolbar-btn.show-when-selection {
	display: inline-block;
}
.show-when-selection.toolbar-btn, .toolbar > a.show-when-selection {
	display: none;
}
.selection .show-when-selection.toolbar-btn, .selection .toolbar > a.show-when-selection {
	display: inline-block;
}

#no-patterns-message {
	text-align: center;
	margin-top: 100px;
}
#pattern-grid.hidden {
	display: none;
}

/* Swipe Animations */

#zoomed-pattern-clone {

}

.swipe-out-right {
    animation: setZoomAnimation 0.3s, swipeOutRight 0.3s ease-in-out;
}

.swipe-in-left {
    animation: zoomAnimation 0.3s ease both, background-size-animation-zoom 0.3s ease both, swipeInLeft 0.3s ease-in-out !important;
}

.swipe-out-left {
    animation: setZoomAnimation 0.3s, swipeOutLeft 0.3s ease-in-out;
}

.swipe-in-right {
    animation: zoomAnimation 0.3s ease both, background-size-animation-zoom 0.3s ease both, swipeInRight 0.3s ease-in-out !important;
}

@keyframes noOpAnimation {
    from {
        
    }
    to {
        
    }
}

@keyframes setZoomAnimation {
    from {
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
    }
	to {
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}
}

@keyframes swipeOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

@keyframes swipeOutLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes swipeInLeft {
    from {
        transform: translateX(-100%);
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
    }
    to {
        transform: translateX(0);
        opacity: 1;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
    }
}

@keyframes swipeInRight {
    from {
        transform: translateX(100%);
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
    }
    to {
        transform: translateX(0);
		opacity: 1;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
    }
}

/* Style for cloned zoomed pattern */
#zoomed-pattern-clone {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: 50% 50%;
    background-attachment: local;
	animation-composition: replace, accumulate;
}

/* Scroll Position Panel Styles */
#scroll-position-panel {
    position: fixed;
    transform: translateX(-50%);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 1000;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
	pointer-events: none;
	display: block;
	width: unset;
}

#scroll-position-panel.hidden {
    opacity: 0;
    transform: translate(-50%, 100%);
	display: none;
}

/* Ensure panel is visible over zoomed images */
.zoomed #scroll-position-panel {
    z-index: 1001;
}

/* Hide panel in fullscreen/slideshow modes */
.hide-ui #scroll-position-panel,
.slideshow #scroll-position-panel {
    display: none;
}

/* Upload Interface Styles */
.upload-interface {
	width: 100%;
	margin: 10px 0;
}

.drop-zone {
	border: 2px dashed #666;
	border-radius: 10px;
	padding: 20px;
	text-align: center;
	background-color: rgba(255, 255, 255, 0.05);
	transition: all 0.3s ease;
	cursor: pointer;
	min-height: 120px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.drop-zone.dragover {
	border-color: #fff;
	background-color: rgba(255, 255, 255, 0.1);
}

.drop-zone button {
	margin-top: 10px;
}

/* Upload Progress Styles */
.upload-progress {
	margin-top: 15px;
	padding: 10px;
	border-radius: 8px;
	background-color: rgba(255, 255, 255, 0.05);
}

.upload-progress.hidden {
	display: none;
}

.progress-bar {
	width: 100%;
	height: 10px;
	background-color: #333;
	border-radius: 5px;
	overflow: hidden;
	margin: 10px 0;
}

.progress-fill {
	height: 100%;
	background-color: #fb5ebe;
	width: 0%;
	transition: width 0.3s ease;
}

.upload-stats {
	text-align: center;
	font-size: 0.9em;
	color: #ccc;
	margin-bottom: 5px;
}

.upload-message {
	text-align: center;
	font-size: 0.9em;
	color: #ccc;
}

/* File Input Styling */
#file-input {
	display: none;
}

/* Browse Button Styling */
#browse-btn.toolbar-btn {
	margin: 0;
	background-color: #333;
	border-color: #666;
	font-size: 0.9em;
	padding: 6px 12px;
}

#browse-btn.toolbar-btn:hover {
	background-color: #444;
	border-color: #fff;
}

/* Upload Progress Success/Error States */
.upload-progress.success {
	background-color: rgba(40, 167, 69, 0.15);
	border: 1px solid rgba(40, 167, 69, 0.3);
}

.upload-progress.success .progress-fill {
	background-color: #28a745;
}

.upload-progress.success .upload-message {
	color: #28a745;
}

.upload-progress.error {
	background-color: rgba(220, 53, 69, 0.15);
	border: 1px solid rgba(220, 53, 69, 0.3);
}

.upload-progress.error .progress-fill {
	background-color: #dc3545;
}

.upload-progress.error .upload-message {
	color: #dc3545;
}

/* Add transition for smooth state changes */
.upload-progress {
	transition: all 0.3s ease;
	border: 1px solid transparent;
}