/* Copyright 2023 The MediaPipe Authors.
/* Copyright 2022 The MediaPipe Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */

@import url('https://fonts.googleapis.com/css?family=Cascadia%20Mono:700|Cascadia%20Mono:400');

:root {
	--text: #d8fde1;
	--background: #1c1b1b;
	--primary: #0edd37;
	--accent: #2bffed;
}


body {
	font-family: 'Cascadia Mono';
	font-weight: 400;
	color: var(--text);
	background-color: var(--background);
	display: grid;
	grid-template-columns: 1fr 1fr;
}

body* {
	margin: 0.5em;
}

input {
	font-family: 'Cascadia Mono';
	margin: 0.5em;
}

.btn {
	font-family: 'Cascadia Mono';
	margin: 0.5em;
	padding: 0.5em 2em;
	color: var(--background);
	border-radius: 5px;
	border: none;
	display: inline-block;
	transition: ease 0.1s;
	background: var(--primary);
	cursor: pointer;
}

.files.btn {
	background: var(--accent);
}

a.github-button {
	border: 1px solid white;
	background: black;
	color: white;
	text-decoration: none;
	padding: 0.4em;
}

a.launch-param {
	background: #1c2b71;
	color: white;
	text-decoration: none;
	padding: 0.5em;
}

a.veo {
	background: #91dbbc;
	color: #6a1616;
	text-decoration: none;
	padding: 0.5em;
}

.btn:hover {
	transform: translateY(-1.5px);
}

#exportName {
	margin: 0.5em 0em 0.5em 0.5em;
}

.avatar:hover {
	box-shadow: 0px 0px 3px 5px var(--primary);
}

h1,
h2,
h3,
h4,
h5 {
	font-family: 'Cascadia Mono';
	font-weight: 700;
}

html {
	font-size: 100%;
}

/* 16px */

h1 {
	font-size: 4.210rem;
	/* 67.36px */
}

h2 {
	font-size: 3.158rem;
	/* 50.56px */
}

h3 {
	font-size: 2.369rem;
	/* 37.92px */
}

h4 {
	font-size: 1.777rem;
	/* 28.48px */
}

h5 {
	font-size: 1.333rem;
	/* 21.28px */
}

small {
	font-size: 0.750rem;
	/* 12px */
}

h2 {
	clear: both;
}

em {
	font-weight: bold;
}

video {
	clear: both;
	display: block;
	transform: rotateY(180deg);
	-webkit-transform: rotateY(180deg);
	-moz-transform: rotateY(180deg);
}

section {
	opacity: 1;
	transition: opacity 500ms ease-in-out;
}

header,
footer {
	clear: both;
}

.avatar {
	background-color: transparent;
	border-radius: 0px;
}

.removed {
	display: none;
}


.videoView,
.detectOnClick {
	width: 48%;
	margin: 2% 1%;
	cursor: pointer;
}

.blend-shapes {
	position: relative;
	margin: 2% 1%;
}

#left {
	display: grid;
	grid-template-columns: 1fr;
}

.videoView p,
.detectOnClick p {
	position: absolute;
	padding: 5px;
	background-color: #007f8b;
	color: #fff;
	border: 1px dashed rgba(255, 255, 255, 0.7);
	z-index: 2;
	font-size: 12px;
	margin: 0;
}

.highlighter {
	background: rgba(0, 255, 0, 0.25);
	border: 1px dashed #fff;
	z-index: 1;
	position: absolute;
}

.canvas {
	z-index: 1;
	position: absolute;
	pointer-events: none;
}

.output_canvas {
	transform: rotateY(180deg);
	-webkit-transform: rotateY(180deg);
	-moz-transform: rotateY(180deg);
}

.detectOnClick {
	z-index: 0;
}

.detectOnClick img {
	width: 100%;
}

.blend-shapes-item {
	display: flex;
	align-items: center;
	height: 20px;
}

.blend-shapes-label {
	display: flex;
	width: 120px;
	justify-content: flex-end;
	align-items: center;
	margin-right: 4px;
}

.blend-shapes-value {
	display: flex;
	height: 16px;
	align-items: center;
	background-color: var(--primary);
}


.box {
	display: block;
	border: 1px solid var(--primary);
	margin-right: 2em;
	margin-bottom: 10px;
}

.box-header {
	background: var(--primary);
	color: var(--background);
	padding: 10px;
	cursor: pointer;
}

.box-content {
	max-height: 0;
	overflow-y: auto;
	padding: 0 10px;
}

.box.accent {
	border: 1px solid var(--accent);
}

.box.accent .box-header {
	background-color: var(--accent);
}

.box.red {
	border: 1px solid red;
}

.box.red .box-header {
	background-color: red;
}

.box input:checked+.box-header+.box-content {
	max-height: 200px;
	/* or use max-height: 100vh for dynamic height */
	padding: 10px;
}
