/* Ogólne style resetujące */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Czcionki */
@font-face {
    font-family: 'Font-UltraLight';
    src: url('/static/fonts/Barlow/Barlow-ExtraLight.ttf') format('opentype');
}
@font-face {
    font-family: 'Font-Regular';
    src: url('/static/fonts/Barlow/Barlow-Regular.ttf') format('opentype');
}

/* Stylowanie ciała strony */
body {
    background-image: url('/static/Images/hans.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    height: 100vh;
    margin: 0;
    font-family: 'Font-UltraLight', sans-serif;
    line-height: 1.6;
    overflow-y: auto;
    overflow-x: hidden; /* Brak przewijania poziomego */
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(8px);
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.7);
    width: 80%;
    max-width: 1200px;
    min-width: 600px;
    margin: auto;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    margin-bottom: 50px;
    top: 50%;
    transform: translateY(-50%);
    transition: height 0.5s ease-in-out;
    animation: slide-in 1.5s ease-out forwards;
}

.content {
    display: none;
    position: absolute;
    width: 100%;
    top: 0;
    left: 100%;
    transition: left 0.5s ease;
}

.content.active {
    display: block;
    left: 0;
}

.content.slide-left {
    left: -100%;
}

.content.slide-right {
    left: 100%;
}

nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 0;
    width: 100%;
    margin: 0;
}

nav ul li {
    flex: 1;
    text-align: center;
    margin: 0;
    padding: 15px;
    border-bottom: 1px solid #ccc;
}

nav ul li a {
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 auto;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    text-indent: -9999px;
    transition: background-image 0.3s ease, transform 0.3s ease;
}

nav ul li a.home {
    background-image: url('/static/Images/Header/home.png');
}

nav ul li a.about {
    background-image: url('/static/Images/Header/group.png');
}

nav ul li a.articles {
    background-image: url('/static/Images/Header/layers.png');
}

nav ul li a.github {
    background-image: url('/static/Images/Header/github.png');
}

nav ul li a.linkedin {
    background-image: url('/static/Images/Header/linkedin.png');
}

nav ul li a.home:hover {
    background-image: url('/static/Images/Header/home-grey.png');
    transform: translateY(-5px);
}

nav ul li a.about:hover {
    background-image: url('/static/Images/Header/group-grey.png');
    transform: translateY(-5px);
}

nav ul li a.articles:hover {
    background-image: url('/static/Images/Header/layers-grey.png');
    transform: translateY(-5px);
}

nav ul li a.github:hover {
    background-image: url('/static/Images/Header/github-grey.png');
    transform: translateY(-5px);
}

nav ul li a.linkedin:hover {
    background-image: url('/static/Images/Header/linkedin-grey.png');
    transform: translateY(-5px);
}

/* Stylowanie głównej sekcji */
main {
    padding: 20px 0;
}

a {
    text-decoration: none;
}

/* Stylowanie sekcji artykułu */
.article {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.article h2 {
    font-size: 3em;
    margin-bottom: 10px;
    font-family: 'Font-Regular', sans-serif;
}

.article p {
    margin-bottom: 20px;
}

.article .content {
    flex: 2;
    padding-right: 20px;
}

.article .image {
    flex: 1;
}

.article .image img {
    max-width: 100%;
    height: auto;
}

/* Stylowanie stopki */
footer {
    color: black;
    text-align: center;
    padding: 10px 0;
    border-radius: 20px;
    font-size: 1em;
    border-top: 1px solid #ccc;
}

.read-more {
    text-align: left;
    margin-top: 20px;
}

.read-more a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    font-style: italic;
}

.read-more a:hover {
    color: #555;
}

.profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-info {
    flex: 1;
    padding-right: 20px;
}

.profile-info h2 {
    margin-bottom: 10px;
    font-size: 4em;
}

.profile-info p {
    font-size: 1.5em;
}

.profile-picture {
    flex: 1;
    text-align: center;
}

.profile-picture img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid black;
}

/* Media queries */
@media (max-width: 800px) {
    body {
        overflow-x: hidden; /* Brak przewijania poziomego */
        background-image: url('/static/Images/hans.jpg'); /* Tło jak w wersji desktopowej */
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
    }

    .container {
        width: 95%; /* Szerokość kontenera na 95% szerokości ekranu */
        min-width: 0; /* Brak minimalnej szerokości */
        height: auto;
        padding: 5%;
        margin: 5% auto; /* Ustalanie marginesów */
        border-radius: 10px; /* Zmniejszenie zaokrąglenia */
        box-shadow: none; /* Brak cieniowania dla uproszczenia wyglądu */
        backdrop-filter: blur(3px); /* Delikatny efekt rozmycia tła */
        background-color: rgba(255, 255, 255, 0.9); /* Większa przezroczystość */
    }

    .profile {
        flex-direction: column; /* Ustawienie obrazka pod tekstem */
        align-items: center;
        gap: 10px; /* Dodanie odstępu między elementami */
    }

    .profile-info {
        text-align: center; /* Wyśrodkowanie tekstu */
    }

    .profile-info h2 {
        font-size: 1.5em;
    }

    .profile-info p {
        font-size: 1em;
    }

    .profile-picture img {
        width: 200px; /* Większy rozmiar obrazka */
        height: 200px;
        max-width: none;
        max-height: none;
        border-radius: 10px; /* Kwadratowy kształt */
        border: 2px solid #333;
    }

    nav ul {
        flex-direction: row;
        justify-content: space-around;
        padding: 5% 0;
    }

    nav ul li {
        padding: 2%;
    }

    nav ul li a {
        width: 40px;
        height: 40px;
    }

    footer {
        font-size: 0.8em;
        padding: 5%;
        margin-top: 10%;
        color:black;
        border-radius: 10px;
        width: 100%;
        box-shadow: none;
    }

    .article {
        flex-direction: column;
        text-align: center;
    }

    .article .content {
        padding-right: 0;
    }

    .article .image {
        margin-bottom: 10px;
    }
}

