.picturesDropArea,
.picturesDropAreaEdit {
	border: 2px dashed var(--tb-border-cool);
	border-radius: var(--tb-radius-lg);
	padding: 40px;
	text-align: center;
	font-size: 1.2em;
	margin: 20px;
	background-color: var(--tb-surface-alt);
	color: var(--tb-muted);
	cursor: pointer;
	transition:
		background-color var(--tb-transition),
		border-color var(--tb-transition);
}

.picturesDropArea:hover,
.picturesDropAreaEdit:hover,
.picturesDropArea.dragging,
.picturesDropAreaEdit.dragging {
	border-color: var(--tb-brand);
	background-color: var(--tb-brand-soft);
}

.thumbnail {
	display: inline-block;
	margin: 10px;
	position: relative;
}
.thumbnail img {
	max-height: 85px;
	border-radius: 5px;
}
.square-content img {
	max-height: 270px;
	max-width: 95%;
	border-radius: 10px;
}

.delete {
	background-color: var(--tb-red);
	border: none;
	border-radius: 50%;
	color: white;
	font-size: 12px;
	height: 20px;
	line-height: 20px;
	position: absolute;
	right: -10px;
	top: -10px;
	width: 20px;
	cursor: pointer;
}

.square-box {
	position: relative;
	width: 75%;
	max-width: 300px;
	overflow: hidden;
	border-radius: 12px;
}
.square-box:before {
	content: '';
	display: block;
	padding-top: 100%;
}
.square-content {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	color: white;
}
.square-content div {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	padding: 10px;
}
.square-content span {
	display: block;
	text-align: center;
	color: white;
	margin: 0;
	word-wrap: break-word;
	white-space: nowrap;
	line-height: 1.2;
	hyphens: none;
}
.cube {
	box-shadow: 10px 5px 5px #00000045;
	--fa-animation-duration: 0.5s;
	--fa-beat-scale: 1.02;
}
.cubeSection {
	border-right: 1px dotted grey;
}
.switch {
	top: -5px;
	margin-left: 10px;
	margin-right: 10px;
}

.switchLabel {
	font-weight: bold;
	font-size: 1.15em;
	padding-top: 10px;
}

.inputContainer {
	display: flexbox;
}

.cubeContentRow {
	border-bottom: 1px solid var(--tb-border);
	border-top-style: hidden;
	background-color: var(--tb-surface-alt);
}
.cubeContentRow img:hover {
	transition: transform 0.3s;
	transform: scale(2.5);
}

.items-wrapper {
	display: flex;
	flex-direction: row;
	justify-content: center;
}

.notSelected {
	opacity: 0.5;
}

.category {
	display: inline-block;
	margin: 5px;
	padding: 5px 12px;
	background-color: var(--tb-green);
	color: #fff;
	border-radius: var(--tb-radius-pill);
	font-size: 0.8em;
	font-weight: 700;
	cursor: pointer;
}

.category label {
	margin-right: 5px;
	cursor: inherit;
}

.category .closeCategoryBtn {
	cursor: pointer;
	margin-left: 5px;
}

.existingCategory {
	color: white;
	background-color: var(--tb-slate);
}
.existingCategory label {
	cursor: pointer;
}

.filterNotSelected {
	background-color: var(--tb-surface-alt);
	color: var(--tb-muted);
	opacity: 0.8;
}

.sortable,
.filterCategory {
	cursor: pointer;
}

.changeCategoryNameControls {
	display: inline-block;
	padding-top: 6px;
}

.inputFlex {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.addNewCubeBtnWrapper:has(#addNewCubeBtn.disabled) {
	cursor: not-allowed;
}

.cubeItemsCountSelect.disabled {
	pointer-events: none;
}

.cubeItemsCountWrapper:has(.cubeItemsCountSelect.disabled) {
	cursor: not-allowed;
}

.saveCubeBtnWrapper:has(.saveCubeBtn.disabled) {
	cursor: not-allowed;
}

.addNewCubeSetBtnWrapper:has(#addNewCubeSetBtn.disabled) {
	cursor: not-allowed;
}

.cubeColorSwatch {
	width: 28px;
	height: 28px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 50%;
	cursor: pointer;
}

.cubeColorSwatch.active {
	border-color: var(--tb-text);
	box-shadow: 0 0 0 2px #fff inset;
}

.addNewCubeBtnWrapper,
.addNewCubeSetBtnWrapper {
	display: contents;
}

.practice-cube-toolbar {
	display: flex;
	flex-flow: row wrap;
	align-items: flex-start;
	gap: var(--tb-gap);
}
