
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');



/* Resetowanie stylów */
* {
    font-family: "Red Hat Display", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styl dla całego ciała */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: rgba(48, 67, 124, 0.87);
}

/* Nagłówek z gradientem punktowym */
header {
    background-color: rgba(60, 86, 162, 1);
background-image: linear-gradient(90deg, rgba(60, 86, 162, 1) 0%, rgba(41, 53, 86, 1) 100%);
    color: #fff;
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    height: 100px;
    -webkit-box-shadow: 0px 13px 42px -12px rgba(9, 12, 73, 0.5);
-moz-box-shadow: 0px 13px 42px -12px rgba(9, 12, 73, 0.5);
box-shadow: 0px 13px 42px -12px rgba(9, 12, 73, 0.5);
    z-index: 999;
}

header .logo img {
    height: 40px;
    width: auto;
    display: block;
    padding-left: 20px;
    padding-top: 5px;
}

/* Styl dla całego menu */
header nav {
    display: flex;
    gap: 15px;
}


header nav a:hover {
    background-color: rgb(150, 156, 235, 0.5);
}

/* Styl dla rozwijanego menu */
.dropdown-menu {
    position: absolute;
    top: 45%; /* Menu poniżej przycisku profil */
    /*left: 0;*/
    background-color: rgba(255, 168, 83, 1);
    background-image: linear-gradient(90deg, rgba(255, 168, 83, 1) 0%, rgba(255, 104, 104, 1) 100%);
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    width: 170px;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
    margin: 5px;
}


/* Styl linków w menu */
.dropdown-menu a {
    display: block;
    text-decoration: none;
    color: #fff;
    padding: 5px 10px;
    border-radius: 0px;
    margin-bottom: 5px;
    text-align: center;
}

.dropdown-menu a:hover {
    background-color: rgb(255, 255, 255, 0.5);
    color: coral;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}




 .profil.hover {
    color: #743d28;
    transform: scale(1.02); /* Lekkie powiększenie */
    background-image: linear-gradient(90deg, rgba(255, 168, 83, 0.5) 0%, rgba(255, 104, 104, 0.5) 100%);
}


/* Styl dla przycisku z profilem użytkownika */
.profil {
    position: relative; /* Pozycjonowanie względem tego elementu */
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 25px;
    background-color: rgb(255, 255, 255, 1);
background-image: linear-gradient(90deg, rgba(255, 168, 83, 1) 0%, rgba(255, 104, 104, 1) 100%);
        transition: background-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease; /* Precyzyjne przejścia */

    box-shadow: 0px 0px 28px -5px rgba(66, 68, 90, 0.5);
    width: 180px;
    z-index: 20;
}

.null {
    height: 30px;
}

.zin {
    height: 100px;
    width: 100%;
    background-color: #fff;
}


  #content {
            margin: 0px 0px 10px 0px;
            padding-bottom: 0px;
            height: 100%;
}

/* Avatar użytkownika */
.profil .avatar {
    width: 30px; /* Ustaw szerokość avatara */
    height: 30px; /* Ustaw wysokość avatara */
    border-radius: 50%; /* Zaokrąglenie, aby był okrągły */
    object-fit: cover; /* Dopasowanie obrazka */
    border: 0px solid white;
     -webkit-box-shadow: inset 0px 0px 20px -7px rgba(0, 0, 0, 0.8);
-moz-box-shadow: inset 0px 0px 20px -7px rgba(0, 0, 0, 0.8);
box-shadow: inset 0px 0px 20px -7px rgba(0, 0, 0, 0.8);
}

.null {
    height: 30px;
}


/* Nick użytkownika */
.username {
    font-size: 1em;
    padding-left: 10px;
}

header nav a {
    color: #fff;
    text-decoration: none;
    padding: 5px 20px;
    border-radius: 25px;
    transition: background 0.3s;
    display: flex; /* Flexbox dla treści wewnątrz linku */
    align-items: center; /* Wyśrodkowanie w pionie w każdym linku */
    /* border: 1px solid #f4f4f4; */
}

