@font-face {
    font-family: 'Alexander';
    src: url('fonts/Alexander.ttf');
    /*src: local('☺'),*/
    /*        url('../fonts/Alexander/Alexander.woff') format('woff'),*/
    /*        url('../fonts/Alexander/Alexander.ttf') format('truetype'),*/
    /*        url('../fonts/Alexander/Alexander.svg') format('svg');*/
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Arsenal-Regular';
    src: url('fonts/Arsenal-Regular.ttf');
    /*src: local('☺'),*/
    /*        url('../fonts/Arsenal/Arsenal-Regular.woff') format('woff'),*/
    /*        url('fonts/Arsenal-Regular.ttf') format('truetype'),*/
    /*        url('../fonts/Arsenal/Arsenal-Regular.svg') format('svg');*/
    font-weight: normal;
    font-style: normal;
}

.cabinet_container {
    display: flex;
    margin: 0 auto;
    width: 1400px;
    min-height: 100vh;
    background-color: #ffe0b3;
}

/*левый блок и его меню*/
.left-sb {
    width: 15%;
    background-color: white;
}

ul {
    list-style-type: none;
}

.menu-item {
    width: 100%;
    font-size: 18px;
}

.menu-item a {
    display: inline-block;
    text-decoration: none;
    width: 100%;
    height: 40px;
    padding: 8px;
}

.menu-item a:hover {
    display: inline-block;
    text-decoration: none;
    background-color: #2f3640;
    color: white;
}

/*правый блок*/
.right-sb {
    width: 85%;
    padding: 20px 0 20px;
}

/*стили кнопки добавления стихотворения*/
.add_poem_btn, .confirm_btn {
    width: 300px;
    height: 45px;
    margin: 16px auto 30px;
    padding: 8px 24px;
    display: block;
    font-size: 20px;
    border-radius: 8px;
    border: none;
    background: #e74c3c;
    color: #f5f6fa;
    cursor: pointer;
}

/*стили формы добавления стиха*/
.add_poem_box {
    width: 80%;
    margin: 0 auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease-out;
}

form {
    margin: 30px auto;
}

form input {
    display: block;
    width: 70%;
    height: 40px;
    padding-left: 2%;
    border: none;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.82);
    font-size: 1em;
    font-family: Tahoma sans-serif;
}

.fileInput label {
    margin-top: 30px;
    width: 40%;
    height: 45px;
    padding: 12px 20px;
    cursor: pointer;
    display: inline-block;
    background-color: #2f3640;
    color: #f5f6fa;
    border-radius: 8px;
    text-align: center;
}

#cover_input {
    display: none;
}

.view_cover {
    width: 60%;
}

.view_cover img {
    display: block;
    margin: 0 auto;
    width: 60%;
}

textarea {
    display: block;
    width: 70%;
    height: 400px;
    margin-top: 30px;
    padding-left: 2%;
    border: none;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.82);
    font-size: 1em;
    font-family: Tahoma sans-serif;
    background-color: white;
}

/*стили grid контейнера и превью стихов*/

.poems-container {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, 285px);
    justify-content: center;
    margin: 0 auto 96px;
}

/*стиль превью-блока стихотворения*/
.poem_box {
    background-color: #f1f1f1;
    width: 285px;
    height: fit-content;
    margin-top: 2%;
    margin-bottom: 2%;
    font-size: 30px;
}

/*стили заголовка превью блока стизотворения*/
.poem_box_header {
    display: flex;
    justify-content: space-between;
}

/*блок автора: аватар и имя*/
.author_block {
    width: 25%;
    margin: 10px;
}

.author-name {
    text-align: center;
    font-family: Arial, Tahoma, sans-serif;
    font-weight: bold;
    font-size: 0.3em;
}

.avatar {
    width: 70%;
    margin-left: 20%;
    border-radius: 50%;
}

/*заголовок стихотворения*/
.poem_header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75%;
    margin-top: 5%;
    margin-bottom: 5%;
    padding-left: 3%;
}

.ph {
    display: table-cell;
    font-family: "Alexander";
    font-size: .8em;
    text-align: center;
    vertical-align: middle;
    color: darkred;
}


/*Это уже "тело" превью блока. Стили катинки*/
/* ширина картинки устанавливается скриптом JavaScript*/
.poem-image {
    display: block;
    width: 90%;
    margin: 2px auto;
}

/*стили превью-четверостишия*/
.poem_content{
    margin-top: 3%;
    padding-left: 7%;
    height: 80px;
    overflow: hidden;
    font-size: 0.5em;
    font-family: "Arsenal-Regular";
}

/*стили кнопки "читать полностью"*/
.full_reading {
    margin: 3% 15%;
    padding: 2%;
    font-size: 0.5em;
    font-weight: bold;
    letter-spacing: .1em;
    text-align: center;
    border-radius: 10px;
}

/*стили футера превью-блока стихотворения*/
.poem_box_footer {
    display: flex;
    justify-content: space-between;
}

.comment {
    width: 15%;
}

.like_comment {
    display: flex;
    align-items: center;
}

/*стили цифр лайков, комментов*/
.digit {
    display: block;
    margin-left: 2%;
    margin-right: 5%;
    font-size: 0.6em;
}

