/* ====================

Table of Contents

1. Playground
2. Settings
3. Settings presets
4. Settings presets highlighter
5. Settings container
6. Settings list, settings sublist and settings panel
7. Settings title
8. Settings title back button
9. Setting list item
10. Setiings blocks
11. Setiings inputs
12. Get code button
13. Diamond grid
14. Playground manual

==================== */



/* 1. Playground */

#playground {
	display: flex;
	position: relative;
	width: 100%;
	height: auto;
	margin: -20px 0;
	background-color: #242526;
}



/* 2. Settings */

#settings {
	position: sticky;
	z-index: 3;
	top: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	max-height: 100vh;
	min-height: 500px;
	background-color: #18191a;
	overflow: hidden;
}

#settings.outline {
	background-color: rgba(24, 25, 25, 0.95);
}



/* 3. Settings presets */

#settings .presets {
	display: flex;
	position: relative;
	width: calc(100% - 40px);
	margin: 20px auto 0;
}



/* 4. Settings presets highlighter */

#settings .presets-highlighter {
	display: flex;
	width: calc(100% - 40px);
	margin: 0 auto 13px;
	height: 2px;
	min-height: 2px;
	border-radius: 2px;
	background-image: linear-gradient(40deg, #ffa745 0%, #fe869f 30%, #ef7ac8 45%, #a083ed 70%, #43aeff 85%);
	overflow: hidden;
}



/* 5. Settings container */

#settings-container {
	flex-grow: 1;
	box-sizing: border-box;
	position: relative;
	width: 100%;
	padding: 0 20px;
	overflow-x: hidden;
	overflow-y: auto;
}



/* 6. Settings list, settings sublist and settings panel */

.settings-list,
.settings-sublist,
.settings-panel {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	box-sizing: border-box;
	padding: 0 20px;
	opacity: 1;
	transform: translate3d(0%, 0px, 0px);
	transition: .3s ease-in-out;
}

.settings-sublist,
.settings-panel {
	z-index: 2;
	opacity: 0;
	transform: translate3d(50%, 0px, 0px);
	pointer-events: none;
}

.settings-panel {
	z-index: 3;
}

.settings-list.hide,
.settings-sublist.show.hide {
	opacity: 0;
	transform: translate3d(-25%, 0px, 0px);
	transition: .3s ease-in-out;
	pointer-events: none;
}

.settings-sublist.show,
.settings-panel.show {
	opacity: 1;
	transform: translate3d(0%, 0px, 0px);
	transition: .3s ease-in-out;
	pointer-events: all;
}



/* 7. Settings title */

.settings-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	box-sizing: border-box;
	padding: 0 10px 13px;
	border-bottom: 1px solid #3a3b3c;
}

.settings-sublist > .settings-title,
.settings-panel > .settings-title {
	cursor: pointer;
}

.settings-title span {
	flex-grow: 1;
	color: #585c60;
	font-weight: 800;
	text-transform: uppercase;
}



/* 8. Settings title back button */

.settings-back {
	position: relative;
	width: 7px;
	height: 12px;
	padding-right: 10px;
	margin-right: 10px;
	border-right: 2px solid #3a3b3c;
}

.settings-back:after {
	content: '';
	display: block;
	width: 100%;
	height: 100%;
	background-image: url('/image/diamond-grid/playground/settings-arrow-left.svg');
	background-size: cover;
	background-repeat: no-repeat;
	transition: transform .2s ease-in-out;
}

.settings-title:hover > .settings-back:after {
	transform: translateX(-3px);
}



/* 9. Setting list item */

.setting-list-item {
	position: relative;
	box-sizing: border-box;
	font-size: 14px;
	font-weight: 500;
	color: #adb0b5;
	border-bottom: 1px solid #3a3b3c;
	padding: 10px;
	cursor: pointer;
	transition: color .2s ease-in-out;
}

