/* fira-sans-regular - latin */
@font-face {
	font-display: swap;
	/* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: 'Fira Sans';
	font-style: normal;
	font-weight: 400;
	src: url('/assets/fonts/google/fira-sans-v17-latin-regular.woff2') format('woff2');
	font-variant-ligatures: none;
}

html {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	overscroll-behavior: none;
}

body {
	width: 100%;
	height: 100%;
	overflow: hidden;
	overscroll-behavior: none;
	opacity: 1;
	transition: opacity 1000ms;
}

body.sendToEther {
	opacity: 0;
}

[v-cloak] {
	display: none;
}

#app {
	position: relative;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	overflow: hidden;
	color: #f5f5f5;
	font-variant-ligatures: none;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: stretch;
}

#app.ligaturesEnabled {
	font-variant-ligatures: normal;
}


/* layouts */
#layoutOptions input+label {
	display: inline-block;
	width: 18px;
	height: 14px;
	background-repeat: none;
	background-size: 100%;
	margin-left: 10px;
	opacity: 0.6;

}

#layoutOptions input:checked+label {
	opacity: 1;
}

#layoutOptions input+label::after {
	display: none;
}

#layoutOptions input#layout_default+label {
	background-image: url('/assets/img/icons/layout_default_white@2x.png');
}

#layoutOptions input#layout_split+label {
	background-image: url('/assets/img/icons/layout_split_white@2x.png');
}

#layoutOptions input#layout_overlay+label {
	background-image: url('/assets/img/icons/layout_overlay_white@2x.png');
}


#app.layout_overlay #codePanel {
	display: block;
	background: transparent;
}

#app.layout_overlay .CodeMirror {
	background: transparent !important;
}

#app.layout_overlay .CodeMirror-line>* {
	background: #f5f5f5;
}

#app.layout_overlay #sketch {
	display: block;
	z-index: 1;
	background: transparent !important;
	pointer-events: all;
}

#app.layout_overlay #sketch.inactive {
	pointer-events: none;
	filter: none;
}

#app.layout_overlay .CodeMirror-cursor {
	width: 3px !important;
	border-width: 3px !important;
	background-color: #73C2E9 !important;
}


#app.layout_split #codePanel {
	position: relative;
	width: 100%;
	background: transparent;
	overflow: visible;
	margin-left: 0;
	visibility: visible;
	pointer-events: none;
	transition: padding-bottom 200ms;
	flex: 1 1 100%;
	height: calc(100% - 50px);
}

body.resizing #codePanel {
	transition: none !important;
}

#app.layout_split #codePanel>* {
	pointer-events: auto;
}

#app.layout_split.playMode #codePanel {
	display: flex;
}


#app.layout_split #sketch {
	display: block;
	width: 50%;
	height: calc(100% - 85px);
	top: 85px;
	right: 0;
	left: unset;
	filter: none;
	z-index: 1;
	visibility: visible;
	border-left: 1px solid #ddd;
	position: absolute;
}

#app.layout_split.fullscreen #sketch {
	height: calc(100% - 34px);
	top: 34px;
}


#app.fullscreen #codePanel #codeTabs {
	top: 0;
}

#embedPageLink {
	display: none;
}

a.disabled {
	pointer-events: none;
}

#app.playMode.layout_default .navbar {
	border-bottom: 1px solid var(--grey6);
	max-height: 51px;
}

.navbar {
	position: relative;
	margin-bottom: 0;
	flex: 0 0 auto;
	transition: margin-bottom 200ms, opacity 200ms, top 200ms;
}


.navbar .iconsRow {
	background: #333;
	gap: 15px;
}

.navbar #navPath {
	display: none;
}

.navbar .iconsRow .OPlogo {
	z-index: 1;
}

.navbar .sketchInfo {
	display: inline-block;
	position: absolute;
	width: 100%;
	height: 100%;
	padding-left: 50px;
}

.navbar.expanded .sketchInfo,
html.newSketch .sketchInfo {
	display: none;
}

#websiteControls .userThumbContainer {
	position: absolute;
	width: 30px;
	height: 30px;
	top: 0;
}

#websiteControls .plus {
	width: 6px;
	height: 6px;
	background-image: url('/assets/img/icons/icon_plus_double_xs_white.png');
}

.navbar .userThumb {
	margin-top: 0px;
}


.navbar #navigationProfile {
	display: flex;
	position: relative;
	align-content: center;
}

.navbar #websiteControls {
	height: 30px;
	flex: 2;
	overflow: visible;
	gap: 10px;
	align-items: center;
	padding: 0;
}

.navbar .sketchTitle {
	display: block;
	width: 100%;
	margin-top: -3px;
	margin-bottom: -4px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding-left: 38px;
}

.navbar .sketchAuthor {
	top: 17px;
	font-size: 15px;
	padding-left: 38px;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	color: #ccc;
}

.navbar .sketchAuthor a {
	color: #ED7B7B;
}


.navbar #sideButtons .btn,
#editSketchButton {
	min-width: 100px;
}


.navbar.fade2Sketch {
	transition: opacity 1000ms 4000ms;
	opacity: 0;
}

.navbar.fade2Sketch:hover {
	transition: opacity 200ms;
	opacity: 1;
}

.navbar #mainControls {
	align-self: center;
	justify-self: center;
	text-align: center;
	display: flex;
}

.navbar #shareButtons {
	width: 190px;
	height: 50px;
	/* position: absolute; */
	padding: 14px 0;
	background: #444;
	/* top: 0px; */
	/* right: 0px; */
	font-size: 14px;
	transition: all 200ms 200ms;
	opacity: 1;
}

.navbar #shareButtons.flip {
	transform: rotateX(90deg);
	transition: all 0ms 0ms;
	opacity: 0;
	pointer-events: none;
}

.navbar #shareButtons p {
	margin-bottom: 3px;
}

.navbar #shareButtons a {
	margin-right: 22px;
}

.navbar #shareButtons a:last-of-type {
	margin-right: 0px;
}

.navbar #shareButtons .icon {
	vertical-align: middle;
}

.navbar #shareButtons .icon_twitter_white {
	margin-right: -1px;
}


.navbar #followLink::after {
	opacity: 0;
	transition: opacity 400ms;
	content: '';
}

.navbar #followLink:hover::after {
	content: 'Follow';
	opacity: 1;
}

.navbar #followLink.following:hover::after {
	content: 'Following';
	color: #999;
}

.navbar .followIcon {
	width: 15px;
	height: 15px;
	top: 0px;
	background: url('/assets/img/icons/plus_circle_small_red@2x.png') no-repeat;
	background-size: cover;
	margin-left: 4px;
	margin-right: 4px;
	vertical-align: text-bottom;
}

.navbar #followLink.following .followIcon {
	top: -1px;
	background-image: url('/assets/img/icons/checkmark_circle_small_white@2x.png');
}

#forkSketchLink,
#forkSketchButton {
	width: auto;
	overflow: hidden;
}

#app.recordMode {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

#app.recordMode .sidePanel,
#app.recordMode .console,
#app.recordMode #introPanel,
#app.recordMode #editSketchPanel,
#app.recordMode #codePanel,
#app.recordMode .navbar {
	display: none !important;
}

#app.recordMode #sketch {
	top: 0px;
	height: 100%;
	width: 100% !important;
}


.icon_loader_white {
	width: 18px;
	height: 18px;
}

#app>.panel {
	flex: 1 1 100px;
	background: #222;
	color: #fff;
	visibility: hidden;
	overflow: hidden;
}

#app>.panel.active,
.sidePanel.active {
	visibility: visible;
	display: block;
}

.panel.inactive,
.sidePanel.inactive {
	display: none;
}

#sketch {
	z-index: 0;

	/*    set initial bg, otherwise intropanel doesn't transition for some reason*/
	text-align: center;
	overflow: hidden;
	-webkit-overflow-scrolling: touch;
	box-sizing: border-box;
	display: none;
	position: relative;
}

#OPC {
	position: absolute;
	width: 280px;
	top: 15px;
	right: 15px;
	z-index: 4;
	text-align: left;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	align-content: center;
	justify-content: flex-start;
	max-height: 100%;
	transition: box-shadow 200ms;
	max-height: calc(100% - 30px);
	height: auto;
}

#OPC.collapsed {
	width: auto;
	border-radius: 50px;
	border: 1px solid #333;
}

#OPC:hover {
	box-shadow: 0 0 10px #222;

}

#OPCControls {
	height: auto;
	padding: 15px 15px 15px 15px;
	border-radius: 0;
	overflow: auto;
	border: 1px solid #222;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

#OPC .icon_cogs_small_white {
	width: 30px;
	height: 30px;
	background-color: #222222cc;
	background-size: 16px;
}

#OPC .icon_x_small_white {
	position: absolute;
	top: 19px;
	right: 28px;
}

#OPC.minimized {
	width: 32px;
	height: 32px;
	padding: 0;
	overflow: hidden;
	background: #444;
	border-radius: 0 0 10px 10px;
	border: 1px solid #333;
}

#OPC.minimized #OPCControls {
	display: none;
	/* position: fixed; */
}

#OPC .formItem {
	margin-bottom: 0;
}

#OPC .description {
	text-align: left;
	padding-left: 0;
}

#OPC select {
	width: 100%;
	flex: 0 1 60%;
	border-radius: 500px;
	padding: 0px 10px;
	border: none;
	height: 23px;
	font-size: 14px;
	appearance: none;
	background: url('/assets/img/icons/caret_down_small_white@2x.png') right 10px center no-repeat #333;
	background-size: 12px;
	line-height: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#OPC select:focus,
.OPtext input:focus,
.OPsliderContainer input.OPsliderText:focus,
.OPcolor:focus {
	box-shadow: 0 0 7px #73c2e9;
}

.OPsliderContainer input.OPslider:focus::-webkit-slider-thumb {
	box-shadow: 0 0 7px #73c2e9;
}

.OPsliderContainer input.OPslider:focus::-moz-range-thumb {
	box-shadow: 0 0 7px #73c2e9;
}

#OPC label {
	flex: 1 0 40%;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	margin-bottom: 0;
	justify-content: space-between;
	display: flex;
}

#OPC .OPCControl:not(:first-child) .OPlabel.title {
	margin-top: 30px;
}

#OPC #OPCcollapseBar {
	position: relative;
	width: 100%;
	height: 12px;
	right: 0;
	text-align: center;
	border-radius: 0px 0px 5px 5px;
	line-height: 0.8;
	background: url('/assets/img/icons/caret_up_white@2x.png') center center no-repeat #292929;
	background-size: 12px;
}

#OPC button {
	width: 100%;
	user-select: none;
	-webkit-user-select: none;
	margin-bottom: 3px;
	background: #333;
	color: var(--white);
	border-color: var(--grey4);
	border-radius: 45px;
}

#OPC button:active {
	box-shadow: inset 0 0 3px rgb(30 30 30 / 80%);
	/* background: #eee; */
}

#OPC button:hover,
#OPC button:focus {
	box-shadow: 0 0 7px #73c2e9;
}

#OPC .OPclipboard {
	height: 23px;
	border-radius: 20px;
	overflow: hidden;
	margin-top: 0;
}

#OPC .OPclipboard pre {
	height: 23px;
	overflow: hidden;
	padding: 2px 40px 2px 10px;
	background-color: var(--grey3);
}

#OPC .OPclipboard .icon {
	background-size: 12px;
}

