* {
    margin: 0;
    padding: 0;
    font-family: 'Josefin Sans';
    -webkit-tap-highlight-color: transparent;
}

/* josefin-sans-regular */

@font-face {
    font-family: 'Josefin Sans';
    font-style: normal;
    font-weight: normal;
    src: url('//lib.baomitu.com/fonts/josefin-sans/josefin-sans-regular.eot');
    /* IE9 Compat Modes */
    src: local('Josefin Sans'), local('JosefinSans-Normal'), url('//lib.baomitu.com/fonts/josefin-sans/josefin-sans-regular.eot?#iefix') format('embedded-opentype'),
        /* IE6-IE8 */
        url('//lib.baomitu.com/fonts/josefin-sans/josefin-sans-regular.woff2') format('woff2'),
        /* Super Modern Browsers */
        url('//lib.baomitu.com/fonts/josefin-sans/josefin-sans-regular.woff') format('woff'),
        /* Modern Browsers */
        url('//lib.baomitu.com/fonts/josefin-sans/josefin-sans-regular.ttf') format('truetype'),
        /* Safari, Android, iOS */
        url('//lib.baomitu.com/fonts/josefin-sans/josefin-sans-regular.svg#JosefinSans') format('svg');
    /* Legacy iOS */
}

/* pt-sans-regular */

@font-face {
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: normal;
    src: url('//lib.baomitu.com/fonts/pt-sans/pt-sans-regular.eot');
    /* IE9 Compat Modes */
    src: local('PT Sans'), local('PTSans-Normal'), url('//lib.baomitu.com/fonts/pt-sans/pt-sans-regular.eot?#iefix') format('embedded-opentype'),
        /* IE6-IE8 */
        url('//lib.baomitu.com/fonts/pt-sans/pt-sans-regular.woff2') format('woff2'),
        /* Super Modern Browsers */
        url('//lib.baomitu.com/fonts/pt-sans/pt-sans-regular.woff') format('woff'),
        /* Modern Browsers */
        url('//lib.baomitu.com/fonts/pt-sans/pt-sans-regular.ttf') format('truetype'),
        /* Safari, Android, iOS */
        url('//lib.baomitu.com/fonts/pt-sans/pt-sans-regular.svg#PTSans') format('svg');
    /* Legacy iOS */
}

body {
    background-repeat: no-repeat;
    background-attachment: fixed;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    background-size: cover;
    background-position: center;
}

body::-webkit-scrollbar {
    display: none;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes getDarker {
    from {
        background-color: #cecdcd59;
    }

    to {
        background-color: #cecdcdb7;
    }
}

#listBasePart {
    z-index: 900;
}

.listBasePart {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    background-color: #e8e8e8;
    align-items: center;
    animation: fade-in 0.245s;
    position: fixed;
}

.listBasePart>.mainPart {
    display: flex;
    width: 100vw;
    align-items: center;
}

.listBasePart .childPart {
    width: 80vw;
    max-width: 512px;
}

.listTable {
    background-color: #dddddd59;
}

.diskSpace {
    text-align: center;
}

.listTable :last-child>span {
    color: #757575;
}

.listTable .itemDivFather {
    margin: 8px;
    background-color: #cecdcd59;
    border-radius: 8px;
    padding: 0.625em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.listTable .itemDivFather>div:first-child {
    cursor: pointer;
    width: 96%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listTable .itemDivFather:hover {
    animation: getDarker 0.445s;
    background-color: #cecdcdb7;
}

.delButtom {
    cursor: pointer;
    position: relative;
}

.delButtom::before,
.delButtom::after {
    position: absolute;
    content: ' ';
    background-color: #9b9b9b;
    right: 6px;
    width: 2.5px;
    height: 16px;
}

.delButtom::before {
    transform: rotate(45deg);
}

.delButtom::after {
    transform: rotate(-45deg);
}

.listBasePart,
.basePart {
    min-height: 100vh;
    display: flex;
    max-width: 100vw;
    width: 100%;
    justify-content: center;
}

.listBasePart>div {
    margin: 15vh 0 15vh 0;
}

.basePart {
    background-color: #ffffffdc;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    max-height: 100dvh;
}

.mainPart {
    display: flex;
    max-width: 720px;
    width: 100%;
    flex-direction: column;
    /*background-color: #cbcbcb;*/
}

.childPart {
    padding: 16px;
    margin: 12px;
    border-radius: 16px;
}

.inputRange {
    display: flex;
    align-items: center;
    flex-direction: row;
    margin: 0 8px 0 8px;
    justify-content: center;
    flex-wrap: nowrap;
}

.originInput {
    background-color: #ffffff42;
    border-radius: 16px;
    padding: 4px;
    box-shadow: 0 0 14px 3px #dddddd8a;
    transition: ease-in-out box-shadow 0.234s;
}

.originInput:hover {
    box-shadow: -17px 0px 17px -12px rgba(0, 0, 0, 0.1), 17px 0px 17px -12px rgba(0, 0, 0, 0.1);
}

.opBar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 8px;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    color: #484848;
}

h1 {
    font-size: 250%;
}

.noMargin {
    margin: 0;
}

.noPadding {
    padding: 0;
}

.noteArea {
    border-radius: 8px;
    margin: 8px 8px 0 8px;
    padding: 8px;
}

#noteArea {
    word-break: normal;
    text-align: left;
    font-size: 1.1em;
    min-height: 70vh;
    max-height: 70vh;
    min-height: 70dvh;
    max-height: 70dvh;
    height: 100%;
    overflow-y: scroll;
    padding: 4px;
}

