body {
    /*background-color: #213739;*/
    background-image: url('../img/bg3.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg3.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    /*filter: blur(2px);*/
    filter: brightness(0.7);
    z-index: -1; /* Встановлює шар позаду головного контенту */
}

/* Основные стили для шапки */
header {
    background-color: #262626;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрируем содержимое по горизонтали */
    justify-content: space-between;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 15px;
    width: 200px;
    text-align: center;
}

.delete-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background-color: #c0392b;
}

.nick{
    font-size:14px;
    font-weight: bold;
    color:red;
    float:left;
}
/* Основное меню */
.menu {
    display: flex;
    justify-content: center;
    margin-right:30px;
}

/* Стили списка в меню */
.menu ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Позволит элементам переходить на следующую строку при необходимости */
    justify-content: center; /* Центрирование элементов */
}

/* Стили пунктов меню */
.menu ul li {
    margin: 0;
}

/* Стили ссылок в меню */
.menu ul li a {
    text-decoration: none;
    font-size: 16px;
    color: #E5E5E5;
    font-weight: bold;
    text-transform: uppercase;
    padding: 10px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

/* Стили при наведении на ссылки */
.menu ul li a:hover {
    color: white;
}

/* Активная ссылка */
.menu ul li a.active {
    color: #18b69b;
    border-bottom: 2px solid #18b69b;
}

/* Адаптация под мобильные устройства */
@media (max-width: 768px) {
    /* Изменяем размер шрифта и уменьшаем отступы для меню на мобильных устройствах */
    .menu ul li a {
        font-size: 14px; /* Меньший размер шрифта */
        padding: 8px 5px; /* Меньшие отступы */
    }
    
    /* Уменьшаем отступы между элементами */
    .menu ul li {
        margin: 0 5px; /* Уменьшенный отступ */
    }

    /* Меню будет занимать всё пространство */
    .menu ul {
        justify-content: space-around; /* Равномерное распределение пунктов */
        flex-wrap: wrap; /* Пункты будут переходить на новую строку при необходимости */
    }
}

/* Дополнительная адаптация под очень маленькие экраны */
@media (max-width: 480px) {
    /* Ещё больше уменьшаем шрифт и отступы */
    .menu ul li a {
        font-size: 13px; 
        padding: 6px 3px;
    }
}


h1 {
    text-align: center;
    color: #ebebeb;
    text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
}

/*h4 {*/
/*    text-align: right;*/
/*    color: #ebebeb;*/
/*    margin-right: 140px;*/
/*    font-size: 20px;*/
/*    font-weight: bold;*/
/*    text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);*/
/*}*/
/* Стиль для h4 */
h4 {
    color: #ebebeb;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
    margin: 0; /* Убираем отступы */
    margin-top:17px;
}

/* Для десктопа */
.header-container {
    display: flex;
    justify-content: flex-end; /* Выровнено по правому краю */
    padding: 10px 140px; /* Отступы от краев */
    position: relative; /* Относительное позиционирование */
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .header-container {
        justify-content: center; /* Выравниваем по центру */
        padding: 10px; /* Убираем отступы от краев */
    }

    h4 {
        text-align: center; /* Центрируем текст */
    }
}

.upload-section {
    text-align: center;
    display: flex;
    flex-direction: column; /* Расположение кнопок вертикально */
    align-items: center; /* Центровка по горизонтали */
    gap: 10px; /* Расстояние между кнопками */
}

/* уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #008d34;
    color: white;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.notification.show {
    opacity: 0.9;
    transform: translateX(0);
}

.upload-btn {
    background-color: #262626;
    color: white;
    padding: 8px 20px;
    border-radius: 100px;
    border: 2px solid #1f7c6e;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-align: center;
    /*text-transform: uppercase;*/
    display: inline-block;
    margin: 10px 0;
}

.upload-btn:hover {
    background-color: #1f7c6e;
    transform: scale(1.03, 1.03);
    transition: all 0.2s ease-in-out;
    background-color: #185d52;
}