#sketch #sketchForm {
	display: none;
}

#fullscreenWarning {
	position: fixed;
	height: auto;
	top: 15px;
	left: 50%;
	padding: 5px 15px;
	background: #333;
	transform: translateX(-50%);
	border-radius: 50px;
	z-index: 3;
	animation: fadeOutToHidden 200ms 2s forwards;
}

html.touch #fullscreenWarning {
	display: none;
}

html.no-touch #sketch .icon_minimize {
	display: none;
}

#sketch iframe {
	position: relative;
	/*will be override with size()*/
	width: 100%;
	height: 100%;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	max-height: 100%;
	border: none;
	transition: opacity 400ms;
	opacity: 1;
	background: transparent;
	overflow: scroll;
}

#sketch iframe.inactive {
	transition: opacity 0ms;
	opacity: 0;
}

body.resizing #sketch iframe {
	/* visibility: hidden; */
	pointer-events: none;
}

#controls.fadeIn {
	opacity: 1;
}

#controls {
	display: block;
	position: absolute;
	width: 100%;
	height: 60px;
	bottom: 0px;
	margin: 0;
	opacity: 0;
	text-align: center;
	background-color: transparent;
	background-image: linear-gradient(-180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
	border: none;
	transition: opacity 600ms 200ms;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

#app.fullscreen #controls,
#app.fullscreen .navbar,
#app.fullscreen .sidePanel {
	opacity: 0;
	pointer-events: none;
}


#app.fullscreen .navbar {
	opacity: 0;
	pointer-events: none;
	margin-bottom: -51px;
	top: -51px;
}

#app.fullscreen #codePanel {
	padding-top: 0;
}

.hideOnPlay {
	opacity: 1;
	/* disabled for now*/
	transition: opacity 200ms;
}

#controls>.row {
	height: 100%;
	text-align: center;
	float: none;
}

#controls #frameRate {
	display: none;
	position: absolute;
	left: 10px;
	color: #fff;
}

#controls #mainControls {
	height: 100%;
	margin-top: 3px;
}

#controls #sideControls {
	position: absolute;
	height: 100%;
	top: 0px;
	right: 0;
	margin: 0;
	float: none;
}

#controls #sideControls .icon {
	display: inline-block;
	width: 25px;
	height: 25px;
	top: 6px;
	margin-right: 5px;
	/* background-position: 0px center; */
	border-radius: 0;
}

#mainControls .icon {
	width: 30px;
	height: 30px;
	margin: 0 11px;
	border: 1px solid rgba(255, 255, 255, 0);
	border-radius: 50%;
}

#sideControls .metricGroup {
	display: inline-block;
	position: relative;
	padding: 0px 0 10px 0;
	margin-top: 2px;
}

#sideControls .metricGroup.selected {
	border-bottom: 3px solid #fff;
	padding-bottom: 13px;
}


#sideControls .metric {
	display: inline-block;
	position: relative;
	top: 0px;
	left: 1px;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}

.metric#forkCount {
	left: 0px;
}

#codeSnippetModal code {
	font-family: "Fira Code", monospace;
	white-space: pre;
	overflow: auto;
	width: 100%;
	display: block;
	tab-size: 3;
	padding: 30px;
	color: #333;
}

#editSketchPanel {
	display: none;
	position: relative;
	overflow: auto !important;
	z-index: 2;
	padding-top: 100px;
	padding-bottom: 100px;
}

.formItem.fixedLabelWidth label {
	flex: 0 0 110px;
}


html.newSketch #deleteSketchLink {
	display: none;
}


#editSketchPanel .sketchTitle {
	font-size: 70px !important;
	line-height: 1.1 !important;
}

#editSketchPanel .license select {
	padding-right: 20px;
	background: url('/assets/img/icons/caret_small_bottom@2x.png') right center no-repeat;
	background-size: 12px 5px;
	border-color: #555;
}

#editSketchPanel .license option {
	text-overflow: ellipsis;
	overflow: hidden;
	/* Windows support coloring */
	background: #333;
	color: #f5f5f5;
}

#editSketchPanel #screenshotContainer {
	display: inline-block;
	position: relative;
	width: 100%;
	margin-bottom: 10px;
	overflow: hidden;
	aspect-ratio: 1;
}

#editSketchPanel #screenshotContainer video,
#editSketchPanel #screenshotContainer img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 1px solid #f5f5f544;
}

#editSketchPanel #removeVideoIcon {
	background-color: #f5f5f5;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	transform: translate(-10%, -40%);
}

#editSketchPanel #videoTotalBox {
	border: 1px solid var(--greyA);
	color: var(--white);
	padding: 3px 9px;
	border-radius: 65px;
	width: auto;
	display: inline-block;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	max-width: 100%;
	opacity: 0.6;
}

#editSketchPanel #videoTotalBox:hover {
	opacity: 1;
}

#editSketchPanel #videoTotalBox.warning {
	/* border-color: var(--yellow); */
	/* color: var(--yellow); */
	opacity: 1;
}

#editSketchPanel #screenshot,
#editSketchPanel .sketchVideo {
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: #f5f5f5;
	border: 1px solid #5a5a5a;
	opacity: 1;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

#editSketchPanel .icon_camera_white {
	position: absolute;
	width: 34px;
	height: 22px;
	bottom: -35px;
	left: 50%;
	background: url('/assets/img/icons/camera_white@2x.png') no-repeat;
	background-size: 34px 22px;
	transform: translateX(-50%);
	transition: bottom 200ms;
	z-index: 1;
}

#editSketchPanel #screenshotContainer:hover .icon_camera_white {
	bottom: 10px;
}

#editSketchPanel #screenshotContainer:hover::after {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	content: '';
	background: linear-gradient(to bottom, rgba(0, 153, 133, 0) 0%, rgba(0, 153, 133, 0.92) 100%);
}

#takeScreenshotWarning {
	display: flex;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;

	color: #333;
	text-align: center;

	z-index: 1;
	align-content: center;
	justify-content: center;
	align-items: center;
	background: url('https://kyoko.openprocessing.org/sketch_blank.png') no-repeat center center;
	background-size: cover;
}

#editSketchPanel>.container>.row {
	margin-bottom: 10px;
}

#editSketchPanel .dropdown-toggle {
	-moz-user-select: none;
	-khtml-user-select: none;
	-webkit-user-select: none;
	-o-user-select: none;
	user-select: none;
}

#editSketchPanel .dropdown-menu {
	right: 0;
	bottom: 100%;
	margin: 15px;
	padding: 5px;
	opacity: 0;
	transition: opacity 200ms;
	float: none;
	background: #333;
	border: 1px solid #f5f5f5;
	color: #f5f5f5;
	border-radius: 0;
}

#editSketchPanel .dropdown-menu>li {
	background: #333;
	color: #f5f5f5;
}

#editSketchPanel .dropdown-menu>li:hover {
	background: #666;
}

#editSketchPanel .dropdown-menu>li>a {
	background: none;
	color: #f5f5f5;
}

.toggleable+.description,
input[name='tags']+.description {
	opacity: 0;
	transition: opacity 200ms;
}

.toggleable.selected+.description,
input[name='tags']:focus+.description {
	opacity: 0.8;
}


html.newSketch #quickSaveButton {
	display: none !important;
}

html.existingSketch #saveSketchButton {
	display: none !important;
}


#app.playMode #submitSketchButton {
	display: none !important;
}

#app.editMode #forkSketchButton,
#app.editMode #forkSketchLink,
#app.editMode #quickSaveButton,
#app.editMode #saveSketchButton,
#app.editMode #sideControls,
#app.editMode .sidePanel.active,
#app.editMode #shareButtons,
#app.editMode #navigationProfile {
	display: none !important;
}

#app.editMode #editSketchPanel {
	display: block;
}

#app.infoMode #sideControls,
#app.infoMode .sidePanel.active,
#app.infoMode #sideButtons,
#app.infoMode #navigationProfile,
#app.infoMode #shareButtons {
	display: none !important;
}

#app.codeMode #submitSketchButton,
body.articleMode #submitSketchButton {
	display: none !important;
}


#intercom-frame {
	/* some wierd intercom bug causing intercom to take over full screen when sketch is restarted */
	/* so, hiding intercom-frame, which doesn't seem to effect messaging  */
	z-index: -1;
}

#console {
	position: fixed;
	width: 100%;
	height: 150px;
	bottom: 0;
	left: 0;
	padding: 0px 10px 0 0;
	background: #333;
	color: #f5f5f5;
	z-index: 4;
	transition: all 200ms 0ms;
	/*    by default minimized*/
	transform: translateY(0%);
	min-height: 0px;
	/* border shows up on embeds. need to find another solution */
	/* border-top: 1px solid #444; */
	--p5js-color: #DA3B60;
}

#console.visible {
	/* prevent user to resize it too small */
	min-height: 50px;
}

#console.resizing {
	transition: none;
}

#app.showCodeOptions .consolePin {
	right: 310px !important;
}

#console.auto .consolePin,
#console:not(.hasMessage) .consolePin {
	opacity: 0;
	visibility: hidden;
}


#console .icon_console {
	display: block;
	position: absolute;
	width: 18px;
	height: 14px;
	top: -25px;
	right: 10px;
	background: url('/assets/img/icons/icon_console.png') center center no-repeat;
	border-radius: 0;
	mix-blend-mode: exclusion;
}

#console .consolePin {
	display: block;
	position: absolute;
	width: 23px;
	height: 18px;
	top: -27px;
	right: 15px;
	padding: 0px 2px;
	font-size: 12px;
	font-weight: bold;
	border: 1px solid #444;
	overflow: hidden;
	border-radius: 3px;
	transition: opacity 200ms, right 400ms;
	cursor: pointer;
	background: #333;
	/*    background: url('/assets/img/icons/icon_console_pin_dark.png') center center no-repeat;*/
	/*    mix-blend-mode: exclusion;*/
}

#console .consolePin>div {
	display: block;
	position: absolute;
	width: 9px;
	height: 10px;
	top: 0;
	left: 9px;
	border-top: 1px solid #f5f5f5;
	border-bottom: 1px solid #f5f5f5;
	margin-top: -1px;
}

#console .consolePin::before {
	content: "⟩";
}

#console .icon_close {
	display: block;
	position: absolute;
	top: 15px;
	right: 15px;
	z-index: 3;
	border: none;
	border-radius: 0;
}

#console .gptPrompt a {
	color: var(--red);
	opacity: 0.7;
}

#console .gptPrompt a:hover {
	color: var(--red);
	opacity: 1;
}

#consoleContent {
	position: relative;
	height: 100%;
	overflow: auto;
	margin-right: -45px;
	padding-right: 80px;
	padding-bottom: 20px;
}

#consoleContent.limitReached::before {
	padding: 20px 0 0 20px;
	content: '... Past logs are removed from console for performance. Please use native browser console to view those.';
	font-size: 14px;
	color: #999;
}

#console pre {
	width: auto;
	margin: 0;
	padding: 0;
	padding: 0;
	background: transparent;
	border: none;
	color: #f5f5f5;
	white-space: normal;
	overflow: hidden;
}

#console pre a {
	text-decoration: underline;
}

#console pre:first-of-type {
	margin-top: 15px;
}

#console pre.noLineBreak {
	display: inline;
	word-wrap: break-word;
	word-break: break-all;
	white-space: normal;
}

