@import url('./variables.css');
@import url('./normalize.css');
@import url('./fonts.css');

.page {
    background-color: var(--fon-color);
    font-family: var(--font-family-main), serif;
    font-style:  normal;
    font-weight: 400;
    font-size: 16px;
    overscroll-behavior-x: auto;
}
ul {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
}
li {
    text-align: -webkit-match-parent;
    unicode-bidi: isolate;
}

.page__content {
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
}

.page__section {
    max-width: 85%;
    box-sizing: border-box;
    position: relative;
    margin: 0 auto;
}

@media screen and (max-width: 1140px) {
    .page__section {
        width: calc(100% - 40px);
    }
}


.active {
    color: var(--accent-color);
    font-weight: 900;
    text-decoration: underline;
}

#end-date::-webkit-calendar-picker-indicator, #start-date::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.card {
    font-family: 'Inter', Arial, sans-serif;
    color: white;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    border: var(--nav-border);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border: 2px solid white;
}

.card__title {
    color: var(--accent-color);
    padding-bottom: 15px;
    max-width: 90%;
    font-size: 21px;
    line-height: 29px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin: 0;
}

.card__table {
    max-width: 95%;
}

.card__table td {
    text-align: left;
    vertical-align: top;
    font-size: 16px;
    line-height: 1.5;
    padding-right: 10px;
    padding-bottom: 20px;
}

.card__image {
    height: 70px;
    object-fit: cover;
    width: 100%;
}

.card__image:hover {
    cursor: pointer;
}

.card__edit-button {
    width: 18px;
    height: 18px;
    background: transparent url('./images/edit-icon.svg') center no-repeat;
    /*Потом это будет из модификатора*/
    background-size: 18px 18px;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 18px;
    right: 47px;
    padding: 0;
    margin: 0;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}

.card__edit-button:hover {
    opacity: 0.6;
}

.card__description {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    padding: 25px 20px;
}
.card__delete-button {
    width: 18px;
    height: 18px;
    background: transparent url('./images/delete-icon.svg') center no-repeat;
    /*Потом это будет из модификатора*/
    background-size: 18px 18px;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 18px;
    right: 15px;
    padding: 0;
    margin: 0;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}

.card__delete-button:hover {
    opacity: 0.6;
}

.card__copy-button {
    width: 18px;
    height: 18px;
    background: transparent url('./images/content_copy-icon.svg') center no-repeat;
    background-size: 20px 20px;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 18px;
    right: 83px;
    padding: 0;
    margin: 0;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}

.card__copy-button:hover {
        opacity: 0.6;
}

.card__page-link:hover {
    opacity: 0.6;
}

.content {
    margin-top: 100px;
    flex-shrink: 0;
    flex-grow: 1;
}

.navbar {
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    flex-direction: row;
    -webkit-box-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    align-items: center;
    margin-bottom: 0 !important;
    border-bottom: var(--nav-border);
    background: var(--nav-background);
    font-weight: 600;
    padding: 6px 45px;
    user-select: none;
    color: var(--nav-text);
}

.navbar ul li {
    display: inline-block;
}

.navbar ul {
    /*margin-bottom: 0;*/
    padding: 0;
    list-style: none;
    -webkit-box-flex: 2.5;
    flex: 2.5;
    text-align: center;
}

.navbar-fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    border-width: 0 0 1px;
}

.navbar__user-group {
    margin-left: 25px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.navbar__user-group:hover {
    color: var(--accent-color);
}

#navbar__search-input {
    height: 30px;
}

.navbar__right {
    min-width: 35%;
    display: flex;
    flex-direction: row;
    justify-content: end;
    -webkit-box-align:center;
    align-items: center;
}

#navbar__search-input {
    position: relative;
    vertical-align: top;
    background-color: transparent;
    font-family: inherit;
    box-sizing: border-box;
    display: inline-block;
    width: 60%;
    padding: 5px;
    border: 1px solid #4b4b4b;
    border-radius: 5px;
    outline: none;
    color: #ccc;
    font-size: 13px;
    transition: border-color .3s;
}

.navbar__menu-element:hover {
    color: var(--accent-color);
    cursor: pointer;
}

.navbar__menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    min-height: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
    -webkit-box-flex: 2.5;
    flex: 2.5;
    text-align: center;
}

.navbar__logo-image {
    width: 25px;
    height: 25px;
}

.navbar__logo {
    min-width: 25%;
    -webkit-box-flex: 1;
    flex: 1;
    font-weight: 900;
}