.knife-input {
    background-color: #262626;
    color: white;
    padding: 8px 20px;
    border-radius: 100px;
    border: 2px solid #1f7c6e;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    text-align: center;
    /*text-transform: uppercase;*/
    display: inline-block;
    margin: 10px 0;
    width:150px;
}

.knife-input:hover {
    background-color: #262626;
    transform: scale(1.03, 1.03);
    transition: all 0.2s ease-in-out;
}

.hidden-input {
    display: none;
}


.scroll-down-btn {
    position: fixed;
    bottom: 15px;
    right: 38px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    /*outline: none;*/
    transition: 0.5s ease;
    z-index: 1000;
}

.scroll-down-btn:hover {
    transition: 0.5s ease;
    transform: scale(1.1);
}

.scroll-down-btn img {
    width: 80px;
    height: 80px;

}


#topNubex {
    position: fixed;
    right: 45px;
    bottom: 12%;
    z-index: 99999;
}

.toppink {
    max-width: 80px;
    transition: 0.5s ease;
    cursor: pointer;
}

.toppink:hover {
    transform: scale(1.1);
    transition: 0.5s ease;
}

.card-board {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px;
    color: #1f7c6e;
}

.card {
    background-color: #262626;
    border-radius: 12px;
    border: solid 2px #18b69b;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
    margin: 20px;
    padding: 20px;
    width: 300px;
    transition: all 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0px 2px 30px rgba(0, 0, 0, 0.3);
}

.card-image img {
    width: 100%;
    height: 230px;
    object-fit: contain;
    border-radius: 12px;
}

.title, .payment {
    color: #cbc9c9;
}

.title {
    font-size: 17px;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: center;
}

.link {
    font-size: 18px;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: center;
}

a:-webkit-any-link {
    color: #18b69b;
    cursor: pointer;
    text-decoration: underline;
}

.payment {
    font-size: 22px;
    font-weight: 500;
    margin-top: 5px;
    margin-bottom: 10px;
}

.sub-title {
    font-size: 16px;
    font-weight: 300;
    margin-top: 10px;
    margin-bottom: 20px;
    color: #343434;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #1f7c6e;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    box-sizing: border-box;
    /*width: 100%;*/
    width: 120px;
    height: 40px;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    margin: 0 auto;
    margin-left: 30%;
}

.btn svg {
    margin-left: 12px;
    margin-top: -4px;
}

.btn:hover {
    background-color: #1f7c6e;
}

.btn:hover:after {
    transform: scale(1.03, 1.15);
}

.btn:after {
    content: '';
    background-color: #1f7c6e;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.5;
    width: 100%;
    height: 100%;
    z-index: -1;
    border-radius: 100px;
    transition: all 0.2s ease-in-out;
}

.btn-xl {
    padding: 15px 30px;
    text-align: center;
    width: fit-content;
}

.btn-main {
    margin-top: 32px;
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
}

@media only screen and (max-width: 600px) {
    .toppink {
        max-width: 65px;
        transition: 0.5s ease;
        z-index: 9999999;
    }

    .toppink:hover {
        max-width: 60px;
        transition: 0.5s ease;
    }

    .card-board {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 68%;
        margin: 10px auto;
    }

    .btn {
        padding: 10px 20px;
        font-size: 16px;
    }

    .btn:hover:after {
        transform: scale(1.02, 1.2);
    }

    .btn-xl {
        padding: 12px 24px;
        font-size: 20px;
    }

    /*h4 {*/
    /*    text-align: left;*/
    /*    color: #1f7c6e;*/
    /*    font-size: 20px;*/
    /*}*/
    /*h4 {*/
    /*    color: #ebebeb;*/
    /*    font-size: 20px;*/
    /*    margin-right: 155px;*/
    /*    text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);*/
    /*}*/

    #topNubex {
        position: fixed;
        /*right: 0;*/
        left: 84.5%;
        bottom: 80px;
        z-index: 999999;
    }

    .scroll-down-btn {
        position: fixed;
        bottom: 15px;
        left: 83%;
        background-color: transparent;
        border: none;
        cursor: pointer;
        outline: none;
        z-index: 1000;
    }

    .scroll-down-btn img {
        width: 66px;
        height: 66px;

    }
}