:root{
    --header-width: 50px;
    --html: rgb(225, 120, 51);
    --css: rgb(81, 154, 186);
    --js: rgb(203, 203, 65);
    
    --html-dark: hsl(0, 85%, 49%);
	--css-dark: hsl(234, 89%, 46%);
	--js-dark: hsl(47, 100%, 43%);
  	--html-light: hsl(348, 36%, 57%);
 	--css-light: hsl(204, 36%, 57%);
 	--js-light: hsl(57, 36%, 57%);

 	--js-text: rgb(180, 78, 53);
 	--css-text: rgb(92, 178, 180);
}

/* test only */
/* body{
	background-color: lightgrey;
} */

/*.reveal-wrapper{
	margin-left: 100px;
	margin-top: 100px;
	width: 600px;
	height: 400px;
}*/

/* html{
	display: block;
	width: 1200px; 
	height: 700px; 
	border: none; 
	outline: none; 
	transform-origin: top left; 
	transform: scale(0.5); 
	border: 1px solid black;
} */

body{
	margin: 0;
	padding: 0;
}

.embed-platform-bridge {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 2600;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	padding: 8px;
	color-scheme: dark;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	background: rgba(17, 20, 26, 0.88);
	box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
	backdrop-filter: blur(14px);
}

.embed-platform-bridge__btn {
	min-height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.17);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.065);
	color: #f2f4f7;
	padding: 6px 10px;
	text-decoration: none;
	font-size: 12px;
	font-weight: 900;
}

.embed-platform-bridge__btn:hover {
	border-color: rgba(255, 255, 255, 0.34);
	background: rgba(255, 255, 255, 0.11);
	color: #fff;
}

.embed-platform-bridge__btn--primary,
.iframe-ai-editor-btn {
	border-color: #f2f4f7 !important;
	background: #f2f4f7 !important;
	color: #15181e !important;
	font-weight: 950;
}

/* ===== REVEAL ===== */
.reveal-wrapper{
	position: relative;
	width: 600px;
	height: 350px;
	/* transform-origin: top left; */
	/*transform: scale(0.5);*/
	/* border: 1px solid #666;x */
	/* background-color: #ccc; */
	/* background-color: #ccc; */
}

.reveal-wrapper .reveal-mask{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 2000;
	overflow: hidden;
}

.reveal-wrapper .reveal-container{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/*background-color: darkgrey;*/
	overflow: hidden;
}

.reveal-wrapper .reveal-mask .reveal-logo{
	position: absolute;
	z-index: 200;
	top: calc(50% - 100px);
	left: calc(50% - 100px);
	width: 200px;
	height: 200px;
	transition: transform 430ms ease-in, 
		opacity 430ms ease-in;
	/*border: 1px solid;*/
}

.reveal-wrapper .reveal-mask .reveal-logo::before,
.reveal-wrapper .reveal-mask .reveal-logo::after{
	top: 0;
	left: 0;
	position: absolute;
	content: "";
	width: calc(100% - 30px);
	height: calc(100% - 30px);
	border-radius: 100%;
	border: 15px solid #ffd700;
}

.reveal-wrapper .reveal-mask .reveal-logo::before{
	clip-path: polygon(0 0, 2.5% 0, 57.5% 100%, 0% 100%);
}
.reveal-wrapper .reveal-mask .reveal-logo::after{
	clip-path: polygon(42.5% 0, 100% 0, 100% 100%, 97.5% 100%);
}

.reveal-wrapper .reveal-mask .reveal-logo .reveal-arrow{
	width: 100%;
	height: 100%;
	transition: transform 430ms ease-in;
	/*border: 1px solid white; */
}

