body {
    overflow-x: hidden;
}
body, header {
    padding: 0;
    margin: 0;
}
.navbar {
    width: 100%;
    background-color: black;
    color: white;
    display: flex;
    align-items: center;
}
.nav2::-webkit-scrollbar {
    display: none;
}

.nav2-item {
    height: 50px !important;
    width: 50px !important;
    min-width: 50px;
    min-height: 50px;
    border-radius: 30px;
    border: 2px solid #05efef;
    margin-bottom: 10px;
    margin-top: 15px;
    margin-right: 20px;
    display: flex; align-items: center; justify-content:center;
    background: linear-gradient(145deg, #1e90ff, #243a47); /* Градиентный фон */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), /* Внутренняя тень */
    0 4px 8px rgba(250, 250, 238, 0.91); /* Внешняя тень для выделения */
    transition: transform 0.2s, box-shadow 0.2s; /* Плавные переходы */
    cursor: pointer;
}
.nav2-item:hover {
    transform: scale(1.1); /* Увеличение при наведении */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7), /* Усиление внутренней тени */
    0 8px 16px rgba(253, 253, 106, 0.91); /* Усиление внешней тени */
}
/*.direct-button i {*/
.nav2-item {
    font-size: 24px; /* Размер иконки */
}
.nav1 {
    justify-content: space-between;
}
.nav1, .nav2, .nav4 {
    position: fixed;
    margin: 0;
}
.nav2 {
    top:21px;
    border-bottom: 2px solid grey;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Повышает качество прокрутки на iOS устройствах */
    scrollbar-width: none;
}
body {
    font-family: "Google Sans", Roboto, Arial, sans-serif;
}
.content2 {
    color:white;
    /*font-family: "Google Sans", Roboto, Arial, sans-serif;*/
}

html[data-theme="light"] .content2 {
    color: #223248;
    background:
        radial-gradient(circle at top left, rgba(138, 180, 248, 0.18) 0%, rgba(138, 180, 248, 0) 32%),
        radial-gradient(circle at top right, rgba(186, 156, 214, 0.20) 0%, rgba(186, 156, 214, 0) 34%),
        linear-gradient(135deg, #eef4fb 0%, #eceff9 48%, #efe6ef 100%);
}
.nav3 {
    /*position: sticky;*/
    background-color: #222222 !important;
    transition: top 0.3s;
    height: 30px;
    border-radius: 20px 30px 0 0;
    /*padding-left: 10px;*/
}
#nav3_menu{
  padding-left: 30px;
}
.none_style {
    padding: 0;
    margin: 0;
}
.nav3_content{
    background-color: #222222 !important;
}

html[data-theme="light"] .nav3_content {
    background-color: #edf3fa !important;
}

.nav4 {
    bottom: 0;
}

.round-button {
    flex: 1; /* Заставляет кнопки занимать равное пространство */
    text-align: center;
    margin: 0 10px;
    width: 80px;
    height: 80px;
    background-color: #222222 !important;
    border: none;
    color: white;
    border-radius: 50%;
    line-height: 50px;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s, box-shadow 0.3s;
    will-change: transform;
}

.round-button-label {
    white-space: nowrap;
    color: #ffffff;
}

html[data-theme="light"] .round-button {
    background: linear-gradient(180deg, #ffffff 0%, #f3f8fd 100%) !important;
    color: #0b84d8;
    border: 1px solid #cfe0ef;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 8px 18px rgba(11,132,216,0.12);
}

html[data-theme="light"] .round-button:hover {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 12px 22px rgba(11,132,216,0.16);
}

html[data-theme="light"] .round-button-label {
    color: #223248;
}
/* ==================================================================================== */

/* стили для выравнивания навбаров в одну строку */
.navbar-logo {
}
.nav-links {
    display: flex; /* Включаем Flexbox для ссылок, чтобы они располагались в ряд */
    list-style: none;
    padding: 0;

}
.nav-links li {
    padding: 0 10px;
}
.nav-links a {
    text-decoration: none;
    color: #fff;
}
/* стили для бургер меню */
.burger {
    display: none;
    cursor: pointer;
}
.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .nav-links {
        margin-right:30px;
        border: 1px solid white;
        border-radius: 10px;
        color: white;
        padding: 5px;
        display: none;
        position: absolute;
        right: 0;
        top: 8px;
        background-color: #1e1e1e;
        flex-direction: column;
        align-items: center;
        width: auto;
        /*transform: translateX(100%);*/
        transition: transform 0.5s ease-in;
        padding-top: 10px;
    }
    .burger {
        display: block;
    }
}
.nav2_content {
     background-image: linear-gradient(to right top, #736c9f 0%, #aa878d 100%);
    /*white-space: nowrap; !!! */
    /*white-space: nowrap;*/
    overflow-x: auto;
}

html[data-theme="light"] .nav2_content {
    background-image:
        radial-gradient(circle at top left, rgba(138, 180, 248, 0.20) 0%, rgba(138, 180, 248, 0) 34%),
        radial-gradient(circle at top right, rgba(244, 179, 200, 0.18) 0%, rgba(244, 179, 200, 0) 32%),
        linear-gradient(135deg, #eef4fb 0%, #e7eef8 46%, #efe6ef 100%);
}
.swipe-item {
    /*flex: 0 0 auto;*/
    display: inline-block;
    /*min-width: 200px;*/
    white-space: normal;
}
.nav-active {
    display: flex;
    transform: translateX(0%);
    height: auto;
}
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}
@media (max-width: 767px) {
    .tweet-actions {
        justify-content: space-between;
        display: flex;
        margin-top: 10px;
    }
}
/*.users {*/
/*    padding-left: 40px !important;*/
/*    padding-right: 40px !important;*/
/*}*/

/* для декстопов */
@media (min-width: 767px) {
    .users {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
}

.users {
    margin-top: 10px;
    perspective: 1000px; /* Добавляет перспективу для 3D-эффекта */
    margin-bottom: 40px;
}
.users .grid-container {
    margin-left: 12px;
    margin-right: 12px;
    margin-top: 0px;
    margin-bottom: -21px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: rotateX(40deg); /* Начальный 3D-эффект, наклон назад */
    box-shadow: 2px 2px 10px rgba(239,231,231,0.31);
    transform-origin: top center; /* Устанавливаем точку поворота */
}
.users .grid-container:last-child {
    margin-bottom:0px; /* Начальное состояние для последнего элемента */
}
.users .grid-container.active {
    transform: rotateX(0deg); /* Убирает 3D-эффект */
    box-shadow: none;
    margin-top: 7px;
    margin-bottom: 7px;
}
.user-item { cursor: pointer;}
