body {
    /* background: linear-gradient(-45deg,
            #e73c7e,
            #23a6d5,
            #ee7752,
            #23d5ab);
    background-size: 300% 300%;
    animation: gradient 15s ease infinite;
    min-height: 50vh; */
    background: url(../img/chinese3.webp) no-repeat center top;
    background-size: 100% 100%;
    background-attachment: fixed;

    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body::-webkit-scrollbar {
    width: 0px;
}

* {
    margin: 0;
    padding: 0;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@font-face {
    font-family: "f_chinese";
    src: url(../font/Fontquan-XinYiJiXiangSongRegular.ttf);
    font-weight: normal;
    font-style: normal;
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: calc(50% - 250px);
    padding-left: calc(50% - 250px);
    font-family: math;
    height: 100vh;
}

.colorText {
    background-color: #056e17;
    /* color: #056e17; */
}

.f_ch {
    font-family: "f_chinese";
    font-size: 35px;
}

.f_ru {
    font-family: "f_chinese";
    font-size: 30px;
}

.ch_out {
    font-family: "f_chinese";
    font-size: 40px;
}

.f_ch_out {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.f_ch_err {
    font-family: "f_chinese";
    font-size: 20px;
}

.f_ch_txt {
    font-size: 20px;
}

a {
    text-decoration: none;
}

.regist {
    border: 1px solid #fff;
    border-radius: 7px;
    padding: 10px;
}

.auth_log {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech_work {
    display: flex;
    font-size: 20px;
    flex-direction: column;
    align-items: center;
}

.none {
    display: none;
}

.green {
    color: #663dff;
}

.logo img {
    width: 150px;
    height: 100px;
}

.center_auth {
    display: flex;
    justify-content: center;
    padding-top: 150px;
    flex-direction: column;
    align-items: center;
}

.auth {
    display: flex;
    flex-direction: column;
    height: 250px;
    width: 250px;
    border: 1px solid #fff;
    border-radius: 7px;
    justify-content: center;
    align-items: center;
}

.auth_error {
    font-size: 25px;
    color: #fff;
}

.logo_auth img {
    width: 150px;
    height: 100px;
}

/*  верхнее меню  */

.menu {
    position: relative;
    display: inline-block;
}

.menuTop {
    width: 100%;
    display: flex;
    height: 20px;
    border: 1px solid midnightblue;
}

.auth_login {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 10px;
    gap: 5px;
}

.menuBtn {
    border: none;
    width: 60px;
    height: 20px;
    position: relative;
    background: none;
    color: midnightblue;
}

.menuNavi {
    display: none;
}

.menuNavi a {
    color: midnightblue;
    display: block;
}

.menuNavi a:hover {
    background-color: rgb(165 165 165 / 50%);
}

.menu:hover .menuNavi {
    padding: 3px 10px 0px 10px;
    width: 200px;
    display: block;
    border: 1px solid midnightblue;
    border-top: none;
    position: absolute;
    top: 20px;
    left: -1px;
}



/*  верхнее меню  */

.btnSort {
    padding-top: 5px;
    padding-bottom: 5px;
}

.btnSortWords {
    padding: 2px;
    border: 1px solid #6666FF;
    border-radius: 5px;
    background: none;
    color: #6666FF;
}

.find_words {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 334px;
}

.all_words_f {
    background: rgb(165 165 165 / 50%);
}

.all_words {
    background: rgb(165 165 165 / 50%);
    overflow-y: scroll;
}


.all_words::-webkit-scrollbar {
    width: 0px;
}

.word {
    font-size: 20px;
    width: 330px;
    border-bottom: 1px solid #fff;
}

.inp_search::-webkit-input-placeholder {
    color: midnightblue;
}

.inp_search {
    width: 285px;
    height: 25px;
    color: aliceblue;
    border: 1px solid midnightblue;
    background: none;
    padding-left: 5px;
}

.but_search {
    height: 25px;
    width: 45px;
    border-radius: 3px;
    border: 1px solid;
    color: midnightblue;
    background: none;
}

.res_but_find {
    width: 95px;
    height: 25px;
    border-radius: 3px;
    border: 1px solid;
    color: midnightblue;
    background: none;
}

.all_words_form {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.out_words {
    width: 260px;
    color: midnightblue;
    font-weight: bold;
    margin-left: 5px;
}

.check_words {
    display: flex;
    width: 60px;
    justify-content: space-evenly;
    gap: 10px;
    margin-right: 5px;
}

.but_fav {
    width: 30px;
    border-radius: 3px;
    border: 1px solid;
    color: midnightblue;
    background: none;
}

.form_add_but_find {
    border-radius: 3px;
    border: 1px solid;
    color: midnightblue;
    background: none;
    height: 30px;
    width: 55px;
    font-size: 16px;
}

.form_add_but {
    font-size: 17px;
    height: 30px;
    width: 150px;
    border-radius: 3px;
    border: 1px solid;
    color: midnightblue;
    background: none;
}

.fav_word_menu {
    display: flex;
    gap: 5px;
    flex-direction: column;
    padding-bottom: 10px;
    align-items: center;
}

.fav_word_menu_top {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.fav_word_menu_bot {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.ch {
    padding-bottom: 4px;
}

.fav_pi {
    border: 1px solid #eee;
    border-radius: 3px;
    color: #fff;
    padding: 3px 30px 3px 3px;
    background: rgb(165 165 165 / 50%);
}

.fav_hz {
    border: 1px solid #eee;
    border-radius: 3px;
    color: #fff;
    padding: 3px 30px 3px 3px;
    background: rgb(165 165 165 / 50%);
}

.fav_au {
    border: 1px solid #eee;
    border-radius: 3px;
    color: #fff;
    padding: 3px 30px 3px 3px;
    background: rgb(165 165 165 / 50%);
}

.fav_ru {
    border: 1px solid #eee;
    border-radius: 3px;
    color: #fff;
    padding: 3px 30px 3px 3px;
    background: rgb(165 165 165 / 50%);
}

.rus_audio {
    position: relative;
}

.img_pi {
    position: absolute;
    height: 17px;
    padding-left: 5px;
}

.img_hz {
    position: absolute;
    height: 17px;
    padding-left: 5px;
}

.img_au {
    position: absolute;
    height: 17px;
    padding-left: 5px;
}

.img_ru {
    position: absolute;
    height: 17px;
    padding-left: 5px;
}

.fav_ch {
    border: 1px solid #eee;
    border-radius: 3px;
    color: #fff;
    padding: 3px 21px 3px 3px;
    background: rgb(165 165 165 / 50%);
}

.fav_rus {
    border: 1px solid #eee;
    border-radius: 3px;
    color: #fff;
    padding: 3px 22px 3px 3px;
    background: rgb(165 165 165 / 50%);
}

.ch_img {
    position: absolute;
    height: 20px;
}

.rus_img {
    position: absolute;
    height: 20px;
    padding-left: 4px;
}

.fav_chin {
    border: 1px solid #eee;
    border-radius: 3px;
    color: #fff;
    padding: 3px;
}

.top_menu {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.top_menu_main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 5px;
}

.top_menu_main_pinin {
    display: flex;
    gap: 5px;
    align-items: flex-end;
}

.menu_add {
    display: flex;
    gap: 5px;
}

.fav_words {
    padding-bottom: 5px;
}

.content {
    width: 320px;
    height: 400px;
    border: 1px solid #fff;
    border-radius: 5px;
    background: rgb(165 165 165 / 70%);
}

.top_name_remb {
    display: flex;
    position: absolute;
    width: 320px;
    justify-content: flex-end;
}

.top_content {
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content_out {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px 10px 0px 10px;
    font-size: 15px;
}

.singleW_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50px;
}

.singleW_box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.singleW_title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px 10px;
    font-size: 30px;
}

.singleW_desc {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px 10px;
    font-size: 30px;
}

.rem_content {
    color: green;
    border: 1px solid #fff;
    border-radius: 0px 5px 0px 5px;
    padding: 4px;
}

.top_content_hanzi {
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content_main_hanzi {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 320px;
    height: 400px;
    border: 1px solid #fff;
    border-radius: 5px;
    background: rgb(165 165 165 / 60%);
}

.content_out_nanzi {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px 10px 0px 10px;
    font-size: 15px;
}

.font_hanzi {
    width: 320px;
    height: 240px;
    position: absolute;
    z-index: -1;
    bottom: 30px;
    opacity: 0.5;
}

.content_hanzi_none {
    display: none;
}

.hanzi_content_writer {
    display: flex;
    height: 240px;
    justify-content: center;
    align-items: center;
}

.btn_right_svg {
    color: black;
    position: absolute;
    top: 11px;
    left: -4px;
}

.btn_left_svg {
    color: black;
    position: absolute;
    top: 11px;
    left: -4px;
}

.btn_left {
    position: absolute;
    top: 220px;
    right: 0;
    height: 50px;
    width: 23px;
    border-radius: 150px 0px 0px 150px;
    border-left: 1px solid #ffffff;
    background: none;
    border-right: none;
    border-top: none;
    border-bottom: none;
}

.btn_right {
    position: absolute;
    top: 220px;
    left: 0;
    height: 50px;
    width: 23px;
    border-radius: 0px 150px 150px 0px;
    border-left: none;
    background: none;
    border-right: 1px solid #ffffff;
    border-top: none;
    border-bottom: none;
}

.hanzi_content {
    display: flex;
    justify-content: center;
}

.content_hanzi_bot {
    display: flex;
    height: 30px;
    align-items: flex-end;
    justify-content: space-between;
}

.content_hanzi_bot_review {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 108px;
    height: 30px;
    border-top: 1px solid #fff;
    border-radius: 0px 0px 0px 5px;
    background: none;
    color: #7c00ff;
    border-bottom: none;
    border-right: none;
    border-left: none;
    text-shadow: 0px 0px 0px #7c00ff;
}

.content_hanzi_bot_reset {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 106px;
    height: 30px;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-bottom: none;
    border-right: none;
    background: none;
    color: #7c00ff;
    text-shadow: 0px 0px 0px #7c00ff;
}

.btn_next_words_hanzi {
    width: 106px;
    height: 30px;
    border-left: 1px solid #fff;
    border-top: 1px solid #fff;
    background: none;
    color: #7c00ff;
    text-shadow: 0px 0px 0px #7c00ff;
    border-bottom: none;
    border-right: none;
}

.song_img {
    display: flex;
    justify-content: center;
}



.form_content {
    display: flex;
    height: 50px;
    align-items: center;
    justify-content: space-evenly;
}

.res_content {
    display: flex;
    height: 170px;
    justify-content: center;
    align-items: center;
    margin: 0px 10px 0px 10px;
}

.check_word_out {
    text-shadow: #085a18 1px 0px 1px;
    color: #056e17;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.check_word_out_err {
    text-shadow: rgb(147 53 53) 1px 0px 1px;
    color: #bf0505a3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.add_content {
    background: rgb(165 165 165 / 50%);
    border: 1px solid #eee;
    border-radius: 7px;
    padding: 20px;
}

.content_bot {
    display: flex;
    height: 50px;
    justify-content: center;
    align-items: center;
}

.test {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    flex-direction: column;
    align-items: center;
}

.form_check_word {
    font-size: 15px;
    width: 100%;
    height: 29px;
    border-radius: 5px;
    border: 2px solid #6666FF;
    margin-right: 5px;
    margin-left: 5px;
    padding-left: 5px;
}

.form_check_but {
    height: 33px;
    margin-right: 5px;
    padding-left: 2px;
    padding-right: 2px;
    border-radius: 5px;
    border: 2px solid #6666FF;
}

.form_check {
    width: 100%;
    display: flex;
    align-items: center;
}

.answer_add_text {
    display: flex;
    font-style: italic;
    flex-direction: column;
    align-items: center;
}

/*--- Кнопка ---*/

.btn_next_words {
    width: 100px;
    height: 30px;
    border: 1px solid #6666FF;
    border-radius: 5px;
    background: none;
    color: #6666FF;
}

/*--- Кнопка конец---*/
/*--- форма добавления слов ---*/

.add_form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.save_form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
}

/*--- Конец форма добавления слов ---*/

/*--- footer ---*/
.foot {
    display: flex;
    padding: 15px 0px 15px 0px;
}

/*--- end footer ---*/

.test {
    display: none;
    background-color: pink;
    border: 1px solid lightblue;
    width: 150px;
    padding: 10px;
}

.test2 {
    display: none;
    background-color: lightblue;
    border: 1px solid black;
    width: 150px;
    padding: 10px;
}

.test3 {
    padding-top: 100px;
}

.more {
    width: 180px;
    height: 60px;
    background-color: #c6cfff;
    color: white;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: bold;
    border: #c6cfff;
    cursor: pointer;
    position: absolute;
    left: 100px;
    top: 20px;
}

.modal {
    position: absolute;
    left: center;
    bottom: 300px;
    background-color: #f3f8ff;
    padding: 0;
    border: 5px solid #c6cfff;
    width: 500px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    display: none;
}

.modal-animation {
    animation-name: animatetop;
    animation-duration: 1.0s
}

@keyframes animatetop {
    from {
        bottom: 0px;
        opacity: 0
    }

    to {
        bottom: 300px;
        opacity: 1
    }
}

.blink_stop {
    animation: blink-animation 1s forwards;
}

@keyframes blink-animation {
    0% {
        background-color: initial;
    }

    50% {
        background-color: #CC3333;
        /* background-color: #CC0000; */
    }

    100% {
        background-color: initial;
    }
}

/* CSS стили */
/* --- конец desctop версии --- */
/* --- мобильная версия --- */

@media only screen and (min-width: 350px) and (max-width: 900px) and (-webkit-device-pixel-ratio: 3) {

    body {
        background: url(../img/chinese3.webp) no-repeat center top;
        background-size: cover;
        background-attachment: fixed;
    }

    .center {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 600px;
        font-family: math;
        height: 100vh;
    }

    .all_words {
        background: rgb(165 165 165 / 50%);
        overflow-y: scroll;
        max-height: 400px;
    }

    .content {
        display: flex;
        width: 320px;
        height: 400px;
        flex-direction: column;
    }

    .top_content {
        min-height: 50px;
    }

    .content_out {
        height: 50px;
        min-height: 50px;
        display: flex;
        align-items: center;
        margin: 0 0;
    }

    .form_content {
        min-height: 50px;
    }

    .res_content {
        height: 100%;
    }

    .content_bot {
        padding-bottom: 5px;
    }

    .logo {
        display: flex;
        height: 200px;
        align-items: center;
    }

    .auth_log {
        display: none;
    }

    .top_menu {
        margin: 10px 0;
    }

    .f_ru {
        font-family: "f_chinese";
        font-size: 25px;
    }
}

/* --- мобильная версия --- */