/* Media queries dla maksymalnej responsywności */
@media (max-width: 500px) {
    body {
        overflow-x: hidden; /* Brak przewijania poziomego */
        background-image: url('/static/Images/hans.jpg'); /* Tło jak w wersji desktopowej */
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
    }

    .container {
        width: 95%; /* Zwiększenie szerokości kontenera do 95% */
        height: auto;
        padding: 5%;
        margin: 5% auto; /* Marginesy */
        border-radius: 10px; /* Mniejsze zaokrąglenia */
        box-shadow: none; /* Brak cieniowania */
        backdrop-filter: blur(3px); /* Delikatny efekt rozmycia tła */
        background-color: rgba(255, 255, 255, 0.98); /* Większa przezroczystość */
    }

    .profile {
        flex-direction: column; /* Ustawienie obrazka pod tekstem */
        align-items: center;
        gap: 15px; /* Większy odstęp między elementami */
    }

    .profile-info {
        text-align: center; /* Wyśrodkowanie tekstu */
    }

    .profile-info h2 {
        font-size: 2em; /* Dostosowanie rozmiaru tekstu */
    }

    .profile-info p {
        font-size: 1.2em; /* Dostosowanie rozmiaru tekstu */
    }

    .profile-picture img {
        width: 350px; /* Dostosowanie rozmiaru obrazka */
        height: 350px;
        max-width: none;
        max-height: none;
        border-radius: 10px; /* Kwadratowy kształt */
        border: 2px solid rgba(0,0,0,0);
    }

    nav ul {
        flex-direction: row;
        justify-content: space-around;
        padding: 5% 0;
    }

    nav ul li {
        padding: 2%;
    }

    nav ul li a {
        width: 40px; /* Większy rozmiar ikon */
        height: 40px;
    }

    footer {
        font-size: 0.8em;
        padding: 5%;
        margin-top: 10%;
        color: black;
        border-radius: 10px;
        width: 100%;
        box-shadow: none;
    }

    .article {
        flex-direction: column;
        text-align: center;
    }

    .article .content {
        padding-right: 0;
    }

    .article .image {
        margin-bottom: 10px;
        width: 100%;
    }
}

@media (max-width: 375px) {
    body {
        overflow-x: hidden; /* Brak przewijania poziomego */
        background-image: url('/static/Images/hans.jpg'); /* Tło jak w wersji desktopowej */
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
    }

    .container {
        width: 95%; /* Szerokość kontenera na 95% szerokości ekranu */
        height: auto;
        padding: 5%;
        margin: 5% auto; /* Marginesy */
        border-radius: 5px; /* Mniejsze zaokrąglenia */
        box-shadow: none; /* Brak cieniowania */
        backdrop-filter: blur(3px); /* Delikatny efekt rozmycia tła */
        background-color: rgba(255, 255, 255, 0.98); /* Większa przezroczystość */
    }

    .profile {
        flex-direction: column; /* Ustawienie obrazka pod tekstem */
        align-items: center;
        gap: 10px; /* Większy odstęp między elementami */
    }

    .profile-info {
        text-align: center; /* Wyśrodkowanie tekstu */
    }

    .profile-info h2 {
        font-size: 2em; /* Dostosowanie rozmiaru tekstu */
    }

    .profile-info p {
        font-size: 0.5em; /* Dostosowanie rozmiaru tekstu */
    }

    .profile-picture img {
        width: 200px; /* Większy rozmiar obrazka */
        height: 200px;
        max-width: none;
        max-height: none;
        border-radius: 5px; /* Kwadratowy kształt */
        border: 1px solid rgba(0,0,0,0);
    }

    nav ul {
        flex-direction: row;
        justify-content: space-around;
        padding: 5% 0;
    }

    nav ul li {
        padding: 2%;
    }

    nav ul li a {
        width: 30px; /* Mniejszy rozmiar ikon */
        height: 30px;
    }

    footer {
        font-size: 0.6em;
        padding: 5%;
        margin-top: 5%;
        color: black;
        border-radius: 5px;
        width: 100%;
        box-shadow: none;
    }

    .article {
        flex-direction: column;
        text-align: center;
    }

    .article .content {
        padding-right: 0;
    }

    .article .image {
        margin-bottom: 10px;
        width: 100%;
    }
}
