/* Import czcionki DejaVu Sans w formacie .ttf */
@font-face {
    font-family: "DejaVu Sans";
    src: url("/fonts/DejaVuSans.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
a > img {
    width: 100%;
}
video {
    width: 100%;
}
iframe {
    width: 100%;
}

.belka {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.open-article-btn {
    margin-left: 10px; /* Opcjonalnie, aby dodać odstęp między linkiem a przyciskiem */
}
/* Styl dla okna modalnego */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;

    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;

    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    position: relative;
}
.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 10000;
    background: #fff;
    padding: 5px 10px;
    border-radius: 50%;
    border-width: 1px;
    border-color: black;
    border-style: outset;
}

/*.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
*/
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}
/*
#article-content {
    font-family: 'DejaVu Sans', Arial, sans-serif;
    line-height: 1.6;
    padding-top: 2rem;
}
*/
/* Pełnoekranowe okno modalne na urządzeniach mobilnych */
@media screen and (max-width: 768px) {
    .modal {
        padding: 0;
    }

    .modal-content {
        margin: 0;
        padding: 10px;
        padding-top: 2rem;
        width: 100%;
        /*       height: 100%;
        max-height: 100vh;*/
        border: none;
        word-wrap: break-word;
        border-radius: 0;
        box-sizing: border-box;
    }

    .close {
        font-size: 32px; /* Większy przycisk zamykania dla łatwiejszego klikania */
        top: 10px;
        right: 15px;
    }
}

.article-container {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.8;
    color: #2a2a2a;
    background-color: #fcfcfa;
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}

.article-container h1,
.article-container h2,
.article-container h3 {
    font-family: "Helvetica Neue", Helvetica, sans-serif;
    font-weight: bold;
    color: #1a1a1a;
    margin-top: 2em;
    margin-bottom: 0.5em;
    line-height: 1.4;
}

.article-container p {
    margin: 1.2em 0;
}

.article-container blockquote {
    border-left: 4px solid #ccc;
    margin: 1.5em 0;
    padding-left: 1em;
    color: #555;
    font-style: italic;
}

.article-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
}

.article-container a {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 1px solid #cce4f6;
}
.article-container a:hover {
    text-decoration: underline;
}

@font-face {
    font-family: "DejaVu Sans";
    src: url("/fonts/DejaVuSans.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
body {
    font-family: "DejaVu Sans", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    word-wrap: break-word;
    width: 100%;
    height: 100%;
}
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    position: relative;
    z-index: 998;
}
h1 {
    color: #333;

    text-align: center;
    padding: 20px;
}
.hamburger {
    font-size: 24px;
    cursor: pointer;
    color: #333;
    position: fixed;
    top: 15px;
    left: 20px;
    z-index: 10002;
    background: #fff;
    padding: 5px 10px;
    border-radius: 4px;
}
.nav-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 250px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    overflow-y: auto; /* Włącz przewijanie */
    max-height: calc(100vh - 60px); /* Maksymalna wysokość */
}
.nav-menu.active {
    display: block;
}
.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.nav-menu li {
    padding: 15px;
    border-bottom: 1px solid #eee;
}
.nav-menu a {
    color: #0077cc;
    text-decoration: none;
    font-size: 1em;
}
.nav-menu a:hover {
    text-decoration: underline;
}
.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 20px;
    padding: 10px;
    margin-top: 60px;
}
main-article {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
figure {
    margin-inline-start: 4px;
    margin-inline-end: 4px;
}
h2 {
    margin: 0;
    font-size: 1.5em;
    color: #0077cc;
}
p {
    margin: 5px 0;
    color: #555;
}
a {
    color: #0077cc;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.date {
    font-size: 0.9em;
    color: #999;
}
.summary {
    margin-top: 10px;
    font-size: 1em;
    color: #333;
}
.source {
    font-size: 0.9em;
    color: #0077cc;
    font-weight: bold;
}
img {
    height: auto;
    width: 100%;
}
/* Okno modalne - podstawowy styl */

/* Licznik postępu */
/* Pasek postępu */
#fetch-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10003;
    font-size: 1.2em;
    text-align: center;
    display: none;
    width: 200px;
}
#progress-bar {
    background: #007bff;
    height: 10px;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 5px;
    margin-bottom: 10px;
}
#progress-text {
    display: block;
    color: #333;
}
/* Responsywne menu i modal */
@media screen and (max-width: 768px) {
    .nav-menu {
        width: 100%;
        max-height: calc(100vh - 60px); /* Maksymalna wysokość na mobile */
    }
    .hamburger {
        top: 10px;
        left: 15px;
        font-size: 28px;
    }

    /*             #article-content {
                            max-height: 90vh;
                        }
                       .close {
                            font-size: 32px;
                            top: 10px;
                            right: 15px;
                        }
             */
    .close {
        color: #aaa;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        position: fixed;
        top: 15px;
        right: 20px;
        z-index: 10000;
        background: #fff;
        padding: 5px 10px;
        border-radius: 50%;
    }
}

sup {
    text-align: center;
    margin: 0 auto;
    display: block;
}
video {
    height: auto;
}

#gauge-container>svg {
    width: 200px;
    height: 150px;
}
