html,
body {
  margin: 0;
  min-height: 100vh;
  height:auto;
  background:
    linear-gradient(to bottom, #506346, transparent 480px),
    linear-gradient(to top, #506346, transparent 450px),
    #99A990;
  padding: 0 2%;
}

.overlayImg1 {
    background-image: url("../img/klafar_main_logo.png");
    background-repeat: no-repeat; /* pokud nechceš opakování */
    background-size: contain;     /* přizpůsobí velikost obrázku */
    position: absolute;
    top: -550px;
    left: -300px;
    transform: rotate(-173.1deg);
    width: 729px;
    height: 835px;
    opacity: 25%;
}

/* Header */
header {
  padding-top: 60px;
}

/* Navigace */
.uk-navbar-right .uk-navbar-nav {
  display: flex;
  gap: 10rem;
}

.uk-navbar-left .uk-navbar-nav {
    display: flex;
    gap: 2rem;
}

.uk-navbar-nav > li {
  display: flex;
  align-items: center;
}

.uk-navbar-nav > li > a {
  color: white !important;
  font-weight: 400;
  font-size: 19px;
  min-height: auto !important;
  text-transform: uppercase;
  font-family: "Outfit", sans-serif;
}

.uk-navbar-nav > li > a:hover {
    color: white !important;
}

.uk-navbar-center .uk-logo img {
  width: 117px;
  margin-top: 2rem;
}

.uk-navbar-left {
  /* rezervováno pro případné styly */
}

.uk-navbar-right {
  /* rezervováno pro případné styly */
}

.header-icon1{
    height: 20px;
    margin-right: 8px;
}

.header-icon2{
    height: 18px;
    margin-right: 8px;
}

.header-icon-hamburger{
    height: 16px;
    margin-right: 8px;
}

.uk-navbar-toggle-icon svg rect {
    fill: white;  /* Změní barvu čar na bílou */
}  

/* Tlačítko */
.uk-button {
  box-shadow: 2px 5px 5px 0px #00000040;
  border-radius: 10px;
  height: 50px;
  width: 202px;
  background: #FFFFFF80;
  color: #606D59 !important;
  font-family: "Outfit", sans-serif;
}

.button-offcanvas {
    box-shadow: 2px 5px 5px 0px #00000040;
    border-radius: 10px;
    margin-top: 1rem;
    height: 50px !important;
    width: 202px !important;
    background: #FFFFFF80;
    color: #606D59 !important;
    font-family: "Outfit", sans-serif;
  }

@media (max-width: 2100px) {
    .uk-navbar-nav > li > a {
        font-size: 15px;
    }
}

@media (max-width: 1770px) {
    .uk-navbar-left .uk-navbar-nav {
      gap: 2rem;
    }
    .uk-navbar-nav > li > a {
        font-size: 12px;
    }
    .uk-navbar-right .uk-navbar-nav > li > a {
        font-size: 13px;
    }
    .uk-button {
        height: 40px;
        width:170px;
    }
    .header-icon1{
        height: 18px;
    }
    
    .header-icon2{
        height: 16px;
    }
    /*.uk-navbar-right .uk-navbar-nav {
        display: flex;
        gap: 2rem;
      }*/
}

@media (max-width: 1500px) {
    .uk-navbar-left .uk-navbar-nav {
      gap: 0rem;
    }

    .uk-navbar-left .uk-navbar-nav > li {
        max-width: 250px;
        text-align: center;
    }
    
}

@media (max-width: 1370px) {
    .uk-navbar-left .uk-navbar-nav > li {
        max-width: 200px;
        text-align: center;
    }
    /*.header-icon1{
        display:none;
    }
    .header-icon2{
        display:none;
    }*/
}

@media (max-width: 1315px) {
    .uk-navbar-left .uk-navbar-nav {
      gap: 0rem;
    }
    .uk-navbar-right .uk-navbar-nav{
      gap: 5rem;
    }
    .uk-navbar-left .uk-navbar-nav > li {
        max-width: 150px;
        text-align: center;
    }
    .uk-button {
        width:140px;
    }
    .uk-navbar-center .uk-logo img {
        width: 90px;
        margin-top: 2rem;
    }
    .uk-navbar-right .uk-navbar-nav > li > a {
        font-size: 12px;
    }
}

@media (max-width: 1030px) {
    .uk-navbar-nav > li > a {
        font-size: 11px;
    }
    .uk-button {
        width:130px;
    }
    .uk-navbar-right .uk-navbar-nav{
      gap: 2rem;
    }
}

/* Hlavní sekce */
.main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    padding-top: 4rem;
    height: auto;
    padding-bottom: 4rem;
}
.main2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.main > div {
  height: auto;
  display: flex;
  flex-direction: column;
}

.main2 > div {
  height: auto;
  display: flex;
  flex-direction: column;
}

.overlay-button {
  position: absolute;
  bottom: 80px;
  left: -25px;
  transform: translateX(-50%);
  width: 180px;
  height: 45px;
  box-shadow: 2px 5px 5px 0px #00000040;
  border-radius: 30px;
  color: #606D59 !important;
  font-size: 14px;
  font-weight: 400;
  background: #FFFFFFB2;
  font-family: "Outfit", sans-serif;
  backdrop-filter: blur(15px);
  transition: background 0.5s ease, color 0.5s ease;
  display: none;
  text-align: center;
  line-height: 45px;
  text-decoration: none;
  animation: none;
  opacity: 0;
}

.img-wrap.large .overlay-button {
  display: block;
  animation: overlayFadeInUp 0.9s ease-out forwards;
}

@keyframes overlayFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.overlay-button:hover {
  background: #606D59;
  color: white !important;
  cursor: pointer;
  text-decoration: none;
}

.overlay-button span {
  display: inline-block;
  background-image: url("../img/array1.png");
  width: 23px;
  height: 23px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-left: 10px;
  margin-top: -3px;
  vertical-align: middle;
  transition: background-image 0.5s ease;
}

.overlay-button:hover span {
  background-image: url("../img/array2.png");
}

/* Levý blok */
.rezidence-u-lipy-img {
    height: 130px;
    width: auto;
    object-fit: contain;
  }

.title {
  color: white;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 50px;
}

.subtitle {
  color: white;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 25px !important;
  text-transform: uppercase;
  margin-top: 0;
}

.description1 {
  color: white;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 20px;
  text-align: justify;
}

.description2 {
    color: white;
    font-family: "Outfit", sans-serif;
    font-weight: 400;
    font-size: 20px;
    text-align: justify;
  }

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
.full-height {
  height: 100%;
}

.imgs {
    flex-grow: 1;
    display: flex;
    gap: 30px;
    height: 100%;
}

.imgs .uk-grid {
  flex-grow: 1;
  height: 100%;
}

.imgs .uk-grid > div {
  height: 100%;
  display: flex;
}

.imgs img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.imgs-row {
    display: flex;
    gap: 30px;
    height: 950px;
    overflow: visible;
    transition: all 0.5s ease-in-out;
  }
  
  .img-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: flex 0.5s ease-in-out;
    position: relative;
  }
  .img-wrap:hover img {
    cursor: pointer;
    }
  
  .img-wrap.large {
    flex: 3; /* 3/5 šířka */
  }
  
  .img-wrap.small {
    flex: 1; /* 1/5 šířka */
  }
  
  .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    transition: transform 0.5s ease-in-out;
  }

  .under1000{
    display: none;
  }

