:root {
    --fresh-orange-bg-image: linear-gradient(45deg, #ff005e, #ffb000);
    --light-purple-bg-image: linear-gradient(140deg, rgb(207, 47, 152), rgb(106, 61, 236));
    --especially-pink-bg-image: linear-gradient(-225deg, rgb(255, 226, 159) 0%, rgb(255, 169, 159) 48%, rgb(255, 113, 154) 100%);
    --chinese-bamboo-bg-image: linear-gradient(140deg, rgb(89, 212, 153), rgb(160, 135, 45));
    --deep-space-bg-image: linear-gradient(140deg, rgb(189, 227, 236), rgb(54, 54, 84));
    --dark-vader-bg-image: linear-gradient(140deg, rgb(51, 51, 51), rgb(24, 24, 24));
    --white-malevich-bg-image: linear-gradient(140deg, #ffffff, #cfcece);
    --transparent-bg-image: linear-gradient(140deg, #ffffff00, #ffffff00);

    --main-bg-image: var(--fresh-orange-bg-image);
}

.apply-bg-image {
    background-image: var(--main-bg-image);
}

.no-select {
    user-select: none;
}
    
html {
    height: 100%;
}

body {
    --icons-size: 12px;
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    /* height: 100%; */
}

#box-container{
    height: 100%;
    width: 100%;
    z-index: -2;
    position: absolute;
}


#fade-background {
    height: 100%;
    width: 100%;
    z-index: -1;
    position: absolute;
    background-color: rgb(53 50 56 / 50%);
    background-image: radial-gradient(rgb(53 50 56), 0.7px, #ffffff00 1px);
    background-size: 14px 14px;
}

main {
    padding: 7em;
}


.box-wrapper {
    /* border: 3px dashed rgb(53 50 56 / 40%); */
    /* border-radius: 5px; */
}

.box-canvas {
    padding: 64px;
    /* border: 3px rgb(53 50 56 / 25%); */
    /* border-style: dashed; */
    border-radius: 5px;
    background-image: var(--main-bg-image);
}

.box-window {
    /* height: 150px; */
    /* width: 400px; */
    background: #1e1924;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, .5)
}


.icons {
    height: var(--icons-size);
    width: var(--icons-size);
    background: #ffc529;
    border-radius: 50%;
    position: absolute;
    left: 32px;
    top: calc(50% - 6px);
}

.icons::before {
    content: "";
    display: block;
    height: var(--icons-size);
    width: var(--icons-size);
    background: #ff1c51;
    border-radius: 50%;
    position: absolute;
    right: 160%;
}

.icons::after {
    content: "";
    display: block;
    height: var(--icons-size);
    width: var(--icons-size);
    background: #00e344;
    border-radius: 50%;
    position: absolute;
    right: -160%;
}

.header {
    height: 30px;
    width: 100%;
    background: #353238;
    position: relative;
}


.CodeMirror {
    min-height: 150px;
    min-width: 400px;
    height: 150px;
    height: fit-content;
    width: 400px;
    resize: both;
}

.CodeMirror-scroll {
    /* overflow: scroll!important; // showing white vertical line in image */
    overflow: hidden !important;
}

.CodeMirror-gutter-wrapper {
    user-select: none; /* for export to svg */
}

.dropdown-menu .dropdown-item {
    cursor: pointer;
}

.dropdown-menu .dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: bold;
}

.dropdown-menu.language-menu {
    columns: 4;
    column-gap: 0;
    width: auto;
    min-width: 300px;
}

.dropdown-menu.language-menu li {
    break-inside: avoid;
    page-break-inside: avoid;
}

.toolbar {
    position: fixed;
    bottom: 0;
    /* Adjust this value as needed to create space from the bottom edge */
    left: 0;
    right: 0;
    margin: 0 auto 20px;
    max-width: 850px;
    background-color: rgb(53 50 56 / 95%);
    color: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toolbar label {
    color: darkgray;
    display: block;
    font-size: 0.8em;
    font-family: monospace;
}
.toolbar label .autoSelectLanguage {
    color: rgb(169 169 169 / 60%); /*darkgray*/
}

.toolbar select,
.toolbar input,
.toolbar button {
    margin-top: 5px;
}

.toolbar select {
    padding: 5px;
    border-radius: 5px;
    border-width: 2px;
    cursor: pointer;
}

.toolbar .switcher button {
    padding: 5px 5px 5px 10px;
    background-color: rgb(53 50 56);
    border-color: rgb(83 79 88);
    border-width: 2px;
}
.toolbar .switcher span.bg-image-preview {
    width: 25px;
    height: 25px;
    display: inline-block;
    margin-right: 5px;
}

.toolbar label.dark-switcher {
    margin: 0px 10px 15px 0;
}

.toolbar .padding-options button {
    margin: 0 2px;
    background: transparent;
    border: none;
}

.toolbar .padding-options button.active {
    background: #212529;
}

.toolbar .padding-option {
    cursor: pointer;
}

.toolbar .form-check-input:focus {
    border-color: gray;
    outline: 0;
    box-shadow: 0 0 0 0.25rem #8080801f;
}

.toolbar .form-check-input:checked {
    background-color: gray;
    border-color: gray;
}

.toolbar .form-check-input:focus:not(:checked) {
    --bs-form-switch-bg: unset;
}