:root {
    --components-background-color: #ebbcbc99;
    /* --components-background-color: #BCDAEB998;  */
    --section-background-color: #ebbcbc40;
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Geologica, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

/* Header text above navbar */
.header_text {
    text-align: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-weight: 400;
    line-height: normal;
}

.header_text_pujcovna {
    font-size: 16px;
}

.header_text_kyjovske {
    font-family: "DM Serif Display";
    font-size: 20px;
}

/* Navbar */

 /* Navbar Container */
 .navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--components-background-color);
    padding: 10px 20px;
    color: var(--text-color);
  }

  /* Navbar Links */
  .navbar .nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .navbar .nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
  }

  .navbar .nav-links li a:hover {
    color: #fa3f3f;
  }

  /* Hamburger Icon */
  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
  }

  .hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
  }

/* Responsive Styles */
@media screen and (max-width: 768px) {
    /* Navbar Container */
    .navbar {
        justify-content: right;
    }

    .navbar .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}

/* Main image */

.header_image {
    background: url(images/header_image_compresed.png) no-repeat center center / cover !important;
    height: 400px;
    text-align: center;
    color: white;
}

.header_image h1 {
    line-height: normal;
}

.black_shade_box {
    background: rgba(0, 0, 0, 0.5);
    height: 100%;

    display: flex;
    justify-content: center;
    /* align-items: center; */
    flex-direction: column;
}

.main_image_text_pujcovna {
    font-size: 2.5rem;
    /* text-transform: uppercase; */
}

.main_image_text_kyjovske {
    font-family: "DM Serif Display";
    font-size: 4rem;
}

@media screen and (max-width: 768px) {
    .main_image_text_pujcovna {
        font-size: 2rem;
    }
    
    .main_image_text_kyjovske {
        font-size: 2.5rem;
    }
    
}

section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 300;
    font-size: 2rem;

    position: relative;
    display: inline-block;
}

.section_text {
    text-align: left;
    max-width: 60%;
    margin: auto;
}

section h2:not(#produkty_h2)::after {
    content: "";
    position: absolute;
    bottom: 0px; /* Adjust distance between text and line */
    left: 50%;
    transform: translateX(-50%);
    width: 100%; /* Width of the underline */
    height: 5px; /* Thickness of the underline */
    background-color: var(--components-background-color); /* Light blue underline color */
    border-radius: 2px; /* Rounded corners for the underline */
}

/* About */

.about {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    flex-direction: row;
}

.about_image {
    max-width: 400px;
    /* width: 100%; */
    border-radius: 10px;
    margin: auto;
}

@media screen and (max-width: 768px) {
    .about_image {
        max-width: 60%;
    }  
}

/* Services */

.services {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 2rem;
    flex-wrap: wrap;
}

.service_icon_container{
    width: 110px; /* Adjust width of the circle */
    height: 110px; /* Adjust height of the circle */
    background-color: white !important; /* Circle background color */
    border-radius: 50%; /* Makes the container a circle */
    display: flex; /* Centers content inside */
    justify-content: center; /* Horizontal centering */
    align-items: center; /* Vertical centering */
    margin: 0 auto; /* Centers the container in its parent */
}

.services_text {
    padding-top: 1.2rem;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 1.5rem;
}

.service_component {
    flex: 1 1 calc(25% - 20px);
    background: var(--components-background-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.services div img, .products div img {
    max-width: 70px;
    margin-bottom: 10px;
}

/* Produkty */

.products {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding-top: 2rem;
    flex-wrap: wrap;
}

.section_produkty {
    background-color: var(--section-background-color);
    border-radius: 10px;
    margin-top: 2rem;
}

.kategorie_produktu {
    background-color: #F9F9F9;
    padding: 2.5rem;
    padding-left: 3.5rem;
    padding-right: 3.5rem;
    min-width: 30%;
    border-radius: 10px;
}

.kategorie_produktu h3 {
    line-height: normal;
}

@media screen and (max-width: 768px) {
    .kategorie_produktu {
        min-width: 60%;
    }
}

.kategorie_produktu h3 {
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
}

.kategorie_produktu ul {
    text-align: left;
    font-weight: 100;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 2.5rem;
}

.jednotlive_casti {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

/* Gallery */

.gallery_name { 
    font-weight: 400;
    font-size: 1.5rem;
    padding-top: 1.5rem;
    text-transform: uppercase;
}

.gallery_usite{
    padding-top: 3.5rem;
}

.gallery_pujcovna, .gallery_usite_images {
    padding-top: 1rem;
}


/* Carousel */

.gallery-cell {
    width: 70%;
    height: 200px;
    /* flex-box, center image in cell */
    display: -webkit-box;
    display: -webkit-flex;
    display:         flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
            justify-content: center;
    -webkit-align-items: center;
            align-items: center;
  }
  
  .gallery-cell img {
    display: block;
    max-width: 100%;
    max-height: 100%;
  }
  
  @media screen and ( min-width: 768px ) {
    .gallery-cell {
      height: 500px;
    }
  }
  
  @media screen and ( min-width: 960px ) {
    .gallery-cell {
      width: 60%;
    }
  }

/* Kontakty */

.kontakty_text {
    text-align: left;
    padding: 2rem;
    font-size: 1.2rem;
}

.kontakty_container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 2rem;
}

.kontakt_name {
    font-size: 1.7rem;
    padding-bottom: 1rem;
}

@media screen and (max-width: 940px) {
    .kontakty_container {
        justify-content: center;
    }
}

.ref_underline_kontakt {
    color: var(--text-color);
}


/* Footer */

footer {
    text-align: center;
    padding: 20px;
    /* background: #33333344; */
    background: var(--components-background-color);
    /* color: #fff; */
    margin-top: 40px;
}

.ref_underline_footer {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
}