#console pre.wrapWhitespace {
	word-break: normal;
}

#console pre {
	padding-left: 15px;
	border-left: 5px solid transparent;
	border-radius: 0;
}

#console pre::before {
	display: inline;
	content: attr(data-repeat);
	color: #999;
}


#console .error {
	color: #F54949;
	overflow: visible;
	border-left-color: #F54949;
}

#console .warning {
	border-left-color: #F8E71C;
	color: #f5f5f5;
}

#console .info {
	border-left-color: #73C1E8;
	color: #f5f5f5;
}

#console .p5js {
	border-left-color: var(--p5js-color);
	color: #aaa;
	margin-top: 5px;
	margin-bottom: 5px;
}

#console ul {
	display: inline-block;
	vertical-align: top;
}

#console ul.stackDetails {
	display: block;
	color: #f5f5f5;
}

#console ul::after {
	content: attr(data-object);
	text-decoration: none;
	color: #999;
	white-space: nowrap;
}

#console ul.expand::after {
	content: '';
}

#console ul li {
	display: none;
	border-left: 2px #222 solid;
	padding-left: 10px;
}

#console ul.expand>li {
	display: list-item;
}

#console .tabLink {
	margin-right: 5px;
}

#console .stackLink {
	margin-left: 5px;
}

#console .gptContainer {
	padding-top: 5px;
	color: #ccc;
}

#console .gptResponse {
	/* padding-bottom: 15px; */
	white-space: pre-wrap;
	word-break: normal;
	overflow: revert;
}

#console .gptResponse.loading::before {
	content: '';
	background: url('/assets/img/icons/loader_white.svg') no-repeat;
	background-size: 16px;
	width: 16px;
	height: 16px;
	display: inline-block;
}



#console #consoleResizeHandle {
	z-index: 1;
	left: 50%;
	transform: translateX(-50%);
}

#quotaContainer {
	position: relative;
	width: calc(100% + 30px);
	height: 30px;
	bottom: 0px;
	left: 0;
	padding: 5px 15px;
	background: #5D5D5D;
	z-index: 3;
	margin-left: -15px;
	margin-right: -15px;
}

#getQuotaLink {
	padding-right: 0;
}

#quotaAvailable {
	padding: 0;
}

#quotaBar {
	display: block;
	position: absolute;
	width: 0%;
	height: 100%;
	top: 0;
	left: 0;
	background: #333;
	transition: width 800ms;
}

.fx-bounce {
	-webkit-animation: bounce 800ms ease-out;
	-moz-animation: bounce 800ms ease-out;
	-o-animation: bounce 800ms ease-out;
	animation: bounce 800ms ease-out;
}

.fx-stream>div {
	-webkit-animation: stream 200ms linear;
	-moz-animation: stream 200ms linear;
	-o-animation: stream 200ms linear;
	animation: stream 200ms linear;
}

/* initial setup to prevent flickr */
#codeControlOverlay {
	opacity: 0;
	position: absolute;
}

/* Webkit, Chrome and Safari */

@keyframes stream {
	0% {
		transform: translateY(9px);
	}

	100% {
		transform: translateY(0px);
	}
}


@keyframes bounce {
	0% {
		transform: translateY(100%);
		opacity: 0;
	}

	5% {
		transform: translateY(100%);
		opacity: 0;
	}

	15% {
		transform: translateY(0);
		padding-bottom: 5px;
	}

	30% {
		transform: translateY(50%);
	}

	40% {
		transform: translateY(0%);
		padding-bottom: 6px;
	}

	50% {
		transform: translateY(30%);
	}

	70% {
		transform: translateY(0%);
		padding-bottom: 7px;
	}

	80% {
		transform: translateY(15%);
	}

	90% {
		transform: translateY(0%);
		padding-bottom: 8px;
	}

	95% {
		transform: translateY(7%);
	}

	97% {
		transform: translateY(0%);
		padding-bottom: 9px;
	}

	99% {
		transform: translateY(3%);
	}

	100% {
		transform: translateY(0);
		padding-bottom: 9px;
		opacity: 1;
	}
}

@keyframes icon_highlight {
	from {
		background-color: rgba(255, 255, 255, 1);
	}

	to {
		background-color: rgba(255, 255, 255, 0);
	}
}

.icon_info {
	background: url('/assets/img/icons/info@2x.png') center center no-repeat;
	background-size: 5px;
}

#mainControls>.icon {
	display: inline-block;
}

#mainControls .icon_article {
	width: 0;
	background: url('/assets/img/icons/article_white@2x.png') 8px center no-repeat;
	margin-right: 15px;
	background-size: 12px;
	transform: scale(0);
	transition: transform 200ms 200ms, width 200ms, margin-right 200ms;
	margin-right: -2px;
}

html.article .icon_article {
	width: 30px !important;
	transform: scale(1) !important;
	margin-right: 15px !important;
}

#app.playMode #mainControls .icon_play,
#app.codeMode #mainControls .icon_code,
#app.infoMode #mainControls .icon_info,
body.articleMode #mainControls .icon_article {
	border-color: rgba(255, 255, 255, 1);
}

.icon_play {
	background: url('/assets/img/icons/play_white@2x.png') 9px center no-repeat;
	background-size: 12px;
}

.icon_play.icon_pause {
	background: url('/assets/img/sketch/icon_pause.png') 10px center no-repeat;
}

#app.playMode .icon_play.icon_restart {
	background: url('/assets/img/icons/icon_restart@2x.png') 3px 3px no-repeat;
	background-size: 22px 22px;
	transform: rotate(0deg);
	transition: transform 0ms;
}

#app.playMode .icon_play.icon_restart.rotate360 {
	transition: transform 400ms;
	transform: rotate(360deg);
}

.icon_code {
	background: url('/assets/img/icons/code_thin_white@2x.png') center center no-repeat;
	background-size: 16px;
}



#OP_speaker {
	width: 27px !important;
	height: 22px;
	background: url('/assets/img/icons/speaker_on_white@2x.png') no-repeat;
	background-size: 26px 22px;
	background-position: left;
}

#OP_speaker.muted {
	background-image: url('/assets/img/icons/speaker_off_white@2x.png');
	background-size: 27px 22px;

}

.icon_heart {
	background: url('/assets/img/icons/heart_white@2x.png') center left no-repeat;
	background-size: 22px;
}

.icon_arrowToHeart {
	display: none;
	position: absolute;
	top: 9px !important;
	left: 0px;
	pointer-events: none;
	background: url('/assets/img/icons/heart_arrow_white@2x.png') 0px 0px no-repeat;
	background-size: 22px;
}

.icon_arrowToHeart.shoot {
	display: block;
	-webkit-animation-duration: 200ms;
	-webkit-animation-name: arrowToHeart;
	animation-duration: 200ms;
	animation-name: arrowToHeart;
}

@keyframes arrowToHeart {
	0% {
		-webkit-clip-path: inset(25px 25px 0px 0px);
		clip-path: inset(25px 25px 0px 0px);
	}

	100% {
		-webkit-clip-path: inset(0px 0px 0px 0px);
		clip-path: inset(0px 0px 0px 0px);
	}
}

.navbar #sideWrapper {
	display: flex;
	height: 50px;
	flex: 2;
	/* background: #555; */
	align-self: center;
	flex-direction: row;
	align-content: stretch;
	align-items: center;
	flex-wrap: nowrap;
	justify-content: flex-end;
	gap: 15px;
	padding-right: 15px;
}

#sideControls,
#sideButtons {
	position: relative;
	width: auto;
	padding-left: 0px;
}


#sideButtons {
	width: auto;
	/* margin-left: 0px; */
	/* padding-left: 0; */
	margin-right: -15px;
	overflow: visible;
	white-space: nowrap;
	flex: 0 0 auto;
	text-align: right;
	max-width: 0;
	display: flex;
	align-items: center;
	align-content: center;
	border-left: 1px solid #555;
	transition: max-width 200ms 2s;
	/* overflow: hidden; */
}

#sideButtons.showSideButtons {
	display: flex;
	max-width: 280px;
	opacity: 1;
	position: relative;
	height: 50px;
	transition-delay: 0s;
}

#sideButtons.offline::before {
	display: inline-block;
	width: 120px;
	padding: 7px;
	content: 'You are offline. Reconnecting...';
	white-space: normal;
	text-align: left;
	color: #999;
	font-size: 14px;
	animation: pulsate 2s infinite;
}

#approveButton {
	height: 100%;
}

#sideButtons.offline button {
	display: none !important;
}

#sideButtons.flip {
	transform: rotateX(-90deg);
}

#sideControls {
	height: 40px;
	user-select: none;
	overflow: hidden;
	height: 50px;
	padding-top: 10px;
	white-space: nowrap;
	display: flex;
	justify-content: flex-end;
	gap: 15px;
}

#sideControls .icon {
	width: 23px;
	top: 10px;
	border-radius: 0;
	margin-top: -7px;
	vertical-align: top;
}

#shortcuts shortcut {
	float: right;
}

.icon_comment {
	background: url('/assets/img/icons/comment_white@2x.png') center left no-repeat;
	background-size: 22px;
}

#sideControls .icon_fork_white {
	width: 14px;
	height: 20px;
}

.icon_question {
	top: -2px;
	left: 5px;
}

#introPanel .icon_fork {
	height: 15px;
	top: -1px;
	background-size: 10px;
}

#infoPanel .icon_fork {
	top: -5px;
}

.formItem .icon_refresh_small_red,
#privateURL .icon_refresh_small_red {
	top: -1px;
	margin-left: 7px;
}

#privateURL .OPclipboard .justCopied::before {
	right: 27px;
}


.icon_share {
	width: 20px !important;
	right: 0px;
	background: url('/assets/img/icons/icon_share.png') center left no-repeat;
	background-size: 20px 22px;
}

#share_embed .icon_share_small {
	position: absolute;
	top: 15px;
	right: 22px;
}

#share_report .formItem {
	margin-bottom: 0;
}

#plusEmbedOptions .formItem {
	margin-bottom: 30px;
}

#plusEmbedOptions label:not(.btn) {
	margin-bottom: 0;
	color: #f5f5f5;
	margin-top: 0;
}

.icon_fullscreen {
	display: block;
	position: fixed;
	right: 0;
	margin: 0;
	padding: 25px;
	z-index: 1040;
	background: url('/assets/img/sketch/icon_fullscreen.svg') center center no-repeat;
	transition: opacity 600ms 2000ms;
}

.icon_fullscreen.selected {
	background: url('/assets/img/sketch/icon_fullscreen.svg') center center no-repeat;
	opacity: 0;
}

.icon_fullscreen.selected:hover {
	transition: opacity 0ms;
	opacity: 1;
}

.sidePanel {
	position: absolute;
	width: 350px;
	height: 100%;
	top: 0;
	right: 0px;
	color: #fff;
	background: #333;
	padding-top: 0;
	z-index: 7;
	border-top: 51px solid #f5f5f5;
	overflow: hidden;
	box-shadow: 0px 0 6px #666;
}


.sidePanel .bg {
	position: absolute;
	height: 100%;
	right: 0px;
	/*    background: rgba(0, 0, 0, 0.7);*/
	background: #333;
	border-left: 1px solid rgba(240, 240, 240, 0.3);
}

.sidePanel .userImage {
	position: absolute;
	width: 40px;
	height: 40px;
	top: 40px;
	left: -55px;
	margin: 10px;
	margin-right: 0;
}

