@font-face{
    font-family: 'Wanted Sans Std';
    src: url('./WantedSansStd-Regular.otf');
}
*{
    -webkit-tap-highlight-color: transparent;
}
body{
    font-family: 'Wanted Sans Std','Noto Sans SC';
    color: #303030;
    background-color: #E6E6E6;
    margin: 0;
    padding: 0;
}
a[href], a[href]:active{
    color: seagreen;
    text-decoration: underline seagreen 2px;
    transition: all 0.3s cubic-bezier(0.3, 0.35, 0, 1.00);
}
a[href]:hover{
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.3, 0.35, 0, 1.00);
}
.controls-bar,.add-bar,.material-icons,.material-icons-outlined{
    user-select: none;
}

.controls-bar,.add-bar{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 114514;
    background-color: white;
    border-radius: 15px;
    gap: 5px;
    padding: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}
.controls-bar{
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.controls-bar button,.add-bar button{
    font-size: 30px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    aspect-ratio: 1/1;
}
.controls-bar button.selected-controls,.add-bar button.selected-add{
    background-color: lightseagreen;
    color: white;
    transition: all 0.3s cubic-bezier(0.3, 0.35, 0, 1.11);
}
.add-bar{
    transform: translateX(-50%) translateY(calc(100% + 10px));
}
.menu, .editpanel, .aipanel{
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
    background-color: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(114.514%);
    z-index: 114514191810;
    padding: 20px;
    width: 65vw;
    max-height: 70vh;
    transition: all 0.3s cubic-bezier(0.3, 0.35, 0, 1.00);
    overflow-y: auto;
}
.menu.show, .editpanel.show, .aipanel.show{
    transform: translateX(-50%) translateY(0);
    transition: all 0.3s cubic-bezier(0.3, 0.35, 0, 1.00);
    /* transition: all 0.3s cubic-bezier(0.38, 0, 0.19, 1.03); */
}
.as-list{
    list-style: none;
    gap: 5px;
    padding: 0;
}
.as-list li{
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 10px;
    padding: 2.5px;
    cursor: pointer;
    height: 40px;
}
.as-list li:hover{
    background-color: #d3d3d3;
}
#canvas{
    width: 100%;
    height: 100%;
    position: fixed;
}

.celledit-ctrlcont{
    margin: 5px;
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    height: 35px;
    box-sizing: border-box;
}
.celledit-ctrlcont p{margin: 0;}
.celledit-ctrlcont input, .celledit-ctrlcont textarea{width: 70%;}
.celledit-ctrlcont input[type="range"]{cursor: pointer;}
.celledit-ctrlcont textarea{
    border-radius: 18px;
    padding: 5px;
    border: 2px solid #ccc;
    resize: none;
    transition: all 0.1s cubic-bezier(0.76, 0.08, 0.71, 0.91);
    box-sizing: border-box;
    font-family: 'Wanted Sans Std','Noto Sans SC';
}
.celledit-ctrlcont textarea:focus{
    outline: none;
    border-radius: 7px;
    border: 3px solid lightseagreen;
    transition: all 0.1s cubic-bezier(0.76, 0.08, 0.71, 0.91);
    box-sizing: border-box;
}
.celledit-btn{
    right: 65px;
    display: inline-block;
    position: absolute;
    width: 40px;
    height: 30px;
    border-radius: 10px;
    border: none;
    background-color: #efefef;
    color: black;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
    animation: all 0.3s cubic-bezier(0.3, 0.35, 0, 1.00);
}
.celledit-btn:hover{
    box-shadow: 0px 1px 7px rgba(0, 0, 0, 0.5);
    animation: all 0.3s cubic-bezier(0.3, 0.35, 0, 1.00);
}
.celledit-btn:active{
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.7);
    animation: all 0.3s cubic-bezier(0.3, 0.35, 0, 1.00);
}

