/****************/
/* BLOCK STYLES */
/****************/

/* Simple TOC */

.simpletoc-list,
.simpletoc-list ul {
	list-style: none;
	padding: 0;
	text-align: center;
}

/* WP Group */

.wp-block-group {
	margin: 1rem 0;
	& * {
		width: fit-content;
	}
	&.is-style-narrow {
		width: 90%;
		margin: 1rem auto;
	}
}

/* WP Heading */

.wp-block-heading.is-style-bullet-heading::before {
	content: "";
	background-image: url("/wp-content/themes/sh3d/assets/img/bullet.gif");
	width: 16px;
	height: 12px;
	display: inline-block;
}

/* WP Image */

.wp-block-image {
	text-align: center;
}

.wp-block-image.is-style-with-border img {
	border: 2px solid #555;
}

/* WP Video */

.wp-block-video.aligncenter {
	margin: 0 auto;
}

/* WP Separator */

.wp-block-separator:not(.is-style-wide) {
	width: 40%;
	margin: 5px auto 0;
	border-width: 1px;
}

/* Carousel */

:root {
	--wp--custom--carousel-block--pagination-bullet-size: 12px;
	--wp--custom--carousel-block--pagination-bullet-active-color: #869791;
}

/* WP Button */

.wp-block-button .wp-block-button__link {
	background: rgb(19, 109, 187);
	color: white;
	border-radius: 8px;
	margin: 0 auto;
	padding: 1rem 2rem;
	text-decoration: underline;
	font-size: 1.25rem;
}
.wp-block-button .wp-block-button__link img {
	vertical-align: bottom;
}

@media only screen and (max-width: 992px) {
	.wp-block-button .wp-block-button__link {
		font-size: 2rem;
	}
	.wp-block-button .wp-block-button__link img {
		width: 35px;
		height: 35px;
	}
}

/* WPML */

.layout__toolbar .wpml-ls {
	border: 0;
	padding: 0 4px;
}
.layout__toolbar .wpml-ls-link {
	padding: 0;
}
.layout__toolbar .wpml-ls-item + .wpml-ls-item {
	padding-left: 4px;
}
html[lang="zh_CN"] .wpml-ls-item-zh-tw {
	display: none;
}

/*********************/
/* BASE THEME STYLES */
/*********************/

:root {
	--wp--preset--font-size--large: 1.4rem;
}

body {
	/* Declare it once instead of repeating it over and over */
	font-family: "Trebuchet MS", Tahoma, sans-serif;
	word-break: break-word;
}

/* Ordered List */

.layout__content ol {
	padding-left: 24px;
	counter-set: count attr(start, 0);
}
.layout__content ol li {
	padding-left: 6px;
	counter-increment: count;
}

.layout__content ol li::marker {
	content: counter(count);
	font-size: 24px;
	font-weight: bold;
}

.layout__content ol.default-ol li::marker {
	content: unset;
	font-size: unset;
	font-weight: unset;
}

/* Table */

.layout__content table {
	border-collapse: separate;
	border: 1px solid black;
	border-spacing: 0;
}

.layout__content table :is(th, td) {
	border-right: 1px solid grey !important;
	border-bottom: 1px solid grey !important;
	border-top: 1px solid black !important;
	border-left: 1px solid black !important;
}

.menu,
.layout__content table thead tr {
	font-weight: 400;
	text-shadow:
		1px 1px #5b8ee6,
		-1px -1px #4b75bd;
	margin-left: 2px;
	margin-top: 0px;
	margin-right: 1px;
	margin-bottom: 0px;
	color: #ffffff;
	text-decoration: none;
	text-align: center;
	background: url("../img/decoration/menuBackground.gif") #446aac repeat-x;
	transition: all 0.25s ease-out;
	font-size: 18px;
}

/* Utilities */

.text-center {
	text-align: center;
}

.w-full {
	width: 100%;
}

.\[\&\>img\]\:-mb-1 {
	& > img {
		margin-bottom: -0.25rem;
	}
}

.contentItem {
	padding: 8px 0;
}