#heartsList {
	padding: 15px 10px;
	margin-bottom: 0;
	/* align-content: flex-start; */
	grid-template-columns: repeat(6, 1fr);
}

#heartSidePanel {
	display: flex;
	padding: 0px;
}

#heartSidePanel .userImage {
	top: 0px;
}



#forkSidePanel {
	display: flex;
	flex-direction: column;
	padding: 0;
}


#forkButtonContainer {
	width: 349px;
	flex: 0 1 auto;
	right: 0;
	bottom: 0px;
	margin: 0;
	padding: 15px;
	background: #333;
	border-top: 1px solid #f5f5f5;
}


#shareSidePanel {
	padding-left: 15px;
	padding-right: 15px;
	overflow-y: auto;
}

#shareSidePanel hr {
	margin: 15px 0 15px 0;
	border-color: #f5f5f5;
}

#shareSidePanel>div.row {
	margin-bottom: 30px;
}

#shareSidePanel .description {
	font-size: 14px;
}


#shareSidePanel #shareLinks a {
	color: #f5f5f5;
}

#recordingVideo,
#recordingGIF {
	width: 100%;
	margin-bottom: 10px;
}

#recordingPreview .icon_question_white {
	position: absolute;
	top: 10px;
	right: 15px;
}

#shareSidePanel #shareLinks>div {
	padding-right: 0;
	padding-left: 0;
}

#shareSidePanel pre.flash {
	transition: background 0ms !important;
	background: #f5f5f5;
}

#shareSidePanel #shareLinks {
	display: flex;
	justify-content: space-between;
	border-bottom: 1px solid #ccc;
	padding-bottom: 10px;
	margin-bottom: 20px;
	margin-top: 15px;
}

#infoPanel {
	border: none;
	overflow: auto !important;
	z-index: 10;
	padding-bottom: 60px;
}

#infoPanelButtons {
	display: none;
	margin-right: -15px;
}

#app.infoMode #infoPanelButtons {
	display: block;
}

#app.fullscreen>.panel {
	height: 100%;
	top: 0;
}

html:not(.layout_split) #app.fullscreen #codeOptions {
	height: 100%;
	top: 0;
}


#infoPanel .separator {
	position: absolute;
	width: 40%;
	top: -44%;
	left: -20%;
}

#infoPanel .bg {
	position: absolute;
	width: 100%;
	height: 100%;
	background: none;
}

#infoPanel h1 {
	margin-top: 13vh;
}

#infoPanel button.btn-primary {
	position: fixed;
	height: 30px;
	top: 10px;
	right: 15px;
	/* margin-bottom: 40px; */
	z-index: 1410000;
	padding-top: 3px;
}

#infoPanel .description {
	margin-top: 50px;
}

#infoPanel .by {
	margin-top: 30px;
	margin-bottom: 30px;
}

#infoPanel .userThumbContainer {
	overflow: hidden;
}

#infoPanel .description,
#infoPanel .instructions {
	margin-bottom: 40px;
}

#infoPanel .description.edit,
#infoPanel .instructions.edit {
	min-height: 100px;
}

#infoPanel .instructions::before {
	content: 'Instructions: ';
	font-weight: bold;
}


#infoPanel .instructions.empty::before {
	content: '';
}

#infoPanel div.tag {
	display: inline-block;
	margin-right: 6px;
}

#infoPanel div.tag::after {
	content: ',';
}

#infoPanel div.tag:last-of-type::after {
	content: '';
}

#introPanel {
	display: block;
	position: absolute;
	width: 400px;
	height: auto;
	top: -1px;
	left: 50%;
	padding: 0px 15px 5px 15px;
	transform: translate(-50%, -100%);
	transition: all 600ms 250ms ease-in-out;
	background: #303030;
	text-align: left;
	color: #f5f5f5;
	z-index: 1;
	border-radius: 0 0 5px 5px;
	overflow: hidden;
	padding-top: 15px;
}

#introPanel .instructions {
	border-bottom: 1px solid var(--grey4);
	padding-bottom: 10px;
}


#instructionCounter {
	display: block;
	position: absolute;
	width: 0%;
	height: 1px;
	bottom: 1px;
	left: 0;
	transition: width 250ms linear;
	background: #f5f5f5;
}

#introPanel.active {
	transform: translate(-50%, 0);
	transition: transform 0s;
}

h1.sketchTitle {
	font-size: 84px;
	color: #F5F5F5;
	line-height: 76px;
	word-wrap: break-word;
}

h1.sketchTitle>span {
	margin-bottom: -15px;
	padding-bottom: 15px;
}

#codePanel {
	/* background: #f5f5f5 !important; */
	padding-bottom: 0;

	/* prevent scrollbars to show in win */
	z-index: 1;
	/* transition: padding-bottom 400ms; */
}

#codePanel.active {
	display: flex !important;
	max-height: 100%;
}

#app.layout_default #codePanel,
#app.layout_default #sketch {
	width: 100% !important;
}


#codePanel.readOnly .CodeMirror-code {
	opacity: 0.5;
}

#codePanel.readOnly #codeTabs li {
	opacity: 0.5;
}

#codePanel.readOnly #codeTabs #addCodeButton {
	display: none;
}

#codeResizeHandle {
	display: none;
}

#app.layout_split #codeResizeHandle {
	display: block;
	top: calc(50% - 17.5px);
	right: 0px;
	z-index: 5;
	transform: translateY(-50%);
}

#tutorialResizeHandle {
	display: block;
	top: 50%;
	right: 0px;
	z-index: 5;
	transform: translateY(-50%);

}

.resizer {
	display: block;
	position: absolute;
	height: 1px;
	width: 1px;
	padding: 5px;
}

.resizer.vt {
	height: 60px;
	cursor: col-resize;
	width: 5px;
}

.resizer.hz {
	width: 60px;
	cursor: row-resize;
}

.resizer::after {
	content: '';
	display: block;
	/* position: absolute; */
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: #ccc;
}

.resizer.vt::after {
	width: 1px
}

.resizer.hz::after {
	height: 1px;
}

.resizer:hover::after {
	background-color: #333;
}

.resizer.white::after {
	background-color: #999;
}

.resizer.white:hover::after {
	background-color: #eee;
}

#codeMirrorContainer {
	display: block;
	position: relative;
	overflow: hidden;
	flex: 1 1 100%;
}

#tutorial {
	position: relative;
	height: 100%;
	background: #fff;
	width: 430px;
	color: #333;
	z-index: 5;
	min-width: 300px;
	pointer-events: auto;
}

#tutorialPages {
	display: flex;
	width: 100%;
	height: 100%;
	overflow-x: scroll;
	overflow-y: hidden;
	position: relative;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	/* Firefox - hide horizontal scrollbar */
	-ms-overflow-style: none;
	/* IE/Edge - hide horizontal scrollbar */
	overscroll-behavior: contain;
}

#tutorial.ready #tutorialPages {
	/* enable these after initial hash scroll */
	/* otherwise it jumps to page 1 */
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
}

#tutorialPages::-webkit-scrollbar {
	display: none;
	/* Chrome/Safari - hide horizontal scrollbar */
}

#codePanel .tutorialEditor {
	height: 100%;
	overflow: hidden;
}

#tutorialPages .tutorialPage {
	display: flex;
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	padding: 0;
	overflow-y: auto;
	overflow-x: hidden;
	flex-direction: column;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	position: relative;
	scrollbar-width: thin;
	/* Firefox - show thin vertical scrollbar */
}

#tutorial .ql-toolbar {
	width: 100%;
	height: auto;
	top: 0;
	left: 0;
	padding: 6px 4px 1px 4px;
	border: none;
	z-index: 5;
	text-align: center;
	opacity: 0;
	transition: opacity 100ms;
	white-space: normal;
	visibility: hidden;
	display: flex;
	flex-direction: row;
	align-content: center;
	justify-content: center;
	gap: 0px 15px;
	flex-wrap: wrap;
	transition: opacity 200ms 200ms, visibility 200ms 200ms;
	position: absolute;
	background: #ffffffaa;
	backdrop-filter: blur(5px);
	border-bottom: 1px solid var(--greyD);
}

#tutorialPages li.active:focus-within .ql-toolbar {
	opacity: 1;
	visibility: visible;
	transition: opacity 200ms 0s, visibility 200ms 0s;
}

#tutorialNavigation {
	display: flex;
	justify-content: center;
	align-items: center;
	flex: 1 0 auto;
	gap: 10px;
}

#tutorialButtons {
	position: absolute;
	width: 100%;
	bottom: 0;
	padding: 15px;
	-webkit-user-select: none;
	user-select: none;
	background: #ffffffbb;
	z-index: 1;
	backdrop-filter: blur(5px);
	border-top: 1px solid #ddd;
	align-items: center;
}

#tutorialButtons>* {
	flex: 0 0 auto;
}

#tutorialButtons>* {
	flex: 0 0 auto;
}

.tutorialPage .ql-editor img[alt="loading"]::after {
	content: '';
	background: url('/assets/img/icons/loader.svg') center center no-repeat;
	background-size: 12px;
	pointer-events: none;
}

.tutorialPage.loading .ql-image {
	background: url('/assets/img/icons/loader.svg') center center no-repeat;
	background-size: 12px;
	pointer-events: none;
}

.tutorialPage.loading .ql-image>svg {
	display: none;
}

.tutorialPage .codeblot {
	display: block;
	position: relative;
	width: 100%;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
	font-size: 14px;
	color: transparent;
	letter-spacing: -10px;
	caret-color: #333;
	pointer-events: visible;
	/* Hide until CodeMirror is ready, otherwise it causes page to scroll to the last one on page load */
	visibility: hidden;
	margin-bottom: 10px;
}

.tutorialPage .codeblot.ready {
	visibility: visible;
}

.tutorialPage .codeBlockContainer {
	width: 100%;
	letter-spacing: normal;
	margin-left: 1px;
	background: var(--white);
	color: var(--black);
	border: 1px solid transparent;
	transition: border 200ms;
}

.tutorialPage .codeBlockContainer:focus-within {
	border: 1px solid var(--blue);
}


.tutorialPage .codeBlockContainer .cm-scroller {
	padding: 10px;
}



.tutorialPage .textGuard::before {
	content: "&#65279";
}

.tutorialPage blockquote+blockquote {
	margin-top: -5px !important;
}

.tutorialPage span.image-uploading {
	position: relative;
}

.tutorialPage span.image-uploading img {
	opacity: 0.3;
	filter: saturate(0);
}

.tutorialPage span.image-uploading::after {
	content: '';
	background: url('/assets/img/icons/loader.svg') center center no-repeat;
	background-size: 12px;
	pointer-events: none;
	display: block;
	width: 100%;
	height: 100%;
	top: 0;
	position: absolute;
	left: 0;
	opacity: 1;
	/* filter: saturate(1); */
}

.tutorialPage .ql-editor img.error {
	display: block;
	border: 1px solid #ccc;
	border-radius: 5px;
	margin-bottom: 15px;
	background-position: bottom;
	position: relative;
	display: flex;
	flex-direction: row;
	overflow: hidden;
	height: 50px;
	box-sizing: border-box;
}

.tutorialPage .ql-editor img::after {
	content: 'Image failed to load';
	display: flex;
	width: 100%;
	text-align: center;
	color: #999;
	background: #fff;
	left: 0;
	top: 0;
	height: calc(61% + 20px);
	align-items: center;
	justify-content: center;
	padding: 10px;
	position: absolute;
}

