#section1{
    background-image: url('../images/vystavba-renovacia1.png');
    width: 90%;
    height: 565px;
    margin: auto;
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

#section1 > div{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -6rem;
}

#section1 h2{
    width: 100%;
    margin: auto;
    text-align: center;
}


/*--------------------*/

#section2{
    width: 90%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 2rem auto;
} 

#section2 > div:nth-child(1){
    padding: 2rem;
    padding-left: 6rem;
    position: relative;
}
#section2 > div:nth-child(1) > img{
    position: absolute;
    width: 20%;
    z-index: -1;
    top: 5%;
    left: 5%;
}
#section2 > div:nth-child(1) > h2 {
    margin-bottom: 2rem;
}
#section2 > div:nth-child(1) > p{
    line-height: 1.7rem;
}
#section2 > div:nth-child(1) > p span {
    font-weight: bold;
}

#sluzby_wrapper{
   display: grid;
   grid-template-columns: repeat( auto-fit, minmax(250px, 1fr) );
}

.one_sluzba{
    display: flex;
    align-items: center;
    margin: 1rem;
}

.one_sluzba i{
    margin-right: .5rem;
    color: #ffffff;
    background-color: #92AEB2;
    padding: .7rem;
    border-radius: 50%;
    font-size: 20px;
}

.one_sluzba_btn {
    cursor: pointer;
    max-width: 230px;
}
.one_sluzba_btn:hover {
    color: #FFC000;
}

/* The Modal (background) */
.sluzbyModal {
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    display: flex;
}

.sluzbyModal {
    display: none;
}
  
/* Modal Content/Box */
.sluzbyModal-content {
    background-color: #ffffff;
    border-radius: 2.5px;
    margin: auto;
    padding: 3rem;
    width: 70%;
    position: relative;
}

.sluzbImgsWrapper{
    display: flex;
    overflow-x: auto;
}
.sluzbImgsWrapper::-webkit-scrollbar {
    width: 15px;               /* width of the entire scrollbar */
}

.sluzbImgsWrapper::-webkit-scrollbar-track {
    background: #EFEFEF;   /* color of the tracking area */
    border-radius: 20px;      
}

.sluzbImgsWrapper::-webkit-scrollbar-thumb {
    background-color: #004551;    /* color of the scroll thumb */
    border-radius: 20px;       /* roundness of the scroll thumb */
    border: 3px solid #ffffff;  /* creates padding around scroll thumb */
}

.sluzbImgsWrapper > img{
    width: 350px;
    height: 250px;
    padding: 1rem .5rem;
}
.sluzbImgsWrapper > img:first-child  {
    padding: 1rem 0;
    padding-right: .5rem;
}
.sluzbImgsWrapper > img:last-child {
    padding: 1rem 0;
    padding-left: .5rem;
}


.sluzbyModalClose {
    position: absolute;
    top: 5%;
    right: 2%;
    color: #FFC000;
    font-size: 35px;
    font-weight: bold;
  }
  
.sluzbyModalClose:hover,
.sluzbyModalClose:focus {
    color: #000000;
    text-decoration: none;
    cursor: pointer;
}

/* ----------- */

#section3{
    background-color: #004551;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

#section3 > p{
    color: #ffffff;
    width: 50%;
    text-align: center;
    margin: 2rem auto;
}

/* ---------- */

#section4 {
    margin: 5rem 0 0 0;
}

.projekty_botton > button {
    background-color: #92AEB2;
    color: #E0E0E0;
    cursor: pointer;
    overflow: hidden; 
   
/*    padding: .5rem .7rem;
    color: #000000;
    width: max-content;
    text-decoration: none;
    letter-spacing: .1rem;
    border: 20;
    */
}
/* #projekty_arrow { */
    /* display: inline-block; */
    /* transform: translateY(100); */
    /* transition: transform 30s ease-in-out; */
/* } */
/*.projekty_botton > button:hover:before { transform: rotate(360deg); }*/
.projekty_botton > button:hover {
    background-color: #92AEB2;
    color: #FFFFFF;
    /*transform: rotate(180deg); */
    
    /* display: inline-block; */
    /* transform: translateY(100);*/
    /* transition: transform 0.5s ease-in-out; */
}

#section4_header{
    text-align: center;
}
#section4_header > p{
    color: #92AEB2;
    margin: 1.5rem auto 2rem auto;
}
#projekty_cards{
    width: 80%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(300px, 1fr) );
    column-gap: .5rem;
    justify-items: center;
}
.one_card{
    margin: 2rem 0;
    background-color: #EFEFEF;
    padding: 3rem 1rem 1rem;
    color: #004551;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
    cursor: pointer;
    max-widh: 250px;
}

.one_card:hover, .one_card_selected{
    background-color: #92AEB2;
    color: #fff;
}

.one_card_selected{
    margin-bottom: 0;
}

.one_card > p{
    margin-bottom: 1rem;
}
.one_card > i:nth-child(1){
    color: #000000;
    width: 4rem;
    height: 4rem;
    background-color: #FFC000;
    border: .5rem solid #ffffff;
    border-radius: 50%;
    font-size: 23px;

    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -20%;
}

