@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;700&display=swap');

body {
    font-family: 'Rubik', sans-serif;
    background: #eef9ff;
}
h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 20px 0px;
}
/* Хлебные крошки */
.breadcrumbs {
    margin: 5px 0px 0px;
}
.breadcrumbs a {
    font-size: 14px;
    color: #363636;
}

.block-study {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.block-word {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    padding: 40px 60px;
    background: #fff;
    min-height: 200px;
    border-radius: 15px;
    text-decoration: none;
}
.block-word p {
    margin-bottom: 0px;
    color: #363636;
}

/** Цвета **/
.button-green {
    background: #44A7C1;
}
.button-blue {
    background: #339999;
}
.button-red {
    background: #eb6c6c;
}
.text-blue {
    color: #339999;
}
.text-green {
    color: #44A7C1;
}

.button-green:hover, .button-blue:hover, .button-red:hover {
    opacity: 0.8;
}
.block-word p.word {
    color: #44A7C1;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}
.block-word p.word-translate {
    color: #339999;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    margin-top: 10px;
}

/* Кнопки в форме */
.block-study form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}
.block-study form button, .block-word a.main-link {
    width: 300px;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom:10px;
    box-shadow: none;
    color: #fff;
    font-size: 18px;
    text-align: center;
    text-decoration: none;
    border: none;
}
.block-study form button.new-word, .block-word a.word {
    background: #44A7C1;
}
.block-study form button.translate, .block-word a.word-translate {
    background: #339999;
}

/** Общее **/
.content {
    margin-top: 10px;
    padding: 10px 30px 30px;
    background: #fff;
    border-radius: 15px;
    text-decoration: none;
}
.info {
    border: 2px solid #339999;
    border-radius: 10px;
    padding:5px 10px;
    margin-bottom: 10px;
    background: #fff;
}
.info p {
    margin-bottom: 0px;
    color: #339999;
}

/* Проверка перевода */
.block-study.check button.translate, .block-study.check .check-spelling-block, .block-study.translate .check-spelling-block {
    display: none;
}
.check-spelling-block {
    padding:5px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border: 2px solid #c0c0c0;
    margin-bottom: 20px;
}
.check-spelling-block input {
    padding: 10px 10px;
    border-radius: 10px;
    box-shadow: none;
    border: none;
    width: 300px;
    margin-bottom: 5px;
}
.block-study form button.check-word {
    padding: 10px 5px;
    font-size: 16px;
    background: #f48c03;
    margin-bottom: 0px;
}
.spelling-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Страница со списком слов */
.words-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;

}
.page-words .item-word {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 10px;
    padding: 0px 0px 0px 10px;
    background: #fff;
    border-radius: 15px;
    text-decoration: none;
    margin-right: 10px;
    overflow: hidden;
}
.page-words .item-word .cover-word{
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    margin-right: auto;
}
.page-words .item-word p{
    margin-bottom: 0px;
    color: #363636;
}
.page-words .item-word .eng-word p {
    color: #339999;
}
.page-words .item-word .separator {
    margin: 0px 10px;
    color: #44A7C1;
}
.words-list .word-action {
    display: block;
    width: 44px;
    height: 44px;
    min-height: 44px;
    min-width: 44px;
}
.words-list .word-edit {
    background: url("/img/edit.png") center center no-repeat;
    background-size: 18px;
    margin-left: 10px;
    border-right: 2px solid #fff;
}
.words-list .word-delete {
    background: url("/img/trash-bin.png") center center no-repeat;
    background-size: 18px;
}
.words-list .word-edit:hover, .words-list .word-delete:hover {
    background-color: rgba(192, 192, 192, 0.37);
}

.custom-link {
    display: flex;
    flex-wrap: wrap;
}
.custom-link a, .custom-link button {
    margin: 5px 10px 5px 0px;
    text-decoration: none;
    display: block;
    text-align: center;
    padding: 12px 15px;
    color: #fff;
    border-radius: 10px;
    border: none;
}

/** Редактирование слова **/
.user form {
    display: flex;
    flex-direction: column;
}
.user form .field {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}
.user form label {
    color: #747474;
    font-size: 15px;
    margin-bottom: 5px;
}
.user form input {
    padding: 10px 10px;
    border-radius: 10px;
    box-shadow: none;
    border: none;
    width: 300px;
    margin-bottom: 5px;
    background: #eef9ff;
}
.user form textarea {
    padding: 10px 10px;
    border-radius: 10px;
    box-shadow: none;
    border: none;
    width: 100%;
    height: 120px;
    margin-bottom: 5px;
    background: #eef9ff;
}

/* Ошибки */
.block-error {
    background-color: #AB274F;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}
.block-error p {
    color: #fff;
    text-align: center;
    margin-bottom: 0;
}

/* Форма авторизации */
.block-form-login form input, .block-form-login form button {
    width: 100%;
}
.block-form-login form .field {
    margin-bottom: 5px;
}
.form-login .content {
    padding: 30px;
}
.block-form-login .custom-link button {
    margin-right: 0;
}

/* Меню */
.block-menu {
    width: 100%;
    padding: 10px;
    background-color: #996633;
}
.block-menu ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 0;
}
.block-menu ul li {
    margin-right: 15px;
}
.block-menu ul li a {
    color: #fff;
}

/* Небольшие устройства (телефоны с горизонтальной ориентацией, менее 768 пикселей) */
@media (max-width: 767.98px) {
    .page-words .item-word {
        flex-wrap: wrap;
        padding: 10px;
    }
    .page-words .item-word .cover-word {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-words .item-word .cover-word .separator {
        display: none;
    }
    .words-list .word-edit {
        margin-left: 0;
    }
    .words-list .word-action {
        border-radius: 5px;
    }
    .user form textarea {
        height: 150px;
    }
}