/* styles.css */
@font-face {
    font-family: 'Komix';
    src: url('data/komix.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Article';
    src: url('data/tresc.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

#custom-notice {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 16px 24px;
    border-radius: 10px;
    font-family: 'Komix', sans-serif;
    font-size: 18px;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

body {
    font-family: 'Komix', sans-serif;
    margin: 0;
    padding: 0;
    color: #fff;
    background-color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    margin: 0;
    padding: 0;
    color: #fff;
    max-width: 762px;
    border-radius: 8px;
    text-align: justify;

}

.article-about {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    margin: 0;
    padding: 0;
    color: #fff;
    max-width: 762px;
    border-radius: 8px;
    text-align: justify;

}

.content-container {
    display: flexbox;
    column-count: 2;
    column-gap: 10px;
    padding: 20px;
    max-width: 900px;
    width: 100%;
}

.card {
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid; /* dla starszych wersji WebKit – Safari, Chrome */
    page-break-inside: avoid; /* bardziej przydatne w druku, ale nie szkodzi dodać */
    padding: 16px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #3b3b3b;
    transition: transform 0.2s;
    box-sizing: border-box;
}

.card:hover {
    transform: scale(1.10);
}

.content-container:hover .card {
    transform: scale(0.9); /* Zmniejsza domyślnie wszystkie */
}

.content-container .card:hover {
    transform: scale(1.15);
}

.card img {
    width: 100%;
    height: auto;  /* zachowuje ori rozmiar */
    border-radius: 10px;
    margin-bottom: 10px;
    display: block;
}

.card h2 {
    font-size: 20px;
    margin: 12px 0;
}

.card p {
    color: #ff0000;
    font-size: 16px;
}

.load-more-btn {
    font-family: 'Komix';
    padding: 10px 20px;
    font-size: 18px;
    background-color: #ff0000;
    color: white;
    border: none;
    border-radius: 5px;
    margin: 20px;
    cursor: pointer;
    align-self: center;
    
}
.load-more-btn:hover {
    font-family: 'Komix';
    background-color: #fff;
 
}

header {
    background-color: #111;
    padding: 10px 0;
    width: 100%;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    flex: 1;
    text-align: center;
}

.logo img {
    height: 150px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 5px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}


main {
    padding: 20px;
    text-align: center;
}

section {
    margin-bottom: 40px;
}

.social-link {
    margin: 0 0px;
    color: #ff0000;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.5s ease;
}

.social-link:hover {
    text-decoration: none;
    color: #fff;
}

footer {
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    bottom: 0;
}

footer .social-media {
    margin-bottom: 10px;
}

footer .social-link {
    margin: 0 10px;
    color: #ff0000;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.5s ease;
}

footer .social-link:hover {
    text-decoration: none;
    color: #fff;
}

.image-container {
    position: relative;
    display: inline-block;
}

.thumbnail {
    display: block;
    width: 100%;
}

.date-overlay {
    position: absolute;
    bottom: 30px;
    right: 10px;
    background: #111;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.image-container:hover .date-overlay {
    opacity: 0.7;
}


@media screen and (max-width: 900px) {
    .card {
        width: 100%;
        max-width: 100%;
    }
}