#section1{
    position: relative;
    width: 90%;
    height: 80vh;
    margin: auto;
}

#bg_img{
    margin: auto;
    width: 100%;
    height: 100%;
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-size: cover; 

    display: grid;
    grid-template-columns: 1fr 1fr;
}
#hero_text_wrapper{
    position: absolute;
    width: 50%;
    height: 71vh;
    top: 0;
    right: 0;

    background-color: #00455186;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}
#hero_text_wrapper p{
    color: #ffffff;
    font-size: 40px;
    margin-bottom: 1rem;
    line-height: 3.8rem;
}
.section1Img{
    position: absolute;
    right: 10%;
    bottom: -5%;
    width: 10%;
}


/* ---- O nas ---- */

#section2{
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 5rem;
    margin-bottom: 4rem;
}

#about{
    padding: 5rem 0;
    padding-left: 6rem;
    position: relative;
}

#bg_text{
    color: #F2F2F2;
    position: absolute;
    z-index: -1;
    font-size: 150px;
    font-weight: 300;
    line-height: 5rem;
    top: -20%;
    left: 6%;
}

#bg_text span{
    font-size: 30px;
}

#about > h2 {
    margin-bottom: 2rem;
}
#about > .aboutText{
    line-height: 1.7rem;
}
#about > p span {
    font-weight: bold;
}
#about > h3{
    color: #8EBBC0;
    margin: 1rem 0;
    letter-spacing: .1rem;
    text-transform: uppercase;
}

#about_details{
    padding-left: 8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail{
    display: flex;
    align-items: center;
    margin: 2rem 0;
}
.detail .number{
    color: #FFC000;
    font-size: 40px;
    width: 100px;
    text-align: center;
    line-height: .1rem;
    margin-right: 1rem;
}
.detail > div > p:nth-child(2){
    font-size: 18px;
    color: #8EBBC0;
    margin-top: 0;
    text-transform: uppercase;
}



/* ---- Priority ---- */

#section3{
    position: relative;
}

#section3 > img{
    position: absolute;
    width: 8%;
    left: 33%;
    top: -5%;
}

#section3 h2{
    text-align: center;
}

.priority_wrapper{
    width: 100%;
    height: 90%;
    bottom: 0;
    position: absolute;
    background-color: #EFEFEF;
}

.priority{
    margin-top: 3rem;
    padding-bottom: 5rem;
    display: grid;
    grid-template-columns: 1fr .1fr 1fr;
}

.priority > div{
    display: flex;
    align-items: center;
    margin: 3rem;
    position: relative;
}

.priority > div.grid_border{
    grid-column: 2;
    grid-row: 1 / 5;
    justify-self: center;
    margin: 0;
    border-left: 2px solid #FFC000;
    height: 100%;
}

.priority > div > img{
    width: 32%;
    position: absolute;
    top: -15%;
    left: 30%;
}

.priority > div > div:nth-child(3){
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4rem;
}

.priority > div > div:nth-child(2){
    margin-top: 4rem;
}

.priority > div > div > h3{
    letter-spacing: .1rem;
}

.priority > div > div > h3:nth-child(3){
    color: #8EBBC0;
    text-transform: uppercase;
}

.priority > div > div > p{
    margin: 1rem 0;
    width: 75%;
}
.priority > div > div > p.text_right{
    margin-left: auto;
}

.priority_left > div{
    margin-left: 5rem;
}

.priority_right > img{
    right: 0;
}

#priority1{
    margin-top: 10rem;
}

#priority2{
    grid-column: 3;
    grid-row: 2;
    margin-top: -2rem;
}

#priority3{
    grid-column: 1;
    grid-row: 3;
    margin-top: -2rem;
}

#priority4{
    grid-column: 3;
    grid-row: 4;
    margin-top: -2rem;
}

.priority > #priority4 > div:nth-child(2){
    margin-top: 2rem;
}

#priority4 > div > h3{
    margin-bottom: 2rem;
}

.priority > div > div.number_left, .priority > div > div.number_right{
    margin: 0;
    display: flex;
    flex-direction: row;
    align-content: center;
    position: absolute;
    top: 0%;
}
.priority > div > div.number_left{
    right: -10%;
}
.priority > div > div.number_right{
    left: -10%;
}
.priority > div > div.number_left > p, .priority > div > div.number_right > p{
    width: 40px;
    color: #FFC000;
}
.priority > div > div.number_right > p{
    text-align: right;
}
.number_left > div, .number_right > div{
    border-bottom: 2px solid #FFC000;
    width: 150px;
}