.wp-post-image {
	display: block;
	margin: 0 auto;
}

.layout {
	display: grid;
	padding: 6px;

	& .layout__menu {
		grid-area: menu;
	}
	& .layout__toolbar {
		grid-area: toolbar;
	}
	& .layout__content {
		grid-area: content;
		padding: 8px 12px 0px;
	}
	& .layout__sidebar {
		grid-area: sidebar;
	}
	& .layout__footer {
		grid-area: footer;
	}
}

@media (max-width: 980px) {
	.layout {
		padding: 0 6px;
	}
}

.layout--default {
	grid-template:
		"menu toolbar" auto
		"menu content" 1fr
		". footer" auto
		/ auto minmax(0, 1fr);
	& .layout__content {
		padding: 8px 28px 0px;
		& :where(h1, h2, h3, p.is-style-wide):not(.has-text-align-center) {
			margin-left: -16px;
		}
	}
}

@media (max-width: 980px) {
	.layout--default {
		grid-template:
			"toolbar" auto
			"content" 1fr
			"sidebar" auto
			"footer" auto
			/ 100%;
	}
}

.layout--blog {
	grid-template:
		"menu toolbar sidebar" auto
		"menu content sidebar" 1fr
		". footer ." auto
		/ auto minmax(0, 1fr) auto;
}

@media (max-width: 1024px) {
	.layout--blog {
		grid-template:
			"toolbar sidebar" auto
			"content sidebar" auto
			"footer footer" auto
			/ minmax(0, 1fr) auto;
	}
}

@media (max-width: 980px) {
	.layout--blog {
		grid-template:
			"toolbar" auto
			"content" 1fr
			"sidebar" auto
			"footer" auto
			/ 100%;
	}
}

.wp-element-caption {
	text-align: center;
	font-style: italic;
}

@media (max-width: 980px) {
	.wp-tag-cloud a {
		font-size: 1.5rem !important;
	}
}

.sh3d-archives {
	&,
	& li,
	& ul {
		padding: 0;
		margin: 0;
		list-style: none;
	}
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	row-gap: 12px;
}

.striped {
	& > :nth-child(even) {
		background: #f4f4f4;
	}
	& > :nth-child(odd) {
		background: white;
	}
}

.responseBody p {
	margin: 0;
}

.comment-reply-title > small {
	margin-left: 12px;
}

#responses {
	margin-top: 32px;
}

.aligncenter .wp-block-embed__wrapper {
	text-align: center;
}

.embed-responsive {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	aspect-ratio: 16 / 9;
	max-width: 600px;
	margin: 0 auto;
}
.embed-responsive .embed-responsive-item,
.embed-responsive embed,
.embed-responsive iframe,
.embed-responsive object,
.embed-responsive video {
	width: 100%;
	height: 100%;
	border: 0;
}
.embed-responsive iframe,
.embed-responsive .wp-block-embed__wrapper {
	width: 100%;
	height: 100%;
}
.wp-element-caption {
	text-align: center;
	width: 100%;
}

.layout__content table.td-border-0 :is(th, td) {
	border: none !important;
}

.layout__content .td-border-0 :is(th, td) {
	border: none !important;
}

.models-row {
	border: 1px lightgray solid;
	width: fit-content;
	margin: 0 auto;
	padding: 0.5rem;
	font-size: 1rem;
}

.mx-auto {
	margin: 0 auto;
}

.stars-table td:first-child {
	text-align: right !important;
}

.models-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1rem;
	text-align: center;
	max-width: 712px;
	margin: 0 auto;
}

.model-card img {
	width: 128px;
	height: 128px;
	border: 1px solid #cccccc;
	background: #fff;
	cursor: pointer;
}

.model-size {
	font-size: 12px;
	color: #444;
	margin-top: 5px;
	display: inline-block;
	padding: 2px 10px;
	border: 1px solid #cccccc;
	margin-top: -5px;
	background: white;
}

.model-name {
	margin-top: 5px;
	text-decoration: underline;
}

