:root {
    font-family: Vazirmatn, system-ui, Avenir, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    font-weight: 400;

    --text-color: rgba(255, 255, 255, 0.87);
    --text-hilight: yellowgreen;
    --text-hilight-darker: #6a8d1e;

    --def-bg: #282c34;
    --darker-bg: #21252b;
    --lighter-bg: #353a45;
    --invert-bg: #cac5ba;
    --scrollbarbg: #21252b80;
    --scrollbar: #353a4560;

    --transition-duration: 500ms;

    background: var(--def-bg);
    color: var(--text-color);

    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;

}

::-webkit-scrollbar {
    height: 12px;
    width: 3px;
    background: var(--scrollbarbg);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar);
    -webkit-border-radius: 1ex;
}

::-webkit-scrollbar-corner {
    background: var(--darker-bg);
}

* {
    padding: 0;
    margin: 0;
    border-spacing: 0;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 200;
}

hr{
    margin-top: 3px;
    margin-bottom: 3px;
    border: 0;
    border-bottom: 1px solid var(--lighter-bg);
}

h1 {
    border-image-source: linear-gradient(to right, var(--lighter-bg), transparent);
    border-image-slice: 1;
    border-bottom: 2px solid;
}

a, a:hover {
    color: var(--text-color);
    text-decoration: none;
}

a:hover, a:visited:hover {
    color: var(--text-hilight);
}

select {
    background: transparent;
    color: var(--text-color);
    border: transparent;
    padding: 6px;
    border-bottom: 1px solid var(--lighter-bg);
    outline: none;
    -webkit-user-select: none;
    cursor: pointer;
    font-size: 16px;
}

select:focus {
    border-bottom: 1px solid var(--text-color);
}

select option {
    background: var(--darker-bg);
    font-size: 16px;
}

input {
    outline: none;
}

#app {
    display: grid;
    height: 100vh;
    grid-template-rows: 2em 2em 5fr 5fr 195px;
    grid-template-columns: repeat(18, 1fr) 30px;
}

#tabs {
    grid-column: 1 / 20;
    grid-row: 1;
}

#buttons {
    grid-column: 1 / 20;
    grid-row: 2;
    background: var(--darker-bg);
}

#components {
    background: var(--darker-bg);
    grid-column: 15 / 20;
    grid-row: 3;
    border: 1px solid var(--lighter-bg);
    overflow: hidden;
    position: relative;
}

#components.collapsed #components-available {
    display: none;
}

#components #components-available.list {
    padding: 4px;
}

#properties {
    background: var(--darker-bg);
    grid-column: 15 / 20;
    grid-row: 4;
    border: 1px solid var(--lighter-bg);
    border-bottom: 0;
    overflow: hidden;
    position: relative;
}

#properties.collapsed .properties {
    display: none;
}

#properties.collapsed, #components.collapsed {
    grid-column: 19 / 20;
}

#properties.collapsed h3, #components.collapsed h3 {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: var(--darker-bg);
    cursor: pointer;
}

#properties.collapsed h3 span, #components.collapsed h3 span {
    transform: rotateZ(90deg);
    display: block;
    padding: 2px 7px;
}

#properties.collapsed h3 i, #components.collapsed h3 i {
    display: none;
}

#main {
    grid-column: 1 / 15;
    grid-row: 3 / 5;
}

#logs {
    background: var(--darker-bg);
    grid-column: 1 / 20;
    grid-row: 5;
    border: 1px solid var(--lighter-bg);
    border-bottom: 0;
}

#logs.collapsed #logs-content {
    display: none;
}

#logs.collapsed h3 {
    background: var(--darker-bg);
    cursor: pointer;
}

#logs.collapsed i {
    display: none;
}

.r90deg {
    transform: rotateZ(90deg);
}

/*fix components*/
.Vue-Toastification__toast--warning div {
    color: darkred;
}

.button.active {
    box-shadow: inset 0 0 0 40px var(--text-hilight);
    color: var(--darker-bg);
}

.button.no-border-y {
    border-top: 0;
    border-bottom: 0;
}

.collapsed .sub-panel {
    display: none;
}

.container {
    max-width: 90%;
    margin: 1em auto;
}

.row-equal {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    grid-gap: .5rem;
}

.note {
    background: var(--darker-bg);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
}

.note:before {
    content: 'Note:';
    color: var(--text-hilight-darker);
}

.clearfix::after {
    content: " "; /* Older browser do not support empty content */
    visibility: hidden;
    display: block;
    height: 0;
    clear: both;
}

.spinner {
    animation-name: spin;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: 10s;
}

.modal {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
    background: #00000099;
    backdrop-filter: blur(4px);
}

.text-center {
    text-align: center;
}

.test-large {
    font-size: 100px;
}

@keyframes spin {
    0% {
        transform: rotateZ(0);
    }
    100% {
        transform: rotateZ(359deg);
    }
}

/* material components*/

.input-container {
    padding-top: .5em;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.input-container label {
    margin-bottom: 8px;
}

.input-container input,.input-container textarea {
    padding: 12px 16px;
    background-color: transparent;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.2s ease-in-out;
    border: 0;
    border-bottom: 1px solid var(--lighter-bg);
    max-width: 100%;
    width: 100%;
}

.input-container input:focus,.input-container textarea:focus {
    outline: none;
    background-color: var(--lighter-bg);
    color: var(--text-hilight);
    border-bottom: 1px solid var(--darker-bg);
}

.input-container input::placeholder,.input-container textarea::placeholder {
    color: #bfbfbf;
}


.circle-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--text-hilight-darker);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    overflow: hidden; /* hide overflow ripples */
    cursor: pointer;
    transition: var(--transition-duration);
    border: 0;
}

.circle-btn:hover {
    background: var(--text-hilight);
}

.circle-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background-color: transparent;
    transform: scale(0);
    animation: rippleEffect 1s linear;
    pointer-events: none; /* ignore pointer events */
    box-shadow: 0 0 5px 5px #000000aa;
    opacity: 1;
    overflow: hidden;
}

/* add icon styles */
.circle-btn i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    color: #fff;
    -webkit-text-stroke-color: var(--text-hilight-darker);
    -webkit-text-stroke-width: 1px;
    transition: var(--transition-duration);
}

.circle-btn:hover i{
    -webkit-text-stroke-color: var(--text-hilight);
}

.circle-btn.small {
    width: 35px;
    height: 35px;
}

.material-button {
    display: inline-block;
    background-color: var(--text-hilight);
    color: #ffffff;
    padding: 7px 10px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 1.5;
    border-radius: 4px;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
    transition: box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1), background-color 200ms cubic-bezier(0.4, 0, 0, 1);
}

.material-button:hover {
    background-color: var(--text-hilight-darker);
    box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 5px 8px 0 rgba(0, 0, 0, 0.14), 0 1px 14px 0 rgba(0, 0, 0, 0.12);
}

.material-button:focus {
    background-color: var(--text-hilight-darker);
    box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 5px 8px 0 rgba(0, 0, 0, 0.14), 0 1px 14px 0 rgba(0, 0, 0, 0.12);
    outline: none;
}

.material-button:active {
    background-color: var(--text-hilight-darker);
    box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
}

/*general class*/
.w-100 {
    display: block;
    width: 100%;
}

.grid-equal {
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
}

.m-auto {
    margin: auto;
}


/* ripple animation */
@keyframes rippleEffect {
    to {
        transform: scale(35);
        opacity: 0;
    }
}

/*fix components*/

.collapsible-content select{
    width: 100%;
}