.reveal-loader
{
  position: absolute;
  z-index: 10;
  top: calc(50% - 20px);
  left: calc(50% - 30px);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.reveal-loader span 
{
  position: absolute;
  width: calc(100% + var(--i));
  height: calc(100% + var(--i));
  border-radius: 50%;
  border: 15px solid;
  border-color: var(--clr);
  /* background: var(--clr); */
  transform-origin: calc(40px + var(--i));
  pointer-events: none;
  animation: orbit 5s linear infinite;
  animation-duration: calc(var(--d));
  mix-blend-mode: screen;
}
.reveal-loader span:nth-child(even)
{
  animation-direction: reverse;
}
@keyframes orbit
{
  0%
  {
    transform: rotate(0deg);
  }
  100%
  {
    transform: rotate(360deg);
  }
}

.reveal-wrapper .reveal-mask .reveal-logo .reveal-arrow::before,
.reveal-wrapper .reveal-mask .reveal-logo .reveal-arrow::after{
	position: absolute;
	/* width: 22.5px; */
	/* height: 22.5px; */
	width: 30px;
	height: 30px;
	content: "";
	clip-path: polygon(0 45%, 50% 0, 100% 45%, 100% 100%, 50% 60%, 0 100%);
	background-color: white;
}
.reveal-wrapper .reveal-mask .reveal-logo .reveal-arrow::before{
	top: 0;
	left: 17.5%;
	/*border: 1px solid white;*/
	transform: rotate(-30deg);
}
.reveal-wrapper .reveal-mask .reveal-logo .reveal-arrow::after{
	bottom: 0;
	right: 17.5%;
	/*border: 1px solid white;*/
	transform: rotate(150deg);
}

.reveal-wrapper .reveal-mask::before,
.reveal-wrapper .reveal-mask::after{
	position: absolute;
	content: '';
	width: 100%;
	height: 100%;
	transition: transform 450ms ease-in,
		opacity 400ms ease-in;
}

.reveal-wrapper .reveal-mask::before{
	/*background-color: #333;*/
	background-color: #575757;
	/*background: radial-gradient(circle at center, #c7c7c7, #000);*/
	clip-path: polygon(0 0, 30% 0, 70% 100%, 0% 100%);
}

.reveal-wrapper .reveal-mask::after{
	/*background-color: #666;*/
	background-color: #8b0000;
	/*background: radial-gradient(circle at center, #8b0000, #000);*/
	clip-path: polygon(30% 0, 100% 0, 100% 100%, 70% 100%);
}

/* --- Animations Reveal --- */
/*.reveal-wrapper:hover .reveal-mask::before,*/
.reveal-wrapper.revealed .reveal-mask::before{
	transform: translateX(-100%);
	opacity: 0;
}
/*.reveal-wrapper:hover .reveal-mask::after,*/
.reveal-wrapper.revealed .reveal-mask::after{
	transform: translateX(100%);
	opacity: 0;
}

/* handled by javascript */
/*.reveal-wrapper:hover .reveal-mask .reveal-logo .reveal-arrow, */
/*.reveal-wrapper.revealed .reveal-mask .reveal-logo .reveal-arrow{
	transform: scale(5);
}*/

/*.reveal-wrapper:hover .reveal-mask .reveal-logo, */
/*.reveal-wrapper.revealed .reveal-mask .reveal-logo{
	transform: rotate(180deg);
}*/


/* ===== IFRAME ===== */
/* transform cannot be applied in production
only here for development proper sizing
transform will cause codemirror child misaligned */
/*.iframe-wrapper{
	margin-left: 20px;
	margin-top: 100px;
	transform: scale(0.5);
	width: 1200px;
	height: 700px;
	background-color: #ddd;
	transform-origin: top left;
	border: 1px solid;
}*/
/* above is test only */
.iframe-wrapper{
	width: 100%;
	height: 100%;
	display: block;
}

.iframe-wrapper .iframe-textarea{
	display: none;
}

/* nav */
.iframe-wrapper .iframe-header .iframe-nav{
	width: 100%;
	height: 22.5px;
	display: flex;
	flex-direction: row;
	/*border: 1px solid;*/
}

.iframe-wrapper .iframe-header .iframe-nav .iframe-bundle{
	width: 320px;
	height: 100%;
	display: flex;
	flex-direction: row;
	align-items: center;
	/* border: 1px solid; */
}

.iframe-wrapper .iframe-header .iframe-nav .iframe-bundle .iframe-editor-btn{
	height: 16px;
	min-width: 25px;
	padding: 0 5px;
	font-size: 14px;
	letter-spacing: .5px;
	display: flex;
	justify-content: center;
	align-items: center;
	white-space: nowrap;
	color: #fff;
	border-radius: 2.5px;
	margin-left: 5px;
	cursor: pointer;
	font-family: Verdana;
}

.iframe-wrapper .iframe-header .iframe-nav .iframe-bundle .iframe-editor-btn.iframe-btn-show{
	font-size: 13px;
	margin-right: 3.75px;
	border: 2.5px solid #555;
	color: #000;
}
.iframe-wrapper .iframe-header .iframe-nav .iframe-bundle .iframe-editor-btn.iframe-btn-html{
	border: 2.5px solid var(--html-light);
	color: var(--html-light);
}
.iframe-wrapper .iframe-header .iframe-nav .iframe-bundle .iframe-editor-btn.iframe-btn-css{
	border: 2.5px solid var(--css-light);
	color: var(--css-light);
}
.iframe-wrapper .iframe-header .iframe-nav .iframe-bundle .iframe-editor-btn.iframe-btn-js{
	border: 2.5px solid var(--js-light);
	color: var(--js-light);
}
.iframe-wrapper .iframe-header .iframe-nav .iframe-bundle .iframe-editor-btn.iframe-btn-html:hover,
.iframe-wrapper .iframe-header .iframe-nav .iframe-bundle .iframe-editor-btn.iframe-btn-html.active{
	background-color: var(--html-light);
	color: #fff;
}
.iframe-wrapper .iframe-header .iframe-nav .iframe-bundle .iframe-editor-btn.iframe-btn-css:hover,
.iframe-wrapper .iframe-header .iframe-nav .iframe-bundle .iframe-editor-btn.iframe-btn-css.active{
	background-color: var(--css-light);
	color: #fff;
}
.iframe-wrapper .iframe-header .iframe-nav .iframe-bundle .iframe-editor-btn.iframe-btn-js:hover,
.iframe-wrapper .iframe-header .iframe-nav .iframe-bundle .iframe-editor-btn.iframe-btn-js.active{
	background-color: var(--js-light);
	color: #fff;
}

.iframe-wrapper .iframe-header .iframe-nav .iframe-bundle .iframe-editor-btn:hover,
.iframe-wrapper .iframe-header .iframe-nav .iframe-bundle .iframe-editor-btn.active{
	background-color: #555;
	color: #fff;
}

.iframe-wrapper .iframe-header .iframe-nav a.iframe-name,
.iframe-wrapper .iframe-header .iframe-nav a.iframe-author{
	color: inherit;
	font-family: Arial;
	padding-left: 5px;
	overflow: auto;
	white-space: nowrap;
	height: 100%;
	display: flex;
	flex-direction: row;
	align-items: center;
	font-size: 15px;
	/*border: 1px solid red;*/
}

.iframe-wrapper .iframe-header .iframe-nav a.iframe-name{
	text-decoration: underline;
	color: #333;
	width: 210px; 
}
.iframe-wrapper .iframe-header .iframe-nav a.iframe-author::before{
	content: '作者:';
}
.iframe-wrapper .iframe-header .iframe-nav a.iframe-author{
	text-decoration: none;
	color: #444;
	width: 130px;
}

.iframe-wrapper .iframe-header .iframe-nav a.iframe-name:hover,
.iframe-wrapper .iframe-header .iframe-nav a.iframe-author:hover{
	opacity: 0.65;
}

.iframe-wrapper .iframe-header .iframe-nav .iframe-run{
	text-decoration: none;
	width: calc(100% - 360px);
	height: 100%;
	display: flex;
	flex-direction: row;
	justify-content: space-evenly;
	align-items: center;
	/* border: 1px solid green; */
	/* overflow: hidden; */
}

.iframe-wrapper .iframe-header .iframe-nav .iframe-run ._ibb{
	white-space: nowrap;
	text-decoration: none;
	font-family: sans-serif;
	font-size: 11px;
	font-weight: bold;
	white-space: nowrap;
	padding: 1px 4px;
	color: #eee;
	cursor: pointer;
	background-color: #777;
}

.iframe-wrapper .iframe-header .iframe-nav .iframe-run ._ibb:hover{
	background-color: #333 !important;
	color: #fff;
}

.iframe-wrapper .iframe-header .iframe-top{
	width: 100%;
	height: 20px;
	display: flex;
	flex-direction: row;
	display: none;
}

.iframe-wrapper .iframe-header .iframe-top .iframe-tabarea{
	width: calc(100% - 50px);
	height: 20px;
	display: flex;
	flex-direction: row;
	align-items: center;
	/*border: 1px solid;*/
	overflow-x: auto;
}

.iframe-wrapper .iframe-header .iframe-top .iframe-controlarea{
	width: 50px;
	height: 20px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
}

.iframe-wrapper .iframe-header .iframe-top .iframe-controlarea .iframe-control{
	padding: .5px 1px;
	background-color: #666;
	font-size: 11px;
	font-family: Arial;
	color: #eee;
	margin: 1px;
	cursor: pointer;
	white-space: nowrap;
}

.iframe-wrapper .iframe-header .iframe-top .iframe-controlarea .iframe-control:hover{
	background-color: #333;
}

.iframe-wrapper .iframe-header .iframe-top .iframe-tabarea .iframe-tab{
	padding: .5px 4px;
	background-color: #333;
	font-size: 13px;
	color: var(--html-light);
	margin-left: 5px;
	border-radius: 2.5px;
	letter-spacing: .5px;
	filter: brightness(135%);
	cursor: pointer;
}

.iframe-wrapper .iframe-header .iframe-top .iframe-tabarea .iframe-tab.unplug{
	text-decoration: line-through;
	opacity: 0.75;
}

.iframe-wrapper .iframe-header .iframe-top .iframe-tabarea .iframe-tab:hover{
	opacity: 0.75;
}

.iframe-wrapper .iframe-header .iframe-top .iframe-tabarea .iframe-tab.active{
	font-weight: bold;
	filter: brightness(175%);
}

.iframe-wrapper .iframe-header{
	display: block;
	width: 100%;
	height: 22.5px;
	/*border: 1px solid;*/
}

.iframe-wrapper .iframe-main{
	width: 100%;
	height: calc(100% - 25px);
	display: flex;
	flex-direction: row;
}

.iframe-wrapper .iframe-main .iframe-body img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	overflow: hidden;
	z-index: 1000;
}

