* {
    margin: 0px;
    padding: 0px;
    outline: none;
}

.sceneNodeIcon {
    margin-bottom: 10px;
}

@keyframes fadedown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }

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

:root {
    --ui-base-color: #2d2d2d;
    --ui-base-color-transparent: #2d2d2dab;
    --ui-base-color-transparent-more: #2d2d2d73;
    --ui-button-color: #1d1d1d;
    --ui-button-hover-color: #3d3d3d;
    --ui-button-active-color: #424242;
    --ui-button-disabled-color: #303030;
    --ui-base-text-color: #fff;
}

body,
html {
    background-color: var(--ui-base-color);
    color: var(--ui-base-text-color);
    overflow: hidden
}

header {
    padding: 15px;
    display: inline-flex;
    align-items: center;
    flex-direction: row;
}

#controls {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 44px;
}

button {
    background: var(--ui-button-color);
    border: none;
    color: white;
    padding: 5px;
    cursor: pointer;
    min-width: 25px;
}

hr,
h3,
li a,
.tabbutton,
button,
.sidebarContent,
input,
select,
#homepage,
span {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none;
}

#sideButtons {
    float: left;
    width: fit-content;
    display: flex;
    flex-direction: column;
}

#sideButtons button {
    padding: 11px;
    background: none;
    font-size: 17px;
}

hr {
    border-color: var(--ui-button-active-color);
    border-style: solid;
}

canvas {
    float: right;
    border-top: var(--ui-button-hover-color) solid 1px;
    border-left: var(--ui-button-hover-color) solid 1px;
}

.li {
    float: left;
}

.li a,
.dropbtn {
    color: white;
    display: inline-block;
    text-align: center;
    padding: 11px;
    text-decoration: none;
}

.li a:hover,
.dropdown:hover .dropbtn,
button:hover {
    background-color: var(--ui-button-hover-color) !important;
}

.li a:hover select {
    background-color: var(--ui-button-active-color) !important;
}

.li a i {
    float: left;
    margin-right: 10px;
}

.li.dropdown {
    display: inline-block;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--ui-button-hover-color);
    min-width: 160px;
    animation: fadedown 0.1s ease;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 16px 0px;
    z-index: 1;
}

.dropdown-content a {
    padding: 10px;
    text-decoration: none;
    display: block;
    text-align: left;
    padding-top: 12px;
}

.dropdown-content a:hover {
    background-color: var(--ui-button-active-color) !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

input[type=checkbox] {
    min-width: 13px;
    margin: 0;
    margin-top: 3px;
    accent-color: var(--ui-button-active-color);
    cursor: pointer;
}

#controls select {
    color: white;
    background-color: var(--ui-button-hover-color);
    border: none;
    font-size: 16px;
    display: inline-block;
    margin-top: -1px;
    margin-left: -4px;
}

#explorer {
    background: var(--ui-base-color);
    border: var(--ui-button-hover-color) solid 1px;
    position: absolute;
    box-sizing: border-box;
    right: 0;
    height: calc((100vh - 44px) / 2);
    width: 250px;
}

#details {
    background: var(--ui-base-color);
    border: var(--ui-button-hover-color) solid 1px;
    border-top: none;
    position: absolute;
    box-sizing: border-box;
    right: 0;
    height: calc((100vh - 44px) / 2);
    width: 250px;
    bottom: 0;
}

.sidebarContent {
    height: 100%;
    overflow: auto;
}

.sidebarContent label {
    display: inline-block;
    margin-left: 0;
    width: calc(50% - 8px);
    text-align: left;
    margin-top: 10px;
    padding-left: 8px;
}

.sidebarContent input[type=checkbox] {
    margin: 7px;
    position: absolute;
    margin-left: 0;
}

.sidebarContent input[type=number],
.sidebarContent input[type=text],
.sidebarContent input[type=file],
.sidebarContent input[type=color],
.sidebarContent input[type=button],
.sidebarContent button {
    padding: 8px;
    background-color: #202020;
    color: white;
    border: var(--ui-button-hover-color) solid 1px;
    text-align: left;
    width: 50%;
    display: inline-block;
    border-radius: 5px;
}

.sidebarContent input[type=button] {
    cursor: pointer;
    text-decoration: underline;
}

#sidecontainer {
    height: calc(100vh - 44px);
    overflow: auto;
    position: absolute;
}

.cornerlogo {
    width: 45.25px;
    display: flex !important;
    justify-content: center;
    place-items: center;
    padding-top: 10px !important;
    width: fit-content;
}

#resourceMonitor {
    float: right !important;
    position: absolute !important;
    right: 0;
    height: 44px;
    overflow: hidden;
}

#resourceMonitor canvas {
    height: 43px !important;
}

