/* Scrollbar całkowity */
::-webkit-scrollbar {
    width: 10px; /* Szerokość paska przewijania */
    height: 10px; /* Wysokość paska przewijania */
}
  
/* Track (ślad paska przewijania) */
::-webkit-scrollbar-track {
    background: var(--white); /* Kolor tła */
    border-radius: 0; /* Zaokrąglenie rogów */
}
  
/* Thumb (uchwyt paska przewijania) */
::-webkit-scrollbar-thumb {
    background: var(--red); /* Kolor uchwytu */
    border-radius: 0; /* Zaokrąglenie rogów */
}
  
/* Thumb (uchwyt paska przewijania) przy hoverze */
::-webkit-scrollbar-thumb:hover {
    background: var(--gray); /* Kolor uchwytu przy hoverze */
}
  

@font-face {
    font-family: 'Poppins';
    src: url(/font/Poppins-Regular.ttf);
}

@font-face {
    font-family: 'Bebas';
    src: url(/font/BebasNeue-Regular.ttf);
}

:root {
    --white: #fcfcfc;
    --black: #030303;
    --red: #CF2121;
    --gray: #373737;
}

html, body {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
}

body {
    background: #111;
    overflow-x:hidden;
    font-family: Poppins;
}

/* nawigacja */

header {
    position: fixed;
    width: 100%;
    z-index: 25;
}

.logo {
    width:100%;
    object-fit: contain;
    box-sizing: border-box;
    padding: 20px 0 !important;
}

#nav-subcontainer {
    height: 70px;
    /* background: #fff; */
    background: #111
}

.dark {
    transition: 0.2s ease;
    background: none !important;
    background: linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.5)) !important;
}

.small {
    height: 90px !important;
    font-size: 16px;
}

.small .logo {
    height: 100px;
}

.small-logo {
    height: 40px;
}

#toggle-subnav {
    background: url(/css/subnav.svg) center center no-repeat;
    border: 0;
    font-size: 0;
    height: 28px;
    aspect-ratio: 1 / 1;
    background-size: 100%;
}

#toggle-subnav:hover {
    filter: brightness(110%);
}

#sub-navigation-parent {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    z-index: 10;
    padding-top: 70px;
    box-sizing: border-box;
    display:none;
}

#sub-navigation {
    width: 100%;
}

#sub-navigation ul {
    list-style-type: none;
    padding: 0;
}

#sub-navigation li button {
width: 100%;
background: none;
color: #fff;
padding: 20px 0;
border: 0;
border-top: #222 solid 1px;
}

#sub-navigation li:last-child button {
    border-bottom: #222 solid 1px;
}


#nav-container {
    height: 150px;
    background: linear-gradient(#0f0f0f,rgba(255,255,255,0))
}

nav {
    list-style-type:none;
    height: 150px;
}

nav a {
    color: #fff;
    text-decoration: none;
    word-wrap: break-word;
}

nav a:hover {
    color: var(--red);
    transition: 0.3s ease-out;
}

/* nawigacja end */

#home.panel {
    height: 100%;
    background: url('/css/slide1.jpg') center right no-repeat;
    background-size: cover;
}

#intro {
    width: 70%;
    height: 100%;
    background: url(css/intro.svg) center center no-repeat;
    background-size: 100%;
}

#arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 2;
    background: url(css/arrow.svg) center center no-repeat;
    background-size: 90%;
    border: 0;
    font-size: 0;
    height: 64px;
    width: 64px;
}

#arrow:hover {
    filter: opacity(0.9);
}

#about.panel {
    height: 100%;
    background: url('/css/bg_about.jpg') center center no-repeat;
    background-size: cover;
    min-height: 900px;
}

#gallery.panel {
    height: 100%;
    background: var(--gray);
}

#contact.panel {
    height: 100%;
    background: url('/css/bg_contact.jpg') center center no-repeat;
    background-size: cover;
    min-height: 600px;
}

.panel {
    position: relative;
}

/* debug */
.panel > .container {
    height: 100%;
    /* background: rgba(25,150,25,0.1); */
}

#gallery {
    display: flex;
    flex-wrap: wrap;
}