.iframe-wrapper .iframe-main .iframe-panel{
	width: 7.5px;
	height: 100%;
	display: flex;
	flex-direction: row;
	align-items: center;
	display: none;
}

.iframe-wrapper .iframe-main .iframe-panel .iframe-handle{
	position: relative;
	width: 5px;
	height: 80%;
	margin-left: 1.25px;
	margin-right: 1.25px;
	background-color: #666;
	opacity: 0.6;
	border-radius: 2.5px;
}

.iframe-wrapper .iframe-main .iframe-panel .iframe-handle .iframe-arrow{
	position: absolute;
	top: calc(50% - 7.25px);
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 300;
}

.iframe-wrapper .iframe-main .iframe-panel .iframe-handle .iframe-arrow.iframe-arrow-right{
	transform: translateX(-50%);
}

.iframe-wrapper .iframe-main .iframe-panel .iframe-handle:hover{
	cursor: ew-resize;
}

.iframe-wrapper .iframe-main .iframe-panel .iframe-handle .iframe-arrow:hover{
	cursor: pointer;
}

.iframe-wrapper .iframe-main .iframe-panel .panel-index{
	width: calc(100% - 7.5px);
	height: 100%;
	background-color: #444;
	/*border: 1px solid purple;*/
	overflow: hidden;
}

