h1, h2, h3, h4, h5, h6, p, a, .navbar, .sidebar, .footer {
    font-family: 'Lato', sans-serif;
}
/* Green line at the top with increased height and centered text */
.top-green-line {
    background-color: #3D8F19; /* Green background color */
    height: 30px; /* Increased height */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* White text color */
    font-size: 16px; /* Font size for the text */
    font-weight: normal; /* Normal text */
}

.top-green-line-text {
    text-align: center;
}


.product-item .product-button {
    display: block !important;
    width: max-content !important;
    margin: 0 auto !important;
}
.centered-page {
    max-width: 1140px;
    margin: 0 auto !important;
    padding: 0 15px;
}

/* Ensure the navbar containers are full width */
.navbar-top-container {
    height: 150px;
    width: 100%; /* Increase the height to match the new logo size */
}

.navbar-bottom-container {
    width: 100%;
    height: 50px;
}


/* Custom Navbar styles */
.navbar {
    padding: 0 !important; /* Remove padding from the navbar */
    display: flex;
    flex-direction: column; /* Stack the two parts vertically */
    
}

.navbar-top {
    background-color: #FFFFFF;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%; /* Ensure the height fills the container */
    width: auto;
}

.language-flag {
    box-shadow: 0px 4px 6px rgba(2, 102, 2, 0.7); /* Adjust shadow values */
    border-radius: 3px; /* Optional: add some rounding to the corners */
}

.navbar-center-image {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.navbar-top .navbar-brand img {
    height: 130px;
    position: relative;
    top: -45px;  /* Moves the image 10px up */
    right: -100px; /* Moves the image 10px to the right */
}


.navbar-top .navbar-language-switch {
    margin-left: auto;
    margin-right: 30px;
}

.navbar-bottom {
    background-color: #F7F7F7;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.navbar-toggler {
    border: none; /* Remove border from the toggler */
}

.navbar-toggler-icon.custom-navbar-icon {
    width: 30px;
    height: auto;
}

/* Styles for evenly spreading nav items */
.navbar-nav {
    display: flex;
    flex-grow: 1;
}

.navbar-nav .nav-item {
    flex: 1;
    text-align: center;
}

.navbar-nav .nav-link {
    width: 100%;
    color: #194505 !important; /* Custom text color */
    padding: 20px 0;
    font-size: 16px; /* Custom font size */
    font-weight: bold;
    transition: transform .2s; /* Animation */
}

.navbar-nav .nav-link:hover {
    color: #194505 !important; /* Custom hover text color */
    transform: scale(1.2);
}

/* Custom styles for no-sidebar layout */
.no-sidebar .navbar {
    margin-left: 0;
    width: 100%;
}

.no-sidebar .navbar-top-container, .no-sidebar .navbar-bottom-container {
    padding-left: 0;
}

.no-sidebar .content-wrapper {
    margin-left: 0;
    width: 100%;
}

.no-sidebar .main-header {
    padding-left: 0;
}

/* Ensure the sidebar covers the full left side */
.main-sidebar {
    background-color: #014728 !important;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1000;
}

.sidebar {
    padding-top: 60px; /* Adjust padding/margin as needed */
    background-color: inherit !important; /* Ensure the sidebar inherits the green color */
}

.no-sidebar .main-sidebar {
    display: none;
}

/* Custom CSS to ensure uniform font size for sidebar menu items */
.sidebar-menu > li > a {
    font-size: 14px; /* Adjust this value as needed */
    background-color: #013b21 !important;
}

.sidebar-menu .treeview-menu > li > a {
    font-size: 12px; /* Ensure sub-items have the same font size */
    background-color: #013b21 !important;
}

/* Styles for the footer container */
#footer {
    background-color: #094816 !important; /* Change to the red background color */
    color: #ffffff;
    padding: 30px 20px; /* Reduce padding to match the design */
    font-size: 14px;
    height: auto; /* Remove fixed height to allow flexible content */
}

/* Style for footer headings */
#footer h5 {
    color: #ffffff;
    font-weight: bold; /* Make headings bold */
    margin-bottom: 15px; /* Add margin below headings */
    font-size: 16px;
}

