html{
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body{
    background-color: white;
    margin: 0;
    padding: 0;
    color: white;
    font-family: 'Lato', sans-serif;
}
/* header */
header{
    position: fixed;
    top: 0;
    width: fit-content;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 9999;
}
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: black;
    border-radius: 0 0 25px 25px;
    box-shadow: 0 0 5px black;
}
li {
    float: left;
}
li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    text-shadow: 2px 2px 10px black;
}
li a:hover:not(.active) {
    background-color: #111;
}
.active {
    background-color: #04AA6D;
}
/* Style the navigation menu */
.topnav {
  overflow: hidden;
  background-color: black;
  position: relative;
  z-index: 99999;
  display: none;
  text-shadow: 2px 2px 10px black;
  box-shadow: 0 0 5px black;
}
/* Hide the links inside the navigation menu (except for logo/home) */
.topnav #myLinks {
  display: none;
}
/* Style navigation menu links */
.topnav a {
  color: white;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  display: block;
}
/* Style the hamburger menu */
.topnav a.icon {
    background: black;
    color: white;
    width: 16px;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
}
/* Add a grey background color on mouse-over */
.topnav a:hover {
  background-color: #111;
  color: white;
  text-shadow: none;
}
#telnumbernav{
    text-align: center;
}
/* Article */
#firstArticle{
    background-image: url("../img/webp/topbackground.webp");
    background-size: cover;
    background-position: center;
    padding-top: 80px;
    padding-bottom: 25px;
    box-shadow: 0 0 10px black;
    min-height: 400px; /* without logo */
    position: relative; /* without logo */
}
#logo{
    transform: scale(2);
    overflow: hidden;
}
.logonow{ /* without logo */
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.logonow h1{ /* without logo */
    font-size: 96px;
    animation-name: fadeIn;
    animation-duration: 2s;
}
.logonow p{ /* without logo */
    opacity: 0;
    font-size: 36px;
    width: 100%;
    animation-delay: 1s;
    animation-name: fadeIn;
    animation-duration: 2s;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.articleGrid{
    width: 60%;
    text-align: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px; 
}
.midArticles{
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}
.midArticles button{
    background-color: #04AA6D;
    color: white;
    font-size: 24px;
    padding: 15px;
    border: 2px solid black;
    border-radius: 50px;
    text-shadow: 2px 2px 10px black;
    box-shadow: 0 0 10px black;
}
.gallery{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    justify-items: center;
    margin-bottom: 20px;
    margin-left: 10px;
    margin-right: 10px;
}
.gallery div{
    background-color: black;
    background-position: center;
    background-size: cover;
    min-width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-shadow: 2px 2px 10px black;
    box-shadow: 0 0 2px black;
    background-size: 100%;
    flex-direction: column;
}
.gallery div:hover{
    cursor: pointer;
}
.gallery div p {
    font-size: 24px;
    margin: 0;
    width: 100%;
}
.gallery div a{
    display: none;
    font-size: 24px;
    margin-top: 10px;
}
#secondArticle{
    background-image: url("../img/webp/template.webp");
    background-size: cover;
    padding-top: 25px;
    padding-bottom: 25px;
    box-shadow: 0 0 10px black;
}
h1{
    font-size: 48px;
    margin: 0;
    text-shadow: 2px 2px 10px black;
}
p{
    font-size: 18px;
    text-shadow: 2px 2px 10px black;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}
.ytvideo iframe{
    border-radius: 25px;
    box-shadow: 0 0 10px black;
}
.responsive-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;    /* 16:9 aspect ratio */
    height: 0;
}
.responsive-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#doneProjectsGallery{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    width: 60%;
    justify-items: center;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}