.model-name a {
	text-decoration: none;
	color: #0044cc;
}

.model-creator {
	font-size: 12px;
	color: #666;
}

.model-license {
	font-size: 11px;
	color: #999;
}

.models-search-form {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}

.models-search-form button {
	background: transparent;
	border: 0;
	cursor: pointer;
}

.uml-diagram {
	margin: 0 auto;
	text-align: center;
}
.uml-diagram img {
	border: 1px solid;
}

.btn-small .wp-block-button__link {
	display: inline-flex;
	gap: 0.5rem;
	padding: 0.8rem 1rem;
	font-size: 1rem;
}

.btn-badge .wp-block-button__link {
	background: transparent;
	padding: 0;
}

.download-h1 {
	display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/**********/
/* LEGACY */
/**********/

body {
	margin: 0px;
	background-color: #ffffff;
}
blockquote {
	margin-left: 16px;
	margin-right: 5px;
}
li {
	margin-right: 5px;
}
thead td {
	font-weight: 200;
}
h1 {
	margin-bottom: 2px;
}
pre {
	border-left-style: solid;
	border-left-color: #666666;
	padding-left: 10px;
	background-color: #dddddd;
	padding-top: 5px;
	padding-bottom: 5px;
	/* font-family: "Lucida Sans Typewriter", Courier, mono; */
}
a:link,
a:visited,
a:active {
	color: #3b5da1;
}
a:hover {
	color: orange;
}
.lightborder {
	border: 1px solid #cccccc;
}
.thinRuler {
	width: 40%;
	margin: 0px;
	size: 1px;
}
.spaced {
	margin-bottom: 3px;
}
.li12 {
	margin-top: 12px;
}
.largespace {
	margin-top: 24px;
}
.codeComment {
	color: #009966;
}
.propertyKey {
	color: #0000cc;
}
.specialValue {
	color: #990033;
}
.modelCell {
	width: 140;
	text-align: center;
	vertical-align: top;
}
.modelDefault {
	border: 1px solid #cccccc;
	background: #ffffff;
	width: 128px;
	height: 128px;
	/*	padding-bottom: 0.4em; */
}
.modelRecent {
	border: 2px solid #aa0000;
	background: #ffffff;
	width: 128px;
	height: 128px;
}
.modelReleased {
	border: 2px solid #00aa00;
	background: #ffffff;
	width: 128px;
	height: 128px;
}
.modelSize {
	border: 1px solid #cccccc;
	font-size: 75%;
	background: white;
	position: relative;
	top: -0.45em;
	margin-left: 45px;
	margin-right: 45px;
	margin-bottom: -0.45em;
	margin-top: 0;
	padding: 1px;
}
.modelLicenseAndSize {
	border: 1px solid #cccccc;
	font-size: 75%;
	background: white;
	position: relative;
	top: -0.45em;
	margin-left: 25px;
	margin-right: 25px;
	margin-bottom: -0.45em;
	padding: 1px;
}
.modelName {
	padding-top: 2px;
	padding-bottom: 12px;
	margin: 0;
}
.modelLicenseLegend {
	border: 1px solid #cccccc;
	padding: 2px;
	margin-top: 20px;
	font-size: 80%;
}
.logo {
	padding: 5px;
	border: 1px lightgray solid;
	background-color: white;
	text-align: center;
}

.headerItem {
	font-weight: normal;
	text-shadow:
		1px 1px #efece4,
		-1px -1px #cac8c1;
	color: #000000;
	text-decoration: none;
	margin-top: 10px;
	margin-bottom: 0px;
	margin-left: 5px;
	margin-right: 5px;
	font-size: 18px;
}
a.headerItem:link,
a.headerItem:visited,
a.headerItem:active {
	color: #000000;
	text-decoration: none;
	transition: all 0.25s ease-out;
}
a.headerItem:hover {
	color: orange;
	text-decoration: underline;
	text-shadow: none;
}

a.menu:link,
a.menu:visited,
a.menu:active {
	color: #ffffff;
	text-decoration: none;
}
a.menu:hover {
	color: orange;
	text-decoration: underline;
	text-shadow: none;
}
.menuItem {
	margin-left: 1px;
	margin-top: 2px;
	margin-right: 1px;
	margin-bottom: 1px;
	color: #404040;
	text-decoration: none;
	padding: 0px;
	line-height: 110%;
	transition: all 0.25s ease-out;
}
a.menuItem:link,
a.menuItem:visited,
a.menuItem:active {
	color: #404040;
	text-decoration: none;
}
a.menuItem:hover {
	color: orange;
	text-decoration: underline;
}
.menuCell {
	padding: 5px;
}
.printerCell {
	padding-top: 5px;
	padding-right: 2px;
}
.translationsCell {
	padding-top: 5px;
	padding-right: 5px;
}
.mainCell {
	padding-top: 8px;
	padding-right: 5px;
	padding-bottom: 5px;
}
.mainFooter {
	margin-top: 16px;
}
.translator {
	font-family: sans-serif;
}
.larger {
	font-size: 1.4em;
}
.titleIcon {
	vertical-align: middle;
	margin-top: -5px;
	margin-right: 5px;
	width: 32px;
}
#owl {
	width: 500px;
	margin: 0 auto;
	margin-top: 15;
	text-align: center;
	overflow: visible;
	display: none;
}
#owl video {
	width: 500px;
}
#owl img {
	height: 266px;
}
#defaultImage img {
	height: 266px;
}
#SweetHome3DSmallScreenMenuIcon {
	background-image: url("../img/menuIcon.png");
	width: 25px;
	height: 22px;
}
#SweetHome3DSmallScreenMenuIcon:hover {
	background-image: url("../img/menuIconHover.png");
	cursor: pointer;
}
#SweetHome3DSmallScreenMenuIconCell {
	vertical-align: top;
	padding-top: 28px;
	padding-left: 15px;
	padding-right: 10px;
	display: none;
}
#SweetHome3DLogoSmallScreen {
	display: none;
}