@media screen and (max-width: 1100px){
    #bg_img{    /* TR## DOPLNENE */
        margin: auto;
        /* background-image: url('../images/vystavba-renovacia.png'); */
        width: 100%;
        height: 122%;
        background-position: center; /* Center the image */
        background-repeat: no-repeat; /* Do not repeat the image */
        background-size: cover; 

        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    #hero_text_wrapper{
        position: absolute;
        width: 50%;
        height: 52vh; 
        top: 0;
        right: 0;

        background-color: #00455186;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
    }   /* TRE## DOPLNENE END */
    #section1{
        height: 50vh;
    }

    #hero_text_wrapper{
        width: 70%;
        padding: 2rem;
    }
    #hero_text_wrapper p{
        color: #ffffff;
        font-size: 30px;
        margin-bottom: 1rem;
        line-height: initial;
    }
    .section1Img{
        position: absolute;
        right: 10%;
        bottom: -30%;
        width: 10%;
    }

    #section2{
        display: grid;        
        width: 100%;
        grid-template-columns: 1fr;
        /*margin: 2rem auto 5rem auto;*/
        margin-top: 5rem;
        margin-bottom: 4rem;
    }

    #about{
        margin: auto;
        padding: 5rem;
    }
    
    #about_details{
        width: 90%;
        padding: 0;
        margin: auto;
        display: grid;
        grid-template-columns: repeat( auto-fit, minmax(250px, 1fr) );
        justify-items: center;
    }

    .detail{
        width: 260px;
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    .detail .number{
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-right: 0;
    }

    #section3 > img{
        position: absolute;
        width: 10%;
        left: 25%;
        top: -3%;
    }

    .priority_wrapper{
        width: 100%;
        height: 93%;
        bottom: 0;
        position: absolute;
        background-color: #EFEFEF;
    }

    .priority{
        width: 90%;
        margin: auto;
        grid-template-columns: 1fr;
    }
    
    .priority > div{
        margin: 2rem;
        margin-bottom: 4rem;
    }
    
    .priority > div.grid_border, .priority > div > div.number_left, .priority > div > div.number_right{
        display: none;
    }
    
    .priority > div > img{
        width: 30%;
        position: initial;
        bottom: auto;
    }
    
    .priority > div > div{
        margin-top: 0;
    }
    
    .priority > div > div > p{
        width: 90%;
        margin-top: 1rem;
    }
    
    .priority_left > div{
        margin-left: initial;
    }
    
    .priority_right > img{
        right: 0;
    }

    #priority1{
        margin-top: 5rem;
    }
    
    #priority2{
        grid-column: 1;
        grid-row: 2;
        margin-top: 2rem;
        flex-direction: row-reverse;
    }
    
    #priority3{
        grid-column: 1;
        grid-row: 3;
        margin-top: 2rem;
    }

    #priority4{
        grid-column: 1 / 3;
        grid-row: 4;
        margin-top: 4rem;
        text-align: center;
        justify-content: center;
    }
}

@media screen and (max-width: 1030px){

}

@media screen and (max-width: 845px){
   
}

@media screen and (max-width: 600px){
     #section1{
        width: 95%;
     }
     #about{
        padding: 5rem 2rem 2rem 2rem;
     }

     #hero_text_wrapper{
        padding: 2rem;
     }

    #hero_text_wrapper p{
        color: #ffffff;
        font-size: 25px;
        margin-bottom: 1rem;
        line-height: initial;
    }

    #section1 > img{
        width: 30%;
    }

    #section3 > img{
        position: absolute;
        width: 15%;
        left: 10%;
        top: -3%;
    }

    .priority_wrapper{
        width: 100%;
        height: 95%;
        bottom: 0;
        position: absolute;
        background-color: #EFEFEF;
    }

    .priority{
        width: 90%;
        margin: auto;
        grid-template-columns: 1fr;
    }

    .priority .text_right, .priority .text_left{
        text-align: left;
    }
    
    .priority > div{
        margin: .5rem;
        margin-bottom: 4rem;
        flex-direction: column;
    }
    
    .priority > div > div:nth-child(2){
        margin-top: 1rem;
    }
    
    .priority > div > img{
        width: 50%;
    }
    
    .priority > div > div{
        margin-top: 0;
    }
    
    .priority > div > div > p{
        width: 100%;
        margin-top: 1rem;
    }
    
    .priority_left > div{
        margin-left: initial;
    }
    
    .priority_right > img{
        right: 0;
    }

    #priority1{
        margin-top: 5rem;
    }
    
    #priority2{
        margin-top: 1rem;
        flex-direction: column;
    }
    
    #priority3{
        margin-top: 1rem;
    }

    #priority4{
        margin-top: 3rem;
        text-align: left;
    }
}

@media screen and (max-width: 355px){
   
}