.iframe-wrapper .iframe-main .iframe-panel .panel-index .panel-index-head{
	display: flex;
	flex-direction: row;
	align-items: center;
	overflow: hidden;
	height: 17.5px;
	border-bottom: 1.5px solid #fff;
}

.iframe-wrapper .iframe-main .iframe-panel .panel-index .panel-index-head .panel-index-tab{
	height: 100%;
	white-space: nowrap;
	font-family: Georgia;
	font-size: 12px;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	transition: background-color 200ms ease-in, 
		color 200ms ease-in;
}

.iframe-wrapper .iframe-main .iframe-panel .panel-index .panel-index-head .panel-index-tab.active{
	background-color: #333 !important;
	color: #ccc !important;
}

.iframe-wrapper .iframe-main .iframe-panel .panel-index .panel-index-head .panel-index-tab:hover{
	background-color: #000 !important;
	color: #fff !important;
}

.iframe-wrapper .iframe-main .iframe-panel .panel-index .panel-index-body{
	height: calc(100% - 19px);
	min-width: 100px;
	width: 100%;
}

.iframe-wrapper .iframe-main .iframe-panel .panel-index .panel-index-body .panel-index-area{
	width: 100%;
	height: 100%;
}
/* end of flexible panel */

.iframe-wrapper .iframe-main .iframe-body{
	position: relative;
	width: 100%;
	/*width: calc(100% - 15px);*/
	height: 100%;
	/*border: 1px solid orchid;*/
}

.iframe-wrapper .iframe-main .iframe-body .iframe-mask{
	top: 0;
	left: 0;
	z-index: 200;
	position: absolute;
	width: 100%;
	height: 100%;
	/*background-color: red;*/
	/*opacity: .3;*/
}