.navbar__logo a {
    white-space: nowrap;
    padding-left: 0;
    color: var(--accent-color);
    font-family: inherit;
    font-size: 21px;
    letter-spacing: 1px;
    line-height: 0;
    -webkit-transition: opacity .3s, color .3s;
    transition: opacity .3s, color .3s;
    text-decoration: none;
}

.navbar__add-button {
    display: flex; /* Используем Flexbox */
    align-items: center; /* Выравниваем по вертикали */
    justify-content: center; /* Выравниваем по горизонтали */
    gap: 8px; /* Расстояние между иконкой и текстом */
    width: 170px;
    height: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--nav-text);
    background: transparent center no-repeat;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    border: 2px solid #fff;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    cursor: pointer;
    margin-left: auto;
}

.navbar__add-button:hover {
    color: var(--accent-color);
    border: var(--nav-border);
}

.navbar__add-icon {
    width: 16px;
    height: 16px;
}

@media screen and (max-width: 740px) {
    .navbar__add-button {
        width: 50px;
        height: 50px;
    }
}

@media screen and (max-width: 480px) {
    .navbar__add-button {
        width: 100%;
    }
}

.popup {
    font-family: 'Inter', Arial, sans-serif;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, .5);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 10;
}

.popup.popup_is-opened {
    display: flex;
    visibility: visible;
    opacity: 1;
    pointer-events: all;
    transition: visibility 0s, opacity 0.6s;
}

.popup_is-animated {
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    user-select: none;
    transition: visibility 0s 0.6s, opacity 0.6s;
}

.popup__title {
    margin: 0;
    font-size: 24px;
    line-height: 30px;
}

@media screen and (max-width: 568px) {
    .popup__title {
        font-size: 18px;
        line-height: 22px;
    }
}

.popup__input {
    width: 100%;
    height: 47px;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .2);
    font-size: 16px;
    line-height: 18px;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 10px;
    margin-right: 20px;
}

.popup__input:last-of-type {
    margin-bottom: 0;
}

@media screen and (max-width: 568px) {
    .popup__title {
        font-size: 12px;
        line-height: 15px;
    }
}

.popup__image {
    max-height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

.popup__form {
    margin-top: 27px;
    display: flex;
    flex-direction: column;
}

.popup__ratio {
    display: flex;
}

.popup__content {
    max-width: 800px;
    width: 100%;
    min-height: 330px;
    background-color: #fff;
    border-radius: 10px;
    position: relative;
    box-sizing: border-box;
    padding: 34px 36px;
}

@media screen and (max-width: 568px) {
    .popup__content {
        width: 100%;
        max-width: calc(100% - 80px);
        margin-top: 40px;
        padding: 30px 20px;
    }
}

.popup__content_content_image {
    max-width: 75vw;
    max-height: 75vh;
    height: auto;
    width: auto;
    display: flex;
    background: transparent;
    -webkit-background-size: cover;
    background-size: cover;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    padding: 0;
}

.popup__close {
    width: 35px;
    height: 35px;
    background: transparent url('./images/close.svg') center no-repeat;
    background-size: 24px 24px;
    border: none;
    position: absolute;
    top: -36px;
    right: -34px;
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
    transition: visibility 0s, opacity 0.3s;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.popup__close:hover {
    opacity: 0.6;
}

.popup__caption {
    font-size: 12px;
    line-height: 15px;
    color: #fff;
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    margin: 0;
}

.popup__button {
    width: 100%;
    height: 50px;
    font-size: 18px;
    line-height: 22px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 2px;
    border: none;
    transition: visibility 0s, background 0.3s;
    margin-top: 48px;
}

.popup__button:last-child {
    margin-top: 20px;
}

.popup__button:hover {
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

@media screen and (max-width: 568px) {
    .popup__button {
        font-size: 14px;
        line-height: 17px;
    }
}

.places {
    font-family: 'Inter', Arial, sans-serif;
    padding: 15px 0 36px;
}

@media screen and (max-width: 568px) {
    .places {
        padding: 15px 0 18px;
    }
}
.places__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, 500px);
    justify-content: center;
    grid-gap: 20px 18px;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    font-family: 'Inter', Arial, sans-serif;
    flex-shrink: 1;
    width: 100%;
    background-color: var(--nav-background);
    padding: 15px 0;
    text-align: center;
    z-index: 1000;
}

@media screen and (max-width: 568px) {
    .footer {
        padding: 30px 0 36px;
    }
}
.footer__copyright {
    font-size: 18px;
    line-height: 22px;
    color: #545454;
    margin: 0;
}

@media screen and (max-width: 568px) {
    .footer__copyright {
        font-size: 14px;
        line-height: 17px;
    }
}
