* {
    box-sizing: border-box;
}
body {
    background: #000;
    color: #fff;
    font-family: Arial, sans-serif;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.header {
    position: sticky;
    top: 0;
    background: #000;
    z-index: 1000;
    transition: all 0.5s ease;
    width: 100%;
}

.header.small {
    padding: 10px 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header.small .header-content {
    padding: 20px;
}

.header .logo img {
    transition: all 0.5s ease;
    width: 150px;
}

.header.small .logo img {
    width: 40px;
}


.logo img {
    max-width: 90px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.social-links a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}
.news-item a {
    color: #ff4081; /* Ваш цвет для ссылок */
    text-decoration: none; /* Удаление подчеркивания */
}

.news-item .news_time {
    margin: 10px 0;
    font-size: 0.9em;
    color: #aaa;
}


.news-item a:hover {
    color: #f50057; /* Цвет при наведении */
}
.news-item {
    display: block;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}
.news-item h2 {
    margin: 0;
}
.news-item p {
    margin: 0;
}
.news-item .source_info, .news-item .symbols_info {
    margin-top: 10px; /* Отступ сверху */
    color: #fff; /* Цвет текста для названия */
    font-size: 14px; /* Размер шрифта */
    font-weight: bold; /* Жирное начертание для названия */
}

.news-item .source_name {
    color: #ff4081; /* Цвет текста для Source Name */
}

.news-item .rel_symbols {
    color: #fff; /* Цвет текста для Related Symbols */
    background-color: #333; /* Фоновый цвет */
    padding: 5px; /* Внутренний отступ */
    border-radius: 5px; /* Скругление углов */
}


@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media screen and (max-width: 768px) {
    .social-links {
        justify-content: center;
    }
}
.fixed-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #000;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.fixed-footer a {
    color: white;
    margin: 0 10px;
}

.fixed-footer img {
    height: 40px;
    margin: 0 10px;
}

.app-store-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
}




/* Импорт кастомного шрифта, например, с Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif; /* Применяем шрифт ко всему сайту */
}

.menu {
    display: flex;
    flex-wrap: wrap; /* Позволяет элементам меню переноситься на новую строку при необходимости */
    justify-content: center; /* Центрирование элементов */
    gap: 10px; /* Пространство между элементами */
    padding: 5px;
    list-style: none; /* Убираем маркеры списка */
}

.menu-item {
    text-decoration: none;
    color: #fff;
    padding: 10px 15px;
    transition: color 0.3s ease;
    border-radius: 5px; /* Добавляем скругленные углы */
}

/* Стили для анимации и активного элемента */
.menu-item:hover,
.menu-item.active {
    background: linear-gradient(45deg, #ff9d00, #ff2d00);
    color: #000;
}

/* Медиа-запрос для устройств с более широким экраном */
@media (min-width: 768px) {
    .menu {
        flex-direction: row; /* Горизонтальное расположение элементов */
    }
}

/* Медиа-запрос для устройств с более узким экраном */
@media (max-width: 767px) {
    .menu-item {
        flex: 1 0 auto; /* Элементы занимают доступное пространство */
    }
}




.search-form {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.input-container {
    display: flex;
    justify-content: start;
    align-items: center;
}

.search-button {
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    margin-left: 10px;
    background-color: white;
    color: black;
    cursor: pointer;
}

.search-input {
    border: 1px solid white;
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    max-width: 300px;
    color: white;
    background-color: transparent;
}


.reset-button {
    display: flex;
    justify-content: center;
    background: white;
    color: black;
    border-radius: 20px;
    border: 2px solid white;
    padding: 10px;
    margin: 20px 0;
    text-decoration: none;
}

.reset-button:hover {
    background: grey;
    transition: background 0.3s;
}





.news-tabs {
    text-align: center;
    margin-bottom: 20px;
}

.tab-button {
    background-color: #f1f1f1;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 20px;
    transition: background-color 0.3s;
}

.tab-button:hover {
    background-color: #ddd;
}

.tab-button.active {
    background-color: #ccc;
}






@media (max-width: 850px) {
    .search-input, .search-button {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-button {
        margin-left: 15; /* обнуляем для мобильных устройств */
        margin-top: 0px; /* добавляем верхний отступ для мобильных устройств */
    }

    .search-form {
        flex-direction: column;
    }

    .reset-button {
        width: 100%;
    }
}






.top-coins-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(35, 10, 10, 0.8); /* Черный глянцевый фон с немного прозрачности */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Добавление тени для глубины */
    overflow-x: hidden;
    white-space: nowrap;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 5px 0; /* Уменьшенная высота плашки */
}

.coin-info {
    display: flex;
    align-items: center;
    margin: 0 10px;
    color: #fff;
}

.coin-logo {
    height: 20px; /* Уменьшенный размер логотипа */
    margin-right: 5px;
}

.coin-price {
    font-weight: bold;
    color: #ff4081;
    font-size: 0.9em;
}

.coin-symbol {
    margin-right: 5px;
    font-size: 0.9em;
    color: #e0e0e0; /* Светлый оттенок для названия валюты */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .top-coins-container {
        justify-content: center; /* Центрирование элементов */
        overflow-x: visible;
    }
    .top-coins-container .coin-info:nth-child(n+4) {
        display: none; /* Скрывать элементы, начиная с четвертого */
    }

    .coin-info {
        /* flex: 1; Рассмотрите возможность удаления или изменения этого свойства */
        margin-right: 15px;
    }
}

@media (max-width: 320px) {
    .top-coins-container {
        justify-content: space-between;
    }
    .coin-info {
        flex: 0 0 auto; /* элементы не будут сжиматься и растягиваться */
        width: 100px; /* или другая фиксированная ширина, подходящая для вашего дизайна */
        margin: 0 5px; /* Уменьшение отступов */
    }
    .coin-symbol, .coin-price {
        font-size: 3vw;
    }
}