#gallery .gallery-container {
    position: relative;
    width:50%;
    height:50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
}

@media (max-width: 767px) {
    #intro {
        width: 100%;
    }
}

@media (max-width: 767px) {
    #gallery.panel {
        height: auto;
    }
    #gallery .gallery-container {
        flex-direction: column;
        width: 100%;
        height: 280px;
    }
    #contact.panel {
        height: auto;
    }
}

.gallery-container > button {
    background: #fff;
    font-family: Bebas;
    font-size: 40px;
    border: 0;
    padding: 8px 16px;
    color: var(--red);
    cursor: pointer;
    z-index: 2;
}

.gallery-container:hover > button {
    transition: .8s ease;
    color: #fff;
    background: var(--red);
}

.gallery-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/css/gal1.jpg');
    background-size: cover;
    background-position: center;
    transition: transform 1s ease-in-out; /* Ustawienie animacji */
    z-index: 1;
  }

  .gal2::before {
    background-image: url('/css/gal2.jpg');
  }

  .gal3::before {
    background-image: url('/css/gal3.jpg');
  }

  .gal4::before {
    background-image: url('/css/gal4.jpg');
  }

  .gallery-container:hover::before {
    transform: scale(1.1);
}

h1, h2, h3, h4, h5, h6 {
    font-family: Bebas;
    font-size: 64px;
}

#about h3{
    color: var(--red);
}

#contact h5 {
    color: var(--white);
}

#about p {
    text-align: center;
    font-size: 18px;
    margin-bottom: 30px;
}

.content {
    height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content > div {
    /* max-width: 980px; */
}

.content p {
    font-family: Poppins;
}

.content .buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-gallery, .btn-contact {
    padding: 12px 24px;
    border: 0;
    font-family: Bebas;
    font-size: 20px;
    letter-spacing: 1px;
}

.btn-gallery {
    color: var(--white);
    background: var(--red);
}
.btn-contact {
    background:var(--gray);
    color: var(--white);
}

#contact .left, #contact .right {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#contact .center span {
    color: #ccc;
    font-size: 16px;
}

#contact .left button {
    background: none;
    color: #fff;
    font-size: 16px;
    border: 0;
    width: 100%;
    white-space: nowrap;
}

#contact .left button:hover {
    color: var(--red);
    transition: 0.2s ease;
}

#formButton {
    font-size: 20px;
    padding: 20px 40px;
    background: var(--red);
    border: 0;
    color: #fff;
    width: auto;
}

#formButton:hover {
    color: var(--red);
    background: var(--white);
    transition: 0.2s ease;
}

#contactFormParent {
    position: fixed;
    top:0;
    left:100%;
    width:100%;
    height:100%;
    background: #fff;
    z-index: 100;
    display:flex;
    justify-content: center;
    align-items:center;
}

#closeForm {
 position: absolute;
 top: 30px;
 right: 30px;
 border: 0;
 color: var(--red);
 background: none;
 transform: scale(2);
}

#closeForm:hover {
    background: #fff;
    color: var(--red);
}


#contactForm {
    background: #fff;
    border-radius: 5px;
    min-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items:center;
}

textarea {
    min-height: 100px !important;
}

.btn-danger {
    background: var(--red);
}

.btn.toggleForm {
    border: 1px solid #eee;
}


footer {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50px;
    background: linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.5));
}

footer span {
    font-family: Bebas;
    font-size: 16px;
    color: #fff;
    letter-spacing: 1px;
}

/* Galerie / modal */



.myGallery .header {
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    position:fixed;
    top:0;
    left:0;
    height:70px;
    width:100%;
    z-index: 1;
    background:#fff;
}
.thumbnail {
    width:100%;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}
.myGallery {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background:#fff;
    z-index: 100;
    display:none;
}
.myGallery .photos {
    height: calc(100% - 70px);
    margin-top: 70px;
    overflow-y: auto;
    overflow-x: hidden;
}
.no-overflow {
    overflow:hidden !important;
}
.closeGallery {
    color: var(--red);
    border: 0;
    width: 40px;
    height: 40px;
    background: none;
    font-size: 40px;
    line-height: 40px;
}