.floating-merge-tip{
    position: fixed;
    right: 25px;
    bottom: -70px;
    z-index: 114514191810;
    background-color: white;
    border-radius: 10px;
    width: 100px;
    height: 40px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    user-select: none;
    transition: all 0.15s cubic-bezier(0.3, 0.35, 0, 1.00);
}
.floating-merge-tip.show{
    bottom: 25px;
    transition: all 0.15s cubic-bezier(0.3, 0.35, 0, 1.00);
}
.floating-zoom{
    position: fixed;
    left: 25px;
    bottom: 25px;
    z-index: 114514;
    background-color: white;
    border-radius: 10px;
    width: 35px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    user-select: none;
    transition: all 0.15s cubic-bezier(0.3, 0.35, 0, 1.00);
}
.floating-zoom button{
    border-radius: 5px;
    border: 0;
    aspect-ratio: 1/1;
    padding: 0;
    background-color: #FFFFFF;
    width: 100%;
    font-size: 25px;
}
.floating-zoom button:nth-child(3){
    font-size: 17px;
    font-family: 'Wanted Sans Std';
}
.floating-zoom button:hover{
    background-color: lightgray;
    transition: all 0.15s cubic-bezier(0.3, 0.35, 0, 1.00);
}


.ai-settings{
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 10px
}
.ai-api-url, .ai-api-key, .ai-api-model, .ai-pmt-lang, .ai-pmt-type, .ai-pmt-include, .ai-pmt-stream, .ai-order{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    max-width: 100%;
}
.ai-api-url > p, .ai-api-key > p, .ai-api-model > p, .ai-pmt-lang > p, .ai-pmt-type > p, .ai-pmt-include > p, .ai-pmt-stream > p, .ai-order > p{margin: 0;margin-right: 7px;}
.ai-api-key > label, .ai-pmt-lang > label{margin-left: 2px;}
.ai-api-key > input, .ai-pmt-lang > input{margin-right: 2px;}
.ai-pmt-type > select{
    border-radius: 10px;
    border: 2px solid #ccc;
    white-space: pre-line;
    word-break: break-all;
}
.ai-pmt-lang{
    flex-wrap: wrap;
}
.ai-api-url > input, .ai-api-key > input, .ai-api-model > input, .ai-order > textarea{
    flex-grow: 1;
    border-radius: 18px;
    padding: 5px;
    border: 2px solid #ccc;
    resize: none;
    transition: all 0.1s cubic-bezier(0.76, 0.08, 0.71, 0.91);
    box-sizing: border-box;
    font-family: 'Wanted Sans Std','Noto Sans SC';
}
.ai-api-url > input:focus, .ai-api-key > input:focus, .ai-api-model > input:focus, .ai-order > textarea:focus{
    outline: none;
    border-radius: 7px;
    border: 2px solid lightseagreen;
    transition: all 0.1s cubic-bezier(0.76, 0.08, 0.71, 0.91);
    box-sizing: border-box;
}
.ai-order > textarea{
    height: 30px;
}
.ai-btns{
    display: flex;
    flex-direction: row;
    gap: 5px;
    flex-wrap: warp;
    justify-content: center;
    align-items: baseline;
}
.ai-btns > button{
    width: 40px;
    height: 30px;
    border-radius: 10px;
    border: none;
    background-color: #efefef;
    color: black;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
    animation: all 0.3s cubic-bezier(0.3, 0.35, 0, 1.00);
}
.ai-btns > button:hover{
    box-shadow: 0px 1px 7px rgba(0, 0, 0, 0.5);
    animation: all 0.3s cubic-bezier(0.3, 0.35, 0, 1.00);
}
.ai-btns > button:active{
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.7);
    animation: all 0.3s cubic-bezier(0.3, 0.35, 0, 1.00);
}
.ai-btns button:nth-child(3){
    background-color: palegreen;
}
.ai-btns button:nth-child(5){
    background-color: lightgreen;
}
.ai-btns > button[disabled]{
    background-color: white;
    border: 2px solid lightgray;
    box-shadow: none;
    cursor: not-allowed;
}
.ai-result{
    padding: 10px;
    border-radius: 10px;
    background-color: #e6e6e6;
    margin-top: 10px;
    white-space: pre-wrap;
}