@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-size: 16px;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

canvas {
    position: absolute;
    left: 0;
    top: 0;
}

#menuCanvas {
    z-index: 2;
    position: fixed;
}

#usernameInput {
    position: fixed;
    z-index: 3;

    width: 15%;
    height: 5%;
    border: 3px solid #efefef;
    padding: 2px;
    color: #000;
    font-family: 'Ubuntu';
    font-weight: 600;
    outline: 0;
    border-radius: 4px;
    text-align: center;

    outline: 3px solid #000;

    background-color: rgba(0, 0, 0, 0);
    /* border: black; */

    text-shadow: -1px -1px 0 rgba(255,255,255,0.8),  
    1px -1px 0 rgba(255,255,255,0.8),
    -1px 1px 0 rgba(255,255,255,0.8),
     1px 1px 0 rgba(255,255,255,0.8);

    font-size: 1.7vw;
    /* transition: 0.3s; */
}

 /* #usernameInput :hover {
    
    opacity: 0.5;
} */
/* transform: translate(-50%, -50%) scale(2,2); */


/*--- Editor styles ---*/


.gui {
    position: absolute;
    left: calc(100vw - 300px);
    top: 0px;
    min-width: 300px;
    max-height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    /* background: red; */
    z-index: 1000;
    background: black !important;

    font-family: 'Ubuntu';
    font-weight: 500;
}

.or,
.ro {
    font-size: 1.4rem;
    position: relative;
    transform-origin: center;
    /* transform-origin: top left; */
    /* top: -5px; */
    left: -2px;
}

.ro {
    transform: rotate(90deg);
    animation: animR 0s linear;
    left: -4px;
}

.or {
    transform: rotate(0deg);
    animation: animO 0s linear;
    top: 2px;
    /* left: -4px; */
    /* left: 1px; */
}

