@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;700&family=Noto+Sans+JP:wght@500;900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', 'Noto Sans JP', sans-serif;
    /* outline: dashed 1px; */
}
body {
    background-color: white;
    width: 100vw;
    height: 100vh;
    position: fixed;
    overflow: hidden;
}
p {
    font-size: 20px;
}
header {
    margin-left: auto;
    margin-right: auto;
    width: 85vw;
    height: 13vh;
    display: flex;
    align-items: center;
    gap: 20px;
}
#cromite {
    display: flex;
    align-items: baseline;
    gap: 20px;
}
header h1 {
    font-size: 40px;
}
main {
    margin-left: auto;
    margin-right: auto;
    height: 80vh;
    width: 85vw;
    display: flex;
    gap: 10px;
}
/* main * {
    display: none;
} */
footer {
    color: #777;
    line-height: 7vh;
    height: 7vh;
    text-align: center;
}


#panel {
    height: 100%;
    width: 30%;
    min-width: 320px;
    background-color: #f0f0f0;
    padding: 10px 30px 30px;
    border-radius: 30px;
    margin-bottom: 10px;
}
/* #login {
    display: none;
} */
#login p {
    margin-top: 10px;
}
#login p.error {
    margin: 0;
    color: red;
    font-size: 16px;
}
input {
    background-color: white;
    width: 100%;
    border: none;
    outline: none;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 18px;
}
#login_selection {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
}
button {
    font-size: 18px;
    border-radius: 8px;
    padding: 7px 15px;
    cursor: pointer;
    border: solid 2px #1E1EFF;
}
.outline {
    background-color: #f0f0f0;
    color: rgb(19, 19, 255);
}
.outline:hover {
    background-color: #1E1EFF;
    color: #fff;
}
.fill {
    color: white;
    background-color: #1E1EFF;
}
.fill:hover {
    background-color: #5a5aff;
    border: solid 2px #5a5aff;
}

#server {
    display: none;
}
#server p {
    white-space: nowrap;
}
#tgs {
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
#server .top {
    margin-top: 20px;
}
#server input {
    padding: 2px 8px;
    border-radius: 6px;
    text-align: right;
}


#directory {
    height: 100%;
    width: 70%;
    min-width: 530px;
    background-color: #f0f0f0;
    padding: 10px 30px 30px;
    border-radius: 30px;
}
div#ifs {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* div#ifs * {
    outline: dashed 1px;
} */

#tools {
    display: flex;
}
#tools div {
    border-radius: 5px;
    height: 35px;
    width: 35px;
    background-repeat: no-repeat;
    background-size: 70%;
    background-position: center;
    border: solid 1px #f0f0f0;
}
#tools div.on {
    cursor: pointer;
}
#tools div.on:hover {
    background-color: #e6e6ff;
    border-color: #d6d6ff;
}

#items {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}
#items p {
    white-space: nowrap;
}

#barbg {
    background-color: #ccc;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}
#bar {
    background-color: #1E1EFF;
    width: 0;
    height: 10px;
}
input#adds {
    display: none;
}

#dir {
    background-image: url('./img/no-results.png');
    background-repeat: no-repeat;
    background-size: 20%;
    background-position: center;
    height: calc(100% - 106px);
    border-radius: 8px;
    overflow-y: scroll;
    background-color: white;
    padding: 10px;
}
#dir::-webkit-scrollbar {
    width: 15px;
}
#dir::-webkit-scrollbar-thumb {
    width: 15px;
    border: solid 2.5px #fff;
    border-radius: 8px;
    background-color: #ccc;
}
#dir div#file {
    /* outline: dashed 1px; */
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
div#file.hover {
    background-color: #f0f0ff;
}
div#file.forcus {
    background-color: #e6e6ff;
    outline: solid 1px;
}

#dir div p {
    /* outline: dashed 1px; */
    font-size: 18px;
    line-height: 130%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    gap: 10px;
}
#dir div p#type {
    width: 35%;
    color: #888;
}
#dir div p#size {
    margin-right: 1%;
    width: 14%;
    color: #888;
    text-align: right;
}
#dir div p#name {
    background-image: url('./img/application.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position-x: 2%;
    width: 50%;
    padding-left: 35px;
}

#details {
    margin: 10px 0;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 10px;
}
#details p {
    white-space: nowrap;
}
/* #details * {
    outline: dashed 1px;
} */
#hsf {
    display: flex;
    align-items: center;
    gap: 10px;
}
#patharea {
    background-color: #fff;
    display: flex;
    border-radius: 8px;
    width: 100%;
    padding: 4px 10px;
}
#patharea * {
    font-size: 18px;
}
#path {
    background: none;
    font-size: 18px;
    border-radius: 0;
    width: 100%;
    padding: 0;
}

.toggle{
    height: 30px;
    width: 50px;
    cursor: pointer;
    position: relative;
    border-radius: 15px;
    transition: all 0.3s;
    background-color: #1111ff;
}
.toggle::before {
    transition: all 0.3s;
    left: 40%;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    border-radius: 100%;
    content: "";
    margin-left: 6%;
    border: 12px solid #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
.toggle.active::before{
    transition: all 0.3s;
    left: 0;
}
.toggle.active {
    transition: all 0.3s;
    background-color: #ccc;
}




#back {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.74);
    z-index: 1;
}
#error {
    display: none;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f0f0f0;
    padding: 20px;
    padding-bottom: 30px;
    border-radius: 35px;
    width: min-content;
}
#close {
    cursor: pointer;
    width: 15px;
    height: 15px;
    margin-left: auto;
    background-image: url('./img/close.png');
    background-size: contain;
}
#error p {
    width: min-content;
    white-space: nowrap;
    text-align: center;
    margin: 0 10px 10px;
    padding-left: 40px;
    background-image: url('./img/warning.png');
    background-repeat: no-repeat;
    background-size: contain;
}

#edit {
    display: none;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background-color: #f0f0f0;
    padding: 10px 30px;
    border-radius: 30px;
}
#edit p {
    text-align: center;
}
#edit #edits {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 10px;
}
#edit #font_size {
    margin: 0;
    margin-right: auto;
    width: 65px;
    background-color: white;
    border: none;
    outline: none;
    padding: 4px 4px 4px 10px;
    border-radius: 8px;
    font-size: 18px;
}
#edit #content {
    margin-top: 10px;
    background-color: white;
    border: none;
    outline: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-family: monospace;
    height: calc(100% - 100px);
    width: 100%;
    overflow-y: scroll;
    resize: none;
}
#edit #content::-webkit-scrollbar {
    width: 15px;
}
#edit #content::-webkit-scrollbar-thumb {
    border: solid 2.5px #fff;
    border-radius: 8px;
    background-color: #ccc;
}

#msg {
    display: none;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30vw;
    height: 30vh;
    background-color: #f0f0f0;
    padding: 10px 30px;
    border-radius: 30px;
}
#msg_selection {
    display: flex;
    justify-content: space-between;
}