.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.login a {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #333;
    text-decoration: none;
}

.login i {
    margin-right: 5px;
    font-size: 30px;
    color: #008752;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Устанавливаем минимальную высоту страницы на весь экран */
}

footer {
    background-color: #4d8c74;
    color: #fff;
    padding: 20px 0;
}

.wrapper {
    flex: 1;
    /* Расширяем wrapper, чтобы он занимал все доступное пространство, кроме футера */
}

.table-container {
    overflow-x: auto;
    /* Добавляем горизонтальный скролл, если содержимое превышает ширину контейнера */
    scrollbar-width: 2px;
    /* Толщина скролла (только Firefox) */
    scrollbar-color: #999999 #e0e0e0;
    /* Цвет скролла (только Firefox) */
}

/* Стили для скролла в браузерах на основе WebKit (Chrome, Safari) */
.table-container::-webkit-scrollbar {
    width: 2px;
    /* Ширина скролла */
}

@media screen and (max-width: 768px) {
    .header {
        flex-wrap: wrap;
    }

    .login {
        margin-top: 10px;
    }
}

/* main content style start */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: start;
    padding: 20px;
    border-top: 1px solid #f6f4f2;
    ;
}

.picture {
    flex: 1;
    max-width: 50%;
    height: auto;
    margin-right: 20px;
}

.form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.form input {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}


.login-form {
    display: none;
}

/* Modal login start*/
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 30%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.modal-header h2 {
    margin: 0;
}

.close {
    cursor: pointer;
    font-size: 24px;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-body label {
    display: block;
    margin-top: 10px;
}

.modal-body input {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.modal-body button {
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-body button:hover {
    background-color: #45a049;
}

#error-message {
    color: red;
    margin-top: 10px;
}

.elem-img {
    position: absolute;
    z-index: -1;
    top: 0px;
    right: 0px;
}

/* footer style start */
footer {
    background-color: #4d8c74;
    color: #fff;
    padding: 20px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/*form style start  */

.form-box {
    height: 560px;
    width: 380px;
    position: relative;
    margin: 6% auto;
    padding: 5px;
    overflow: hidden;

}

.toggle-btn {
    padding: 10px auto;
    ;
    cursor: pointer;
    background: transparent;
    border: 0;
    outline: none;
    position: relative;
    font-size: 17px;
    color: #333;
    background: #fff;
    border-radius: 5px;
    border: 1px solid green;

}

.toggle-btn:hover {
    background: #008752;
    color: #fff;
}

.btn-toPost {
    margin-right: 5px;
}

#btn {
    top: 0;
    left: 0;
    position: absolute;
    width: 110px;
    height: 100%;
    border-radius: 2px;

    transition: .5s;
}

.button-box {
    display: flex;
    justify-content: center;
    margin: 13px auto;
    position: relative;
}

.input-group {
    top: 100px;
    position: absolute;
    width: 320px;
    transition: .5s;
}

.input-field {
    width: 100%;
    padding: 10px 0;
    margin: 5px 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid #fff;
    outline: none;
    background: transparent;
}

#login {
    left: 30px;
}

#register {
    left: 430px;
}

.submit-btn {
    margin: auto !important;
    padding: 10px 30px;
    cursor: pointer;
    display: block;
    margin: auto;
    background: #19b241;
    border: 0;
    outline: none;
    color: #fff;
    border-radius: 3px !important;

}

input::placeholder {
    color: rgb(113, 105, 105);
}

.form-group {
    display: flex;
    justify-content: center;
}

.form-group input {
    width: 45%;
    margin-right: 4px;
}

.btn-search {
    background: #19b241;
    color: #fff;
}

.btn-post-wrapper {
    display: flex;
    justify-content: center;
}

.btn-post {
    position: absolute;
    bottom: 20px;
}

.sticky-bottom {
    position: absolute;
    bottom: 0;
    z-index: 1020;
}

#search_dannych {
    width: 50%;
}

.div_toplivo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.inner_toplivo {
    width: 60%;
    text-align: center;
}

.inner_toplivo table {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-collapse: collapse;
    text-align: center;
    line-height: 1.7;
}

.inner_toplivo table>th,
td {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.inner_toplivo th {
    color: #4d8c74;
}

.toplivo_p {
    font-size: 24px;
    font-weight: 600;
}

/* Media query for smaller screens */
@media only screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    ul {
        margin-bottom: 20px;
    }
}

/* Media queries */

@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .picture,
    .form {
        flex: none;
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 90%;
    }
}

@media screen and (max-width: 480px) {
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }

    .modal-body input {
        padding: 10px;
    }

    .modal-body button {
        padding: 12px;
    }

    .inner_toplivo {
        width: 80%;
    }

    .inner_toplivo table tr,
    th {
        font-size: 14px;
        padding: 0px 5px;
    }
}

@media screen and (max-width: 375px) {
    .form-box {
        max-width: 100%;
        margin: 0;
    }

    .input-group {
        width: 220px;
    }

    .form-box {
        padding: 0px;
    }

    .picture {
        margin: auto;
    }

    .elem-img {
        display: none;
    }
}

@media screen and (max-width: 320px) {
    #login {
        left: 28px;
    }
}

@media screen and (max-width: 800px) {
    #search_dannych {
        width: 100% !important;
    }
}

.container1 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0;
    /* <-- Apparently some margin are still there even though it's hidden */
}

.cookiesContent {
    width: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    color: #000;
    text-align: center;
    border-radius: 20px;
    padding: 30px 30px 70px;
}

.cookiesContent button.close {
    width: 30px;
    font-size: 20px;
    color: #c0c5cb;
    align-self: flex-end;
    background-color: transparent;
    border: none;
    margin-bottom: 10px;
}

.cookiesContent img {
    width: 150px;
    margin-bottom: 15px;
}

.cookiesContent p {
    margin-bottom: 40px;
    font-size: 18px;
}

.cookiesContent button.accept {
    background-color: #97ee7d;
    border: none;
    border-radius: 5px;
    width: 200px;
    padding: 14px;
    font-size: 16px;
    color: white;
    box-shadow: 0px 6px 18px -5px #97ee7d;
}

.order {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
}

.order p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

li {
    margin-bottom: 5px;
}