/* Style for footer links */
#footer a {
    color: #ffffff;
    text-decoration: none; /* Remove underline from links */
    font-weight: normal; /* Regular font weight for links */
}

#footer a:hover {
    color: #dddddd; /* Lighten link color on hover */
    text-decoration: underline; /* Add underline on hover */
}

/* Footer link list styles */
#footer .list-unstyled {
    list-style: none; /* Remove bullet points */
    padding: 0;
}

#footer .list-inline {
    padding-left: 0;
}

#footer .list-inline-item {
    display: inline-block;
    margin-right: 20px; /* Space between inline items */
    text-decoration-line: underline;
}

#footer .list-inline-item a {
    color: #ffffff;
    font-size: 14px; /* Text size for footer links */
}

#footer .list-inline-item a:hover {
    color: #dddddd; /* Lighten link color on hover */
}

/* Style for additional footer sections */
#footer .footer-section {
    margin-bottom: 20px; /* Add margin to separate sections */
}

/* Ensure copyright text is at the bottom */
.footer-copyright {
    margin-top: 30px;
    font-size: 12px;
    text-align: center;
    color: #ffffff;
}

/* Custom styles for logo or images in the footer */
#footer .footer-logo {
    max-width: 100px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-top: 10px;
}

#footer .footer-columns {
    display: flex;
    flex-wrap: nowrap; /* Ensure items are aligned in one row */
    justify-content: space-between; /* Spread columns evenly */
    padding: 0 50px; /* Add padding to the sides */
}

#footer .footer-column {
    flex: 1 1 25%; /* Four equal columns */
    margin-bottom: 20px; /* Space below each column */
    min-width: 150px; /* Ensure columns have a minimum width */
}

#footer .footer-column:last-child {
    margin-right: 0;
}

/* Custom styles for no-sidebar footer */
.no-sidebar #footer {
    margin-left: 0;
    width: 100%;
}

.site-varianty {
    width: 80%;
    margin: 0 auto;
}

h1, h2, h3 {
    color: #194504;
}

p {
    font-size: 16px;
    line-height: 1.5;
}