@media (max-width: 1650px) {
  .imgs-row {
    height: 700px;
    margin-bottom: 5rem;
  }
    .main {
      align-items:flex-start;
    }
    .title {
    font-size: 35px;
    }
    
    .subtitle {
    font-size: 20px !important;
    }
    
    .description1 {
    font-size: 15px;
    }

    .description2 {
    font-size: 15px;
}
.rezidence-u-lipy-img {
    height: 80px;
  }
}

@media (max-width: 1120px) {
    .under1000 {
        display:block;
        padding: 4rem 0rem;
    }
    .main {
        display: none;
    }
    html,
    body {
    padding: 0 2%;
    }
    .imgs-row {
        gap: 10px;
        height: 40vh;
        border-radius: 10px;
    }
    .imgs img {
        border-radius: 10px;
    }
    .img-wrap img {
        border-radius: 10px;
    }
    .img-wrap.large {
        flex: 6;
      }
      
      .img-wrap.small {
        flex: 1;
      }
    .title{
        color: white;
        font-family: "Outfit", sans-serif;
        font-weight: 400;
        font-size: 40px;
    }
    .subtitle{
        color: white;
        font-family: "Outfit", sans-serif;
        font-weight: 400;
        font-size: 20px;
        text-transform: uppercase;
        margin-top: 0;
    }
    .description1{
        color: white;
        font-family: "Outfit", sans-serif;
        font-weight: 400;
        font-size: 16px;
        text-align: justify;
    }
    .description2{
        color: white;
        font-family: "Outfit", sans-serif;
        font-weight: 400;
        font-size: 16px;
        text-align: justify;
    }
    
    .overlayImg1 {
        display: none;
    }
    .rezidence-u-lipy-img {
        height: 80px;
    }
    .overlay-button {
      bottom: 40px;
      left:-10px;
      width: 140px;
      height: 30px;
      border-radius: 30px;
      font-size: 12px;
      line-height: 32px;
    }
    .overlay-button span {
      width: 13px;
      height: 13px;
      margin-left: 8px;
      margin-top: -3px;
    }
}
@media (max-width: 600px) {
    .title{
        color: white;
        font-family: "Outfit", sans-serif;
        font-weight: 400;
        font-size: 30px;
    }
    .subtitle{
        color: white;
        font-family: "Outfit", sans-serif;
        font-weight: 400;
        font-size: 15px;
        text-transform: uppercase;
        margin-top: 0;
    }
    .description1{
        color: white;
        font-family: "Outfit", sans-serif;
        font-weight: 400;
        font-size: 12px;
        text-align: justify;
    }
    .description2{
        color: white;
        font-family: "Outfit", sans-serif;
        font-weight: 400;
        font-size: 12px;
        text-align: justify;
    }
    .rezidence-u-lipy-img {
        height: 70px;
    }
}