.setting-list-item:last-of-type {
	border: none;
}

.setting-list-item:hover {
	color: #e4e6eb;
}

.setting-list-item:after {
	content: '';
	position: absolute;
	top: calc(50% - 5px);
	right: 10px;
	width: 6px;
	height: 10px;
	background-image: url('/image/diamond-grid/playground/settings-arrow-right.svg');
	background-size: cover;
	background-repeat: no-repeat;
	transform: translateX(0px);
	transition: transform .2s ease-in-out;
}

.setting-list-item:hover:after {
	transform: translateX(2px);
}

.setting-list-item:hover .next-arrow:before,
.setting-list-item:hover .next-arrow:after {
	background-color: #e4e6eb;
}



/* 10. Setiings blocks */

.setting-block {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 15px 10px;
	border-bottom: 1px solid #3a3b3c;
}

.setting-block > label {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	position: relative;
	font-size: 12px;
	font-weight: 600;
	color: #adb0b5;
	margin-bottom: 10px;
	word-break: break-word;
}

.setting-block > label > span {
	content: '';
	display: block;
	float: left;
	width: 14px;
	height: 14px;
	margin-right: 10px;
	background-image: url('/image/diamond-grid/playground/info.svg');
	background-size: cover;
	background-repeat: no-repeat;
}