#noteArea,
#noteArea div {
    font-family: 'MiSans Medium';
    font-weight: 200;
}

#noteArea:focus-visible {
    outline: none;
}

#noteArea::-webkit-scrollbar {
    width: 10px;
}

#noteArea::-webkit-scrollbar-track {
    background: rgb(239, 239, 239);
    border-radius: 8px;
}

#noteArea::-webkit-scrollbar-thumb {
    background: #dddddd59;
    border-radius: 10px;
}

#noteArea::-webkit-scrollbar-thumb:hover {
    background: #bfbfbf;
}

.toastify {
    box-shadow: 0 3px 6px -1px rgba(0, 0, 0, 0.217), 0 10px 36px -4px rgba(98, 98, 98, 0.171);
    border-radius: 8px;
}

.keyInput {
    width: 100%;
    text-align: center;
    margin-bottom: 4px;
    background: transparent;
    border-radius: 8px;
    padding: 2px;
    padding-top: 4px;
}

.keyInput input {
    width: 100%;
    text-align: center;
    border: none;
    background: transparent;
}

.keyInput input:focus-visible {
    border: none;
    outline: none;
}

.ghIcon {
    max-height: 1em;
}

.nameInput {
    border: none;
    margin-top: 8px;
    height: 1.2em;
}

.nameInput:focus-visible {
    outline: none;
}

.noteTitleBar {
    align-items: baseline;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
}

#titleBar {
    color: #000000;
    word-break: break-all;
    word-wrap: break-word;
}

form {
    background-color: transparent;
}

.createNewNote {
    padding: 0 12px;
    background-color: #ffffff7a;
}

@keyframes getDarkerRed {
    from {
        background-color: #903c4b;
    }

    to {
        background-color: #840D23;
    }
}

.resetButtom {
    width: fit-content;
    background-color: #903c4b;
    padding: 1ex 1em 2px 1em;
    border-radius: 16px;
}

.resetButtom:hover {
    animation: getDarkerRed 0.445s;
    background-color: #840D23;
}

#resetKeyText {
    color: #fff;
}

.closeOverlayButtom {
    background-color: #cecdcd59;
    cursor: pointer;
    padding: 1ex 1em 2px 1em;
    width: 100%;
    text-align: center;
    margin-left: 8px;
    border-radius: 16px;
}

.closeMenuBar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.closeMenuBar a {
    display: block;
    color: #fff;
    padding: 8px;
    padding-bottom: 6px;
    background-color: #cecdcd59;
    border-radius: 16px;
    min-width: 4em;
    text-align: center;
}

.closeMenuBar div:first-child {
    margin-right: 8px;
}

.closeMenuBar div:first-child a {
    background-color: #903c4b;
}

.closeMenuBar div:last-child a {
    color: #777777;
    max-width: calc(512px - 24px - 4em);
    width: calc(80vw - 4em - 24px);

}



.closeOverlayButtom:hover {
    animation: getDarker 0.445s;
    background-color: #cecdcdb7;
}

