body.dark-mode {
    background-color: #1e293b;
    color: #f0f0f0;
}

body.dark-mode .card {
    background-color: #0f172a;
    color: #fff;
    border-color: #334155;
}

body.dark-mode .modal-content {
    background-color: #18181b;
    color: #fff;
}

body.dark-mode #sidebar-posts .list-group-item {
    background-color: #0f172a;
    color: #fff;
    border-color: #334155;
}

body.dark-mode #sidebar-posts .list-group-item a {
    color: #76c7f1;
}

body.dark-mode #sidebar-posts .list-group-item a:hover {
    color: #fff;
}
body.dark-mode .btn-close {
    background-color: #ffffff; /* Világos háttér */
    border: none;
}

body.dark-mode .btn-close:hover {
    background-color: #cccccc; /* Kicsit sötétebb hover effekt */
}


footer {
    background-color: #0f172a;
    color: #ffffff;
    font-size: 0.9rem;
    padding: 2rem 0;
}
footer h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
footer a {
    color: #9ca3af;
    text-decoration: none;
}
footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}


footer.dark-mode {
    background-color: #0f172a;
}


#theme-toggle {
    transition: background-color 0.3s, color 0.3s;
}



.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05); /* Kicsit megnöveli a kártyát */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Árnyékot ad */
}


.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-date {
    font-size: 0.8rem;
    margin-bottom: 10px;
}






.modal img {
    max-height: 400px;
    object-fit: contain;
}


#sidebar-posts {
    list-style: none;
    padding: 0;
}

#sidebar-posts .list-group-item {
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    border-radius: 5px;
}

#sidebar-posts .list-group-item a {
    text-decoration: none;
    color: #007bff;
}

#sidebar-posts .list-group-item a:hover {
    text-decoration: underline;
    color: #0056b3;
}
