*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}
body{
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/castrol/_DSC4150\ \(1\).jpg);
    background-attachment: fixed;
    background-size: cover;
}
@supports (background-image: url("image.webp")) {
  body{
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/castrol/_DSC4150\ \(1\).webp);
  }
}
.header
{
    width: 100%;
    position: relative;
    background-position:center ;
    background-size: cover;
    background-attachment:fixed;
}
nav
{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}
nav #telefon
{
    display: inline-block;
}
nav .fa
{
    display: none;
}
.nav-links
{
    text-transform: uppercase;
    flex: 1;
    text-align: center;
}
.nav-links ul li
{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a
{
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}
.nav-links ul li::after
{
    content: '';
    width: 0%;
    height: 2px;
    background: #fd2617;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav-links ul li:hover::after
{
    width: 100%;
}
.social-icons img
{
    width: 60px;
    transition: 0.5s;
}
.social-icons a:hover img{
    transform: translateY(-10px);
}
@media(max-width:992px)
{
    .galeria
    {
    min-height: 100vh;
    width: 100%;
    position: relative;
    background-position:center ;
    background-size: cover;
    background-attachment:fixed;
    }
    .nav-links ul li
    {
        display: block;
    }
    .nav-links
    {
        position:absolute;
        background:rgb(39, 38, 54);
        height: 0;
        width: 200px;
        top: 0;
        text-align: left;
        right: 0;
        z-index: 2;
        transition: 1s;
        overflow: hidden;
    }
    nav .fa
    {
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 20px;
        cursor: pointer;
    }
    nav #telefon
    {
        padding: 35px;
    }
    .nav-links ul
    {
        text-align: center;
        padding: 30px;
    }
}
/*---------------------------------GALERIA------------------------*/
.galeria
{
    min-height: 100vh;
    width: 100%;
}
.karta{
    display: inline-block;
    margin: 1.5% 1.5% 3% 1.5%;
}
.karta img
{
    height:25vh;
    width: auto;
    padding: 0.5vh;
    background-color: rgb(27, 27, 37);
}
.karta img:hover
{
    transform: scale(1.7);
    padding: 2px;
    transition: 0.5s;
}
@media(max-width:992px)
{
    .karta img:hover
    {
        transform: scale(1.2);
        padding: 0;
    }
   
}
/*FOOTER*/
#footer{
    
    background-position:left;
}
.footer
{
    width: 100%;
    margin: 0;
}
#footer_H1{
    color: white;
    margin-bottom: 15px;
    padding-bottom: 0;
    text-align: center;
    font-size: large;
    width:100%;
}
.copyright
{
    color: white;
    margin-bottom: 0;
    padding-bottom: 0;
    text-align: center;
    width:100%;
}
