/* :root {
    --primary-color: #F7D800;
    --primary-color-hover: #d7bb01
} */

* {
    margin: 0;
    padding: 0;
}

.block{
    justify-content: center !important;
    align-items: center !important;
}

.modal-question{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.modal-question img{
    max-height: 150px;
    max-width: 150px;
    aspect-ratio: 1;
}

.my-small-modal .gjs-mdl-dialog {
    max-width: 300px;
}

.modal-import-code {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: space-around;

}

.modal-import-code div {
    background-color: #322931;
    min-width: 45%;
    min-height: 300px;
    margin-bottom: 2rem;
    overflow: scroll;
}
.modal-import-code div :not(p){
    padding: 10px;
}

.modal-import-code p {
    color: white;
    background-color: #444444;
    padding: 10px;
}
#import_code{
    padding: 10px;
    color: #B9A5A6;
    background-color: #594E50;
    border: none;
    transition: .3s ease-in-out;
    cursor: pointer;
}
#import_code:hover{
    filter: brightness(1.5);
}

.gjs-pn-devices-c{
    position: initial;
}


.gjs-pn-commands{
    display: flex;
}

.btn-toggle-device{
    font-size: 2.1em;
}


.miz-col{
    display: flex;

    .cell{
        width: 100%;
        min-height: 100px;
    }
}


.monaco-draggable-wrapper {
    transform: translate(-50% , -50%);
    position: absolute;
    z-index: 999;
    background: #2d2d2d;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 80vw;
    max-height: 80vh;
    width: 50%;
    height: 50%;
    min-width:300px;
}

.monaco-draggable-wrapper.minimized .monaco-header{
    border-radius: 8px;
}

.monaco-draggable-wrapper .monaco-header {
    cursor: move ;
    background: #1e1e1e ;
    padding: 15px 20px ;
    border-bottom: 1px solid #444 ;
    border-radius: 8px 8px 0 0 ;
    user-select: none ;
    display: flex ;
    justify-content: space-between ;
    align-items: center ;
}

.monaco-draggable-wrapper .monaco-header:hover {
    background: #2a2a2a ;
}

.monaco-draggable-wrapper .monaco-content {
    padding: 0 ;
    border-radius:0px 0px 8px 8px;
    overflow: hidden;
    min-width:300px;
    max-width: 80vw;
    max-height: calc(80vh - 63px);
}

.monaco-draggable-wrapper.dragging {
    transition: none ;
}

.monaco-close-btn {
    cursor: pointer ;
    color: #fff ;
    font-size: 18px ;
    padding: 5px ;
    border-radius: 4px ;
    transition: background 0.3s ;
}

.monaco-editor-container {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.monaco-editor-container .html-editor , .monaco-editor-container .css-editor {
    min-width: 20%;
    position: relative;
    flex-shrink: 0;
    flex-grow: 0;
}

.monaco-editor-container .html-editor {
    border-right: 1px solid #444;
}

.monaco-resize-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 6px;
    height: 100%;
    background: #444;
    cursor: col-resize;
    z-index: 10;
    transform: translateX(-50%);
    transition: all 0.1s ease;
    border-radius: 1px;
}

.monaco-resize-handle:hover {
    background: #666;
    width: 8px;
}

.monaco-resize-handle:active {
    background: #888;
    width: 8px;
}

.monaco-resize-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 20px;
    background: #888;
    transform: translate(-50%, -50%);
    border-radius: 1px;
}

#htmlEditor, #cssEditor, #resizer{
    height: 100%;
    transition: all .1s linear;
}

div:has(> #htmlEditor, > #cssEditor, > #resizer){
    display: flex;
    flex-direction: row;
    height: 100%;
}

#editorContainer {
    height: 30vh;
    width: 100%;
    border-radius: 5px;
    position: relative;
    display: flex;
}

#editor, #htmlEditor, #cssEditor {
    width: 50%;
    height: 100%;
}

#resizer {
    position: absolute;
    height: 100%;
    width: 5px;
    background-color: #474747;
    top: 0;
    right: 50%;
}

#containerResizer {
    position: absolute;
    width: 100%;
    height: 5px;
    background-color: #474747;
    top: -5px;
    cursor: ns-resize;
    opacity: 0;
    transition:  all .1s ease;
}

#containerResizer:hover, #resizer:hover{
    opacity: 1;
}

.editor-header{
    display: flex;
    justify-content: end;
    align-items: center;
    margin-top: 10px;
    
    div:first-child{
        order: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }
    div:last-child{
        display: flex;
        align-items: center;
        gap: 5px;
        button{
            font-family: var(--gjs-main-font);
            padding: 7px 9px;
            font-size: .7rem;
            border-radius: 4px;
            background: transparent;
            color: #fff;
            border: 1px solid;
            cursor: pointer;
            transition: .3s ;
            &:hover{
                color: #000;
                background: #fff;
                border-color: #fff;
            }
        }
    }
}

/* .section:empty,.container:empty,.block:empty,.div:empty{
    min-height: 150px;
} */

.resize-handle {
    position: absolute;
    width: 2vw;
    height: 2vw;
}

.resize-handle.top-left { top: 0; left: 0;transform: translate(-50% , -50%);  }
.resize-handle.top-right { top: 0; right: 0; transform: translate(50% , -50%); }
.resize-handle.bottom-left { bottom: 0; left: 0; transform: translate(-50% , 50%); }
.resize-handle.bottom-right { bottom: 0; right: 0; transform: translate(50% , 50%); }
.resize-handle.top {width: calc(100% - 2vw); top: 0; left: 50%; transform: translate(-50% , -50%); }
.resize-handle.bottom {width: calc(100% - 2vw); bottom: 0; left: 50%; transform: translate(-50% , 90%); }
.resize-handle.left {height: calc(100% - 2vw); left: 0; top: 50%; transform: translate(-50% , -50%); }
.resize-handle.right {height: calc(100% - 2vw); right: 0; top: 50%; transform: translate(90% , -50%); }
.resize-handle.cursor-ne{cursor: ne-resize;}
.resize-handle.cursor-nw{cursor: nw-resize;}
.resize-handle.cursor-n{cursor: n-resize;}
.resize-handle.cursor-e{cursor: e-resize;}