.halfbutton {
    width: calc(50% - 5px) !important;
    text-align: center !important;
}

.halfbutton:first-of-type {
    float: right;
}

#explorercontent {
    height: 100%;
    width: 100%;
    background: none;
    border: none;
    overflow: auto;
    color: white;
}

#explorercontent option {
    padding: 15px;
}

#detailscontent {
    padding: 15px;
    height: calc(100% - 30px);
}

#spawnIcon button {
    width: 100%;
}

#tabs {
    position: absolute;
    right: 0;
    pointer-events: none;
}

.tabbuttons {
    background: var(--ui-base-color-transparent);
    pointer-events: all;
    text-align: center;
    padding: 5px;
    height: 30px;
    backdrop-filter: blur(10px);
}

.tabbutton {
    cursor: pointer;
    display: inline-block;
    padding: 5px;
    padding-top: 3px;
    padding-inline: 10px;
}

.selectedTab {
    background-color: #202020;
    border-radius: 5px;
}

.tab {
    display: none;
    pointer-events: all;
    height: calc(100% - 40px);
}

.CodeMirror {
    height: 100% !important;
}

#tab-scene {
    pointer-events: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#homepage {
    background-color: var(--ui-button-color);
    height: 100vh;
    width: 100vw;
    position: absolute;
    z-index: 10001;
    top: 0;
}

.homeNavbar img {
    width: 30px;
    float: left;
    margin: 10px;
    border-radius: 5px;
}

.homeNavbar h2 {
    padding: 9px;
    padding-left: 50px;
    font-weight: normal;
}

.homeNavbar {
    background: var(--ui-base-color);
    border-bottom: var(--ui-button-hover-color) solid 1px;
}

.login {
    height: calc(100% - 50px);
    width: 100%;
    display: flex;
    justify-content: center;
    place-items: center;
}

.login div {
    text-align: center;
}

.gamecard {
    padding: 15px;
    background: var(--ui-base-color);
    border: var(--ui-button-hover-color) solid 1px;
    color: white;
    box-shadow: 200px -1px 136px 8px rgba(0, 0, 0, 0.5) inset;
    border-radius: 5px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    cursor: pointer;
    margin: 15px;
    width: calc(100% - 60px);
    margin-bottom: 0;
}

.gamecard a {
    float: right;
    color: white;
}

a {
    color: white;
}

#loginBox input,
#loginBox button,
#publish input,
#publish button,
#dashboard button {
    width: calc(100% - 30px);
    padding: 10px;
    border: var(--ui-button-hover-color) solid 1px;
    background: var(--ui-base-color);
    margin: 15px;
    margin-bottom: 0;
    color: white;
}

#dashboard,
#publish {
    width: 800px;
    box-sizing: border-box;
    padding: 15px;
    height: calc(100% - 50px);
    overflow: auto;
    margin: auto;
}

#dashboard h2,
#publish h2 {
    margin: 15px;
    margin-bottom: 8px;
    margin-top: 50px;
}

.progress {
    background: var(--ui-button-color);
    margin: 50px;
    bottom: 0;
    position: absolute;
    width: calc(100vw - 100px);
    border-radius: 10px;
    overflow: hidden;
    border: var(--ui-button-hover-color) solid 1px;
}

.progressContent {
    background: dodgerblue;
    animation: infinite 1s cubic-bezier(0.9, 0.7, 0.5, 0.9) progressbar;
    transition: none;
    height: 10px;
}

#updateText {
    text-align: center;
    width: 100vw;
    display: block;
    position: absolute;
    bottom: 75px;
}

.splashLogo {
    width: 25vw;
    border-radius: 10px;
    margin-top: 40px;
}

#updater {
    text-align: center;
}

.splashright {
    float: right;
    width: calc(65vw - 1px);
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--ui-button-color);
    border-left: var(--ui-button-hover-color) solid 1px;
}

.splashright span {
    z-index: 10;
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

.splashright i {
    font-size: 100;
    opacity: 0.05;
    position: absolute;
    transform: translate(-50%, -50%);
}

.splashright button {
    margin: 25px;
    margin-bottom: 0;
    height: calc(50% - 38px);
    background: var(--ui-base-color);
    border: var(--ui-button-hover-color) solid 1px;
}

.splashleft {
    float: left;
    width: 35vw;
    background-image: url('../splash.png');
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: darken; 
    background-size: cover;
    background-position: center center;
    height: 100vh;
    text-align: center;
    display: flex;
    justify-content: center;
    place-items: center;
    padding: 10px;
    box-sizing: border-box;
}

@keyframes progressbar {
    0% {
        float: left;
        width: 0%;
    }

    50% {
        float: left;
        width: 100%;
    }

    51% {
        float: right;
        width: 100%;
    }

    100% {
        float: right;
        width: 0%;
    }
}