#tutorialIndex {
	border-bottom: 1px dotted;
	cursor: pointer;
	display: inline-block;
	color: var(--black);
}

#tutorialPageSelector {
	margin: -6px -15px;
	text-align: left;
	overflow-x: hidden;
	-webkit-user-select: none;
	user-select: none;
	max-height: 80vh;
	overflow-y: scroll;
	height: auto;
	background: #333;
}

#tutorialPageSelector.active {
	display: block;
}

#tutorialPageDraggable {
	display: flex;
	flex-direction: column;
	gap: 5px;
	justify-content: flex-end;
	align-items: stretch;
}

#tutorialPageSelector li {
	position: relative;
	padding: 0px 15px 0px 15px;
	font-weight: 600;
	cursor: pointer;
	min-height: 35px;
	background-color: #333;
	transition: transform 200ms;
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 8px;
}

#tutorialPageSelector label {
	display: inline;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 90%;
}

#tutorialPageSelector li.selected {
	border-left: 5px solid var(--blue);
	padding-left: 10px;
}

#tutorialPageSelector .handle {
	opacity: 0.5;
	flex: 0 0 auto;
	cursor: ns-resize;
}

#tutorialPageSelector .handle:hover {
	opacity: 1;
}

#tutorialPageSelector .clone {
	visibility: hidden;
	/* height: 0px; */
	/* border-top: 1px solid #fff; */
}

#tutorialPageSelector .ghost {
	background: #555;
	/* min-height: 0 !important; */
	/* overflow: hidden; */
	border-top: 1px solid #fff;
	margin-top: -1px;
	;
	/* height: 0; */
	/* visibility: hidden; */
}



#tutorialPageSelector #tutorialPageSelector:not(.ordering) li:hover {
	background-color: #666;
}

#tutorialPageSelector .warning {
	padding: 0 15px 10px 15px;
	border-bottom: 1px solid #666;
	color: #999;
}

/* -------- */

#tutorialNavigation>div {
	display: none;
}


#codePanel .tutorialPage.showTabSelector .tutorialEditor {
	/* padding-bottom:100px; */
	/* margin-bottom: -270px; */
	top: 0;
}

#codePanel .tutorialPage .tutorialTabSelector {
	display: none;
	width: 100%;
	padding: 20px 15px;
	border-top: 1px solid #ccc;
	background: #fff;
}


#codePanel .tutorialTabSelector::before {
	content: 'Tab to Show ';

}

#codePanel #tutorialButtons .disabled {
	pointer-events: none;
	/* opacity: 0.5; */
}

#tutorial .ql-toolbar .ql-addcode {
	width: 27px;
	height: 27px;
	background: url('/assets/img/icons/code_small@2x.png') left 5px top 8px no-repeat;
	background-size: 18px 10px;
	border: none;
	color: #333;
	border-radius: 0;
}

/* HIDE SOURCE CODE */
#articlePanel .ql-toolbar .ql-addcode::after {
	content: "Add Code";
}

#app.sourceHidden .hiddenCodeContainer {
	display: block !important;
	position: relative;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	padding: 20px;
	text-align: center;
	color: #333;
}

#share_download .sourceHiddenDescription {
	color: #999;
}

#codePanel .hiddenCodeContainer {
	display: none;
	background: url("/assets/img/sketch/codeBlurred.png") left top no-repeat #f5f5f5;
}

#codePanel>.row {
	position: relative;
	height: 100%;
}

#codePanel #libraryIDDropdown {
	display: inline;
	/* position: relative; */
	display: inline-block;
	position: absolute;
	top: 9px;
	left: 0;
	left: 45px;
	margin: 0;
	opacity: 0;
	/* visibility: hidden; */
	transition: opacity 200ms 2s;
	vertical-align: middle;
	max-height: 17px;
	max-width: 50px;
	overflow: visible;
	background: transparent;
	/* height: 0; */
	/* text-decoration: underline; */
}

#codePanel #sketchModeOptions:hover #libraryIDDropdown {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

#codePanel #libraryIDDropdown.active {
	max-width: 70px;
}


#codePanel #sketchModeContainer {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#codePanel #sketchModeOptions>* {
	flex: 1;
}

#codePanel .settingOptions {
	position: relative;
}

#codePanel #codeTabs {
	display: flex;
	width: 100%;
	flex: 0 0 35px;
	top: 50px;
	border-bottom: 1px solid #333;
	text-align: left;
	z-index: 5;
	transition: padding-right 400ms, height 200ms, opacity 200ms;
	overflow: hidden;
	white-space: nowrap;
	background: #f5f5f5;
	color: #333;
	flex: 0 0 35px;
}

#codeTabs.fileDrop-hover {
	background: #fff !important;
	border: 3px solid var(--blue) !important;
	/* padding-right: 428px !important; */
}

#app.showCodeOptions #codeTabs {
	padding-right: 300px;
}


#codePanel #codeTabs ul {
	flex: 1;
	position: relative;
	height: 100%;
	bottom: 0px;
	padding: 0;
	overflow-y: hidden;
	overflow-x: scroll;
	/* hide scrollbar */
	-ms-overflow-style: none;
	/* IE 10+ */
	scrollbar-width: none;

}

/* Hide scrollbar for Chrome, Safari and Opera */
#codePanel #codeTabs ul::-webkit-scrollbar {
	display: none;
}

#codePanel #tabControls {
	display: flex;
	background: transparent;
	align-items: center;
	z-index: 1;
	padding-right: 5px;
	pointer-events: none;
	margin-left: -50px;
}

#codePanel #tabControls::before {
	display: block;
	content: '';
	width: 50px;
	background: linear-gradient(to right, rgba(245, 245, 245, 0) 0%, rgba(245, 245, 245, 1) 100%);
	height: 100%;
}

#codePanel #tabControls>* {
	pointer-events: all;
}

#codePanel #tabControls>.icon {
	margin: 6px 10px;
}

#codePanel #codeTabsdraggable {
	display: inline-flex;
	padding-left: 74px;
	height: 100%;
	align-items: flex-end;
	flex-direction: row;
	align-content: flex-end;
	gap: 25px;
}

#codePanel #codeTabs.fileDrop-hover #codeTabsdraggable {
	/* leave room for hover border to prevent jumps. should match fileDrop-hover border width */
	height: calc(100% + 6px);
	margin-top: -4px;
	margin-left: -3px;
}

#codePanel #codeTabs.fileDrop-hover #tabControls {
	padding-right: 2px;


}

#app.fullscreen #codePanel #codeTabs ul {
	max-width: calc(100% - 25px);
}


#codePanel #codeTabs li {
	display: inline-flex;
	position: relative;
	margin: 0;
	padding: 0 0px 2px 0;
	list-style: none;
	border-bottom-width: 3px;
	cursor: pointer;
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-user-select: none;
	user-select: none;
	white-space: nowrap;
	text-align: left;
	min-width: 30px;
	border-bottom-style: solid;
	border-bottom-color: transparent;
	height: 100%;
	align-items: flex-end;
	transition: transform 200ms;
	transform: translateY(0);
}

#codePanel #codeTabs li.justAdded {
	transform: translateY(30px) scaleX(0);
}

#codeTabs li input {
	border: none;
	outline: none;
	box-shadow: none;
}

#codeTabs .tabTitle {
	flex: 1 1 30px;
	overflow: hidden;
	text-overflow: ellipsis;

}

#codeTabs ul.sorting li {
	padding-right: 25px !important;
	margin-right: 0 !important;
	border-bottom: none !important;
}

#codeTabs ul.sorting li.selected {
	padding-right: 50px !important;
	margin-right: 0 !important;
	border-bottom: none !important;
}

#codeTabs ul.sorting li.selected .icon {
	display: none;
}

#codePanel #codeTabs li[draggable="true"] {
	border-color: var(--blue) !important;
}

#codePanel #codeTabs li.sortable-ghost {
	opacity: 0;
	visibility: hidden;
}

#codePanel #codeTabs li.sortable-ghost .icon {
	display: none;
}

#codePanel #codeTabs li.selected {
	list-style: none;
	border-bottom-color: #333;
}

#backupWarning {
	/* leave room for code settings */
	position: fixed;
	height: 60px;
	top: -10px;
	z-index: 10000;
	width: 100%;
	padding: 0 15px;
	align-items: center;
	border-top: 10px solid #fff;
}

#backupWarning.slide-enter-active {
	transition-delay: 1s;
}

#backupWarning .btn {
	margin-left: 15px;
}

#app.showCodeOptions #codePanel #backupWarning {
	/* leave room for code settings */
	padding-right: 320px;
}

@media (hover) {
	#codePanel #codeTabs li:hover {
		border-bottom-color: #ccc;
	}
}

/* #codePanel #codeTabs li:first-of-type {
	padding-right: 0px;
} */
/* 
#codePanel #codeTabs li:last-of-type {
	margin-right: 15px;
} */


#codeTabs li.edit .tabCloseButton {
	display: none;
}

#codeTabs li .tabCloseButton {
	/* position: absolute; */
	bottom: 4px;
	margin-left: 5px;
	visibility: hidden;
	opacity: 0;
	display: inline-block;
	flex: 0 0 13px;
}

#codeTabs li.selected .tabCloseButton {
	transition: visibility 200ms, opacity 200ms;
	visibility: visible;
	opacity: 0.4;
}

#codeTabs li.selected .tabCloseButton:hover {
	opacity: 1;
}

#codeTabs li.edit {
	background: #fff;
	text-overflow: clip !important;
	padding-right: 0px !important;
	padding-bottom: 2px !important;
}

#codeTabs li.edit input {
	background: transparent;
}

#app.layout_split #codePanel .codeContainer {
	pointer-events: none;
}

#app.layout_split #codePanel .codeContainer>* {
	pointer-events: auto;
}

#codePanel .codeContainer {
	height: 100%;
	position: relative;
	padding: 0;
	transition: padding-right 400ms;
	overflow: hidden;
	flex: 2;
	color: #333;
	will-change: padding-right;
	display: flex;
	flex-direction: column;
	align-content: space-between;
	justify-content: flex-start;
	align-items: stretch;
	max-height: 100%;
	overflow: hidden;
}

#codePanel #editorLoadingIcon {
	position: absolute;
	left: 10px;
	top: 8px;
	z-index: 6;
	width: 16px;
}


#codePanel .codePane {
	display: none;
	position: relative;
	width: 100%;
	height: 100%;
}

#codePanel .codePane.selected {
	display: block;
}

#codePanel #addCodeButton {
	display: inline-block;
	width: 17px;
	height: 28px;
	bottom: -1px;
	opacity: 0;
	transition: opacity 200ms 200ms;
	border-bottom: 4px solid #555;
	background-size: 13px 13px;
	margin-right: 50px;
	margin-left: 20px;
}

html.touch #codePanel #addCodeButton {
	opacity: 0.4;
	border-bottom: transparent;
	background-position: 0px 5px;
}

#codePanel #codeTabs:hover #addCodeButton {
	opacity: 0.4;
}

#codePanel #codeTabs #addCodeButton:hover {
	transition: opacity 200ms 0ms;
	opacity: 1;

}

#app.fullscreen #codeOptions {
	height: 100%;
	top: 0;
}