/* Responsiveness management */
@media only screen and (max-width: 860px) {
	#SweetHome3DSmallScreenMenuIconCell {
		display: inline-block;
	}
	#SweetHome3DLogo {
		display: none;
	}
	#SweetHome3DLogoSmallScreen {
		display: block;
	}
	#SweetHome3DSearch {
		display: none;
	}
	#SweetHome3DMenu {
		display: none;
	}
	#facebook {
		display: none;
	}
	#forumLoginInlineForm {
		display: none;
	}
}

@media only screen and (min-width: 860px) and (max-width: 1024px) {
	#SweetHome3DSmallScreenMenuIconCell {
		display: inline-block;
	}
	#SweetHome3DSearch {
		display: none;
	}
	#SweetHome3DMenu {
		display: none;
	}
	#facebook {
		display: none;
	}
}

@media (hover: none), (pointer: coarse) {
	#SweetHome3DSmallScreenMenuIcon {
		transform: scale(1.25, 1.25);
	}
	#SweetHome3DSmallScreenMenuIconCell {
		padding-right: 15px;
	}
	body {
		font-size: 14px;
	}

	.sidebarItemTitle {
		height: 24px;
	}
	.sidebarItemTitle * {
		font-size: 20px;
	}
	.sidebarItemBody * {
		font-size: 20px;
		line-height: 19px;
	}
	.sidebarTagCloud * {
		line-height: 18px;
	}

	@media (max-width: 980px) {
		/* Show only blog tags at bottom */
		#sidebar .sidebarItem:nth-child(1),
		#sidebar .sidebarItem:nth-child(3) {
			display: none;
		}
		#body {
			position: relative;
		}
		#body #content {
			margin-right: 0;
		}
		#sidebar {
			width: auto;
			margin-left: 2em;
			margin-right: 2em;
			margin-bottom: 1em;
		}
		.published .contentItemBody {
			margin-bottom: -2em;
		}
		#linearNavigation {
			padding-bottom: 64px;
		}
		#linearNavigation a:link {
			text-decoration: underline;
		}
		.sidebarItem {
			background: #eae8df;
			border-left: 1px solid #9f9f9f;
			border-right: 1px solid #9f9f9f;
		}
		.sidebarItemBody * {
			font-size: 16px;
			line-height: 19px;
		}
		.sidebarItemTitle {
			background: #446aac;
			height: 2.5em;
		}
		.sidebarItemTitle * {
			font-size: 2em;
		}
		#sidebarBottom {
			background: #9f9f9f;
			padding-bottom: 2px;
		}
		.sidebarTagCloud * {
			line-height: 0.95em;
			font-size: 1.1em;
		}
		.small,
		#linearNavigation,
		#footer {
			font-size: 1.15em;
		}
		.metadata {
			margin-bottom: 3em;
		}
	}

	.headerItem * {
		font-size: 1.4em;
		margin-left: 2px;
		margin-right: 2px;
	}
	.menuItem {
		font-size: 1.15em;
		padding-left: 2px;
	}
	.menu {
		font-size: 1.2em;
	}
	#searchIcon {
		width: 28px;
		padding-right: 10px;
		padding-left: 5px;
	}
	#owl {
		width: 640px !important;
	}
	#owl video {
		width: 640px;
	}
	#owl img {
		height: 340px;
	}
	#defaultImage img {
		height: 340px;
	}
	.translationFlag {
		transform: scale(1.25, 1.25);
		margin: 4.5px;
	}
	.menuItemTranslationFlag {
		width: 22px;
	}
	.larger {
		font-size: 2em;
	}

	@media only screen and (min-width: 320px) and (max-width: 980px) and (-webkit-min-device-pixel-ratio: 2) {
		#SweetHome3DSmallScreenMenuIcon {
			transform: scale(2, 2);
		}
		#SweetHome3DSmallScreenMenuIconCell {
			padding-left: 40px;
			padding-right: 35px;
			display: inline-block;
		}
		#SweetHome3DLogo {
			display: none;
		}
		#SweetHome3DLogoSmallScreen {
			display: block;
		}
		#SweetHome3DSearch {
			display: none;
		}
		#SweetHome3DMenu {
			display: none;
		}
		#facebook {
			display: none;
		}
		#forumLoginInlineForm {
			display: none;
		}
		html * {
			font-size: 24px;
		}
		h1 {
			font-size: 1.8em;
		}
		h3 {
			font-size: 1.33em;
		}
		.headerItem {
			font-size: 1.25em;
		}
		.menuItem {
			padding: 2px 4px 2px 4px;
		}
		.menu {
			padding: 1.5px 4px 1.5px 4px;
		}
		.titleIcon {
			width: 2em;
		}
		#searchIcon {
			width: 32px;
			padding-right: 10px;
			padding-left: 10px;
		}
		#owl {
			width: 750px !important;
		}
		#owl video {
			width: 750px;
		}
		#owl img {
			height: 399px;
		}
		#defaultImage img {
			height: 399px;
		}
		.galleryImage {
			transform: scale(1.4, 1.4);
			margin-top: 15px;
			margin-bottom: 30px;
		}
		.translationFlag {
			transform: scale(1.5, 1.5);
			margin: 5.5px;
		}
		.menuItemTranslationFlag {
			width: 35px;
		}
		.larger {
			font-size: 1.4em;
		}
	}
}

.mobile-banner {
	display: none !important; /* Hidden by default */
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: #ffffff;
	padding: 15px;
	text-align: center;
	box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
	z-index: 1000;
}

.mobile-banner img {
	width: 50px;
	height: 50px;
	display: block;
	margin: 0 auto 10px;
}

.mobile-banner button {
	background-color: #007aff;
	color: #ffffff;
	border: none;
	padding: 10px 20px;
	border-radius: 5px;
	font-size: 16px;
	cursor: pointer;
}

.close-banner {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 20px;
	cursor: pointer;
}

.Stage_DEV {
	background-color: green;
	background-blend-mode: hard-light;
}

.Stage_TEST {
	background-color: blue;
	background-blend-mode: hard-light;
}
