*,
*:after,
*:before {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #ffffff;
    color: #082036;
    font-family: 'din-2014', sans-serif;
    font-weight: 300;
    font-size: 1.25rem;
}

main {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.5rem 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

header {
    background-color: #1a4973;
    z-index: 1;
    padding-left: 1rem;
    padding-right: 1rem;
}

.header-bar {
    display: flex;
    margin: 0 auto;
    align-items: center;
    padding: 0.75rem 0;
}

.header-start {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: #52a4d6;
}

.header-end {
    margin-left: auto;
}

h1 {
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.03em;
    font-size: 2rem;
}

.logo {
    margin: 0;
    padding: 0;
    width: 4rem;
    aspect-ratio: 1/1;
    fill: #52a4d6;
}

.logo svg {
    display: block;
}

main {
    padding-top: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.viewer-container {
    height: 100vh;
    width: calc(100vw - 110px);
	position: absolute;
	top: 0;
	left: 0;
}

.controls {
    display: flex;
    flex-wrap: wrap;
	flex-direction: column;
	gap: 1rem;
	z-index: 998;
	position: relative;
}

.controls label {
    display: inline-flex;
    gap: 0.5rem;
	align-items: center;
}

.assetSelector,
.js-awesomeplete {
    margin-right: auto;
    font-size: 1rem;
    font-family: 'din-2014', sans-serif;
    outline: none;
    border: 1px solid #dbdbdb;
	border-radius: 4px;
	padding: 0.5rem;
	max-width: 12rem;
}

hr {
    border: none;
    height: 1px;
    background-color: #52a4d6;
    margin: 0 0 2rem 0;
}

pre {
    margin-top: 0;
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
}

pre code {
    background-color: #1b1b1b;
    color: #ffffff;
    display: block;
    font-size: 0.875rem;
    padding: 1rem !important;
    overflow: auto;
}

.content-container {
    display: flex;
}

.button {
    font-size: 16px;
    font-weight: 500;
    border-radius: 9999px;
    transition: all .5s ease;
    background-color: #52a4d6;
    border: 2px solid #52a4d6;
    color: #ffffff;
    cursor: pointer;
    justify-content: center;
    padding-bottom: 1.1rem;
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 1.1rem;
    text-align: center;
    text-decoration: none;
}

.button:hover {
    border: 2px solid #52a4d6;
    background-color: #ffffff;
    color: #52a4d6;
}

.button-gui.is-active {
    display: none;
}

.button-gui {
    border-radius: 4px;
    border: 1px solid #767676;
    padding: 0.25em .5em;
    cursor: pointer;
    display: block;
    font-size: 1rem;
}

.button-gui:hover {
    background: #52a4d6;
    color: #ffffff;
}

.copy-code {
    min-width: 100px;
    max-width: 100px;
}

.code-block {
    margin-bottom: 0.5rem;
}

.copy-code.is-active,
.code-blocks.is-active {
    display: block;
}

.one-liner {
    padding-top: 0.5rem;
}

h4 {
    color: #52a4d6;
    margin: 0.5rem 0 !important;
    font-size: 1rem;
}

.copy-code {
    background-color: transparent !important;
    border: 1px solid #1a4973 !important;
    color: #1a4973 !important;
    margin-top: 0.5rem;
    height: 40px !important;
}

.copy-code {
    font-family: 'din-2014', sans-serif;
    font-size: 1rem;
}

.copy-code:hover {
    background-color: #52a4d6;
    color: #ffffff;
}

.reset-button {
    width: auto !important;
    margin-left: 0.3rem !important;
    font-size: 1.5rem !important;
    padding: 0 0.25em;
    line-height: 1;
}

.controller.function .reset-button {
    display: none;
}

.cam-buttons {
    display: flex;
    gap: 4px;
    margin: 0.5rem 0;
    padding: 0 0.25rem;
}

.cam-buttons button {
    height: 25px;
}

/* GUI Styling */
.lil-gui {
    --hover-color: #1a4973;
    --focus-color: #1a4973;
    --font-size: 14px;
    --scrollbar-width: 0;
    --widget-color: #1a4973;
    --widget-height: 25px;
    --checkbox-size: calc(var(--widget-height)*0.7);
    --name-width: 40%;
    --font-family: 'din-2014', sans-serif;
    --font-family-mono: 'din-2014', sans-serif;
    --input-font-size: 14px;
    --width: 400px;
    --slider-input-min-width: 55px;
    --color-input-min-width: 55px;
}

.lil-gui.root .title {
    display: flex;
}

.lil-gui.root .title button {
    width: 5rem;
    position: absolute;
    right: 0.75rem;
}

.lil-gui.transition>.children {
    transition: none;
}

.lil-gui.allow-touch-styles.transition.closed {
    height: 0;
    overflow: hidden;
}

.lil-gui.root>.title,
body:not(.lil-gui-dragging) .lil-gui .title:hover,
.lil-gui,
.lil-gui .controller.number .slider,
.lil-gui .controller.number .slider:hover,
.lil-gui .controller.option .display {
    background: #ffffff !important;
    color: #1a4973 !important;
}

.lil-gui .controller.number .slider {
    border: 1px solid #dbdbdb;
}

.lil-gui .controller.number .fill {
    border-right: 2px solid #1a4973;
}

.lil-gui .controller.number input {
    color: #ffffff;
}

.lil-gui input,
.lil-gui button,
.lil-gui button:hover,
.lil-gui .controller.option .widget:hover .display,
.lil-gui input:hover .lil-gui input[type=number]:focus,
.lil-gui input[type=text]:focus {
    color: #ffffff;
    background: #1a4973;
}

.reset-all,
.get-image {
    border: 1px solid #1a4973;
    font-family: 'din-2014', sans-serif;
    border-radius: 2px;
    font-size: 14px;
    padding: 0 0.6rem;
    cursor: pointer;
    margin-top: 2.5rem;
    width: 100%;
    color: #1a4973;
    background-color: transparent;
    pointer-events: all;
}

.get-image {
    margin-top: 0.5rem;
}

.lil-gui.root>.title {
    margin: 0.5rem 0;
}

.lil-gui.root>.children>.lil-gui>.title {
    height: 35px;
    display: flex;
    align-items: center;
}

.lil-gui .title {
    font-weight: 800;
}

.title {
    cursor: pointer;
}

.tabs .title {
    font-size: 1rem;
}

.lil-gui .controller.color .display {
    border: 1px solid #dbdbdb;
}

.lil-gui .title:focus {
    text-decoration: none;
}

.lil-gui .controller.option .display {
    border: 1px solid #dbdbdb;
    display: flex;
    align-items: center;
}

.lil-gui .controller.option .display:after {
    top: -2px;
}

.lil-gui .controller.string input,
.lil-gui input[type=checkbox],
.lil-gui .controller.number input,
.lil-gui .controller.color input[type=text] {
    background-color: #ffffff;
    border: 1px solid #dbdbdb;
    color: #1a4973;
}

.lil-gui input[type=checkbox]:checked:before {
    position: absolute;
    left: 0;
    top: 4px;
}

.lil-gui input[type=checkbox]:focus {
    box-shadow: none;
}

.tabs {
    z-index: 2;
    background-color: #f5f5f5;
    width: 10rem;
    display: flex;
    flex-direction: column;
}

.controls-bar {
    height: 100vh;
    background-color: white;
	z-index: 9999;
	width: 110px;
	overflow-y: scroll;
	max-width: 110px;
}
.controls-bar .sidebar-item {
	list-style-type: none;
}
.controls-bar .menu,
.extra-buttons {
	padding: 2rem 1rem;
	display: flex;
    flex-direction: column;
    gap: 1rem;
}
.controls-bar .sidebar-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
	padding: 0.5rem 0;
	border-radius: 0.5rem;
	gap: 0.3rem;
}
.controls-bar .sidebar-link:hover,
.controls-bar .sidebar-link.is-active {
	background-color: #f0f1f5;
}
.controls-bar .sidebar-link span {
	font-size: 1.1rem;
}
.controls-bar .bi:before {
	font-size: 24px;
}
.controls-bar .bi {
	color: #12314d;
}

.tabs-gui {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    z-index: 999;
    transform: translateX(calc(100% + 32px));
    transition: transform 200ms ease-in-out;
    background-color: #ffffff;
	height: 100vh;
	overflow-y: scroll;
	border-left: 1px solid #e3e3e3;
}

.tabs-gui .gui-container {
    flex-direction: row-reverse;
    display: flex;
}

.tabs-gui.is-active {
    transform: translateX(0);
}

.tabs-gui.is-active .tabs {
    display: flex;
	justify-content: space-between;
}

.close-button {
    cursor: pointer;
    position: absolute;
    width: 32px;
    height: 32px;
    right: 350px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px 0 0 4px;
	top: 1.8rem;
	z-index: 999;
	border: 1px solid #e3e3e3;
}

.tabs .title:not(.reset-all-container),
.reset-all,
.get-image {
    padding: 0.5rem 1rem;
}

.reset-all-container {
    order: 1;
    pointer-events: none;
}

.lil-gui.root {
    position: relative;
    right: 0;
    padding: 1.8rem 1rem 0.6rem 1rem;
}

.title:not(.reset-all-container):not(.is-active):hover {
    background-color: #e5e5e5;
}

.title.is-active {
    font-weight: 600;
    color: #ffffff;
    background-color: #1a4973;
    border-radius: 2px;
}

.lil-gui.transition>.children {
    pointer-events: all;
}

.children {
    height: auto !important;
    overflow: auto !important;
}

.closed .children {
    height: 0 !important
}

.lil-gui.root>.children {
    overflow-y: hidden;
}

.close-controls {
    display: none;
}

@media (max-width: 768px) {
    .button-container {
        margin-top: 1rem;
    }

    main {
        padding: 1rem;
    }

    header {
        padding: 0 1rem;
    }

    .copy-code {
        margin-top: 1rem;
        margin-left: 0;
    }

    .tabs-gui {
        flex-direction: column;
        z-index: 999;
    }

    .tabs {
        margin-left: 0;
    }

    body {
        font-size: 1.1rem;
    }

    .reset-all {
        font-size: 1rem;
        margin-top: 1rem;
    }

    .lil-gui.allow-touch-styles {
        --font-size: 1rem;
    }
}

.lil-gui .controller {
	flex-direction: column;
	align-items: flex-start;
}
.lil-gui .controller.boolean {
	flex-direction: row;
}
.lil-gui.root {
	width: 240px;
	max-width: 240px;
	border-right: 1px solid #e3e3e3;
}
.lil-gui.root .children .lil-gui .children {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.lil-gui .controller .widget {
	justify-content: space-between;
}
.lil-gui .controller .name {
	font-weight: 600;
}
.lil-gui .controller>.name {
	padding-right: 1rem;
}
.asset-label {
	font-weight: 600;
}
.burger-btn {
	z-index: 99;
}
#main #main-content {
	padding-top: 2.6rem;
}

.modal {
	display: none;
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgb(0,0,0);
	background-color: rgba(0,0,0,0.6);
	z-index: 9999;
}

.modal-content {
	background-color: #fefefe;
	padding: 20px;
	border: 1px solid #888;
	width: 70%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	position: absolute;
}

.close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
}

.close:hover,
.close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}
.modal-header {
	padding: 0;
	border-bottom: none;
}
.modal .modal-header .close:hover {
	background-color: #ffffff;
}

.controls-bar.tabs {
	position: sticky;
	top: 0;
	right: 0;
}

.lil-gui .controller.boolean .widget {
	width: auto;
}
.lil-gui .controller.boolean {
	justify-content: space-between;
}

.awesomplete > ul > li[aria-selected="true"] {
	background: #12314d
}
.awesomplete > ul > li:hover {
	background: #dbdbdb;
	color: #12314d;
}
.asset-code {
	font-weight: 600;
}

.lil-gui.root,
.close-button.js-gui {
	display: none;
}
.sidebar-wrapper {
	border-right: 1px solid #e3e3e3;
}

.awesomplete ul {
	max-height: 70vh;
	overflow-y: scroll;
}
.awesomplete li {
	font-weight: 500;
	font-size: 1rem;
}

.awesomplete > ul > li {
	white-space: nowrap;
}