@font-face {
    font-family: 'AflFont'; /* Nazwa pierwszej czcionki */
    src: url('../src/font/aflfont.TTF') format('truetype'); /* Ścieżka do pierwszej czcionki */
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'CourierStd'; /* Nazwa pierwszej czcionki */
    src: url('../src/font/CourierPrime-Regular.ttf') format('truetype'); /* Ścieżka do pierwszej czcionki */
    font-weight: normal;
    font-style: normal;
}
:root
{
    --bazowy-kolor: #fffcf6;
    --stopka: #eee6d9;
    --font: #68432a;
}
#menu-list a
{
    position: relative;
    display: flex; 
    justify-content: center;
    align-items: center;
    transition: 0.3s ease;
    padding: 5px 0;
}
#menu-list a::after
{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0px;
    width: 0;
    height: 2px;
    background-color: #68432a;
    transition: width 0.3s ease;
}
#menu-list a:hover
{
    transform: scale(1.1);
}
#menu-list a:hover::after
{
    width: 100%;
}

#link {
    text-decoration: underline;
}

#deko {
    text-decoration: underline;
}

*
{
    scroll-behavior: smooth; /* Płynne przewijanie dla obsługujących przeglądarek */
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'CourierStd', sans-serif;
    color: var(--font);
    text-decoration: none;
}
body
{
    background-color: var(--bazowy-kolor);
}

ul{
    list-style-position: inside;
}
/* 
li {
    margin: 20px;
} */

.clear
{
    clear: both;
}
#menu-gorne
{
    z-index: 101;
    font-family: 'AflFont', sans-serif;
    background-color: var(--bazowy-kolor);
    width: 100%;
    position: fixed;
    top: 0;
    overflow: hidden;
}
#empty
{
    height: 5vw;
}
#main-site
{
    position: relative;
}
#main-site-photo
{
    width: 100%;
}
#logo-nav-photo
{
    width: 4vw;
}
#burger-menu
{
    width: 4vw;
}
#menu-gorne-nav
{
    width: 90vw;
    margin-left: auto;
    margin-right: auto;
}

#menu-list, #logo-nav
{
    float: left;
}
#menu-list
{
    padding-top: 0.8vw;
    padding-bottom: 0.8vw;
    font-size: 1.3vw;
    width: 100%;
}
#menu-list > ol
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style-type: none;
}
#menu-list > ol > li
{
    flex: 0;
    white-space: nowrap;
    justify-content: center;
    align-items: center;
}
#menu-list > ol > li:last-child
{
    display: none;
}
#overlay-image
{
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 100;
    width: 100vw;
}
#overlay-image-logo
{
    position: absolute;
    z-index: 100;
    width: 25vw;
    left: 37.5vw;
    top: 7vw
}
section
{
    background-color: var(--bazowy-kolor);
    overflow: hidden;
}

.left-section
{
    float: left;
    width: 45%;
    margin-left: 4.3vw;
}
.right-section
{
    float: right;
    width: 45%;
    min-height: 50vw;
    margin-right: 4.3vw;
}
.zdj-prawe
{
    width: 70vw;
    position: relative;
    left: -22vw;
    top: -5vw;
}
.zdj-lewe
{
    width: 70vw;
    position: relative;
    right: 0;
    top: -5vw;
}

/* #szalona-stodola-img
{
    top: -10vw;
} */

#text
{
    font-size: 1.2vw;
}
#header-section
{
    color: var(--font);
    font-size: 2vw;
    line-height: 175%;
    font-family: 'AflFont', sans-serif;
    letter-spacing: 3px;
    margin: 3vw 0;
}

#namiot-img
{
    top: 3vw;
}
#zdj-stopka
{
    width: 100%;
    position: relative;
    bottom: -1.7vw;
}
footer
{
    font-size: 1.2vw;
    background-color: var(--stopka);
    text-align: center;
    padding-bottom: 3vw;
}
footer h2
{
    line-height: 400%;
}
footer p
{
    padding: 0.4vw;
}
#map-container > iframe
{  
    width: 90%;
    height: 40vh; 
    border: 0;
}
#menu-list-phone {
    display: none;
    position: fixed;
    top: 15vw;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 252, 246, 0.95); /* Półprzezroczyste tło */
    z-index: 999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: transform 0.3s ease-in-out;
    transform: translateY(-100%); /* Początkowo ukryte */
}

#menu-list-phone.active {
    transform: translateY(0); /* Animacja rozwinięcia */
}

#menu-list-phone ol {
    margin-top: -15vw;
    list-style: none;
    padding: 0;
    text-align: center;
}

#menu-list-phone ol li {
    margin: 20px 0;
}

#menu-list-phone a {
    font-size: 5vw;
    font-family: 'AflFont', sans-serif;
    color: var(--font);
    font-weight: bold;
}
#o-nas
{
    font-size: 1.2vw;
    padding: 0 3vw 3vw;
    padding-bottom: 10vw;
    text-align: justify;
    margin: 0 10vw;
}
#o-nas > h1
{
    text-align: center;
}

#warsztaty
{
    font-size: 1.2vw;
    padding: 3vw;
    padding-bottom: 10vw;
    text-align: justify;
    margin: 0 10vw;
}
#warsztaty > h1
{
    text-align: center;
}

#agroturystyka, #o-nas-menu{
    position: relative;
    top: -10vw; /* Przesuwa kotwicę o 50px wyżej */
}

