/*  basic rules  */

*{
    margin: 0;
    padding: 0;
}

html{
    scroll-behavior: smooth;
}

body{
    display: flex;
    flex-direction: column;
    background-color: #D0CDCD;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    text-transform: uppercase
}

h1{
    color: white;

    text-align: center;
    font-size: 32px;
}

p{
    color: black;
    font-size: 18px;
}




/*  projects sections  */
.northill-A {
    height: 100vh;
    width: 100vw;

    background-image: url("images/TRP_Razanj_0010_f0248eee.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.northill-B {
    height: 100vh;
    width: 100vw;

    background-image: url("images/TRP_Razanj_0002_f0252eee.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}




/*  sections headings  */

.northill-A h1{
    position: relative;
    top: 21vh;
    font-size: 4vh;

}

.northill-B h1{
    position: relative;
    top: 21vh;
    font-size: 4vh;
}  





/*  project info sections  */
.project-info{
    background: linear-gradient(150deg, rgb(1, 21, 12) 0%, rgba(142, 201, 231, 0.74) 100%);
    display: flex;
    height: auto;
    width: 100vw;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 5vh;
}

.project-info-container{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vh;
    gap: 5vh;
}

.more-info{
    background-image: url("images/TRP_Razanj_0010_f0248eee.jpg");
    background-repeat: no-repeat;
    background-size: cover;

    display: flex;
    height: auto;
    width: 100vw;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 45px;
}

.more-info-container{
    backdrop-filter: blur(5px);
    height: auto;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3vh;
    padding: 7vh;
}

.gallery-info{
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 35px;

}

.location-cardlegend{
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 25px;
}

.complex-info{
    width: 25vw;
    height: auto;
    margin: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.complex-info p {
    font-size: 2.5vh;
    color: white;
    line-height: 1.5;
}

.card-legend{
    width: 450px;
    height: 320px;
    border-radius: 35px;
    background: linear-gradient(210deg, rgba(0, 0, 0, 0.74) 0%, rgba(105, 134,  122, 0.74) 100%);
}

iframe{
    border-radius: 20px;
    width: 20vw;
    height: 35vh;
}

.legend-location{
  display: flex;
  gap: 25px;
  flex-direction: row;
  align-items: flex-start;
}

.card-legend{
  background-color: rgba(0, 0, 0, 0.74);
  width: 20vw;
  height: auto;
  border-radius: 20px;
}

.card-legend p {
  color: white;
  font-size: 1.8vh;
  line-height: 0.75;
  padding: 25px;
  opacity: 1;
  transition: opacity 0.15s ease;
}

.card-legend h3{
  padding-bottom: 10px;
}





/*  image gallery  */

.gallery-container {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-wrapper {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
  width: 50vw;
  height: 70vh;
  border-radius: 1.5vh;
}

.gallery-image {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 1.5vh;
}

.gallery-controls, .lightbox-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;

}

.lightbox-controls .arrow {
    background: rgba(255, 255, 255, 0.486);
}

.gallery-controls button{
    color: white;
   flex-direction: column;
}

.arrow {
  position: relative;  /* změníme z absolute na relative */
  background: rgba(0, 0, 0, 0.6);
  border: none;
  font-size: 1.5rem;     /* zmenšeno z 2rem */
  cursor: pointer;
  padding: 0.4em;        /* zjednodušeno a vyrovnáno */
  border-radius: 50%;
  user-select: none;
  width: 4vh;
  height: 4vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 8px;
}

.dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dots span {
  height: 1vh;
  width: 1vh;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  display: inline-block;
  transition: background 0.3s;
}

.dots span.active {
  background: white;
}

/*  Lightbox  */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-wrapper {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
  width: 100%;
}

.lightbox-wrapper img {
  flex: 0 0 100%;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  margin-bottom: 2vh;
}

.lightbox-close {
  position: absolute;
  top: 3vh;
  right: 3vh;
  color: white;
  font-size: 5vh;
  cursor: pointer;
  z-index: 10;
}

.lightbox-counter {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 3vh;
  z-index: 20;
}




/*  contact us and download button  */

.project-control-buttons{
    display: flex;
    gap: 2vh;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.contact-btn a{
    text-decoration: none;
    font-size: 3.5vh;
    display: flex; 
    background-color: black !important;
    color: white !important;
    border-radius: 6vh;
    padding: 0.5vh 1.25vh;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    justify-content: center;
    align-items: center;
    margin-top: 5vh;

}

.contact-btn a:hover {
    background-color: white !important;
    color: black !important;
}

.download-btn a{
    text-decoration: none;
    font-size: 2vh;
    display: flex; 
    background-color: black !important;
    color: white !important;
    border-radius: 60px;
    padding: 0.5vh 1.25vh;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    justify-content: center;
    align-items: center;

}  
.download-btn a:hover {
    background-color: white !important;
    color: black !important;
}


.see-more{
    text-decoration: none;
    font-size: 2vh;
    display: flex; 
    background-color: black !important;
    color: white !important;
    border-radius: 60px;
    padding: 0.5vh 1.25vh;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    justify-content: center;
    align-items: center;
    margin-top: 2vh;

}
.see-more:hover {
    background-color: white !important;
    color: black !important;
}


.contacts-btn a{
    text-decoration: none;
    font-size: 2vh;
    display: flex; 
    background-color: black !important;
    color: white !important;
    border-radius: 60px;
    padding: 0.5vh 1.25vh;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    justify-content: center;
    align-items: center;
    margin-bottom: 10vh;

}
.contacts-btn a:hover {
    background-color: white !important;
    color: black !important;
}




/*  more info section*/


.description-container{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10vh;
}

.description-image-buttons-container{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5vh;
    border-radius: 1.5vh;
    background-image: url("images/situace_all.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 45vw;
    height: 30vw;
}

.description-table-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 1.5vh;
    background-color: rgba(0, 0, 0, 0.8);
    width: 35vw;
    height: 30vw;
}

.unit-selection-btn{
    text-decoration: none;
    display: flex; 
    background-color: black !important;
    color: white !important;
    border-radius: 6vh;
    padding: 0.5vh 1.2vh;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    justify-content: center;
    align-items: center;
    border: none;
    font-size: 4.5vh;
    padding: 0.5vh 2vh;
}
.unit-selection-btn:hover {
    background-color: white !important;
    color: black !important;
}

.unit-selection-btn.active{
    background-color: rgb(50, 201, 125) !important;
    color: black !important;
}

.unit-A-btn{
    position: relative;
    bottom: 3vw;
    right: 3vw;
}

.unit-B-btn{
    position: relative;
    top: 3vw;
    left: 1vw;
}

.description-table-northill{
    display: none;
    opacity: 0;
    transform: opacity 0.3s ease;
}

.description-table-northill.active{
    display: table;
    opacity: 1;
}

.description-table-northill table{
    width: 33vw;
    height: 28vw;
    border-collapse: collapse;
    border: 0.3vh solid white;
    color: white;
    font-size: 1.8vh;
}

.description-table-northill th, .description-table-northill td, .description-table-hilltop th, .description-table-hilltop td{
    border: 0.2vh solid white;
    padding: 0.5vh;
    text-align: center;
    font-size: 3vh;
}

.more-info-buttons{
    display: flex;
    gap: 3vh;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin-top: 3vh;
}

.download-btn a{
    text-decoration: none;
    font-size: 3.5vh;
    display: flex; 
    background-color: black !important;
    color: white !important;
    border-radius: 6vh;
    padding: 0.5vh 1.25vh;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    justify-content: center;
    align-items: center;
    margin-top: 5vh;

}

.download-btn a:hover {
    background-color: white !important;
    color: black !important;
}






/*  responzible design rules  */

@media screen and (max-height: 1050px) {

    .complex-image{
        height: 400px;
    }
}

@media screen and (max-height: 1020px){

    .complex-image{
        height: 400px;
    }
    
}

@media screen and (max-height: 520px) {
  .card-gallery{
    max-width: 550px;
  }

  iframe{
    width: 320px;
    height: 320px;
  }

  .legend-location{
    justify-content: center;
    align-items: center;
  }
}

@media screen and (max-height: 430px){
    nav ul{
            height: 15vh;
            display: flex;
            align-items: center;
    }

    .menu-icon a img{
        height: 8vh;
        width: auto;
    }

    .sidebar a{
        font-size: 16px;
    }

    .nav-title{
        font-size: 10px;
    }

    nav ul li:first-child{
        top: 5px;
    }

    .nav-title h1{
        font-size: 31px;
    }

    .gallery-image{
        height: 280px;
    }

    iframe{
        width: 320px;
        height: 320px;
        border-radius: 20px;
    }

    .legend-location{
        justify-content: center;
        align-items: center;
    }

    .card-gallery{
        max-width: 550px;
    }

    .contact-form{
        margin-top: 80px;
    }

    .contact-inputs{
        padding: 10px;
    }

    .lightbox-close{
        font-size: 7vh;
    }

    .card-lightbox-close{
        font-size: 7vh;
    }
}



 








@media screen and (max-width: 70em) {
    .description-container{
        flex-direction: column;
    }

    .description-image-buttons-container{
        width: 95vw;
        height: 60vw;
    }

    .description-table-container{
        width: 95vw;
        height: 60vw;
    }

    .description-table-northill table{
        width: 90vw;
        height: 55vw;
    }

    .description-table-northill th, .description-table-northill td, .description-table-hilltop th, .description-table-hilltop td{
        font-size: 3.5vh;
        padding: 0.2vh;
    }
}


@media  screen and (max-width: 1460px) {
    .project-info-container{
        flex-direction: column;
    }

    .gallery-wrapper{
        width: 70vw;
        height: 50vh;
    }

    .complex-info{
        text-align: center;
        width: 60vw;
    } 

    .legend-location{
        flex-direction: column;
    }

}

@media screen and (max-width: 1200px){
    .contacts-container{
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 85vh;
    }

    .contact-left{
        height: 60vh;
    }

    .contact-left button{
        width: px;
        height: 5px;
        font-size: 12px;
        text-align: center;
        width: 85px;
        
    } 

    .contact-left-title h2{
        font-size: 30px;
    }

    .other-contacts p{
        font-size: 13px;
    }

    .other-contacts{
        font-size: 12px;
    }

    .services-descriptions{
        max-width: 60vw;
    }
    .invest-descriptions{
        max-width: 60vw;
    }
    .about-text{
        max-width: 60vw;
    }
    .about-photo img{
        width: 60vw;
    }
}


@media screen and (max-width: 1050px) {

    .card-legend p{
        font-size: 2vw;
    }
}

@media screen and (max-width: 920px) {

    .complex-image{
        width: 400px;
        height: 250px;
    }

    .complex-logo{
        width: 70px;
        height: 70px;
    }

}

@media  screen and (max-width: 900px) {
    .card-slide.active{
        width: 90vw;
        margin-left: 5vw;
    }
    
    .card-timer{
        top: 11vh;
        left: 92vw;
        bottom: 0;
        height: 18vh;
    }
} 
    


@media (max-width: 890px) {

    .card-gallery{
        width: 60vw;

    }

    .card-legend{
        width: 60vw;
        height: 40vh;
    }

    iframe{
        width: 60vw;
        height: 40vh;
    }

    .more-info{
        flex-direction: column;
    }
   
}

@media screen and (max-width: 740px) {

    .project-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .complex-image {
        width: 300px;
        height: 400px;
    }

    .complex-logo {
        width: 80px;
        height: 80px;
    }


    .info-card{
        height: auto;
        width: 450px;
    }

    .card-legend p{
        font-size: 2.5vw;
    }

    .gallery-container{
        width: 70vw;
    }

    .gallery-wrapper{
        width: 70vw;
        height: 40vh;
    }

    .contact-inputs{
        width: 50vw;
        height: 5vh;
    }

    .services-descriptions{
        max-width: 85vw;
    }
    .invest-descriptions{
        max-width: 85vw;
    }
    .about-text{
        max-width: 85vw;
    }
    .about-photo img{
        width: 85vw;
    }

    .navigation{
        min-width: 90vw;
    }

}

@media screen and (max-width: 700px) {
    .fork-text h1{
        font-size: 3.5vh;
    }
    
}

@media screen and (max-width: 550px) {
    .sidebar li:nth-child(2){
        font-size: 24px;
    }

    .sidebar a{
        font-size: 18px;
    }

    .menu-icon{
        left: 2px;
    }



    .nav-title h1{
        font-size: 28px;

    }

    .project-button {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .complex-image {
        width: 250px;
        height: 300px;

    }

    .complex-logo {
        width: 80px;
        height: 80px;
    }
    
    .info-card{
        height: auto;
        width: 320px;
    }

    

    .card-legend{
        height: 400px;
        width: 320px;

    }
    .card-legend P{
        font-size: 4vw;
    }
    
    iframe{
        width: 320px;
        height: 320px;
        border-radius: 20px;
    }

    .info-card{
        margin-top: 35px;
    }
    .card-gallery{
        width: 90vw;
    }

    .gallery-container{
        width: 90vw;
    }

    .gallery-wrapper{
        width: 90vw;
    }

    .gallery-image{
        width: 90vw;
    }

    .contacts-container{
        width: 90vw;
    }

    .contact-inputs{
        width: 70vw;
    }

    .footer-links li a{
        font-size: 1.5vh;
    }
} 


/* Optimalizace pro telefony na šířku */
@media screen and (max-height: 500px) and (max-width: 926px) and (orientation: landscape) {
  .gallery-info{
    gap: 4vh;
  }
  
  .gallery-container,
  .gallery-wrapper{
    width: 60vw !important;
    height: 85vh !important;
  }

  .card-gallery,
  .card-wrapper {
    width: auto!important;
    height: 85vh !important;
  }

  .gallery-image{
    height: 85vh !important;
  }

  .card-image {
    height: 85vh !important;
    object-fit: cover;
  }

  .arrow {
    width: 7vh !important;
    height: 7vh !important;
    font-size: 4vh !important;
  }
  
  .dots span {
    height: 2vh !important;
    width: 2vh !important;
  }

  .card-dots span {
    height: 2vh !important;
    width: 2vh !important;
  }

  .complex-info{
    width: 60vw !important;
    height: 80vh !important;
  }

  .complex-info p {
    font-size: 3vh !important;
    padding: 20px !important;
  }

  .card-legend {
    width: 60vw !important;
    height: auto !important;
    min-height: 20vh !important;
    margin: 10px auto !important;
  }

  .legend-location{
    flex-direction: column !important;
    gap: 10px !important;
    width: 100vw !important;
    height: auto !important;
  }


  .more-info-container {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100vw !important;

  }

  iframe {
    width: 60vw !important;
    height: 80vh !important;
    min-height: 150px !important;
    margin: 0 auto !important;
    display: block !important;
  }

  .lightbox,
  .card-lightbox {
    align-items: flex-start !important;
    padding-top: 10px !important;
  }

  .lightbox-content,
  .card-lightbox-content {
    max-width: 98vw !important;
    max-height: 90vh !important;
  }

  .lightbox-wrapper img,
  .card-lightbox-wrapper img {
    max-height: 60vh !important;
  }
}