* {
    margin: 0px;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
  }

body {
    font-family: Helvetica, sans-serif;
    background-color: #FFFCF9;
}

/* --------------------- Nawigacja ---------------------*/


header {
    background-color: rgba(8, 9, 10, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    list-style: none;
    width: 100vw;
    height: 10vh;
    padding: 1em;
    font-size: 1.25rem;
    position: fixed;
    text-shadow: 1px 1px #08090A;
    transition: 0.25s all ease;
    left: 0px;
}



ul {
    padding-left: 0px;
}

header ul:hover {
    transition: color ease-in-out 0.25s;
    color: hsl(119, 52%, 45%);
    
}



.logo {
    transition: 0.25s all ease;
    display: flex;
    justify-content: flex-start;
    position: absolute;
    left: 1em;
    
}

.logo:hover {
    cursor: pointer;
    transform: translate(0px, -5px);
    transform: scale(1.2);
}

.logo img {
    width: 3em;
    height: 3em;
}

.logo-hidden {
    opacity: 0;
    transition: 0.5s all ease;
}

.logo-hidden img {
    opacity: 0;
    transition: 0.5s all ease;
    width: 3em;
    height: 3em;
}



.burger {
    display: none;
}

nav {
    justify-content: center;
    align-items: center;
}

nav li {
    display: flex;
    gap: 2em;
}

a, a:visited, a:hover, a:active {
    color: inherit;
    text-decoration:none;
  }

ul:hover {
    cursor: pointer;
}


/* --------------------- Wprowadzenie ---------------------*/

.background {
    /* width: 100vw; */
    background-image: url(img/banner.jpg); 
    /* background-repeat: no-repeat; */
    background-size: cover;
}

main {
    font-size: 2rem;  /* po co to? */
    width: 100%;
    background-color: #FFFCF9;
    margin: 0 auto;
    /* width: 80%; */
    /* padding: 2em; */
    color: #08090A;
}

@keyframes smooth-appear {
    to{
        margin-top: 0em;
        opacity: 1;
    }
}

.welcome {
    display: flex;
    flex-direction: column;
    gap: 1em;
    justify-content: flex-start;
    align-items: flex-start;
    height: 100vh;
    padding: 15em;
    color: #F6FBF4;
    text-shadow: 2px 2px #08090A;
}

.welcome * {
    opacity: 0;
    margin-top: 2em;
    animation: smooth-appear 2s ease forwards;
}

h1 {
    font-size: clamp(2vh, 8vh, 8vh);
    display: flex;
    justify-content: flex-start;

}

p {
    color: #12130fa3;
}

#komunikat {
    display: block;
    color: red;
    font-size: 0.5em;
}




/* --------------------- Bloki informacji pod wprowadzeniem ---------------------*/

.box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5em;
    border-radius: 25px;
    margin-bottom: 3em;
    text-align: justify;
    text-justify: inter-word;
    /* background-color: ; */
    color: #2c4863;
}

#about {
    
    margin: 3em auto;
    margin-bottom: 0em;
    max-width: 40em;
    display: flex;
    font-size: 1.5rem;
    align-items: center;
    gap: 1em;
    padding-bottom: 2em;
    text-justify: auto;
    border-left: solid 0.25em #5B8C5A;
    color: #12130F;

}

#about img{
    max-width: 40%;
     box-shadow: 0 15px 30px -15px #12130F;
   
}

.about-1 > * {
    margin: 1em;
}

.green {
    color: #5B8C5A;
}

article {
    background-color:#5B8C5A;
    margin: -0.2em auto;
    padding: 2em;
    display: flex;
    flex-direction: column;
    font-size: 1.25rem;
    align-items: center;
    color:#F6FBF4
}

article .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1em;
    margin: 3em 0em;
    border-bottom: #324e32a6 0.2em dotted;
    border-top: #324e32a6 0.2em dotted;
    flex-direction: row;
    
}

.crate  {
    display: flex;
    flex-direction: column;
    width: 20%;
    padding: 1em;
    margin: 0em;
    justify-content: center;
    align-items: center;
    text-justify:inter-word;
    transition: 0.25s all ease;
}

.crate:hover {
    background-color: hsla(120, 22%, 25%, 0.651);
    transform: scale(1.1);
    overflow: hidden;
    
}

.crate h4 {
    margin: 1em 0em;
}

.crate p {
    color: #F6FBF4;
}

.produkty {
    margin-left: auto;
    margin-right: auto;
    max-width: 30%;
    margin-top: 1em;
    padding-bottom: 0.2em;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    border-bottom: #5B8C5A 5px solid;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
   
}



.container-products {
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.about-waves {
    /* display: none; */
    margin: -6em auto;
}


#products {
    margin: 3em auto;
    margin-bottom: 10em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #12130F;
    max-width: 60%;
    
    border:#5B8C5A solid 2px;
    border-top-left-radius: 40px;
    
}



.products-select {
    display: flex;
    flex-direction: row;
    color: #F6FBF4;
    
}

.select1 {
    display: flex;
    width: 20%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.select1 > * {
    display: flex;
    width: 100%;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    padding: 0.3em;
    background-color: #5B8C5A;
    border-top: dashed #324e32 2px;
}

.select1 h5:nth-child(1){
    border-top: 0px;
    border-top-left-radius: 40px;
}
.select1 > *:hover {
    background-color: #324e32;
    cursor: pointer;
}

button {
    background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
}

.select1 button:nth-child(1){
    border-top: 0px;
    border-top-left-radius: 40px;
}

.b-active{
    background-color: #324e32;
    
}

.select-pic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35%;
    background-color: #FFFCF9;
    border-left: #5B8C5A dashed 0.2em;
}