#codeOptions {
	display: flex;
	position: fixed;
	width: 300px;
	height: calc(100% - 50px);
	top: 50px;
	right: -300px;
	padding: 0;
	background: #222;
	transition: right 400ms;
	z-index: 6;
	/* leave room for tab-pane hidden scrollbar*/
	padding-right: 0;
	font-size: 16px;
	flex-direction: column;
	pointer-events: all;
	border-left: 1px solid #444;
}

#codeOptions.active {
	right: 0;
}

html.touch #codeOptions {
	-webkit-user-select: none !important;
	user-select: none !important;
}

#codeOptions .icon_layout_toggle {
	position: absolute;
	width: 18px;
	height: 16px;
	top: 1px;
	will-change: left;
	left: -86px;
	box-sizing: content-box;
	border: 9px solid transparent;
	transition: left 200ms;
}

#app.layout_split .icon_layout_toggle {
	background-image: url('/assets/img/icons/layout_default@2x.png');
}

#app.layout_default .icon_layout_toggle {
	background-image: url('/assets/img/icons/layout_split@2x.png');
}

#codeOptions.active .icon_layout_toggle {
	left: -70px;
}

#codeOptions .icon_settings_small {
	position: absolute;
	top: 1px;
	left: -46px;
	will-change: left;
	transition: left 200ms;
	box-sizing: content-box;
	border: 9px solid transparent;
}

#codeOptions.active .icon_settings_small {
	left: -35px;
	background-image: url('/assets/img/icons/x_small@2x.png');
	background-size: 13px;
}

#codeOptions .nav-tabs {
	min-height: 35px;
	padding-left: 15px;
	padding-right: 15px;
	/* display: flex; */
	/* justify-content: space-between; */
}

#codeOptions .nav-tabs li a {
	/* height: 35px; */
	font-weight: 600;
	letter-spacing: 0.03em;
}

html[language="ja"] #codeOptions .nav-tabs {
	display: flex;
	height: auto;
	padding-left: 15px;
	padding-right: 15px;
	justify-content: space-between;
	letter-spacing: -4px;
}

html[language="ja"] #codeOptionsTabs>li {
	margin-right: 0px !important;
	margin-left: 0px;
}

#codeOptions .nav-tabs::before,
#codeOptions .nav-tabs::after {
	display: none;
	content: unset;
}

#codeOptions .tab-content {
	position: relative;
	flex: 1;
	overflow: hidden;
}

#codeOptions .tab-content .tab-pane {
	width: 100%;
	height: 100%;
	overflow-x: hidden;
	padding-left: 15px;
	/*    create room for hidden scrollbar*/
	padding-right: 15px;
	padding-top: 20px;
	padding-bottom: 15px;
	overflow-y: auto;
}

#codeOptions .tab-content .tab-pane.active {
	display: flex;
	position: relative;
	flex-direction: column;
}

html.nonPlus #codeOptions .tab-content #sketchSettings {
	padding-bottom: 200px;
}

/* VERSION DROPDOWN */
#sketchModeOptions .labelContainer label {
	margin-top: 0;
}

.versionDropdown {
	-webkit-appearance: none;
	-moz-appearance: none;
	-ms-appearance: none;
	appearance: none;
	display: inline-block;
	background-color: transparent;
	transition: background-color 200ms;
	font-size: 0.8rem;
	max-width: 40px;
	border-radius: 5px;
	border: none;
	padding: 2px 5px;
	overflow: hidden !important;
	cursor: pointer;
	color: #666;
	width: auto;
	text-align: center;
	opacity: 0;
	transition: opacity 200ms;
}

.versionDropdown:hover {
	background-color: #333;
	color: #f5f5f5;
}

#sketchModeOptions .versionDropdown {
	position: absolute;
	left: 43px;
	top: 5px;
	z-index: 3;
	opacity: 0.7;
}

#sketchSettings .formItem:hover .versionDropdown {
	opacity: 1;
}

#app.layout_default.playMode #codeOptions {
	display: none;
}

.libraryList {
	width: 100%;
}

#codeOptions input[type='radio'] {
	display: none;
}

#codePanel input[type='radio']:checked+label {
	font-weight: bold;
}

#codePanel #sketchModeOptions .formItem {
	margin-bottom: 0;
	align-content: center;
	align-items: center;
}

#sketchModeOptions {
	position: relative;
	margin-bottom: 25px !important;
}

#sketchModeOptions input[type='radio']+label {
	display: inline-block;
	position: static;
	margin: 0;
	padding: 0;
	font-size: inherit;
	font-weight: 400;
	border: none;
	text-transform: none;
	max-width: none;
}

#sketchModeOptions input[type='radio']+label:after {
	display: inline-block;
	padding: 0 5px;
	content: ' | ';
	font-weight: normal !important;
}

#codePanel input[type='radio']+label:last-of-type:after {
	padding: 0;
	content: '';
}

#codeOptions .tab-pane>.row {
	margin-bottom: 30px;
}

#codeOptions .nav-tabs li.active a::after,
#codeOptions .nav-tabs li.active:hover a::after {
	bottom: 0px;
	background-color: #f5f5f5;
}

#codeOptionsTabs .icon {
	top: -1px;
	/* margin-top: 0px; */
	/* margin-bottom: -3px; */
}

#libraries {
	margin-bottom: 4px !important;
}

#defaultLibraries.summary {
	height: auto;
	padding-bottom: 0px !important;
	overflow: visible !important;
}

html.nonPlus #codePanel .tab-content ul#defaultLibraries {
	padding-bottom: 5px !important;
	max-height: 207px;
}

html.nonPlus #defaultLibraries.summary {
	max-height: none;
}

#sketchSettings input[name="loopProtect"]:checked+.description {
	display: block;
}

#sketchSettings #libraryHeader {
	height: 20px;
	margin-bottom: 10px;
}

#defaultLibraryFade {
	display: block;
	width: 100%;
	height: 15px;
	pointer-events: none;
	margin-top: -14px;
	/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+0,222222+100&0+0,1+100 */
	background: linear-gradient(to bottom, rgba(34, 34, 34, 0) 0%, rgba(34, 34, 34, 1) 100%);
	/* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	z-index: 2;
}

.library {
	position: relative;
	padding: 0px 15px 5px 15px;
	margin-bottom: 0;
	margin-left: -15px;
	margin-right: -15px;
	display: flex;
	flex-direction: column;
}

#defaultLibraries.showAllLibraries .library {
	border-left: 5px solid #555;
	padding-left: 10px;
}

#defaultLibraries.showAllLibraries .library:first-child::before {
	border-top: 10px !important;
}

#defaultLibraries.showAllLibraries .library.showCategory::before {
	display: block;
	position: relative;
	left: -20px;
	content: attr(category);
	color: #888;
	margin-bottom: 6px;
	padding-left: 20px;
	border-top: 30px #222 solid;
	font-size: 15px;
}

.library .settingLabel {
	display: flex;
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	word-wrap: break-word;
	/* mozilla related */
	box-shadow: none;
	justify-content: space-between;
	gap: 5px;
}

.library .settingOptions {
	position: absolute !important;
	top: 0;
	right: 15px !important;
	z-index: 2;
}

.library .description {
	margin-bottom: 20px;
}


#templatesContainer {
	position: relative;
	width: 350px;
	min-height: 100px;
	margin: -15px -15px -15px -15px;
	padding: 15px 15px;
	text-align: left;
	max-height: calc(100vh - 180px);
	overflow: auto;
	border-image-width: 0;
}

#templatesContainer #customTemplates {
	padding-bottom: 1px;
}

#templatesContainer .templateLi {
	display: flex;
	padding: 20px 15px;
	margin-left: -15px;
	margin-right: -15px;
	justify-content: flex-start;
}

#templatesContainer .title {
	margin-bottom: 2px;
}

#templatesContainer .templateLi:last-of-type {
	margin-bottom: 0px;
}

#templatesContainer .templateLi:not(.placeholder):hover {
	background-color: #555;
}

#templatesContainer .pill {
	top: -2px;
}

/* #templatesContainer .templateLi.selected {
	border-left: 5px solid var(--blue);
	margin-left: -15px;
	padding-left: 12px;
} */
#templatesContainer .templateLi.selected .templateThumbnail {
	border-left: 5px solid var(--blue);
	margin-left: -15px;
	padding-left: 10px;
	width: 60px;
}

#templatesContainer .templateThumbnail {
	width: 45px;
	height: 45px;
	margin-right: 15px;
	margin-top: 1px;
}

/* Add skeleton animation to any box container */
.skeleton {
	background: #222;
	background: linear-gradient(to right, #2a2a2a 0px, #222 100px, #2a2a2a 200px);
	background-size: 200px 100%;
	animation: skeleton 2.4s linear infinite;
	color: transparent;
	background-color: #333;
	border: none;
}

@keyframes skeleton {
	0% {
		background-position: 0 0;
	}

	100% {
		background-position: 200px 0;
	}
}

.flex-newLine {
	display: flex;
	flex-basis: 100%;
}

.flex-spaceBetween {
	display: flex;
	justify-content: space-between;
}

.flex-rowReverse {
	display: flex;
	flex-direction: row-reverse;
}

#codeOptions .description {
	color: #aaa;
}

#codeOptions .icon_minimize {
	position: absolute;
	top: 8px;
	left: -45px;
}



.library code {
	display: block;
	position: relative;
	width: 265px;
	cursor: pointer;
	overflow: hidden;
	border-radius: 0;
	margin-top: 9px;
	margin-bottom: 5px;
}

.library label {
	position: relative;
}


.library input[type="checkbox"]:checked+label .toggle-checkmark {
	stroke: #f5f5f5;
	opacity: 1;
}

/*custom libraries*/

#addCustomLibraryLink {
	/* margin-bottom: 10px; */
	display: inline-block;
}

.library.custom .description {
	margin-bottom: 15px;
}

.library.custom .settingLabel:hover {
	background: #111;
	cursor: pointer;
}

.library.custom .settingLabel:focus {
	background: #000;
	cursor: text;
}

.library.custom input[type="url"] {
	display: inline-block;
	width: 80%;
	margin: -3px 0 1px -3px;
	padding: 3px;
	background: #000;
	border: none;
}

.library.custom input.loading[type="url"] {
	background: url(/assets/img/icons/loader_white.svg) right center no-repeat #222;
	background-size: 12px;
	padding-right: 24px;
	text-overflow: ellipsis;
}


#sketchSettings>.row.extraTooltips {
	/* width: 100%; */
	position: relative;
	margin-bottom: 0;
}

#sketchSettings .level-1 {
	margin-top: -30px;
	background: #252525;
	border: 1px solid #333;
	border-left: 5px solid var(--black);
	border-radius: 5px;
	padding: 10px 7px;
	padding-left: 15px;
}

.adContainer {
	width: 100%;
	padding: 15px;
	background: #111;
	font-size: 0.9rem;
	z-index: 2;
	align-self: flex-end;
	border-top: 1px solid #666;
}

#codeOptions hr {
	margin-top: 0px;
	margin-bottom: 10px;
}

.adContainer hr {
	margin-top: 10px;
	margin-bottom: 13px;
}

.adContainer>hr:first-of-type {
	margin-top: 17px;
	margin-bottom: 12px;
}

.adContainer .carbon-poweredby {
	color: #777 !important;
}