#kalendarz-menu
{
    position: relative;
    top: -200px; /* Przesuwa kotwicę o 50px wyżej */
}
#kontakt-menu
{
    position: relative;
    top: -20vw; /* Przesuwa kotwicę o 50px wyżej */
}
/* Existing styles remain unchanged, but adding responsive adjustments */


#contact-form {
    font-size: 1vw;
    width: 100%;
    max-width: 50vw;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#contact-form label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
#contact-form textarea
{
    height: 100px;
}
#contact-form button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: #68432a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#contact-form button:hover {
    background: #502f1c;
}


/* KALENDARZ */
section#kalendarz {
    width: 80%;
    margin: 0 auto;
}
#kalendarz > iframe {
    /* padding: 10vw; */
    height: 600px;
    width: 100%;
    border: none;
    border-radius: 5px;
    background-color: #fffcf6;
}


/* GALERIA */
.galeria-zdj
{
    border-radius: 10px;
    /* margin-left: auto;
    margin-right: auto;
    margin-bottom: 10vh; */
    margin: 0 auto 10vh;
    width: 60vw;
    height: 10vh;
    -webkit-box-shadow: 8px 8px 31px -7px rgba(66, 68, 90, 1);
    -moz-box-shadow: 8px 8px 31px -7px rgba(66, 68, 90, 1);
    box-shadow: 8px 8px 31px -7px rgba(66, 68, 90, 1);
    font-size: 4vw;
    text-align: center;
    
}

.galeria-zdj:hover
{
    cursor: pointer;
    background-color: #eeebe5;
    opacity: 0.8;
}
.galeria-text
{
    width: 100%;  
}.galeria-text
{
    line-height: 10vh;
    user-select: none;
}
.zdj-galeria-glowne img
{
    max-width: 30vw;
    height: 30vh;
}
#g1
{
    transform: translateY(-5vw);
}
#g2
{
    transform: translateY(-10vw);
}
#g3
{
    transform: translateY(-10vw);
}
#g4
{
    transform: translateY(3vw);
}
#header-section
{
    text-align: center;
}
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Przyciemnienie tła */
    justify-content: center;
    align-items: center;
    display: none;   
    user-select: none;
}
.modal-content {
    background-color: white;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 80vw;
    max-height: 80vh;
    position: relative;
}
.modal-content img
{
    max-width: calc(80vw - 10px);
    max-height: calc(80vh - 10px);
    border-radius: 10px;
}
.close {
    position: absolute;
    top: 10px;
    right: 23px;
    font-size: 4vw;
    cursor: pointer;
    color: var(--bazowy-kolor);
    z-index: 1000;
}

#nastepne, #poprzednie {
    position: absolute;
    top: 0;
    height: 100%; /* Cała wysokość okna */
    width: 5vw; /* Szerokość przycisku */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4vw;
    cursor: pointer;
    color: var(--bazowy-kolor);
}
#nastepne {
    right: 0; /* Ustawienie po prawej stronie */
}

#poprzednie {
    left: 0; /* Ustawienie po lewej stronie */
}



/* TELEFON */
@media screen and (max-width: 768px) {
    #g1,#g2,#g3,#g4,#g5
    {
        transform: translateY(0);
    }
    .galeria-zdj
    {
        margin-top: 7vh;
        height: 10vh;
    }
    .galeria-text
    {
        line-height: 10vh
    }
    .zdj-galeria-glowne img
    {
        max-width: 20vw;
        height: 10vh;
    }
    #menu-list {
        font-size: 4vw;
    }
    
    #menu-list > ol {
        align-items: center;
    }
    
    #menu-list > ol > li {
        padding: 10px 0;
    }
    #menu-list > ol > li:not(:first-child)
    {
        display: none;
    }
    #menu-list > ol > li:first-child
    {
        margin-right: auto;
    }
    #menu-list > ol > li:last-child
    {
        display: flex;
    }
    #empty
    {
        height: 18vw;
    }
    #logo-nav-photo {
        width: 10vw;
    }
    
    #main-site-photo,
    #overlay-image {
        width: 100%;
    }
    
    .left-section, .right-section {
        width: 100%;
        margin: 0 auto;
        float: none;
        text-align: center;
        display: flex;
        flex-direction: column;
    }
    
    .right-section {
        order: -1;
    }
    
    .zdj-lewe, .zdj-prawe {
        width: 90vw;
        left: 0;
        top: 0;
    }
    
    #header-section {
        font-size: 5vw;
        margin: 10vw 10vw 10vw;
    }

    section {
        margin-top: 10vw;
        margin-bottom: 10vw;
    }

    #o-nas {
        margin: 0 5vw;
    }

    #text {
        margin: 0 5vw;
    }

    #text, #o-nas {
        font-size: 4vw;
    }
    #zdj-stopka
    {
        bottom: -3vw;
    }
    footer {
        padding-bottom: 10vw;
    }
    
    footer h2 {
        font-size: 5vw;
    }
    
    footer p {
        font-size: 4vw;
        padding: 2vw;
    }
    #text
    {
        text-align: start;
        padding: 0 6vw;
        font-size: 4vw;
    }
    #o-nas
    {
        text-align: start;
        padding: 6vw;
    }
    #warsztaty
    {
        padding: 0;
        /* padding-bottom: 10vw; */
        margin: 0;
    }
    #contact-form
    {
        max-width: 90vw;
        font-size: 3vw
    }

    /* TELEFON - KALENDARZ */
    section#kalendarz {
        width: 90%;
        margin: 0 auto;
    }
    #kalendarz > iframe {
        /* padding: 10vw; */
        height: 52vh;
        width: 100%;
        border: none;
    }

}