.setting-block > label > div {
	display: none;
	box-sizing: border-box;
	position: absolute;
	z-index: 3;
	top: calc(50% + 14px);
	left: -10px;
	width: calc(100% + 20px);
	height: auto;
	padding: 0 10px;
	font-weight: 400;
	line-height: 1.4;
	color: #e4e6eb;
	border-radius: 4px;
	background-color: #242526;
	box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.setting-block > label > div:before {
	content: '';
	position: absolute;
	top: -4px;
	left: 12px;
	width: 10px;
	height: 10px;
	background-color: #242526;
	transform: rotate(45deg);
}

.setting-block > label > div:after {
	content: '';
	position: absolute;
	z-index: 2;
	top: -22px;
	left: 0;
	width: 38px;
	height: 100%;
}

.setting-block > label > span:hover ~ div,
.setting-block > label > div:hover {
	display: block;
}

.setting-block > label > div p {
	font-size: 12px;
	font-weight: 600;
	color: #adb0b5;
}



/* 11. Setiings inputs */

.playground-range, 
.playground-color {
	display: flex;
	align-items: center;
	position: relative;
	z-index: 2;
}

.playground-range input {
	width: calc(100% - 60px);
	appearance: none;
	-webkit-appearance: none;
	height: 1px;
	background: #3a3b3c;
	cursor: pointer;
	margin: 0;
}

.playground-range input:focus,
.playground-pick-color input:focus {
  	box-shadow: none;
  	outline: none;
}

.playground-range input::-webkit-slider-thumb {
  	-webkit-appearance: none;
  	appearance: none;
  	width: 14px;
  	height: 14px;
  	border-radius: 50%; 
  	background: #e4e6eb;
  	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  	cursor: pointer;
}

.playground-range input::-moz-range-track {
	background: transparent;
}

.playground-range input::-moz-range-thumb {
	border: none;
	width: 14px;
  	height: 14px;
  	border-radius: 50%; 
  	background: #e4e6eb;
  	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  	cursor: pointer;
}

.playground-range output {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 50px;
	min-width: 50px;
	height: 24px;
	padding: 0;
	margin-left: 10px;
	font-size: 12px;
	font-weight: 600;
	color: #e4e6eb;
	border-radius: 6px;
	background-color: #3a3b3c;
	pointer-events: none;
}

.playground-radio {
	display: flex;
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #3a3b3c;
	border-radius: 6px;
	overflow: hidden;
}

.playground-radio input {
	display: none;
}

.playground-radio label {
	display: block;
	margin: 0;
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	text-transform: capitalize;
	color: #adb0b5;
	line-height: 24px;
	cursor: pointer;
	transition: .2s ease-in-out;
}

.playground-radio[inputs="2"] label {
	width: 50%;
}

.playground-radio[inputs="3"] label {
	width: 33.33%;
}

.playground-radio label:hover {
	color: #e4e6eb;
	background-color: #242526;
}

.playground-radio input:checked + label {
	color: #e4e6eb;
	pointer-events: none;
	background-color: #3a3b3c;
}

.playground-color > input {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 26px;
	border: none;
	padding: 0 10px;
	font-family: 'Poppins', Arial, sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #e4e6eb;
	line-height: 26px;
	margin: 0;
	border-radius: 6px;
	background-color: #3a3b3c;
	outline: none;
}

.playground-color output {
	display: block;
	box-sizing: border-box;
	position: absolute;
	top: 1px;
	right: 1px;
	width: 24px;
	height: 24px;
	margin-left: 10px;
	border-radius: 5px;
	cursor: pointer;
	overflow: hidden;
}

.playground-color input[type=color] {
	opacity: 0;
	display: block;
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: none;
	outline: none;
	border-radius: 6px;
	cursor: pointer;
}

.playground-select {
	width: 100%;
	position: relative;
	border-radius: 6px;
	background-color: #3a3b3c;
	overflow: hidden;
}

.playground-select:before {
	content: '';
	position: absolute;
	z-index: 2;
	top: 1px;
	right: 0;
	width: 35px;
	height: 24px;
	background-image: url('/image/diamond-grid/playground/select-arrow.svg');
	background-position: center;
	background-size: cover;
	pointer-events: none;
}

.playground-select select {
	display: block;
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 100%;
	height: 26px;
	padding: 0 10px;
	font-family: 'Poppins', Arial, sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #e4e6eb;
	line-height: 26px;
	border: none;
	margin: 0;
	box-shadow: none;
	background: transparent;
	background-image: none;
	-webkit-appearance: none;
	outline: none;
	cursor: pointer;
	-moz-appearance: none;
	text-overflow: ellipsis;
}

.playground-text input {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 26px;
	border: none;
	margin: 0;
	padding: 0 10px;
	outline: none;
	font-family: 'Poppins', Arial, sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #e4e6eb;
	line-height: 26px;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	border-radius: 4px;
	background-color: #3a3b3c;
}



/* 12. Get code button */

.get-code-button {
	box-sizing: border-box;
	width: calc(100% - 40px);
	margin: 20px auto;
}



/* 13. Diamond grid  */

#preview {
	flex-grow: 1;
	z-index: 2;
	position: relative;
	border-top: 20px solid transparent;
	border-bottom: 20px solid transparent;
}

#preview:before, 
#preview:after {
	content: '';
	position: absolute;
	z-index: 1;
	left: 0;
	width: 100%;
	height: 20px;
	background-color: #18191a;
}

#preview:before {
	top: -20px;
}

#preview:after {
	bottom: -20px;
}

#preview.outline:before,
#preview.outline:after {
	display: none;
}

#my-diamond-grid {
	z-index: 2;
}

.diamond-grid-lightbox-caption h4 {
	margin-top: 0;
}



/* 14. Playground manual */

#playground-manual {
	width: calc(100% - 40px);
	max-width: 800px;
	margin: 40px auto;
}

#playground-manual p {
	color: #adb0b5;
}

#playground-manual p strong {
	font-weight: 500;
	color: #e4e6eb;
}



@media screen and (max-width: 600px) {

	#playground {
		flex-direction: column-reverse;
		margin: 0 0 -20px;
	}

	#preview {
		border: none;
	}

	#preview:before, 
	#preview:after {
		display: none;
	}

}

@media screen and (max-width: 450px) {

	#settings-container,
	.settings-list, 
	.settings-sublist, 
	.settings-panel {
		padding: 0 10px;
	}

}