#codeOptions a:hover,
#codeOptions a:visited,
#codeOptions a:active,
#codeOptions a:link {
	color: #f54949;
}

input[disabled].OPtoggle::after {
	background-image: url("/assets/img/icons/icon_x_small_white@2x.png");
}

input[disabled].OPtoggle:checked::after {
	background-image: url("/assets/img/icons/checkmark_small_white@2x.png");
}

#codeOptions .OPtoggle,
#editSketchPanel .OPtoggle,
#plusEmbedOptions .OPtoggle {
	top: 0px;
	background: #333;
	margin-right: 0px !important;
	box-shadow: 0 0 0 1px transparent;
}

#editSketchPanel .formItem .description {
	text-align: left;
	padding-left: 0;
}

#shareSidePanel .OPtoggle {
	top: 0px;
	background: #444;
	margin-right: 0px !important;
	box-shadow: 0 0 0 1px transparent;
}

#app label:not(.btn) {
	color: #f5f5f5;
}

#codeOptions label {
	cursor: pointer;
	font-size: 14px;
	margin-bottom: 0;
}


#infoPanel .metadata {
	/*    prevent white space show up*/
	font-size: 0;
	/* padding-left: 30px; */
	/* padding-right: 30px; */
}

#infoPanel .metadata li {
	/* float: none; */
	/* width: 33.3%; */
	display: table-cell;
	padding: 0px 0px 0px 25px;
	box-sizing: border-box;
	list-style: none;
	/* margin-bottom: 18px; */
	font-size: 15px;
	cursor: pointer;
}

#infoPanel .metadata .description,
#infoPanel .metadata label {
	display: none;
}


#infoPanel .metadata li.date {
	background: url('/assets/img/icons/icon_clock@2x.png') 0px 3px no-repeat;
	background-size: 14px;
}

#infoPanel .metadata li.draft {
	background: url('/assets/img/icons/icon_draft.png') -1px 4px no-repeat;
	background-size: 17px 14px;
}

#infoPanel .metadata li.private {
	background: url('/assets/img/icons/locked_small_white@2x.png') 3px 2px no-repeat;
	background-size: 11px;
}

#infoPanel .metadata li.hiddenSourceCode {
	background: url('/assets/img/icons/icon_hidden@2x.png') 3px 3px no-repeat;
	background-size: 11px 14px;
}

#infoPanel .metadata li.commentMode {
	background: url('/assets/img/icons/comment_small_white@2x.png') 0px 3px no-repeat;
	background-size: 14px;
}

#infoPanel .metadata li.tags {
	flex-basis: 100%;
	background: url('/assets/img/icons/icon_tags@2x.png') 0px 5px no-repeat;
	background-size: 14px;
}

#infoPanel .metadata li.classes {
	flex-basis: 100%;
	background: url('/assets/img/icons/classroom_small_white@2x.png') 0px 3px no-repeat;
	background-size: 14px;
}

#infoPanel .metadata li.curations {
	flex-basis: 100%;
	background: url('/assets/img/icons/curation_small_white@2x.png') 0px 2px no-repeat;
}

#infoPanel .metadata li.license {
	flex-basis: 100%;
	background: url('/assets/img/icons/license_white@2x.png') 1px 3px no-repeat;
	background-size: 11px;
}

#infoPanel .metadata license {
	display: none;
	margin-bottom: 10px;
}

#infoPanel .metadata license.selected {
	display: block;
}

#infoPanel .metadata .classes,
#infoPanel .metadata .class {
	display: block;
}

#infoPanel .metadata .classes:last-child,
#infoPanel .metadata .class:last-child {
	margin-bottom: 0px;
}

#shareSidePanel .dropdown-menu {
	width: 210px;
	right: 0;
	left: unset;
	padding: 0;
	border-radius: 0;
	color: #333;
	max-height: 270px;
	overflow-y: auto;
	overflow-x: hidden;
	white-space: nowrap;
	text-align: left;
	position: absolute;
	padding-top: 5px;
	padding-bottom: 5px;
}

#shareSidePanel .dropdown-menu li {
	width: 100%;
	padding: 5px 10px;
	cursor: pointer;
	overflow: hidden;
	text-overflow: ellipsis;
}

#shareSidePanel .dropdown-menu li:hover {
	background: #ddd;
}

#shareSidePanel #plusEmbedOptions .formItem {
	margin-bottom: 10px;
}

#getPlusModal {
	margin: auto;
	backdrop-filter: none;
	background: transparent;
	padding-left: 15px;
	padding-right: 15px;
	align-items: center;
	align-content: center;
	font-size: 20px;
	visibility: hidden;
}

#getPlusModal.in {
	display: flex !important;
	visibility: visible;
}

#getPlusModal .modal-dialog {
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #ddd;
	margin-top: 15px;
	margin-bottom: 15px;
}

#getPlusModal .modal-content>* {
	padding-left: 30px;
	padding-right: 30px;
}

#getPlusModal .modal-body>* {
	padding-top: 20px;
}

#getPlusModal .userThumbContainer {
	display: inline-block;
}

#getPlusModal .userThumbPlus {
	transform: translateY(-100%);
	transition: transform 200ms;
	animation: shake 2s cubic-bezier(.36, .07, .19, .97) infinite;
}

#getPlusModal .userThumbPlus.show {
	transform: translateY(-20%);
}

#getPlusModal .btn-primary {
	width: 100%;
}

@keyframes shake {

	10%,
	30%,
	50% {
		transform: rotate3d(0, 0, 1, 10deg);
	}

	20%,
	40% {
		transform: rotate3d(0, 0, 1, -10deg);
	}

	0%,
	60%,
	100% {
		transform: rotate3d(0, 0, 1, 0deg);
	}
}

#addToClassModal .description {
	display: block;
	max-height: 36px;
	margin-bottom: 5px;
	text-overflow: ellipsis;
	overflow: hidden;
	color: #999;
	font-size: 0.9em;
}

#addToClassModal:not(.loading) .icon_loader {
	display: none;
}

#addToClassModal li.collectionSummary {
	cursor: pointer;
	margin-bottom: 30px;
}

#addToClassModal li.collectionSummary.alreadySubmitted {
	opacity: 0.5;
	pointer-events: none;
	cursor: none;
}

#addToClassModal li.collectionSummary.alreadySubmitted::after {
	content: 'This sketch is already submitted.';
	font-size: 0.9em;
	color: #999;
}

#addToClassModal li.collectionSummary:hover {
	margin: -11px -11px 19px -11px;
	padding: 10px;
	background: #fff;
	border: 1px solid #ff0000;
	overflow: hidden;
}

#addToClassModal .sketchList li {
	display: inline-block;
	float: none;
	pointer-events: none;
}

#addToClassModal .sketchList li.loaded::after {
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	content: '';
	text-align: center;
	background: url('/assets/img/icons/icon_checkmark.png') center center no-repeat rgba(33,
			33,
			33,
			0.8);
	z-index: 3;

}

.fadeInFromNone {
	visibility: visible !important;
	-webkit-animation-duration: 200ms;
	-webkit-animation-name: fadeInFromNone;
	animation-duration: 200ms;
	animation-name: fadeInFromNone;
}

.fadeOutToNone {
	-webkit-animation-duration: 400ms;
	-webkit-animation-name: fadeOutToNone;
	animation-duration: 400ms;
	animation-name: fadeOutToNone;
}

#heartsList::-webkit-scrollbar,
.comments::-webkit-scrollbar {
	display: none;
	width: 0;
}

#heartsList::-webkit-scrollbar-track,
.comments::-webkit-scrollbar-track {
	box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
	border-radius: 10px;
}

#heartsList::-webkit-scrollbar-thumb,
.comments::-webkit-scrollbar-thumb {
	border-radius: 10px;
	box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

#archiveInfo {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: #444;
	color: #f5f5f5;
}

#archiveInfo img {
	width: 100px;
	margin-bottom: 15px;
}

#archiveInfo .bg {
	position: absolute;
	width: 100%;
	height: 100%;
	background-size: cover;
	opacity: 0.2;
	-webkit-filter: blur(15px);
	/* Chrome, Safari, Opera */
	filter: blur(15px);
}

/*==dropzone===*/

.dz-preview {
	display: none;
}

#sketchFiles {
	border: #f5f5f5 0px solid;
	transition: border-width 200ms, background 200ms;
	padding-bottom: 0px !important;
	/* padding-left: 0 !important; */
	/* padding-right: 0 !important; */
	/* display: flex; */
}

#sketchFiles .fileExplorer {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
	align-items: flex-start;
	height: 100%;
}

#sketchFiles .fileExplorer #toast-container {
	position: absolute;
	left: 15px;
	width: calc(100% - 30px);
}

#sketchFiles .fileExplorer .toast {
	width: 100%;
}

#sketchFiles .dropBox {
	border: 1px solid #555;
	padding: 15px;
	text-align: center;
	border-radius: 5px;
	margin-bottom: 15px;
	width: 100%;
}

#sketchFiles .plusWarning {
	margin-bottom: 15px;
	border-bottom: 1px solid #555;
	padding-bottom: 15px;
}

#sketchFiles .file .icon_loader_white {
	width: 12px;
	top: 2px;
	margin-left: 10px;
}

#sketchFiles .file.error .icon_loader_white {
	display: none;
}


#sketchFiles.dz-drag-hover {
	/* border-width:5px; */
	background: #555;
}

#sketchFiles.fileOver * {
	pointer-events: none;
}

#sketchFiles #fileTypes {
	vertical-align: sub;
}

#sketchFiles ul {
	padding: 0 15px 15px 15px !important;
	flex: 1;
	overflow: auto;
	width: calc(100% + 30px);
	margin-left: -15px;
}

#sketchFiles li {
	position: relative;
	overflow: hidden;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	white-space: nowrap;
	flex-wrap: wrap;
}


#sketchFiles .icon_delete {
	flex: 0 0 0;
	width: 16px;
	height: 16px;
	background: url('/assets/img/icons/x_circle_white@2x.png') no-repeat;
	background-size: 16px 16px;
	/* visibility: hidden; */
	opacity: 0;
	cursor: pointer;
	display: inline-block;
	margin-left: 6px;
	top: 2px;
	position: relative;
}

#sketchFiles li.error .errorMessage {
	display: block;
	white-space: normal;
	width: 100%;
	padding: 5px 7px;
	margin-bottom: 15px;
	border-radius: 5px;
	background: #630000;
	color: #f5f5f5;
}

#sketchFiles li.error a.fileName {
	pointer-events: none;
	text-decoration: line-through;
	color: #999;
}

#sketchFiles li.inProgress a {
	pointer-events: none;
	color: #999 !important;
}

#sketchFiles li.error .icon_delete,
#sketchFiles li.error .fileSize,
#sketchFiles li.error .progressBar,
#sketchFiles li.error .icon_loader_white {
	display: none;
}

#sketchFiles li.inProgress .icon_delete {
	display: none;
}

#sketchFiles li:hover .icon_delete {
	/* visibility: visible; */
	opacity: 1;
	flex: 0 0 auto;
}

#sketchFiles .progressBar {
	position: absolute;
	width: 0%;
	height: 100%;
	top: 0;
	background: #333;
	opacity: 0;
	transition: width 1000ms, opacity 200ms;
	pointer-events: none;
	z-index: -1;
}

#sketchFiles li.inProgress .progressBar {
	opacity: 1;
}

