:root{
    --top-height: 35px;
    --top-c: rgb(61, 62, 63);
}

body{
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    display: block;
}

#top{
    position: relative;
    z-index: 200;
    width: calc(100% - 10px);
    padding: 0 5px;
    height: var(--top-height);
    display: flex;
    flex-direction: row;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: space-between;
    background-color: var(--top-c);
    color: #fff;
}

#main{
    width: 100%;
    height: calc(100% - var(--top-height));
    /* border: 1px solid; */
}

#main .CodeMirror{
    width: 100%;
    height: 100%;
}

#top #cluster{
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#top #others{
    width: calc(100% - 300px);
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    /* border: 1px solid white; */
}

#top #filename{
    display: inline-block;
    white-space: nowrap;
    width: 120px;
    max-width: 120px;
    height: 20px;
    /* border: 1px solid white; */
    overflow: hidden;
    /* text-overflow: ellipsis; */
    font-family: Verdana;
    /* font-size: 22px; */
    font-size: 14px;
    cursor: pointer;
    /* border: 1px solid; */
    /* border: 1px solid white; */
    transition: background-color 200ms ease-in;
}

#top input#fni{
    border: 1px solid rgb(53, 88, 89);
    background-color: transparent;
    color: #fff;
    padding: 1px 4px;
    outline: none;
    height: 23px;
    font-size: 16px;
}

#top #filename:hover{
    background-color: #222;
}

.tag{
    display: inline-block;
    padding: 1px 2px;
    font-family: Georgia;
    border-radius: 4px;
    background-color: rgb(41, 42, 43);
    color: #ddd;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 200ms ease-in;
    font-family: Verdana;
    font-size: 12px;
}

.tag.neon{
    background: linear-gradient(to right, #555, #333) !important;
}

.tag.tneon{
    background: linear-gradient(to right, rgb(61, 87, 88), rgb(45, 141, 141)) !important;
}

.tag.read{
    background: linear-gradient(to right, rgb(61, 88, 68), rgb(71, 141, 45)) !important;
}
.tag.thanked{
    background: linear-gradient(to right, rgb(88, 61, 61), rgb(141, 45, 45)) !important;
}

.tag:hover{
    opacity: 0.7;
}

.tag.me{
    background-color: darkorchid;
}

.tag.save{
    /* background-color: rgb(255, 175, 78); */
    background-color: rgb(41, 42, 43);
}

.tag.tdemo{
    /* background-color: rgb(151, 195, 56) */
    background-color: rgb(41, 42, 43);
}

a.tag,
span.tag{
    font-size: 12px;
}

#top #others::-webkit-scrollbar{
    display: none;
}

#top #others .tag{
    margin-left: 3px;
}

/* side panel */
#side-panel{
    position: fixed;
    z-index: 100;
    height: 100vh;
    width: 225px;
    top: var(--top-height);
    right: 0;
    background-color: rgb(85, 85, 85);
    box-shadow: 0 0 5px #999;
}

#side-panel #side-panel-btn{
    z-index: 1000;
    position: absolute;
    left: -15px;
    top: calc(50% - 15px);
    width: 30px;
    height: 30px;
    background-color: rgb(90, 90, 90);
    box-shadow: 0 0 1px #777;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ddd;
    font-size: 12px;
    cursor: pointer;
}

#side-panel #side-panel-btn:hover{
    background-color: rgb(50, 50, 50);;
}

#side-panel.hide{
    transform: translateX(225px);
    box-shadow: none;
}

#side-panel.hide #side-panel-btn i{
    transform: translateX(-5px);
}

#side-panel #side-main{
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    color: #ddd;
    /* border: 1px solid red; */
}

#side-panel #side-main .side-main-title{
    width: 100%;
    height: 25px;
    background-color: rgb(56, 57, 58);
    color: #eee;
    font-family: monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    /* border: 1px solid red; */
}

#side-panel #side-main .side-main-title#sm-new-btn{
    background-color: inherit;
    text-decoration: none;
}

#side-panel #side-main .side-main-title#sm-new-btn i{
    margin-right: 5px;
}

#side-panel #side-main .side-main-title#sm-new-btn:hover{
    background-color: rgb(62, 63, 67);
}

#side-panel #side-main .side-code-area{
    width: 100%;
}

#side-panel #side-main .side-code-area a.code-item{
    display: block;
    width: calc(100% - 10px);
    height: 45px;
    padding: 5px;
    text-decoration: none;
    white-space: nowrap;
    color: #ddd;
    border-bottom: 2px solid rgb(65, 67, 78);
    transition: background-color 125ms ease-in;
    cursor: pointer;
    user-select: none;
}

#side-panel #side-main .side-code-area a.code-item.active{
    color: #fff;
}

#side-panel #side-main .side-code-area a.code-item.active .smc-label{
    text-decoration: underline;
}

#side-panel #side-main .side-code-area a.code-item .smc-label{
    width: 100%;
    height: 25px;
    font-size: 16px;
    font-family: Verdana;
}
#side-panel #side-main .side-code-area a.code-item .smc-time{
    text-align: end;
    font-family: monospace;
    font-size: 12px;
    opacity: 0.87;
}
#side-panel #side-main .side-code-area a.code-item:hover{
    background-color: #444;
}