:root {
    --pd-value: 1rem;
    --pd-value-2: .9rem;
    --txt-color: rgb(26, 28, 32);
    --logo-txt-cl: rgb(26, 67, 201);
    --grid-auto-row-vl: 20px;

    --bg-cl: #f5f5f5;
    --fg-cl: #ffffff;
    --fg-cl-2: whitesmoke;
    --section-bd-vl: .1px solid rgba(128, 128, 128, 0.315);
}

body.dark {
    --pd-value: 1rem;
    --pd-value-2: .9rem;
    --txt-color: rgb(231, 231, 231);
    --logo-txt-cl: rgb(26, 67, 201);
    --grid-auto-row-vl: 20px;
    --bg-cl: #121212;
    --fg-cl: #171717;
    --fg-cl-2: rgb(11, 11, 11);
    --section-bd-vl: .3px solid rgba(128, 128, 128, 0.167);
}

.kablammo-logo {
    font-family: "Kablammo", system-ui;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "MORF" 0;
}



* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    font-size: 1rem;
    color: var(--txt-color);
    user-select: none;
}

body {
    height: 100dvh;
    background-color: var(--bg-cl);
}

.app {
    height: 100%;
    display: grid;
    grid-template-columns: 400px auto;
    grid-template-rows: .06fr 1fr;
    gap: 0rem;
    position: fixed;
    width: 100%;
}

.header {
    width: 100%;
    height: 100%;
    background: var(--fg-cl);
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-block-end: var(--section-bd-vl);

}

.logo_cnt {
    display: flex;
    gap: .4rem;
    align-items: center;
}

.logoName {
    color: var(--logo-txt-cl);
}

.project_name_cnt {
    display: flex;
    align-items: center;
    height: 70%;
}

/*project name input*/
.project_name {
    width: 10rem;
    height: 100%;
    padding: .5rem;
    box-shadow: 0px 0px .3rem rgb(139, 138, 138);
    border-radius: .5rem;
    border: none;
    outline: none;
    text-align: center;
    color: gray;
    background: none;
}

/*Run button*/
.run_btn {
    width: 30px;
    height: 30px;
    border-radius: 5rem;
    box-shadow: 0px 0px .3rem rgb(139, 138, 138);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: #03303f;
    margin-inline-end: 1rem;
}

.run_ic {
    width: 20px;
    height: 20px;
}


.explorer {
    width: 100%;
    height: 100%;
    background: var(--fg-cl);
    padding: .5rem;
    display: grid;
    grid-template-columns: .2fr 1fr;
    border-inline-end: var(--section-bd-vl);
    overflow-x: auto;
    position: relative;
}

.explorer::-webkit-scrollbar {
    display: none;
}


.ex-gutter {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
    border: var(--section-bd-vl);

}

.ex-gutter > div {
    width: 90%;
    height: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.side_ic {
    width: 25px;
    height: 25px;
}

.side_bar_cnt {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.side_bar_cnt.expand {
    display: flex;
}

.side_bar_header {
    width: 90%;
    margin-block-start: 1rem;
    display: flex;
    justify-content: space-between;
}

.side_bar_cnt_child {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.side_bar_cnt_child img {
    width: 20px;
    height: 20px;
}

.open_folder_cnt {
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.open_folder_btn {
    width: 100%;
    padding: .4rem;
    background: rgb(0, 90, 226);
    color: white;
    font-size: 1rem;
    font-weight: bolder;
    border: none;
    border-radius: .5rem;
}

.open_folder_btn:hover {
    box-shadow: 0px 0px .3rem rgb(139, 138, 138);
}

.info_txt {
    color: gray;
    text-align: left;
}


.file_cnt {
    width: 90%;
    height: 100%;
    overflow-y: auto;

}

.file_lists_cnt {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.file_lists_cnt li {
    width: 100%;
    padding: .4rem;
    /* background: rgba(128, 128, 128, 0.26); */
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    text-wrap-mode: nowrap;

}

.file-item:active {
    border: 1px solid rgb(60, 60, 239);
    background: 1px solid rgba(60, 60, 239, 0.374);
}

.file_lists_cnt li img {
    width: 20px;
    height: 20px;
}


.editorFrame {
    width: 100%;
    height: 100%;
    background-color: var(--fg-cl);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.editor {
    width: 100%;
    height: 100%;
    background-color: var(--fg-cl-2);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

.editor .dp {
    color: rgba(128, 128, 128, 0.664);
    font-size: 2rem;
    mix-blend-mode: difference;

}

.dp_btn_cnt {
    margin-block-start: 1rem;
}

.dp_open_f_btn {
    background: rgba(128, 128, 128, 0.205);
    width: 10rem;
    padding: .5rem;
    border: .2px solid rgba(128, 128, 128, 0.642);
    border-radius: .4rem;
    color: gray;

}

.dp_open_f_btn span {
    color: gray;

}

.file_tabs_cnt {
    width: 100%;
    height: 3.5rem;
    display: flex;
    border-bottom: var(--section-bd-vl);
    padding-top: .2rem;
    gap: .3rem;
    overflow-x: auto;
}

.file_tabs_cnt::-webkit-scrollbar {
    display: none;
}

.tabs {
    padding: 1rem .3rem 1rem .3rem;
    border: var(--section-bd-vl);
    border-radius: .3rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    flex: 0 0 auto;
    background: none;
    color: rgb(48, 48, 48);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .3rem;
}

.tabs span {
    color: gray;
}

.tabs img {
    width: 20px;
    height: 20px;
    color: #062bb0;
}

.tabs.active {
    background: var(--fg-cl-2);
    box-shadow: none;
    border-top: 1px solid rgb(14, 69, 251);
    border-bottom: 1px solid var(--fg-cl-2);
}

.editorFrame::-webkit-scrollbar {
    display: none;

}


.terminal {
    width: 100%;
    height: 15rem;
    min-height: 1rem;
    background-color: var(--fg-cl);
    border-top: var(--section-bd-vl);
    position: relative;
}

.resizer_border {
    width: 10px;
    height: 100%;
    background: none;
    position: absolute;
    right: 0;
    cursor: w-resize;
    transition: background .3s ease .1s;
}

.resizer_border_2 {
    width: 100%;
    height: 10px;
    background: none;
    position: absolute;
    top: 0;
    cursor: n-resize;
    transition: background .3s ease .1s;
}

.resizer_border_hover:hover {
    background: rgba(6, 89, 232, 0.719);
}

.miniMap {
    width: 20px;
    height: 100%;
    background: transparent;

}

.footer {
    width: 100dvw;
    height: 2rem;
    border-top: var(--section-bd-vl);
    border-radius: 0rem;
    background-color: var(--fg-cl);
    position: fixed;
    bottom: 0;
    right: 0;
}

@media (max-width: 845px) {

    .app {
        grid-template-columns: 75px auto;
    }

    .side_bar_cnt {
        display: none;
    }

    .explorer {
        grid-template-columns: .2fr 1fr;
    }
}

@media (max-width: 600px) {
    .app {
        grid-template-columns: auto;
    }

    .explorer {
        display: none;
    }


    .logoName {
        display: none;
    }

}