/*
Palletee:
Main Green: #029834
Dark Green: #008032
Very Dark Border: #053214
Dark Border: #056414

Bright green lemon: #5ad264
*/

@media (prefers-color-sheme: dark) {

}

@media screen and (max-width: 640px){
body {
    font-size: 1.2rem;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* header start */
header {
    height: 80px;
}
div.logo{
    margin-left: 0;
    display: block;
}
img.headlogo {
    height: 50px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

header.small {
    height: 40px;
}
header.small img.headlogo {
    height: 30px;
    position: absolute;
    right: -50px;
    margin: 0;
    left: auto;
}
/* header end */



/* nav start */
nav {
    display: block;
    position: absolute;
    width: 100%;
    margin: 0;
    margin-right: 0;
    top: 50px;
    left: 25vw;
    
    justify-content: none;
    align-items: none;
}
nav ul.nav-list {
    width: 100%;
    text-align: center;
}
nav ul.nav-list li.nav-element {
    display: inline-block;
    /* float: left; */
    padding: 5px 0px;
    margin: 0 5px;
    font-size: 0.9rem;
}
nav ul.nav-list li.nav-element:hover{
    /* color: #029834; */
    color: black;
    cursor: auto;
    background-color: white;
}

header.small nav {
    position: absolute;
    top: -5px;
    right: 5%;
    transform: translateX(0%);
}
header.small nav li.nav-element {
    font-size: 0.9rem;
}
/* nav end */



/* footer start */
footer {
    width: 100%;
    height: 75px;
    left: 0;
    bottom: 0;
    overflow: hidden;

    text-align: center;
    font-weight: bold;
}
/* footer end */



/* Other start */
div.break {
    width: 100%;
    height: 50px;
}
span.podpis {
    display: block;
    float: right;
    clear: both;
    margin-top: 25px;
    margin-right: 50px;
}
.inline-logo {
    font-size: 1rem;
    font-weight: bold; 
}
/* Other end */



/* Content start */
div.content {
    padding-top: 75px;
    width: 100%;
    margin: auto;
    margin-top: 50px;
    padding: 25px 25px;
}
/* Content end */



/* Section start */
span.header{
    display: block;
    font-size: 6vw;
    text-align: center;
    margin-bottom: 50px;
    font-weight: bold;
}
div.section.horizontal span.header{
    text-align: center;
    margin-left: 0;
}
div.section {
    margin-bottom: 50px;
}
div.info {
    width: 100%;
    margin: 0;
}
div.info span{
    display: block;
    text-align: center;
    font-size: 1rem;
}
div.horizontal{
    display: block;
    justify-content: none;
    align-items: none;
}
span.horizontal {
    display: block;
    text-align: center;
    width: 100%;
}

div.info.bordered {
    padding: 30px;
    padding-bottom: 75px;
    box-shadow: none;
    border-top: 10px #008032 solid;
    border-bottom: 10px #008032 solid;
    margin-left: -25px;
    margin-bottom: -100px;
    margin-top: -25px;
}
/* Section end */



/* Realizacje start */
.blocks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    margin-right: 4vw;
    margin-left: 4vw;
}

.block {
    flex: 0 1 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: transform 0.3s ease;
}

.block:hover {
    transform: scale(1.02);
}

.image img {
    width: 100%;
    height: auto;
    display: block;
}

.image img:hover {
    cursor: pointer;
}

.text {
    padding: 15px;
}

.title .title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 10px;
}

.about {
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
}
/* Realizacje end */

/* To top start */
div.to-top {
    width: 64px;
    height: 64px;
    position: fixed;
    bottom: 25px;
    right: 25px;
    opacity: 0;
    transition: opacity 0.3s;
}
div.to-top > img {
    width: 64px;
    opacity: 0.8;
    transform: scale(80%);
    transition: transform 0.3s, opacity 0.3s;
}
div.to-top.active > img:hover {
    cursor: pointer;
    opacity: 1;
    transform: scale(100%);
    transition: transform 0.3s, opacity 0.3s;
}
/* To top end */


/* Uslugi start */
div.uslugi {
    width: 80%;
    margin: auto;
    display: block;
    justify-content: none;
    align-items: none;
    margin-bottom: 50px;
}
div.uslugi:last-child {
    margin-bottom: 0;
}

div.usluga {
    width: 90%;
    margin-right: 0;
    margin-bottom: 50px;
    padding: 15px;
    border: 3px solid #008032;
    border-radius: 10px;
}
div.usluga:last-child {
    margin-right: 0;
    margin-bottom: 0;
}

span.u-header {
    display: block;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 50px;
}

div.usluga > span.title {
    display: block;
    font-size: 1.8rem;
    text-align: center;
}

div.usluga > span.about {
    display: block;
    font-size: 1.1rem;
    text-align: justify;
}
/* Uslugi end */


/* Contact start */
div.contact {
    width: 80%;
    margin: auto;
    font-size: 1.2rem;
    padding: 50px 0;
    box-shadow: -25px -25px 0 -10px white, -30px -30px 0 -10px #008032, 25px 25px 0 -10px white, 30px 30px 0 -10px #008032;
}

div.contact > span {
    display: block;
    text-align: center;
    margin-bottom: 25px;
}

div.contact > span > a {
    color: black;
    text-decoration: underline;
    transition: color 0.3s;
}
div.contact > span > a:hover {
    color: rgb(71, 71, 71);
    transition: color 0.3s;
}
/* Contact end */

/* Script start */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}

#lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    font-weight: bold;
    z-index: 10000;
}
/* Script end */
}