/* Główna sekcja */
main {
    /* flex: 1;*/
    padding-top: 100px;
    background-color: white;
}

/* Stopka z gradientem punktowym */
footer {
    background-color: rgba(60, 86, 162, 1);
background-image: linear-gradient(90deg, rgba(60, 86, 162, 1) 0%, rgba(41, 53, 86, 1) 100%);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    position: relative;
    text-decoration: none;
}

footer ul, p, h4, .linki a {
  text-align: justify; /* Justowanie tekstu */
  list-style: none; /* Usuwa znaczniki listy */
}

footer a{
    text-decoration: none;
    color: #fff;
}

footer div ul {
    color: #fff;
}

footer div ul a {
    margin-left: 5px;
    margin-right: 5px;
}

footer .tabel {
    margin-top: 15px;
    gap: 60px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    align-content: stretch;
    font-size: 0.8em;
}

footer .tabel div {
    width: 230px;
}

footer a {
    margin-top: 15px;
    display: block;
}

.copyright {
    font-size: 0.6em;
}

.fi {
    margin-top: 5px;
    border-top: 0.1px solid rgb(255, 255, 255, 0.3);
}

h4 {
    margin-left: 5px;
}

/* Opcjonalnie: dostosowanie gradientu do większych ekranów */
header, footer {
    background-size: 150% 150%;
    background-position: center;
}

.linki a{
    margin-left: 5px;
}

@media (max-width: 768px) {
    
    
    /* Styl dla header */
    header {
        flex-direction: column; /* Nagłówek ułożony w kolumnie */
        padding: 10px; /* Zmniejszenie paddingu */
        height: 140px;
        z-index: 999;
    }

    header .logo img {
        height: 50px; /* Zmniejszenie logo */
        padding: 0;
        margin-top: 15px;
    }

    header nav {
        flex-direction: row; /* Menu w jednej kolumnie */
        gap: 10px; /* Zmniejszenie odstępów */
        margin-top: 20px;
    }

    header nav a {
        padding: 5px 10px; /* Zmniejszenie paddingu */
        font-size: 1 em; /* Mniejszy tekst */
        width: inherit;
    }

    /* Styl dla rozwijanego menu */
   
    .null {
        height: 20px;
    }
    /* Styl dla przycisku profilu */
    .profil {
        width: 160px; /* Przyciski zajmują całą szerokość */
        padding: 5px; /* Zmniejszenie paddingu */
        font-size: 1em; /* Mniejszy tekst */
        cursor: pointer;
    }
    
    .dropdown-menu {
        position: absolute; /* Pozycjonowanie jako normalny element */
        width: 140px; /* Rozciągnięcie na całą szerokość */
        border-radius: 4px; /* Usuń zaokrąglenia */
        top: 105px;
        margin: 10px;
    }
    

    /* Awatar użytkownika */
    .profil .avatar {
        width: 25px; /* Zmniejszenie awatara */
        height: 25px;
    }

    /* Główna sekcja */
    main {
        padding-top: 140px; /* Dostosowanie do mniejszego headera */
    }

    /* Stopka */
    footer .tabel {
        flex-direction: column; /* Tabele w jednej kolumnie */
        gap: 10px; /* Zmniejszenie odstępów */
    }

    footer .tabel div {
        width: 100%; /* Tabele zajmują całą szerokość */
    }


    h4 {
        font-size: 1em; /* Mniejszy tekst nagłówków */
    }

    .copyright {
        font-size: 0.7em; /* Mniejszy tekst w stopce */
    }

    /* Linki w stopce */
    footer div ul a {
        margin: 5px 0; /* Większy odstęp pionowy */
        text-align: left; /* Wyśrodkowanie linków */
        margin-left: 5px;
    }

    .linki a {
        margin: 5px 0;
        display: block; /* Linki w pionowej liście */
        margin-left: 5px;
    }
}