.content-with-image {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.text-content {
    width: 70%;
    margin-top: 20px;
}

.image-content {
    width: 25%;
    margin-top: 20px;
}

.image-content img {
    width: 100%;
    height: auto;
}

/* Target the text after the table */
.site-varianty h2, .site-varianty p {
    font-size: 18px; /* Increase the font size (adjust as needed) */
    line-height: 1.6; /* Optional: improve readability */
    margin-top: 15px; /* Add spacing above the text */
}

/* Optional: if you want to adjust the link size too */
.site-varianty p a {
    font-size: 18px; /* Match the text size */
}

/* Enlarge the text in the table headers */
.variant-table th {
    font-size: 18px; /* Adjust the size as needed */
}

/* Enlarge the text in the first column */
.variant-table td:first-child {
    font-size: 18px; /* Adjust the size as needed */
}

.table-with-buttons {
    display: grid;
    grid-template-rows: auto auto; /* One row for the table and one for the buttons */
}

.variant-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.variant-table th, .variant-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.variant-table th {
    background-color: #4CAF50;
    color: white;
}

.variant-table td img {
    width: 20px;
    height: 20px;
}

.variant-table tfoot td {
    padding-top: 10px;
}

.main-button {
    width: 100%;
    padding: 10px;
    background-color: #3D8F19;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 20px;
    text-align: center;
}


.main-button:hover {
    background-color: #45a049;
}

.varianty-panelu {
    padding: 20px;
    
}

.panel-variants {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.varianty-panelu h1 {
    font-size: 28px;
    color: #194504;
    margin-bottom: 10px;
}

.varianty-panelu h2 {
    font-size: 24px;
    color: #194504;
    margin-top: 20px;
}

.varianty-panelu h3 {
    font-size: 20px;
    color: #194504;
    margin-top: 10px;
}

.varianty-panelu p {
    font-size: 16px;
    color: #194504;
}

.variant-column {
    flex: 1;
    margin-right: 20px;
}

.variant-column:last-child {
    margin-right: 0;
}

.panel-row {
    display: flex;
    flex-wrap: nowrap; /* No wrap to keep two items per row */
    justify-content: space-between;
    gap: 10px; /* Adjust the space between items as needed */
    margin-bottom: 20px; /* Space between panel rows */
}

.panel-item {
    flex: 0 0 calc(50% - 10px); /* Ensure two items per row with spacing */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    text-align: center; /* Center align text within panel-item */
}

.panel-item img {
    width: 100%;
    height: auto;
    max-width: 200px; /* Adjust the size as needed */
    display: block;
    margin: 0 auto; /* Center the image */
    padding: 0; /* Remove any padding */
    border: none; /* Remove any border */
    margin-left: 0px; /* Adjust this value as needed to move images to the left */
}

.language-flag {
    width: 40px; /* Adjust the size of the flag */
    height: auto;
    margin-right: 5px; /* Space between the flag and text */
    vertical-align: middle;
}


/* Media queries for responsiveness */

/* Media queries for larger screens */
@media (min-width: 1200px) {
    .navbar-nav {
        margin-left: auto; /* Align the nav items to the right */
    }
}

/* Media queries for medium screens */
@media (max-width: 992px) {
    .navbar-nav {
        flex-direction: row;
        justify-content: flex-end; /* Align the nav items to the right */
        width: 100%;
    }

    .navbar-nav .nav-item {
        text-align: center;
    }

    .panel-variants {
        flex-direction: column;
    }
    
    .variant-column {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .variant-column:last-child {
        margin-bottom: 0;
    }
    
    .panel-item {
        flex: 0 0 100%; /* Ensure single column on smaller screens */
    }
}

/* Media queries for small screens */
@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: column;
        align-items: flex-end; /* Align the nav items to the right */
        width: 100%;
    }

    .navbar-nav .nav-item {
        text-align: right;
        width: 100%;
    }

    .navbar-center-image {
        display: none; /* Hide the image on screens smaller than 768px */
    }

    .navbar-top .navbar-brand img {
        height: 110px; /* Smaller logo */
        position: static; /* Reset position to allow centering */
        margin-top: -30px;
        margin: 10 auto; /* Center the logo */
        display: block;
    }

    .navbar-top .navbar-language-switch {
        position: absolute;
        right: 10px; /* Position the language switch to the far right */
        top: 50%;
        transform: translateY(-50%);
    }

    .navbar-top {
        display: flex;
        flex-direction: row; /* Horizontal row for logo and language dropdown */
        justify-content: center; /* Center all elements */
        align-items: center;
        position: relative; /* Allow better positioning */
    }

    .navbar-bottom {
        display: flex;
        justify-content: flex-end; /* Push the toggler button to the right */
        padding: 10px 20px;
    }

    

    #footer .footer-columns {
        flex-direction: column; /* Stack columns on smaller screens */
    }

    #footer .footer-column {
        flex: 1 1 100%; /* Each column takes full width */
        margin-bottom: 20px; /* Space between stacked columns */
    }

    /* ------------------------- Varianty panelu -------------------------- */

    .variant-column {
        flex: 1 1 calc(50% - 10px);
        margin-right: 20px;
    }

    .variant-column:last-child {
        margin-right: 0;
    }

    .panel-item {
        flex: 0 0 calc(50% - 5px);
    }

    /* ------------------------- Varianty zařízení -------------------------- */

    .content-with-image {
        flex-direction: column; /* Stack the image and text content */
        align-items: center; /* Center the content */
    }

    .text-content, .image-content {
        width: 100%; /* Make both the text and image take full width */
        margin-top: 10px;
    }

    /* Ensure that the table scrolls horizontally on smaller screens */
    .table-with-buttons {
        overflow-x: auto;
    }

    .variant-table {
        width: 1000px; /* Minimum width for the table, can scroll horizontally on small screens */
    }

    .main-button {
        width: 100%; /* Make buttons full-width on smaller screens */
        font-size: 16px;
    }

    
}

.footer-social .social-icon {
    width: 32px;       
    height: auto;
    margin: 0 8px;     
    vertical-align: middle;
    display: inline-block;
    filter: brightness(0) invert(1);
  }