/* filters */

.main {
    width: 100%;
}

.filters {
    padding: 50px 0;
    width: 100%;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 75px 0;
    margin-bottom: 50px;
    background-color: #fff;
}

.container {
    display: flex;
    justify-content: space-around;
    width: 1200px;
}

.left {
    width: 60%;
}

.search{
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-input {
    width: 100%;
    border: 1px solid #1f3f76;
    border-radius: 30px;
    background: #fff;
    outline: none;
    padding: 12px 20px;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
}

.search-button {
    width: 40px;
    height: 40px;
    margin-left: -40px;
    padding: 19px;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    border: none;
    background: #1f3f76 url('../../img/admin_menu/search.svg') no-repeat 40% center;
    cursor: pointer;

}

.checkboxes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.div-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 5px;
    border: 1px solid #1f3f76;
    font-size: 16px;
    line-height: 23px;
    color: #000000;
}

.list-name {
    padding: 0 15px;
}

.list-names {
    position: relative;
}

.list-p {
    padding: 8px 15px;
    padding-right: 35px;
    background: url('../../img/global/arrow-down.svg') no-repeat 93% center;
    cursor: pointer;
    border-left: 1px solid #1f3f76;
}

.list {
    display: none;
    z-index: 2;
    list-style: none;
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    margin-top: 2px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
    background: #fff;
}

.list-li {
    padding: 9px 8px;
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    color: #121212;
    cursor: pointer;
}

.list-li:hover {
    background: #ccc;
}

.right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.btn {
    padding: 8px 30px;
    outline: none;
    border: none;
    font-size: 20px;
    border-radius: 5px;
    cursor: pointer;
    background: #103A84;
    color: #fff;
    transition: background 0.1s linear;
}

.btn:active {
    background: #3e5e96;
}

/* theme-block */

.new-theme {
    margin-bottom: 20px;
    width: 100%;
    background-color: #103A8480;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
}

.new-theme-plus {
    width: 20px;
    height: 20px;
    transform: rotate(45deg);
    fill: #fff;
    margin-left: 5px;
    vertical-align: text-top;
}

.themes {
    width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.theme-block {
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: space-between;
    padding: 25px;
    padding-top: 45px;
    width: 100%;
    border-radius: 10px;
    color: #fff;
}

.theme-block:not(:last-child) {
    margin-bottom: 20px;
}

.theme-block-open {
    transition: max-height 0.1s cubic-bezier(1, 0, 1, 0);
    max-height: 1000px;
}

.theme-block-close {
    transition: max-height 0.1s cubic-bezier(0, 1, 0, 1);
    max-height: 300px;
    min-height: 0;
}

.edit {
    position: absolute;
    top: 0;
    right: -60px;
    width: 45px;
    height: 45px;
    border-radius: 5px;
    background: #00000015;
    opacity: 0;
    border: none;
    outline: none;
    cursor: pointer;
    transition: opacity 0.3s linear, background 0.1s linear;
}

.edit::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 15px;
    top: 0;
    left: -15px;
}

.edit:active {
    background: #00000030;
}

.theme-block:hover > .edit {
    opacity: 1;
}

.theme-block-title {
    margin: 0;
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    font-weight: 700;
    font-size: 24px;
    line-height: 28px;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.3)
}

.info {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.info-link {
    margin-right: 20px;
    font-weight: 700;
    font-size: 15px;
    line-height: 20px;
    color: #5A88FF;
}

.tag {
    margin: 0;
    font-weight: 700;
    padding: 4px 18px;
    border-radius: 30px;
    font-size: 12px;
    line-height: 18px;
    color: #000;

}

.tag-open {
    background-color: #59FF6A;
}

.tag-close {
    background-color: #FCFF59;
}

.tag-psat-year {
    background-color: #fff;
}

.descr {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.theme-name {
    margin: 0;
    margin-bottom: 7px;
    font-weight: 700;
    font-size: 36px;
    line-height: 40px;
    max-height: 40px;
    overflow: hidden;
}

.theme-descr {
    margin: 0;
    margin-bottom: 7px;
    min-height: 74px;
    max-height: 100px;
    overflow: hidden;
    font-size: 15px;
    line-height: 20px;
}

.theme-name-open {
    transition: max-height 0.1s cubic-bezier(1, 0, 1, 0);
    max-height: 300px;
}

.theme-name-close {
    max-height: 40px;
    transition: max-height 0.1s cubic-bezier(0, 1, 0, 1);
}

.theme-descr-open {
    transition: max-height 0.1s cubic-bezier(1, 0, 1, 0);
    max-height: 1000px;
}

.theme-descr-close {
    max-height: 100px;
    transition: max-height 0.1s cubic-bezier(0, 1, 0, 1);
}

.theme-btn {
    padding: 0;
    background: transparent;
    cursor: pointer;
    outline: none;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 16px;
}

.theme-btn-hidden {
    display: none;
}

.theme-btn-take {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 6px 15px;
    outline: none;
    border: none;
    font-size: 16px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    background: #fff;
}

.theme-btn-take:active {
    background-color: rgba(255,255,255,.8);
}

.author{
    margin: 0;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 18px;
}

.author a {
    font-weight: 700;
}

/* new-theme-form */

.new-theme-form {
    position: fixed;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width:  800px;
    padding: 25px 20px;
    background: #fff;
    border-radius: 10px;
}

.new-theme-title {
    margin: 0;
    padding: 0;
    margin-bottom: 20px;
}

.new-theme-inputs {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.back-form {
    display: none;
    top: 0;
    left: 0;
    position: fixed;
    z-index: 2;
    width: 100vw;
    height: 100vh;
    background: #00000072;
}

.form-input {
    width: 100%;
    border-radius: 5px;
    padding: 10px 5px;
    border: 2px solid #103A8450;
    color: #000;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 15px;
}

.new-theme-btns {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.new-theme-textarea {
    min-height: 180px;
    resize: none;
    color: #000;
    font-size: 16px;
    line-height: 18px;
    font-weight: 400;
    font-family: inherit;
}

.search-result-list {
    margin-top: -15px;
    position: absolute;
    z-index: 4;
    width: 100%;
    background: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    max-height: 160px;
    overflow-y: auto;
}

.search-result-item {
    padding: 10px;
    font-size: 16px;
    font-weight: 300;
    cursor: pointer;
}

.search-result-item:hover {
    background: #ccc;
}

.new-theme-subjects-list {
    flex-wrap: wrap;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 15px;
}

.new-theme-subjects-div {
    position: absolute;
    top: -7.5px;
    right: -7.5px;
    width: 15px;
    height: 15px;
    background-size: auto;
    background: url('../../img/global/del.svg') no-repeat center center;
    cursor: pointer;
}

.new-theme-subjects-item {
    position: relative;
    padding: 5px 15px;
    border: 1px solid #1f3f76;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 400;
}

.new-theme-subjects-item:not(:last-child) {
    margin-right: 15px;
}