body,
button,
input,
select,
textarea {
    font-family: 'Source Sans 3', 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;
}

@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    .navbar-collapse {
        display: flex !important;
    }

}

/* Styly pro rozbalovací menu */
.navbar-nav .nav-link.dropdown-toggle:hover {
    transform: none !important;
}

.dropdown-menu {
    background-color: #F7F7F7;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 100%;
    padding: 0;
    overflow: hidden;
    z-index: 1060;
}

.dropdown-item {
    color: #194505;
    padding: 12px 20px;
    font-size: 15px;
}

.dropdown-item:hover {
    background-color: #3D8F19;
    color: white;
}

.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;
}

.main-header {
    width: 100%;
}

/* Styly pro karty na konci stranky */
.content-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.content-card-custom {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.content-card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.content-card-img {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.content-card-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.content-card-title {
    color: #194505;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.content-card-btn {
    background-color: #3D8F19;
    color: white;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 1.3rem;
    text-decoration: none;
    margin-top: auto;
    display: inline-block;
    transition: background-color 0.2s;
}

.content-card-btn:hover {
    background-color: #2e6b12;
    color: white;
    text-decoration: none;
}

/* 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;
    z-index: 1040;
    background-color: #F7F7F7;
}

.responsive-padding-top {
    padding-top: 140px !important;
}

/* 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;
    position: relative;
    z-index: 1100;
}

.navbar-bottom {
    background-color: #F7F7F7 !important;
    padding: 10px 20px;
    height: 80px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.navbar-toggler {
    border: none;
    /* Remove border from the toggler */
    background-color: transparent !important;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none;
    box-shadow: none;
    background-color: transparent !important;
}

.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: 0 1 auto;
    text-align: center;
}

.navbar-nav .nav-link {
    color: #194505 !important;
    /* Custom text color */
    font-size: 17px;
    /* Reverted font size */
    font-weight: 600;
    transition: transform .2s;
    /* Animation */
    -webkit-tap-highlight-color: transparent;
    padding: 8px 15px;
}

.navbar-nav .nav-link:hover {
    color: #194505 !important;
    /* Custom hover text color */
    transform: scale(1.2);
    background-color: transparent;
}

/* 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: 5px;
    /* 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: wrap;
    /* Ensure items are aligned in one row */
    justify-content: space-between;
    /* Spread columns evenly */
    padding: 0 15px;
    /* Add padding to the sides */
    gap: 30px;
}

#footer .footer-column {
    flex: 1 1 200px;
    /* 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: center;
    gap: 40px;
    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: 0 1 520px;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.variant-column h2,
.variant-column h3,
.variant-column p {
    width: 100%;
    text-align: center;
}

.panel-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    margin-bottom: 20px;
}

.panel-item {
    flex: 0 0 200px;
    box-sizing: border-box;
    text-align: center;
}

.panel-item img {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    padding: 0;
    border: none;
}

@media (min-width: 992px) {
    .panel-variants {
        justify-content: space-between;
        gap: 80px;
    }

    .variant-column {
        flex: 1 1 0;
        max-width: none;
    }

    .panel-row {
        justify-content: space-evenly;
        gap: 30px;
    }
}

.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: 991.98px) {
    .navbar-nav {
        flex-direction: column;
        align-items: flex-end;
        flex-wrap: nowrap;
        /* Align the nav items to the right */
        width: 100%;
        padding: 0 8px;
    }

    .address-box {
        padding-top: 20px;
    }

    .navbar-nav .nav-item {
        text-align: right;
        width: 100%;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link:active {
        transform: none;
        color: #3D8F19 !important;
        background-color: transparent !important;
    }
    .navbar-nav .nav-link:hover {
        color: #3D8F19 !important;
        transform: none;
    }

    .responsive-padding-top {
        padding-top: 110px !important;
    }

    .navbar-center-image {
        display: none;
        /* Hide the image on screens smaller than 768px */
    }

    .navbar-top .navbar-brand img {
        height: 110px;
        position: static;
        margin: -30px auto 10px;
        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;
        flex-wrap: nowrap;
        justify-content: flex-end;
        /* Push the toggler button to the right */
        padding: 10px 20px;
        background-color: transparent !important;
        height: 100%;
        position: relative;
    }

    .navbar-collapse,
    .navbar-collapse.collapse {
        display: block !important;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        position: absolute;
        top: 100%;
        left: 5%;
        right: 5%;
        width: 90%;
        z-index: 1050;
        background-color: rgba(255, 255, 255, 0.97);
        border-radius: 10px;
        padding: 0 10px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        margin-top: 6px;
        transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity    0.30s ease,
                    padding    0.30s ease,
                    visibility 0s linear 0.38s;
    }

    .navbar-collapse.custom-show {
        max-height: 80vh;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        padding: 12px 10px;
        transition-delay: 0s;
    }

    .hamburger-box {
        display: inline-block;
        width: 30px;
        height: 22px;
        position: relative;
    }
    
    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        content: '';
        display: block;
        position: absolute;
        width: 30px;
        height: 5px;
        background-color: #194505;
        border-radius: 20px;
        transition: transform 0.35s cubic-bezier(0.645, 0.045, 0.355, 1),
                    opacity   0.35s cubic-bezier(0.645, 0.045, 0.355, 1),
                    top       0.35s cubic-bezier(0.645, 0.045, 0.355, 1);
    }
    
    .hamburger-inner         { top: 9px; }
    .hamburger-inner::before { top: -9px; }
    .hamburger-inner::after  { top:  9px; }
    
    .custom-toggler.is-open .hamburger-inner {
        transform: rotate(45deg);
    }
    .custom-toggler.is-open .hamburger-inner::before {
        top: 0;
        opacity: 0;
    }
    .custom-toggler.is-open .hamburger-inner::after {
        top: 0;
        transform: rotate(-90deg);
    }



    #footer .footer-columns {
        padding: 0 10px;
        flex-direction: row;
        justify-content: space-around;
    }

    #footer .footer-column {
        flex: 1 1 45%;
        text-align: center;
    }

    #footer .footer-column h5 {
        text-align: center;
    }

    /* ------------------------- Varianty panelu -------------------------- */

    .variant-column {
        flex: 1 1 100%;
        margin-right: 0;
    }

    .panel-item {
        flex: 0 1 200px;
    }

    /* ------------------------- 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;
    }

    .content-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #footer .footer-columns {
        flex-direction: column;
        align-items: center;
    }

    #footer .footer-column {
        flex: 1 1 100%;
        width: 100%;
        margin-bottom: 30px;
    }
}

.footer-social .social-icon {
    width: 32px;
    height: auto;
    margin: 0 8px;
    vertical-align: middle;
    display: inline-block;
    filter: brightness(0) invert(1);
}
