body {
    /*background-color: #3C3F41FF;*/
    color: white;
    background-image: url('../images/bg.jpg');
    background-size: cover;
}
.toast-item {
    --toast-content-bgclr: rgba(1, 1, 24, 0.4);
    --toast-content-color: #affcec;
}

/*region 切换提交文本和提交文件*/
#text-input, #drop-zone {
    display: none;
}

.show-text #text-input {
    display: block;
}

.show-file #drop-zone {
    display: block;
}
/*endregion*/


/*region header*/
.header {
    width: 100%;
    height: 50px;
    margin-top: 40px;
    /*padding: 0 10px;*/
    line-height: 50px;
}

.header button {
    height: 40px;
    width: 120px;
    font-size: 20px;
    padding: 5px;
    color: white;
    background-color: #0059ff;
    border: none;
    border-radius: 20px;
    margin-right: 20px;
    cursor: pointer;
}
/*endregion*/

/*region input-container*/
.input-container {
    width: 100%;
    height: 300px;
}

.input-container .save-option {
    height: 24px;
    margin: 20px 0 10px 20px;
}

.input-container button {
    /*display: block;*/
    font-size: 19px;
    color: white;
    background-color: #34ccda;
    border: none;
    border-radius: 15px;
    cursor: pointer;
}

.copied {
    margin-right: 30px;
}

.save-success {
    visibility: hidden; /* Instead of display: none */
}

.input-container .text-edit {
    /*input-container.height - button.height - button.margin-bottom*/
    height: 266px;
}

textarea {
    /*textarea默认有padding,设置宽度就不方便,所以转换类型*/
    box-sizing: border-box;
    height: 100%;
    width: 100%;
    padding: 20px;
    border-radius: 10px;
    color: white;
    font-family: "JetBrains Mono";
    background-color: #2b2b2b;
    resize: none;
    white-space: nowrap;
}

textarea:focus {
    outline: none;
}
/*endregion*/

/*region 上传文件*/
#drop-zone {
    width: 300px;
    height: 200px;
    background-color: #262626;
    border: 2px dashed #ccc;
    border-radius: 20px;
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 20px;
    margin: 20px auto;
    cursor: pointer;
}

#drop-zone.drag-over {
    border-color: #f0f0f0;
    background-color: #000000;
}

/*endregion*/

/*region history-container*/
.history-container {
    margin-bottom: 200px;
}

.history-container h2 {
    font-size: 19px;
    color: #34ccda;
    padding-top: 15px;
    margin: 40px 20px 0 20px;
    border-top: solid 2px white;
}

.history-container ul {
    /*ul有默认padding-left:40px*/
    padding: 0 10px;
}

/*region each history*/
.history-container .history {
    margin-bottom: 20px;
}

/*region each historyHeader*/
.historyHeader {
    height: 25px;
    line-height: 25px;
    border-radius: 6px 6px 0 0;
    padding: 0 30px;
    background-color: #5a5b5b;
    display: flex;
    justify-content: space-between;
}

.historyInfo span {
    margin-right: 30px;
    font-size: 13px;
}

.historyHeader button {
    background-color: transparent;
    font-size: 14px;
    border: none;
    color: white;
    cursor: pointer;
}
/*endregion*/

.history-text {
    /*max-height要加在高度变化的根源元素上,而不是其父元素上*/
    max-height: 150px;
    box-sizing: border-box;
    padding: 0.3em 0.6em;
    border-radius: 0 0 6px 6px;
    background-color: #2b2b2b;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    overflow: auto;
}

/*endregion*/

/*endregion*/

/* region 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px; /* 横向滚动条 高度 */
}

::-webkit-scrollbar-track {
    background: #4c4f4f;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c2b7ab;
    border-radius: 4px;
    cursor: pointer;
}

::-webkit-scrollbar-thumb:hover {
    background: #e1dbdb;
}

::-webkit-scrollbar-corner {
    background-color: transparent;
}

/*endregion*/
