@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');
html {
    scroll-behavior: smooth;
  }
  
body {
    margin-left: 22%;
    margin-right: 22%;
    margin-top: 1.2%;
    background-color: #f8f8f8;
    font-family: "Roboto Mono", monospace;
    font-weight: 400;
    font-style: normal;
    letter-spacing: -0.02em;
    overflow-x: hidden;
}

header {
    height: 5%;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding: 15px 0;
}

header a {
    color: rgb(1, 147, 231);
    text-decoration: none;
}

/* Kursor animowany */
.cursor {
    width: 10px;
    height: 15px;
    background-color: rgb(1, 147, 231);
    animation: blink 1s steps(2, start) infinite;
    flex-shrink: 0;
    transform: translateZ(0);
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

/* Menu desktop */
.menu-right {
    margin-left: auto;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.menu-right a {
    color: rgb(58, 58, 58);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.menu-right a:hover {
    color: rgb(87, 87, 87);
    font-weight: 600;
}

/* Przycisk hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Responsywność - wersja mobilna */
@media (max-width: 768px) {
    body {
        margin-left: 5%;
        margin-right: 5%;
    }

    .hamburger {
        display: block;
    }

    .menu-right {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: #f8f8f8;
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 0;
    }

    .menu-right.active {
        display: flex;
    }

    .menu-right a {
        padding: 15px 0;
        border-bottom: 1px solid #e0e0e0;
        color: #333;
        font-size: 18px;
    }

    /* Animacja hamburger -> krzyżyk */
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 5px);
    }

    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Reszta stylów */
main {
    margin-top: 10%;
}

h5 {
    color: rgb(31, 30, 30);
    font-weight: 400;
}

a {
    color: rgb(1, 147, 231);
    text-decoration: none;
}

.post tr {
    height: 5px;
}

.post table {
    border-collapse: collapse;
    line-height: 1.2;
}

.post td {
    padding: 0;
    margin: 0;
    vertical-align: top;
}

table {
    border-spacing: 0 10px;
    border-collapse: separate;
}

h1 {
    font-size: clamp(24px, 5.6vw, 44px);
}

h2 {
    font-size: clamp(20px, 4.6vw, 36px);
}

h3 {
    font-size: clamp(16px, 3.6vw, 28px);
}

h4 {
    font-size: clamp(14px, 2.6vw, 24px);
}

h5 {
    font-size: clamp(12px, 2.1vw, 20px);
}

h6 {
    font-size: clamp(10px, 1.6vw, 16px);
}

/* Poprawki dla kursora na mobile */
@media (max-width: 600px) {
    .cursor {
        width: 14px;
        height: 20px;
    }
}

@media (max-width: 600px) {
    h6 {
        font-size: clamp(16px, 2.8vw, 26px);
    }
}
.foto img
{
    width: 40vw;
    height: auto;
}
@media (max-width: 768px) {
    .foto img {
        width: 80vw;
    }
}
@media (max-width: 600px) {
    h5 {
        font-size: clamp(21px, 3.1vw, 31px);
    }
}
.info {
    display: flex;
    align-items: center; /* wyrównanie ikonki i tekstu do środka pionowo */
    gap: 8px; /* odstęp między ikoną a tekstem */
    font-size: 22px; /* wielkość tekstu */
}

.info img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
