*
{
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

body
{
    background: rgb(255, 255, 255);
    min-height: 100vh;
    font-size: 22px;
    font-family: "Lato", sans-serif;
}


header
{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

header div
{
    display: flex;
    justify-content: space-around;
    flex-grow: 1;
}


header img
{
    margin-right: auto;
    height: 150px;
}

#linki a
{
    text-decoration: none;
    color: black;
    text-align: center;
    font-size: xx-large;
    padding: 5px;
    transition: 0.5s;
    position: relative;
    overflow: hidden;
}

#linki a::after {
    content: "";
    background-color: cyan;
    height: 3px; 
    width: 100%; 
    position: absolute;
    left: -100%; 
    bottom: 0; 
    display: block;
    transition: 2s ease-out;
}

#linki a::before {
    content: "";
    background-color: #0076fd;
    height: 3px; 
    width: 100%; 
    position: absolute;
    left: 0; 
    bottom: 0; 
    display: block;
    transition: 0.3s ease-out;
}

#linki a:hover {
    scale: 1.1;
}

#linki a:hover:after {
    left: 100%;
    background-color: cyan;
}

#linki a:hover:before {
    left: 0; 
    transition-delay: 0.7s;
}


h1
{
    width: 100%;
    text-align: center;
    margin-top: 5px;
}

.powrot{
    position: fixed;
    bottom: 50px;
    right: 50px;
    height: 50px;
    width: 50px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(112, 120, 243, 0)) ;
    backdrop-filter: blur(2px);
    border: solid black 5px;
    border-radius: 25px;
    transition: 0.5s;
    z-index: 4;

    display: flex;
    align-items: center;
    justify-content:end;
    flex-direction: column;
   
}

.powrot:hover
{
    scale: 1.1;
}

.powrot i
{
    border: solid black;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 7px;
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
}

.galeria
{
    columns: 3;
    gap: 10px;
    padding: 5px;
}

img
{
    display: block;
    width: 100%;
    margin-bottom: 5px;
}

footer
{
    padding-top: 5px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    font-size: medium;
    gap: 5px;
    background-color: rgb(245, 245, 245);
}

@media (max-width: 880px)
{
    .galeria
    {
        columns: 2;
    }

    header
    {
        justify-content: center;
        background-color: white;
    }

    header img{
        margin-right: 0px;
    }

    .powrot
    {
        bottom: 10px;
        right: 10px;
    }
}

@media (max-width: 500px)
{
    .galeria
    {
        columns: 1;
    }
}