:root {
    --bg-color: #ededed;
    --text-color: #333333;
    --active-color: #dddddd;
    --p2nd-color: #dbdbdb;
}
@media (prefers-color-scheme: dark) {
    :root{
        --bg-color: #121212;
        --text-color: #e0e0e0;
        --active-color: #444444;
        --p2nd-color: #222222;
    }
}

body{
    background-color: var(--bg-color);
    height: 100vh;
    width: 100vw;
    box-sizing: border-box;
    margin: 0;
    color: var(--text-color);
    font-family: 'Google Sans', 'Noto Sans SC';
}
.body{
    background-color: var(--bg-color);
    height: 100vh;
    width: 100vw;
    box-sizing: border-box;
    padding: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--text-color);
    font-family: 'Google Sans', 'Noto Sans SC';
}

.menu{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.menu button{
    font-size: 12px;
    padding: 7px 12px;
    border: none;
    border-radius: 5px;
    background-color: var(--p2nd-color);
    color: var(--text-color);
    cursor: pointer;
    box-sizing: none;
    transition: all 0.2s cubic-bezier(0.3, 0.35, 0, 1.00);
}
.menu button:hover{
    background-color: var(--text-color);
    color: var(--p2nd-color);
    transition: all 0.2s cubic-bezier(0.3, 0.35, 0, 1.00);
    box-shadow: 0px 0px 5px var(--text-color);
}
.menu button:active{
    transform: scale(0.95);
    transition: all 0.2s cubic-bezier(0.3, 0.35, 0, 1.00);
}
.menu button.switch-on{
    border: 2px solid var(--text-color);
    font-size: 10px;
}
.menu button.switch-on:hover{
    background-color: var(--active-color);
    color: var(--text-color);
    transition: all 0.2s cubic-bezier(0.3, 0.35, 0, 1.00);
    box-shadow: none;
}
.menu button.switch-on:active{
    transform: none;
}
.menu button.switch-off{
    background-color: var(--bg-color);
    border: 2px solid var(--p2nd-color);
    font-size: 10px;
}
.menu button.switch-off:hover{
    background-color: var(--p2nd-color);
    color: var(--text-color);
    transition: none;
    box-shadow: none;
}
.menu button.switch-off:active{
    transform: none;
}

.workspace{
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    min-height: 0;
    flex: 1;
}
@media screen and (max-width: 768px) {
    .workspace{
        flex-direction: column;
    }
}
.editor{
    background-color: var(--p2nd-color);
    color: var(--text-color);
    border: 5px solid var(--active-color);
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
    font-size: 14px;
    resize: none;
    flex: 3;
    height: 100%;
    width: 100%;
}
.editor:focus{
    outline: none;
}
.ime{
    flex: 1;
    overflow-y: auto;
    max-height: 100%;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ime div{
    width: 100%;
    background-color: var(--p2nd-color);
    color: var(--text-color);
    border: 1px solid var(--active-color);
    border-radius: 5px;
    padding: 10px;
    box-sizing: border-box;
    font-size: 14px;
    flex-shrink: 0;
    white-space: pre-wrap;
}

.elon-hide{
    display: none;
}
.elon-show{
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.asking{
    position: fixed;
    transition: all 0.3s cubic-bezier(0.3, 0.35, 0, 1.00);
    bottom: 30px;
    width: 80%;
    display: flex;
    flex-direction: column;
    background-color: var(--p2nd-color);
    padding: 12px;
    border-radius: 15px;
}
.asking p{
    color: var(--text-color);
    padding: 0;
    margin: 10px 5px 0px 5px;
    white-space: pre-wrap;
}
input, textarea{
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
    box-sizing: border-box;
    resize: none;
    font-family: 'Google Sans', 'Noto Sans SC';
}
input:focus, textarea:focus{
    outline: none;
}
.asking-hide{
    position: fixed;
    bottom: -100%;
}
.setting{
    position: fixed;
    transition: all 0.5s cubic-bezier(0.3, 0.35, 0, 1.00);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    display: flex;
    flex-direction: column;
    background-color: var(--p2nd-color);
    padding: 15px;
    border-radius: 15px;
    gap: 10px;
    overflow-y: auto;
}
.setting p, .setting h1{
    margin: 0;
    font-weight: 400;
}
.setting.setting-hide{
    position: fixed;
    top: -100%;
}
.setting-item{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
.setting-item label{
    width: 15%;
}
.setting-default, .setting-save{
    background-color: var(--bg-color);
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.3, 0.35, 0, 1.00);
}