.select-pic img {
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    
}

#select-img {
    background-color: #FFFCF9;
}

.select-info {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.4em;
    flex-direction: column;
    padding: 1em;
    width: 45%;
    font-size: 1.25vw; 
    background-color: #FFFCF9;
    height: 25em;
}

#product-scroll-info {
    display: none;
    transition: .6s ease opacity, .6s ease transform;
    text-align: center;
    /* margin-top: 1em; */
    /* height: 2em; */
    /* margin: 1em 0em; */
}


#kontakt {
   
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
   margin-top: 0em;
    background-color: #5B8C5A;
    padding: 3em;
    color:#FFFCF9;
    font-size: 1.5rem;
}

.contact-container {
    margin: 2em;
    padding: 1em;
    display: flex;
    flex-direction: column;
    background-color: #FFFCF9;
    border: #FFFCF9 2px solid;
    border-radius: 50px;
}



footer {
    background-color: #324e32;
    color: #FFFCF9;
    padding: 1em;
    font-size: 1rem;
}








/* ---------------------Obrazki ---------------------*/

.img {
    margin: 0px;
    padding: 0px;
}



/* formularze */



input[type=text], select {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

  textarea {
    width: 100%;
    height: 150px;
    padding: 12px 20px;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
    
    font-size: 1.5rem;
    resize: none;
  }


@media only screen and (max-width: 1400px) {
#products {
      max-width: 90%;
      
}

.select-info {
       font-size: 1.75vw; 
       height: 25em;
}


    
    }   

@media only screen and (max-width: 750px) {
    .logo {
        display: none;
    }

    .burger {
        display: block;
        position: relative;
        left: 100px;
    }

    .burger:hover {
        cursor: pointer;
    }
    
    header {
        display: none;
        position: fixed;
        left: -90px;
        font-size: 1.25rem;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 0.5em;
        width: 10rem;
        height: 100vh;
    }

    header li {
        flex-direction: column;
        
    }

    nav li{
        margin: 0 -30px;
        max-width: 80%;
    }

    .welcome {
        display: flex;
        align-items: center;
        height: 55vh;
        text-align: center;
        padding: 0em;
        color: #F6FBF4;
        text-shadow: 2px 2px #08090A;
       
    }

    .box {
        font-size: 2rem;
        flex-direction: column;
        gap: 1em;
        
    }

    .box:nth-child(odd) {
        border-top:#08090A solid 2px;
    }
    
    .box:nth-child(even) {
        
        border-bottom:#08090A solid 2px;
        
    } 

    #about {
        max-width: 40em;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1em;
        text-justify: auto;
    }

    #about img {
        max-width: 90%;
    }


    .about-waves {
        margin: 0;
    }

    .about-waves:last-of-type {
        margin-top: 5em;
    }

    article .container {
        display: flex;
        max-width: 100%;
        padding: 0em;
        margin: 0em 0em;
        flex-direction: column;
        
    }

    .crate  {
        width: 80%;

    }
    
    .crate:hover {
        transform: translateY(0.5em);
    }

    .crate:last-of-type:hover {
        transform: translateY(-0.5em);
    }

    .produkty {
        margin-bottom: 1em;
        width: 100%;
        border-radius: 0px;
        
    }

    #products {
        background-color: #FFFCF9;
        border-top-left-radius: 0px;
        max-width: 100%;
        align-items: center;
        justify-content: center;
        margin: 0em 0em;
        border: 0px;
        
    }

    .products-select {
        align-items: center;
        justify-content: center;
        display: flex;
        flex-direction: column-reverse;
        width: 100%;
        font-size: clamp(1rem, 100vw, 1.25rem)
    }

    .select1 {
        width: 100vw;
        overflow: scroll;
        height: 10em;
        justify-content: flex-start;
        flex-direction: column;
        font-size: 1rem;

      
        scrollbar-width: thin;
        scrollbar-color: #FFFCF9 hsl(30, 20%, 99%);
         /* flex-wrap: wrap; */
        /* flex-grow: 1;  */
    }

    .select1 button {
        display: flex;
        width: 100%;
        height: 5em;
        padding: 1em;
        border-top: 0px;
        /* flex-grow: 1; */

    }

    .select1 h5:nth-child(1) {
        border-top-left-radius: 0px;
    }

    .select1 button:nth-child(1) {
        border-top-left-radius: 0px;
    }

    .select-pic {
        width: 60%;
        box-shadow: 0px 7px 15px -15px #12130F;
        border-left: 0px;
    }

    .select-info {
        font-size: 1rem;
        width: 100%;
        align-items: center;
        justify-content: center;
       
    }
    
    #product-scroll-info {
    display: block;
    margin-top: 2em;
    font-weight: bold;
    }

    .contact-container {
        width: 100vw;
        border-radius: 0px;
        margin: 4em;
        
    }

    .block button {
        width: 100%;
        padding: 1em;
        background-color: #3E6990;
        color: white;
        transition: color 0.25s ease, background-color 0.25s ease;
        border: 0px;
        border-radius: 15px;
        margin-bottom: 10px;
    }

    h1 {
        font-size: 3rem;
        padding: 1em;
    }

    .box img {
        border-radius: 20px;
        width: 100%;
        max-width: 450px;
        height: clamp(8vh, 100%, 10vh);
    }


  }