body {
    background-color: #f8f9fa;
    margin: 0;
    padding-top: 10px; /* Prevent navbar overlap */
}

.news-item {
    padding: 10px;
    margin: 10px 0;
    background: #ffffff;
    border-left: 5px solid #ffcc00;
    border-right: 5px solid #ffcc00;
    border-radius: 5px;
}

.news-item a {
    text-decoration: none;
    color: black;
}

.news-item a:hover {
    text-decoration: underline;
    color: #ffcc00;
}

.dark-mode .news-item {
    background: #333;
    color: white;
    border-left: 5px solid #ffcc00;
}

.dark-mode .news-item a {
    color: white;
}

.dark-mode .news-item a:hover {
    color: white;
}

/* Dark mode styles */
.dark-mode {
    background-color: #1e1e1e;
    color: white;
}

.dark-mode .navbar {
    background: #121212;
}

.dark-mode .crypto-card {
    background: #333;
    color: white;
}

.dark-mode .news-item {
    background: #333;
    color: white;
    border-left: 5px solid #ffcc00;
}

.dark-mode .news-item a {
    color: white;
}

.dark-mode .news-item a:hover {
    color: white;
}

/* Crypto Cards */
.crypto-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.crypto-card:hover {
    transform: translateY(-5px);
}

/* Dark Mode for Cards */
.dark-mode .crypto-card {
    background: #333;
    color: white;
}

.dark-mode .crypto-card:hover {
    color: white;
}

/* Scroll Up Button */
.scroll-up {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ffcc00;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s;
}

.scroll-up:hover {
    background: #ffcc00;
}

/* Footer Styles */
footer {
    background-color: #121212;
    color: white;
    padding: 20px 0;
}

footer a {
    color: #ffcc00;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}