@keyframes animO {
    0% {
        transform: rotate(90deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes animR {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(90deg);
    }
}

.data-gui {
    /* background: var(--gui-bg); */
    width: 300px;
    z-index: 1000;
    /* background: var(--bg); */
}

.folder-content {
    /* background: var(--gui-bg); */
    width: 300px;
    margin-left: 10px;
}

.folder-button {
    cursor: pointer;
    border: none;
    outline: none;
    background: var(--gui-alt);
    color: white;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 300px;
    height: 30px;
    font-size: 0.9rem;
    padding: 10px;
    user-select: none;
}

.property {
    width: 300px;
    height: 30px;
    border: none;
    border-bottom: 1px solid var(--gui-alt);
    /* border-left: 1px solid red; */
    padding: 5px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: var(--gui-bg);
}

.property-name {
    color: white;
    font-size: 0.8em;
}

.property-checkbox-input {
    outline: none;
    border: none;
    cursor: pointer;
    position: absolute;
    left: 150px;
}

.property-long-text-input {
    border: none;
    outline: none;
    resize: none;
    width: 75% !important;
    height: 500px !important;
    font-family: "Inter";
    font-weight: 800;
    background: var(--gui-light);
    color: white;
    font-size: 0.8rem;
    position: absolute;
    right: 0px !important;
    padding: 5px;
    padding-right: 0;
    align-items: top;
}

/* The switch - the box around the slider */
.switch {
    position: absolute;
    left: 212.5px;
    display: inline-block;
    width: calc(60px * 0.75);
    height: calc(34px * 0.75);
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(38, 38, 38);
    /* -webkit-transition: .4s;  */
    /* transition: .4s;  */
    border-radius: 34px;
    transform: scale(0.8);
}

.slider:before {
    position: absolute;
    content: '';
    height: 26px;
    width: 26px;
    /* left: 4px;
  bottom: 4px; */
    background-color: #ffffff;
    /* -webkit-transition: .4s; */
    /* transition: .4s; */
    border-radius: 50%;
}

input:checked + .slider {
    /* background-color: #2196F3; */
    background-color: #b0b0b0;
}

input:focus + .slider {
    box-shadow: 0 0 1px rgb(33, 33, 33); /*#2196F3;*/
}

input:checked + .slider:before {
    /* -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px); */
    transform: translateX(calc(26px * 0.75));
}

.inputChecked {
    background-color: #b0b0b0;
    /*transform: translateX(calc(26px * 0.75));*/
}

.inputChecked::before {
    transform: translateX(calc(26px * 0.75));
}

.property-text-input {
    border: none;
    outline: none;
    width: 125px;
    background: var(--gui-light);
    color: white;
    font-size: 0.8rem;
    height: 20px;
    position: absolute;
    right: 5px;
    padding: 5px;
}

.property-option-input {
    border: none;
    outline: none;
    width: 125px;
    background: var(--gui-light);
    color: white;
    font-size: 0.8rem;
    height: 20px;
    position: absolute;
    right: 5px;
    margin: 0;
    /* 	padding: 5px; */
    /* 	padding-top: 2.5px; */
    cursor: pointer;
}

.select-items {
    border: none;
    outline: none;
    background: var(--gui-bg);
    font-size: 1rem;
}

.directional-button-container {
    border: none;
    outline: none;
    right: 5px;
    width: 125px;
    background: var(--gui-light);
    height: 20px;
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dir-btn {
    outline: none;
    border: none;
    border-radius: 2px;
    width: 30px;
    height: 20px;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: white;
    transition: background 0.2s linear;
}

.dir-btn:hover {
    background: lightgray;
}

.dir-btn span {
    position: relative;
    color: black;
}

.dir-selected {
    background: gray !important;
}

.dir-btn .up {
    transform: rotate(-90deg);
}

.dir-btn .down {
    transform: rotate(90deg);
}

.dir-btn .left {
    transform: rotate(180deg);
}

.dir-prop {
    width: 50px;
    right: 175px;
    background: transparent;
    font-size: 1.2rem;
}

::-webkit-color-swatch,
::-moz-color-swatch {
    border-color: transparent;
}

.color-label {
    color: white;
    border: none;
    outline: none;
    width: 125px;
    cursor: pointer;
    height: 20px;
    position: absolute;
    right: 5px;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.property-color-input {
    border: none;
    outline: none;
    width: 125px;
    user-select: none;
    pointer-events: none;
    opacity: 0;
    height: 20px;
    position: absolute;
    right: 5px;
}

.property-button-input {
    padding: 5px;
    width: 250px;
    height: 27.5px;
    color: white;
    font-size: 0.85rem;
    background: var(--bg);
    cursor: pointer;
    transition: opacity 0.1s linear;
    border: none;
    outline: none;
    /*margin-right: 5%;*/
    border-radius: 1px;
    width: calc(100% - 10px);
}

.property-button-input:hover {
    background: var(--bg-hover);
}

.toggle-gui {
    cursor: pointer;
    border: none;
    outline: none;
    background: var(--gui-bg);
    color: white;
    width: 300px;
    height: 30px;
    font-size: 0.9rem;
    user-select: none;
}

.hidden {
    display: none !important;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type='number'] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.inputError {
    box-shadow: 0px 0px 15px #c70000;
}

/*--- Chat Styles ---*/


.chat {
    position: fixed;
    left: -1px;
    bottom: 0;
    width: 365px;
    /* height: 30px; */
    transform-origin: center center;
    border: none;
    outline: none;
    color: white;
    padding: 2px;
    caret-color: white;
    background: rgba( 34, 34, 34, .1 );
    border-radius: 3px;
    font-weight: 900;
    font-family: 'Ubuntu', sans-serif;
    font-size: 15px;
    opacity: 0;
    text-shadow: -1px -1px 0 rgba(0,0,0,0.8),  
    1px -1px 0 rgba(0,0,0,0.8),
    -1px 1px 0 rgba(0,0,0,0.8),
     1px 1px 0 rgba(0,0,0,0.8);
}

.chat-div {
    position: fixed;
    left: -1px;
    bottom: 2rem;
    width: 365px;
    height: 10rem;
    display: flex;
    flex-direction: column-reverse;
    overflow-y: auto;
    padding: 2px;
    overflow-x: hidden;
    background: rgba(0,0,0,0);
    font-weight: 900;
    font-family: 'Ubuntu', sans-serif;
}

.chat-message {
    color: white;
    font-size: 15px;
    background: transparent;
    padding: 0px;
    margin: 0;
    overflow-wrap: break-word;
    width: 100%;
    user-select: none;
    text-shadow:
   -1px -1px 0 rgba(0,0,0,0.8),  
    1px -1px 0 rgba(0,0,0,0.8),
    -1px 1px 0 rgba(0,0,0,0.8),
     1px 1px 0 rgba(0,0,0,0.8);
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.15);
    border-radius: 2px;
}

.hideChat {
    left: -175px !important;
    opacity: 0; 
}