#doneProjectsGallery div{
    width: 100%;
    overflow: hidden;
    text-shadow: 2px 2px 10px black;
    box-shadow: 0 0 2px black;
}
.doneProjectsImage{
    background-size: cover;
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-shadow: 2px 2px 10px black;
    box-shadow: 0 0 2px black;
    transition: 0.5s all ease-in-out;
}
.doneProjectsImage p{
    font-weight: bold;
    font-size: 32px;
}
.doneProjectsImage:hover{
    transform: scale(1.15);
    cursor: pointer;
}
#sponsorsArticle{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(1, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    justify-items: center;
    min-width: 60%;
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}
#sponsorsArticle img{
    width: 200px;
}
/** input[type=text], select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid black;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
}
input[type=submit] {
    background-color: #04AA6D;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
input[type=submit]:hover {
    background-color: #45a049;
} **/
#kontakt {
    margin: 0 auto;
    margin-top: 20px;
    min-width: 300px;
    max-width: 300px;
    border-radius: 5px;
    background-color: #222;
    padding: 20px;
    box-shadow: 0 0 5px black;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(1, 1fr);
}
#kontakt div a{
    color: white;
    text-decoration: none;
}
#kontakt div h3{
    font-weight: 400;
}
.icons{
    float: left;
    padding-right: 15px;
    width: 64px;
    color: white;
}
#thirdArticle{
    background-image: url("../img/webp/template.webp");
    background-size: cover;
    padding-top: 25px;
    padding-bottom: 25px;
    box-shadow: 0 0 10px black;
    text-align: center;
}
#thirdArticle h1{
    font-size: 36px;
    margin: 0;
    text-shadow: 2px 2px 10px black;
}
#thirdArticle p{
    font-size: 20px;
    text-shadow: 2px 2px 10px black;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}
/* footer */
footer{
    width: 100%;
    text-align: center;
}
footer div{
    margin-left: auto;
    margin-right: auto;
    background-color: black;
    width: fit-content;
    padding: 15px;
    border-radius: 25px 25px 0 0;
    text-shadow: 2px 2px 10px black;
    box-shadow: 0 0 10px black;
}
footer a{
    color: white;
    text-decoration: none;
}
#dane-firmy p{
    width: 100%;
}
@media (max-width: 1060px) and (min-width: 901px) {
    #sponsorsmobile{
        display: none;
    }
    #sponsorsArticle{
        grid-template-columns: repeat(2, 1fr);
        min-width: 20%;
        max-width: 500px;
    }
}
@media (max-width: 900px) and (min-width: 606px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 items per row for medium screens */
    }
    .logonow h1{
        font-size: 72px;
    }
    .logonow p{
        font-size: 24px;
    }
    #doneProjectsGallery{
        grid-template-columns: repeat(2, 1fr);
    }
    #sponsorsmobile{
        display: none;
    }
    #sponsorsArticle{
        grid-template-columns: repeat(2, 1fr);
        min-width: 20%;
        max-width: 500px;
    }
    .ytvideo iframe{
        display: none;
    }
    .responsive-video-wrapper{
        display: none;
    }
    .articleGrid{
        grid-template-columns: repeat(1, 1fr);
    }
}
@media (max-width: 605px) {
    .gallery {
        grid-template-columns: repeat(1, 1fr); /* 1 item per row for small screens */
    }
    .logonow h1{
        font-size: 72px;
    }
    .logonow p{
        font-size: 24px;
    }
    header{
        display: none;
    }
    .topnav{
        display: block;
    }
    #doneProjectsGallery{
        grid-template-columns: repeat(1, 1fr);
    }
    #sponsorsmobile{
        display: none;
    }
    #sponsorsArticle{
        grid-template-columns: repeat(2, 1fr);
        min-width: 20%;
        max-width: 500px;
    }
    #sponsorsArticle img{
        width: 150px;
    }
    .ytvideo iframe{
        display: none;
    }
    .responsive-video-wrapper{
        display: none;
    }
    .articleGrid{
        grid-template-columns: repeat(1, 1fr);
    }
}
@media (max-width: 388px) {
    #dane-firmy{
        border-radius: 0;
    }
}
#instagramGallery{
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 50%));
}
.elfsight-app-e7d42ac2-a5ff-4667-bf2d-54b3d966f7d3{
    margin: 0 auto;
    margin-top: 25px;
    clip-path: inset(0 0 50px 0);
    margin-bottom: -50px;
}
.gallery div{
    transition: 0.3s;
}
.gallery div:hover{
    background-size: 105%;
}