.one_card:hover.one_card > i:nth-child(1){
    color: #ffffff;
}

#projekty_content{
    background-color: #92AEB2;
}
.projekty_head{
    background-color: #92AEB2;
    padding: 1rem 0 0 0;/*1rem 0 0 1rem;*/
    justify-content: center;
    display:flex;
    flex-wrap: wrap;
    row-gap: 1rem;
}
.projekty_botton{
    background-color: #92AEB2;
    padding: 0 0 2rem 0;/*1rem 0 0 1rem;*/
    justify-content: center;    /* Vycentruje položky vodorovne */
    justify-items: center;
    display:flex;
}
/*
.projekty_botton_off {
    display:none;
}
*/
/* Tuto ide o styl tlacitka roznych (pod)typov projektu */
.phead_btn {
  border: 1px solid #92AEB2;
  background-color: #92AEB2;
  color: #E0E0E0;
  padding: 2px 15px;
  font-size: 14px;
  cursor: pointer;
  /*text-decoration: underline;*/
}
.phead_btn:hover {
    /*background-color: #8BA7AB;   /*#7A929A;*/
   /*font-weight: bold;*/
   color: #FFFFFF;
}
.phead_btn_on {
  border: 1px solid #92AEB2;
  background-color: #92AEB2;    /*48927A;*/
  color: #FFFFFF;
  font-weight: bold;
  text-decoration: underline;
  padding: 2px 15px;
  font-size: 14px;
  cursor: pointer;
}


.one_projekt{
    /*background-color: yellow;*/
    width: 80%;
    margin: 0 auto;
    padding: 2rem 0 0 0;
    grid-template-columns: repeat( auto-fit, minmax(350px, 1fr) );
    justify-items: center;
    
    /* display: flex;
    justify-content: center;
    padding: 3rem 0;
    margin: auto; */
}

.one_projekt > img{
    width: 90%;
    margin-bottom: 3rem;
}

/* ----------- */

#section5{
    background-color: #EFEFEF;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 0;
}
#section5 > p{
    margin: .5rem;
    color: #000000;
}
#section5 > div{
    margin-top: 1rem;
}

/* ----------- */

#section6 {
    margin: 5rem 0;
    text-align: center;
    position: relative;
}

#section6 > img{
    position: absolute;
    right: 30%;
    top: -8%;
    width: 10%;
}

#section6 > p{
    color: #92AEB2;
    margin: 1rem auto 2rem auto;
}

#steps_wrapper{
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.one_step {
    width: 250px;
    border: 2px solid #004551;
    text-align: left;
    padding: 2rem 1rem 1rem 1rem;
    margin: 1rem;
    position: relative;
}

.one_step > h3{
    font-size: 18px;
    letter-spacing: .1rem;
    margin-bottom: 2rem;
    z-index: 100;
}

.one_step > p:nth-child(3){
    font-size: 14px;
}

.one_step > p:nth-child(1){
    color: #FFC000;
    position: absolute;
    font-size: 100px;
    top: 0%;
    left: 5%;
    z-index: -1;
    margin: 0;
}

.grey_border{
    border-color: #E7F0F1;
}
.lblue_border{
    border-color: #CCE0E2;
}
.dblue_border{
    border-color: #92AEB2;
}
.green_border{
    border-color: #004551;
}

/* --------------  */

#section7{
    width: 80%;
    margin: 7rem auto;
}

#section7 h2{
    text-align: center;
    margin-bottom: 1rem;
}

#section7 div{
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#section7 > div > img{
    margin: 2rem;
}

@media screen and (max-width: 1100px){
    #section1 h1{
        font-size: 35px;
        text-align: center;
    }
    #section1 h2{
        font-size: 25px;
    }
    #section2{
        grid-template-columns: 1fr;
    } 
    #section2 > div:nth-child(1), #section2 > div:nth-child(2){
        padding: 2rem;
    }
}

@media screen and (max-width: 845px){
    #section6 > img{
        right: 10%;
        top: -8%;
        width: 20%;
    }
}

@media screen and (max-width: 600px){
    #section1{
       width: 95%;
    }
    #section3 > p{
        width: 90%;
        text-align: center;
        margin: 0 auto 2rem auto;
    }
    #section3 .btn{
        margin-bottom: 2rem;
    }

    #section7{
        text-align: center;
    }

    #section7 div{
        display: initial;
    }
    
    #section7 > div > img{
        margin: 1rem auto;
        width: 60%;
    }
    .one_projekt{
        width: 90%;
        margin: 0 auto;
        padding: 1rem 0 0 0;
        grid-template-columns: repeat( auto-fit, minmax(280px, 1fr) );
        justify-items: center;
    }
}

@media screen and (max-width: 300px){
    .one_projekt{
        width: 100%;
        margin: 0 auto;
        padding: 0rem 0 0 0;
        grid-template-columns: repeat( auto-fit, minmax(180px, 1fr) );
        justify-items: center;
    }

}