.iframe-wrapper .iframe-main .iframe-body iframe{
	z-index: 100;
	margin: 0;
	padding: 0;
	outline: none;
	border: none;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* when code tab focused */
.iframe-wrapper.iframe-code .iframe-header{
	/* height: 42.5px; */
	height: 45px;
}

.iframe-wrapper.iframe-code .iframe-main{
	height: calc(100% - 45px) !important;
}

.iframe-wrapper.iframe-code .iframe-header .iframe-top{
	display: flex;
}





/*.cdn-panel{
	margin-top: 100px;
	margin-left: 100px;
	width: 300px;
	height: 600px;
	transform: scale(0.5);
	border: 1px solid;
	background-color: #566b51;
}*/

.cdn-panel{
	width: 100%;
	height: 100%;
}

.cdn-panel .cdn-area{
	position: relative;
	width: 100%;
	height: calc(50% - 1px);
	display: block;
	overflow-y: auto;
}

.cdn-panel .cdn-area .cdn-area-title{
	font-size: 16px;
	text-indent: 2.5px;
}

.cdn-panel .cdn-area.cdn-area-css{
	border-top: 1px solid white;
}

.cdn-panel .cdn-area.cdn-area-js .cdn-area-title{
	color: pink;
}

.cdn-panel .cdn-area.cdn-area-css .cdn-area-title{
	color: cyan;
}

.cdn-panel .cdn-area ul.cdn-area-ul{
	list-style: none;
	padding-left: 2.5px;
	font-size: 14px;
	overflow-x: auto;
	margin-block-start: 0;
}

.cdn-panel .cdn-area ul.cdn-area-ul li.cdn-area-li{
	display: flex;
	flex-direction: row;
	margin-top: 2.5px;
	white-space: nowrap;
	/*overflow-x: auto;*/
	padding-right: 7.5px;
	align-items: center;
}

/*.cdn-panel .cdn-area ul.cdn-area-ul li.cdn-area-li::before{
	content: "\2022";
	color: white;
	font-weight: bold;
	display: inline-block;
	width: 15px;
}*/

.cdn-panel .cdn-area ul.cdn-area-ul li.cdn-area-li input[type=checkbox]{
	min-width: 15px;
	min-height: 15px;
	transform: scale(1.25);
	margin-left: 2.5px;
	cursor: pointer;
}

.cdn-panel .cdn-area ul.cdn-area-ul li.cdn-area-li a{
	text-decoration: none;
	color: #fff;
	/*white-space: nowrap;*/
}

.cdn-panel .cdn-area ul.cdn-area-ul li.cdn-area-li a:hover{
	text-decoration: underline;
}



.to-the-end{
	position: absolute;
	right: 2.5%;
	top: 2.5%;
	/*right: 2.5%;*/
	/*bottom: 2.5%;*/
	width: 17.5px;
	height: 17.5px;
	border-radius: 3.75px;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #ccc;
	color: #000;
	font-size: 15px;
	font-weight: bold;
	cursor: pointer;
	overflow: hidden;
	z-index: 1000;
}

.to-the-end span{
	animation: downward 1500ms ease infinite;
}

.to-the-end:hover{
	opacity: 0.75;
}

@keyframes downward{
	from{
		transform: translateY(-7.5px);
	}
	to{
		transform: translateY(5px);
	}
}


/* ===== Console/CDN polish shared by legacy and new embed shells ===== */
.iframe-wrapper .iframe-main .iframe-panel .panel-index {
	background:
		linear-gradient(180deg, #101827, #070b14) !important;
	color: #dbeafe;
}

.iframe-wrapper .iframe-main .iframe-panel .panel-index .panel-index-head {
	height: 28px;
	border-bottom: 1px solid rgba(148, 163, 184, .24);
	background: rgba(255, 255, 255, .04);
}

.iframe-wrapper .iframe-main .iframe-panel .panel-index .panel-index-head .panel-index-tab {
	font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
	font-size: 11px;
	font-weight: 800;
	color: #cbd5e1;
	border-right: 1px solid rgba(148, 163, 184, .16);
}

.iframe-wrapper .iframe-main .iframe-panel .panel-index .panel-index-head .panel-index-tab.active,
.iframe-wrapper .iframe-main .iframe-panel .panel-index .panel-index-head .panel-index-tab:hover {
	background: #1d4ed8 !important;
	color: #fff !important;
}

.iframe-wrapper .iframe-main .iframe-panel .panel-index .panel-index-body {
	height: calc(100% - 28px);
	background: #0b1020;
}

.cdn-panel {
	background: #0b1020;
	color: #dbeafe;
	font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
}

.cdn-panel .cdn-area {
	padding: 8px;
}

.cdn-panel .cdn-area .cdn-area-title {
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.cdn-panel .cdn-area ul.cdn-area-ul li.cdn-area-li {
	border: 1px solid rgba(148, 163, 184, .18);
	border-radius: 10px;
	background: rgba(255, 255, 255, .045);
	padding: 6px;
}

.cdn-panel .cdn-area ul.cdn-area-ul li.cdn-area-li a {
	color: #dbeafe;
	font-size: 11px;
}
