﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    height: 100%;
    margin: 0em;
    background-color: white;
    font-family: 'Montserrat', sans-serif;
}

#logo {
    width: 20%;
    height: auto;
}

#overlay_photo {
    padding-top: 75px;
    width: 100%;
    height: auto;
    z-index: -1;
}

#ponuka_anchor {
    position: absolute;
    top: 700px;
}

#overlay_ponuka {
    width: 100%;
}

#overlay_footer {
    width: 100%;
    height: auto;
}

.footer-container {
  position: relative;
  width: 100%;
  background-image: url(foto/footer.jpg);
}

.footer-text {
    position: static;
    text-align: center;
    padding: 1em;
    font-size: 1.3em;
    top: 13%;
    left: 16%;
    color: #4A3F38;
    line-height: 1.5;
    font-weight: 450;
}

.footer-text a {
    color: #4A3F38;
    text-decoration: underline;
}

.footer-heading {
    color: white;
    font-size: 1.3em;
    font-weight: bold;
    margin: 0px;
    margin-bottom: 3px;
}

.footer-contact {
    margin: 0px;
}

#piktogramy {
    width: 66%;
    margin: 5%;
    margin-left: 17%;
    margin-right: 17%;
}

h3 {
    font-size: 3em;
    display: inline-block;
    line-height: 0.8;
}

#ciara {
    background-color: black;
    margin-bottom: 0em;
    margin-top: 0em;
    height: 0.5em;
}

nav {
    text-align: center;
    display: inline-flex;
    justify-content: start;
    align-items: center;
    position: fixed;
    background: white;
    padding-bottom: 8px;
    width: 100%;
    box-shadow: 0px -14px 20px 0px;
}

nav a {
    padding-top: 0.65em;
    padding-right: 70px;
    color: black;
    font-size: 1.2em;
    text-decoration: none;
}

nav a:hover {
    text-decoration: none;
}

#current {
}

#cennik_button_div {
    margin: 50px auto;
    text-align: center
}

#cennik_button {
    color: #4A3F38;
    font-size: 1.2em;
    padding: 0.5em 2em;
    border-radius: 30px;
    border: solid;
    text-decoration: none;
    font-weight: 500;
}

#produkty {
    text-align: center;
    padding-top: 75px;
}

#produkty_page {
    text-align: center;
    padding-top: 75px;
}

#produkty_nadpis {
    color: #4A3F38;
    margin: 2em;
    margin-bottom: 1em;
    font-size: 2em;
}

#produkty a {
    text-decoration: none;
}

h2{
    color: #4A3F38;
    margin: 0;
    font-size: 1.4em;
}

.odkaz {
    margin: 1.3em;
    margin-top: 0em;
    margin-bottom: 0.5em;
    display: inline-block;
    grid-row: 1;
    grid-column: 1;
}

.odkaz-blurred {
    margin: 1.3em;
    margin-top: 0em;
    margin-bottom: 0em;
    display: inline-block;
    grid-row: 1;
    grid-column: 1;
}

.foto {
    float: left;
    width: 500px;
    max-height: 500px;
    object-fit: contain;
    margin: 1em;
}

.vzorkovnik-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 10px;
}

.vzorkovnik {
    max-width: 100%;
    height: auto;
    margin: auto;
}

.titulka {
    float: left;
    width: 360px;
    height: 300px;
    object-fit: contain;
}

.grid-container {
    display: grid;
    overflow: hidden;
}

.img-wrapper {
    margin: 0em;
    display: inline-block;
}

.img-wrapper-foto {
    margin: 0em;
    display: inline-block;
    vertical-align: middle;
}

.text-wrapper {
}

#produkty_text {
    margin-top: 60px;
    color: #4A3F38;
    font-size: 1.5em;
    margin-left: 9%;
}

#produkty_text h1 {
    margin-bottom: 20px;
}

#onas_text {
    max-width: 50%;
    padding-top: 30px;
    line-height: 1.6em;
    font-size: 1.15em;
}

#onas {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
}

#onas_foto {
    width: 500px;
    max-height: 500px;
    object-fit: contain;
    padding-bottom: 90px;
    padding-top: 110px
}

#info_text {
    min-height: 60vh;
    padding-top: 90px;
    margin: 0em 10em 0em 10em;
    line-height: 1.6em;
    font-size: 1.15em;
}

#villa_text {
    margin: 0em 10em 0em 10em;
    line-height: 1.6em;
    font-size: 1.15em;
}

#cennik_text {
    margin-left: 3em;
}

#cennik {
    min-height: 56vh;
    text-align: center;
    padding-top: 110px;
}

.cennik_tabulka {
    display: inline-block;
}

table {
    border-collapse: collapse;
    margin: 1.3em;
    display: inline-block;
    vertical-align: top;
}

th, td {
    border: 0.12em solid maroon;
    text-align: center;
    padding: 0.3em;
}

th {
    background-color: #ffbf80;
}

#cennik tr:nth-child(even) {
    background-color: #eee;
}

#cennik tr:nth-child(odd) {
    background-color: #fff;
}

address {
    padding-top: 75px;
    position: absolute;
    left: 50%;
    transform: translate(-50%,0%);
    font-size: 1.5em;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: stretch;
    }

    nav a {
        padding: 0.8em;
        font-size: 1em;
        text-align: center;
        border-bottom: 1px solid #ddd;
    }

    #logo {
        width: 60%;
    }

    #produkty {
        padding-top: 0px;
    }

    #produkty_text {
        margin: 2em 5%;
        font-size: 1.2em;
        text-align: center;
    }

    .img-wrapper {
        margin: 1em auto;
        width: 90%;
    }

    .titulka {
        height: auto;
        float: none;
    }

    #onas_text, #info_text, #cennik_text {
        margin: 0em 5%;
        font-size: 1em;
    }

    #onas_text {
        padding-top: 95px;
    }

    #villa_text {
        margin: 0em 5%;
        font-size: 1em;
    }

    h3 {
        font-size: 2em;
    }

    address {
        font-size: 1.1em;
        text-align: center;
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-text {
        position: static;
        text-align: center;
        padding: 1em;
        font-size: 1em;
    }
}

/* Hamburger button */
#nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-right: auto;
    z-index: 1000;
}

#nav-toggle:focus {
    outline: none;
}

.hamburger {
    width: 100%;
    height: 3px;
    background-color: #4A3F38;
    border-radius: 2px;
}

/* Default nav links container */
#nav-links {
    display: flex;
    gap: 2rem;
}

/* Mobile styling */
@media only screen and (max-width: 768px) {
    nav {
        align-items: center;
        padding: 0 1em;
    }

    #nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        border-top: 1px solid #ddd;
        z-index: 999;
    }

    #nav-links a {
        padding: 1em;
        border-bottom: 1px solid #eee;
        font-size: 1.1em;
        text-align: center;
        color: #4A3F38;
    }

    #nav-toggle {
        display: flex;
    }
}

/* Show menu when active */
#nav-links.active {
    display: flex;
}