#sketchFiles .fileName {
	flex: 1 1 50%;
	text-overflow: ellipsis;
	overflow: hidden;
}

#sketchFiles .fileSize {
	/*    color:#666; */
	margin-left: 10px;
	opacity: 0;
	flex: 0;
	user-select: none;
	display: none;
}

#sketchFiles li:not(.error):hover .fileSize {
	opacity: 1;
	flex: 0 0 auto;
	display: inline-block;
}

#codeReference {
	width: 100%;
	overflow: visible !important;
	/* overflow-x: visible !important; */
	/* margin-right: 0 !important; */
	padding-right: 0 !important;
	margin-left: -15px;
	padding-bottom: 0 !important;
}

#codeReference .highlight {
	background-color: #F8E71C22;
}

#codeReference>div {
	height: 100%;
	padding: 15px 0;
	overflow-y: scroll;
	overflow-x: hidden;
	box-sizing: content-box;
	margin-right: -15px;
	margin-top: 15px;
}

#codeReference ul {
	margin-bottom: 15px !important;
	padding-left: 15px !important;
	overflow: hidden;
}

#codeReference .overloads code {
	display: block;
}

#referenceFilter {
	position: absolute;
	width: 100%;
	height: 30px;
	padding: 0 40px 0px 15px;
	margin-top: -17px;
	background: url('/assets/img/icons/search_small_white@2x.png') right 15px center no-repeat #333;
	background-size: 16px;
	z-index: 3;
	border: none;
	margin-left: 0;
	box-sizing: border-box;
	overflow: hidden;
}

#codePanel .formItem {
	margin-bottom: 45px;
}

#codePanel #libraries .formItem {
	margin-bottom: 0px;
}

#codePanel .formItem label.anchored {
	border-bottom-color: #f5f5f5;
}

#codeVersions li {
	position: relative;
	padding-top: 5px;
	padding-left: 15px;
	margin-left: 1px;
	padding-bottom: 15px;
}

#codeVersions li:not(.selected):hover {
	background: #333;
	cursor: pointer;
}

#codeVersions li.active {
	background: #444 !important;
}

#codeVersions li:focus,
#codeVersions li:focus-within {
	background: #444 !important;
}

#codeVersions li .versionDate {
	display: block;
}

#codeVersions li.selected .versionDate {
	display: none;
}

#codeVersions li .versionTimestamp {
	display: none;
}

#codeVersions li.selected .versionTimestamp {
	display: block;
}

#codeVersions li .versionDescription {
	opacity: 0.7;
	color: #ddd;
	font-size: 0.85em;
	transition: opacity 200ms;
}

#codeVersions li.selected .versionDescription {
	opacity: 1;
}

#codeVersions button {
	display: none;
	margin-bottom: 10px;
	margin-top: 10px;
}

#codeVersions li.selected button {
	display: inline;
}

#codeVersions button.btn-primary {
	margin-right: 15px;
}

#codeVersions li::before {
	position: absolute;
	width: 1px;
	height: 100%;
	top: -2px;
	left: 2px;
	content: '';
	background: #f5f5f5;
}

#codeVersions li:nth-child(n+20)::before {
	border-left: 0px dotted #f5f5f5;
	background-image: linear-gradient(#f5f5f5 33%, rgba(255, 255, 255, 0) 0%);
	background-position: left;
	background-size: 1px 3px;
	background-repeat: repeat-y;
	background-color: transparent;
}


#codeVersions li:first-of-type::before,
#codeVersions ul:not(.hasTempVersion) li:nth-child(2)::before {
	margin-top: 10px;
}

#codeVersions li:last-of-type::before {
	height: 10px;
}

#codeVersions li.selected::after {
	position: absolute;
	width: 7px;
	height: 7px;
	top: 7px;
	left: -1px;
	content: '';
	background: #f5f5f5;
	border-radius: 5px;
}

#codeVersions li::after {
	position: absolute;
	width: 7px;
	height: 7px;
	top: 7px;
	left: -1px;
	content: '';
	background: #333;
	border: 1px solid #f5f5f5;
	border-radius: 5px;
}

#app.tutorial #codeVersionsTab {
	display: none;
}

#codeOptionsTabs>li {
	height: 34px;
	margin-right: 15px;
	border-bottom-color: #f5f5f5;
	font-size: 14px;
	text-transform: uppercase;
	font-weight: 600;
}

#codeVersionsTab,
#codeReferenceTab {
	float: right;
	margin-right: 0 !important;
	margin-left: 15px;
}

#codeVersions .description {
	margin-bottom: 15px;
}


#codeVersions ul.hasTempVersion .tempVersion {
	display: list-item;
}

#codeVersions li.flash {
	animation-name: flash;
	animation-duration: 1s;
}

#keyboardTable {
	margin-top: -15px;
}

#keyboardTable .keyboardLabel {
	flex: 0 0 58%;
}

#keyboardTable .keyboardCategory {
	margin-top: 15px;
	width: 260px;
	flex: 1 0 280px;
}

#keyboardTable .keyboardDescription {
	flex: 1 1 auto;
	text-align: left;
}


#liveCodeStatus {
	display: block;
	position: relative;
	margin-right: -25px;
	width: auto;
	padding: 0px 0;
	white-space: nowrap;
	color: #333;
	display: flex;
	flex-direction: row;
}

#liveCodeStatus .title {
	display: inline-block;
	position: absolute;
	right: 0;
	padding: 3px 10px;
	color: #fff;
	font-weight: 600;
	border: 2px solid #fff;
	box-shadow: 0 0 15px #f66;
	vertical-align: top;
	margin-left: 10px;
	margin-bottom: 10px;
	/* top: 0; */
}

#liveCodeStatus .userList {
	display: flex;
	width: 100%;
	margin: 0;
	overflow: hidden;
	flex-wrap: nowrap;
	padding-top: 0;
	position: relative;
	align-items: center;
}

#liveCodeStatus .userLi {
	margin: 0;
	padding: 0;
	flex: 0 1 10px;
	margin-right: -8px;
}

#liveCodeStatus li:last-child {
	margin-right: 0;
}

#liveCodeStatus li.seeMore {
	display: flex;
	align-items: center;
	flex: 0 0 30px;
	color: var(--red);
	/* margin-left: 12px; */
	cursor: pointer;
	justify-content: center;
	border: 2px solid;
	border-radius: 45px;
	background-color: #333;
}

#liveCodeStatus li.seeMore::before {
	content: attr(data-seemore);
	position: relative;
	top: unset;
	transform: unset;
}

#liveCodeStatus .userLi .userThumbContainer {
	width: 30px;
	height: 30px;
	border: 0px solid #fff;
	background: #333;
	padding-top: 0;
	border: 2px solid #ccc;
}

#liveCodeStatus .userLi .userThumb {
	/* display: block; */
	position: static;
	z-index: unset;
	border: 2px solid;
	width: 30px;
	height: 30px;
}

#liveCodeStatus .userLi .userLabel {
	font-size: 14px;
	line-height: 1.1;
	text-align: left;
}

#codemirror .remote-cursor {
	position: absolute;
	width: 2px;
	z-index: 1000;
	pointer-events: none;
	transform: translateY(-4px);
}

#codemirror .remote-cursor-name {
	position: absolute;
	padding: 5px;
	left: 0px;
	color: white;
	padding: 2px 6px;
	border-radius: 0px;
	font-size: 16px;
	white-space: nowrap;
	box-shadow: 0 0px 3px rgba(0, 0, 0, 0.2);
	opacity: 0;
	transition: opacity 0.4s;
	pointer-events: none;
	top: -23px;
	font-family: 'Dosis';
	backdrop-filter: blur(1px);
	border-radius: 5px;
}

#codemirror .remote-cursor-name.visible {
	opacity: 1;
}

.tippy-tooltip.liveCodeTooltip-theme {
	background-color: #73C1E8;
	font-weight: 400;
}

.tippy-tooltip.liveCodeTooltip-theme .tippy-arrow {
	border-bottom-color: #73C1E8 !important;
}

.powered-by-firepad {
	display: none !important;
}

@keyframes flash {
	from {
		background-color: #aaa;
	}

	to {
		background-color: #222;
	}
}

@media (max-width: 1024px) {
	#infoPanel .userThumbCell {
		padding: 0;
	}

}

@media (max-width: 768px) {

	html,
	body {
		/* overflow-y: auto;
		overflow-x: hidden; */
	}

	.navbar #mainControls {
		display: none;
	}

	#mobileControls {
		display: block;
		margin-bottom: 0;
		flex: 0 1 140px;
	}

	#mobileControls .btn-group {
		background: var(--grey2);
		width: auto;
	}

	.codeContainer {
		display: block;
		position: relative;
		padding-right: 0;
		padding-left: 0;
		font-size: 16px;
		/* flex: none !important; */
	}

	#codePanel #codeTabsdraggable {
		padding-left: 15px;
	}


	#sideButtons .btn.btn-primary {
		margin-left: 0;
		margin-top: 0;
	}


	#tutorial.panel {
		/* display: flex; */
		/* justify-content: center; */
		background: #fff;
		color: var(--black);
		width: 100%;
		max-height: calc(100% - 50px);
	}

	#tutorialPages {
		position: relative;
	}

	#tutorial .ql-toolbar {
		/* gap: 5px; */
	}

	#app.tutorial #codePanel #codeTabs {
		position: relative;
		top: 0px;
		z-index: unset;
	}

	#tutorialButtons {
		position: fixed;
		bottom: 10px;
		display: flex;
		width: auto;
		padding: 15px;
		border-radius: 100px;
		gap: 30px;
		box-shadow: 0 0 10px #3333;
		border: 1px solid #ddd;
		left: 50%;
		transform: translateX(-50%);
	}

	html.owner #tutorialButtons {
		/* weird sizing bug issue fix when the window width is less than 2x the buttons width */
		width: 230px;
	}

	#tutorial .ql-editor {
		padding-bottom: 80px;
	}

	#codePanel {
		display: block !important;
		padding-bottom: 2px;
	}

	#app.layout_default #codePanel.inactive {
		display: none !important;
	}


	#app.infoMode #infoPanel {
		display: block;
		position: absolute;
	}

	#infoPanel h1.sketchTitle {
		font-size: 54px !important;
		color: #F5F5F5;
		line-height: 54px !important;
		margin-top: 0;
	}

	#introPanel {
		max-width: 90%;
	}

	#infoPanel {
		display: none;
		/* position: static; */
		width: 100%;
		top: 0;
		left: 0;
		padding: 70px 0;
		min-height: 100%;
		background: #333;
		color: #f5f5f5;
	}

	#editSketchPanel .sketchTitle {
		font-size: 36px !important;
		margin-top: 30px;
	}

	.navbar .sketchInfo {
		display: none;
	}

	.navbar #liveCodeStatus {
		margin-right: 0;
	}

	.sidePanel {
		width: 100%;
	}

	#sideButtons.show {
		width: auto;
		opacity: 1;
	}

	#websiteControls {
		z-index: 3;
	}

	.CodeMirror pre {
		padding-left: 15px;
	}


	#codePanel.showCodeOptions .codeContainer {
		padding-right: 0;
	}

	#getPlusModal {
		font-size: 18px;
	}

	#getPlusModal h2 {
		font-size: 26px;
		padding-top: 5px;
	}

	#tutorial .resizer {
		display: none;
	}
}

#appletAjaxContainer {
	display: none;
}