.closeOverlayBar>div {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.selectBackground>form>div {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
}

.selectBackground>form>div>div:first-child {
    margin-right: 16px;
    background-color: #903c4b;
    width: 15%;
    min-width: 5em;
}

.selectBackground>form>div>div:first-child:hover {
    animation: getDarkerRed 0.445s;
    background-color: #840D23;
}

.selectBackground>form>div>div:first-child span {
    color: #fff;
    font-size: medium;
}

/* 选择图片按钮，兼图片位置 */
.selectBackground>form>div>div:last-child {
    width: 85%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position-x: center;
    background-position-y: center;
    padding: 0;
}

.standardButtom>form>div div,
.exportNote>form>div div,
.selectBackground>form>div div {
    background-color: #ffffff7a;
    padding: 8px 0 6px 0;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    width: calc(80vw + 24px);
    max-width: calc(512px + 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.exportNote>form>div div {
    max-width: calc(((80vw + 16px)/2));
    width: calc((512px + 8px)/2);
}

/* 重置背景按钮里面的字 */
.selectBackground>form>div>div>span {
    text-align: center;
    color: #757575;
    font-size: smaller;
    cursor: pointer;
    user-select: none;
}

#selectBackgroundText {
    padding: 4px;
    padding-bottom: 1px;
    border-radius: 8px;
    max-height: 30px;
}

.exportNoteText {
    font-size: smaller;
    color: #757575;
    user-select: none;
}

.exportNote,
.selectBackground {
    max-width: 536px;
    width: calc(80vw + 24px);
    margin: 12px;
    margin-top: 0;
    margin-bottom: 0;
}

.standardButtom>form>div div,
.exportNote>form>div div>div {
    background-color: #cecdcd59;
}

.standardButtom>form>div div>div:hover,
.exportNote>form>div div>div:hover {
    animation: getDarker 0.245s;
    background-color: #cecdcdb7;
}

.exportNote>form {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.selectBackground>form>div :last-child {
    width: auto;
}

#openMenuPage {
    color: #777777;
}

#closeOverlay {
    color: #777777;
}

.timeStampSpan {
    font-size: x-small;
    color: #777777;
    margin-left: 1em;
}



@keyframes warnInfoButtomHoverIn {
    from {
        box-shadow: 0 0 20px 5px #b7b7b761;
    }

    to {
        box-shadow: none;
    }
}

@keyframes warnInfoButtomHoverOut {
    from {
        box-shadow: none;
    }

    to {
        box-shadow: 0 0 20px 5px #b7b7b761;
    }
}


.warnInfoButtomArea {
    display: flex;
    width: 80vw;
    max-width: calc(512px + 12px);
    flex-wrap: nowrap;
    flex-direction: row;
}

#warnInfo {
    background-color: #840D23;
    z-index: 1000;
}

#warnInfo p,
#warnInfo h1 {
    color: #fff;
}

#warnInfo p {
    margin-top: 0.4em;
}

.standardInput,
.warnInfoButtom {
    margin-right: 8px;
    padding: 12px;
    padding-bottom: 8px;
    background-color: #ffffff;
    cursor: pointer;
    border-radius: 24px;
    animation: warnInfoButtomHoverIn 0.245s;
}

.standardInput {
    background-color: #e0e0e061;
    margin-bottom: 8px;
    transition: background-color 0.245s ease-in-out;
}

.standardInput:focus-within {
    background-color: #cdcdcd61;
}

.warnInfoButtom:hover {
    animation: warnInfoButtomHoverOut 0.245s;
    box-shadow: 0 0 20px 5px #b7b7b761;
}

.warnInfoButtom span {
    color: #000;
    user-select: none;
}

#warnInfoYes {
    width: fit-content;
    min-width: 3em;
    text-align: center;
}

#warnInfoNo {
    width: 100%;
    text-align: center;
}

#standardInput1,
#standardInput2,
#passwordInput {
    outline: none;
    border: none;
    background-color: transparent;
    width: 100%;
    height: fit-content;
    text-align: center;
}

#getPassword {
    z-index: 950;
    min-height: 100vh;
    min-height: 100dvh;
}

#getPassword h1 {
    color: #2d2d2d;
}

#standardWindow p,
#getPassword p {
    margin-top: 0.6em;
    color: #777777;
}

#forgetPasswordButtom {
    background-color: transparent;
    text-align: center;
    margin-top: 8px;
    width: fit-content;
}

@keyframes getToRed {
    from {
        background-color: transparent;
    }

    to {
        background-color: #840D23;
    }
}

#forgetPasswordButtom:hover {
    animation: getToRed 0.245s;
    background-color: #840D23;
}

#forgetPasswordButtom:hover span {
    color: #fff;
}

#forgetPasswordButtom span {
    color: #484848;
}

.standardButtom {
    max-width: calc((80vw + 16px));
    width: calc(512px + 24px);
    display: flex;
    justify-content: center;
}

#standardWindow {
    z-index: 1200;
    background: #ffffffba;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.closeStandardWindow {
    background-color: #e0e0e061;
    color: #777777;
    text-align: center;
    padding: 12px;
    padding-bottom: 8px;
    border-radius: 24px;
    margin-top: 0;
    cursor: pointer;
    width: fit-content;
    min-width: 5em;
    margin: 0 auto;
    transition: background-color 0.245s ease-in-out;
}

.closeStandardWindow:hover {
    background-color: #cdcdcd61;
}

#pwdText {
    line-height: 1.2em;
}

#pwdText a {
    color: #424242;
    font-weight: 450;
}

@media screen and (prefers-color-scheme: dark) {
    .basePart {
        background-color: #1f1f1fba;
    }

    .originInput {
        background-color: #00000042;
        box-shadow: none;
        color: #fff;
        animation: none;
    }

    .originInput:hover {
        animation: none;
        box-shadow: none;
    }

    h1,
    h2,
    h3,
    h4,
    #titleBar {
        color: #fff;
    }

    .listBasePart {
        background-color: #2d2d2d;
    }

    #openMenuPage {
        color: #ffffff;
    }

    .listTable :last-child>span {
        color: #aeaeae;
    }

    #closeOverlay {
        color: #fff;
    }

    #noteNameInput::placeholder {
        color: #d8d8d8;
    }
}