.time-stamp {
    display: flex;
    justify-content: right;
    align-items: center;
    width: 50%;
    margin-right: 5%;
    font-size: 0.6em;
}

/*стили ссылок редактирования и удаления*/

.footer_buttons {
    display: flex;
    justify-content: space-evenly;
    margin-top: 2%;
    margin-bottom: 2%;
}

.update_link {
    width: 45%;
    font-size: 0.6em;
    color: white;
    text-align: center;
    text-decoration: none;
    background-color: royalblue;
    padding: 5px;
}

.delete_link {
    width: 45%;
    font-size: 0.6em;
    color: white;
    text-align: center;
    text-decoration: none;
    background-color: darkred;
    padding: 5px;
}

.delete_link.forbidden {
    cursor: not-allowed;
    opacity: .3;
}

/*стили формы добавления стиха*/
.add_poem {
    width: 80%;
    height: fit-content;
    margin: 0 auto;
}

form input {
    display: block;
    width: 70%;
    height: 40px;
    margin: auto;
    padding-left: 2%;
    border: none;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.82);
    font-size: 1em;
    font-family: Tahoma, sans-serif;
}

.fileInput label {
    width: 40%;
    height: 45px;
    display: block;
    margin: 35px auto 0;
    padding-top: 12px;
    padding-left: 20px;
    cursor: pointer;
    background-color: #2f3640;
    color: #f5f6fa;
    border-radius: 8px;
}

.attention {
    margin-top: 25px;
    font-size: 22px;
    font-family: Arial, Tahoma, sans-serif;
    text-align: center;
}

/*стили, как и у тега Label выше, только убраны padding*/
.savePoem {
    width: 40%;
    height: 45px;
    display: block;
    margin: 35px auto 0;
    padding-left: 20px;
    cursor: pointer;
    background-color: #2f3640;
    color: #f5f6fa;
    border-radius: 8px;
}

.fileInput input {
    max-width: 1px;
    max-height: 1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
    display: inline-block;
}

.view_cover {
    width: 60%;
    margin: 30px auto 0;
}

.view_cover img {
    display: block;
    margin: 0 auto;
    width: 60%;
}

.default_cover {
    font-weight: bold;
    font-style: italic;
}

textarea {
    display: block;
    width: 70%;
    height: 400px;
    padding-left: 2%;
    margin: 35px auto 0;
    border: none;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.82);
    font-size: 1em;
    font-family: Tahoma;
    background-color: white;
}


/*стили для выбора и обрезки обложки альбома*/
.edit_cover_container {
    display: flex;
    justify-content: space-evenly;
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease-out;
}

.preview_cover {
    position: relative;
}

.compose_image {
    display: inline-block;
    width: 350px;
}

.canvas {
    position: absolute;
    border: 0;
    border-radius: 15px;
    cursor: move;
}


.resultAvatar {
    min-width: 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result_comp_cover {
    margin: 0 auto;
}


.empty_list{
    width: 100%;
    height: 70px;
    margin: 50px auto;
    padding-left: 20px;
    font-size: 2em;
    font-family: Arial, sans-serif;
    text-align: left;
}

/*стили для мобильной версии сайта*/
@media (max-width: 900px) {
    .cabinet_container {
        width: 100%;
    }

    .left-sb {
        display: none;
    }

    .right-sb {
        width: 100%;
    }

    .add_poem_btn, .confirm_btn {
        width: 70%;
        height: auto;
        padding: 12px 20px;
        font-size: 16px;
    }

    .add_poem_box {
        width: 100%;
    }

    form {
        width: 100%;
        margin-top: 0;
    }


    form input {
        width: 95%;
    }

    textarea {
        width: 95%;
    }

    .view_cover {
        width: 100%;
    }

    .view_cover img {
        width: 70vw;
    }

    .default_cover {
        display: block;
        width: 80%;
        margin: 0 auto;
        font-size: 16px;
        text-align: justify;
    }

    .fileInput label {
        margin-top: 15px;
        width: 85%;
        height: auto;
        padding: 12px 20px;
        font-size: 16px;
        text-align: center;
    }

    .savePoem {
        width: 85%;
        height: auto;
        margin-top: 15px;
        padding: 12px 20px;
        font-size: 16px;
    }

    /*стили редактирования картинки изображения*/
    .edit_cover_container {
        width: 100%;
        display: block;
    }

    .preview_cover {
        width: 100%;
        margin: 0 auto 30px;
    }

    .compose_image {
        display: block;
        width: 90%;
        margin: 0 auto;
    }

    .result_cover {
        display: flex;
        flex-direction: column;
    }

    .result_comp_cover {
        width: 250px;
        height: 200px;
    }


    .result_cover h3 {
        display: none;
    }

     .confirm_btn {
        margin-bottom: 0;
     }

    /*стили grid контейнера и превью стихов*/
    .poems-container {
        display: grid;
        gap: 30px;
        grid-template-columns: repeat(1, 95vw);
        justify-content: center;
        width: 100%;
        margin: 0 auto 30px;
    }

    /*стиль превью-блока стихотворения*/
    .poem_box {
        width: 95%;
        margin: 0 auto;
    }

   .ph {
       font-size: 0.8em;
   }
}


