body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    flex-direction: column; /* Usporiadanie loga a navigácie zvisle */
    align-items: center; /* Centrovanie na stred */
    background-color: #240f0e;
    padding: 1rem;
    position: relative;
}


header h1 {
    margin: 0;
    color: #ec2327;
    text-align: center;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 2rem;
}

.menu-toggle {
    display: none;
    background-color: #240f0e;
    border: none;
    color: #ec2327;
    font-size: 1.5rem;
    cursor: pointer;
    margin-bottom: 1rem;
    position: relative;
    z-index: 20;
    /* Ensure the button is above the menu */
}

.logo-container {
    display: flex;
    justify-content: center; /* Horizontálne centrovanie */
    margin-bottom: 20px; /* Vytvorí priestor medzi logom a navigáciou */
}

.logo {
    width: 200px; /* Nastavte veľkosť loga */
    height: auto;
}

.menu-toggle.active .hamburger-icon {
    background-color: transparent;
}

.menu-toggle.active .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 1rem;
}

.nav-links li a {
    color: #ec2327;
    text-decoration: none;
}

.hero {
    background: url('hero-image.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 5rem 1rem;
    text-align: center;
    margin: 0;
    /* Remove margins */
    padding: 0;
    /* Remove padding */
    margin-top: 0;
    /* Remove margin above the banner */
}

.banner {
    position: relative;
    width: 80%;
    /* Set a fixed width for the banner */
    max-width: 1200px;
    /* Optional: Set a maximum width for larger screens */
    height: 300px;
    /* Set the height for the banner */
    margin: 0 auto;
    /* Center the banner horizontally */
    overflow: hidden;
    background-color: #f4f4f4;
    /* Optional: Background color behind the images */
    margin-top: 0;
    /* Remove margin above the banner */
    padding-top: 0;
    /* Ensure no padding above the banner */
}

.banner-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.banner-slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure the whole image is visible */
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.lorem,
.tyre-categories,
.tyre-category,
.contact-us {
    padding: 1rem;
    background-color: #f4f4f4;
    text-align: center;
    border: 1px solid #ccc;
    margin: 1rem;
}

.tyre-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.tyre-category {
    flex: 1 1 45%;
    margin: 1rem;
    position: relative;
    height: 200px;
    /* Adjust height as needed */
    color: white;
    overflow: hidden;
    background-size: cover;
    /* Ensure the background image covers the entire div */
    transition: transform 0.3s ease;
    /* Add transition for smooth zoom */
}

.tyre-category:hover {
    transform: scale(1.05);
    /* Slightly zoom in */
}

.tyre-category h2 {
    margin-top: 0;
}

.tyre-category button,
.contact-us button {
    padding: 0.5rem 1rem;
    background-color: #ec2327;
    color: #ffffff;
    border: none;
    cursor: pointer;
}

.products {
    padding: 2rem;
}

.product {
    border: 1px solid #ccc;
    margin: 1rem 0;
    padding: 1rem;
}

footer {
    background-color: #240f0e;
    color: #ec2327;
    padding: 1rem;
    text-align: center;
}


/* Background Image for Military Tyres */

.military {
    background: url('bannerpneumatikz.png') no-repeat center center;
    background-size: cover;
    /* Make the image more zoomed in */
}

.military::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    z-index: 1;
}

.military h2,
.military p,
.military button {
    position: relative;
    z-index: 2;
}


/* Background Image for Military Tyres */

.personal {
    background: url('personalTzresBanner1.png') no-repeat center center;
    background-size: cover;
    /* Make the image more zoomed in */
}

.personal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    z-index: 1;
}

.personal h2,
.personal p,
.personal button {
    position: relative;
    z-index: 2;
}

/* Background Image for Military Tyres */

.nakladne {
    background: url('nakladneBanner.png') no-repeat center center;
    background-size: cover;
    /* Make the image more zoomed in */
}

.nakladne::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    z-index: 1;
}

.nakladne h2,
.nakladne p,
.nakladne button {
    position: relative;
    z-index: 2;
}

.diskzakolesa {
    background: url('diskybanner.png') no-repeat center center;
    background-size: cover;
    /* Make the image more zoomed in */
}

.diskzakolesa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    z-index: 1;
}

.diskzakolesa h2,
.diskzakolesa p,
.diskzakolesa button {
    position: relative;
    z-index: 2;
}

.dused1 {
    background: url('d1banner.png') no-repeat center center;
    background-size: cover;
    /* Make the image more zoomed in */
}

.dused1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    z-index: 1;
}

.dused1 h2,
.dused1 p,
.dused1 button {
    position: relative;
    z-index: 2;
}

/* D2 */
.dused2 {
    background: url('d2banner.png') no-repeat center center;
    background-size: cover;
    /* Make the image more zoomed in */
}

.dused2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    z-index: 1;
}

.dused2 h2,
.dused2 p,
.dused2 button {
    position: relative;
    z-index: 2;
}

/*industrial*/
.industrialne {
    background: url('industrialbanner.png') no-repeat center center;
    background-size: cover;
    /* Make the image more zoomed in */
}

.industrialne::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    z-index: 1;
}

.industrialne h2,
.industrialne p,
.industrialne button {
    position: relative;
    z-index: 2;
}

/*nakladnelahke*/
.nakladnelahke {
    background: url('nakladnelahkebanner.png') no-repeat center center;
    background-size: cover;
    /* Make the image more zoomed in */
}

.nakladnelahke::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    z-index: 1;
}

.nakladnelahke h2,
.nakladnelahke p,
.nakladnelahke button {
    position: relative;
    z-index: 2;
}

/* motorcycles */
.motocyklove {
    background: url('motocyclebanner.png') no-repeat center center;
    background-size: cover;
    /* Make the image more zoomed in */
}

.motocyklove::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    z-index: 1;
}

.motocyklove h2,
.motocyklove p,
.motocyklove button {
    position: relative;
    z-index: 2;
}

/*realistic banner*/
.osobneaoffroad {
    background: url('realisticbanner.png') no-repeat center center;
    background-size: cover;
    /* Make the image more zoomed in */
}

.osobneaoffroad::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    z-index: 1;
}

.osobneaoffroad h2,
.osobneaoffroad p,
.osobneaoffroad button {
    position: relative;
    z-index: 2;
}

/*quad bike*/
.stvorkolky {
    background: url('quadbikebanner.png') no-repeat center center;
    background-size: cover;
    /* Make the image more zoomed in */
}

.stvorkolky::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    z-index: 1;
}

.stvorkolky h2,
.stvorkolky p,
.stvorkolky button {
    position: relative;
    z-index: 2;
}
/*polno*/
.polnohospodarskealesne {
    background: url('agrobanner.png') no-repeat center center;
    background-size: cover;
    /* Make the image more zoomed in */
}

.polnohospodarskealesne::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    z-index: 1;
}

.polnohospodarskealesne h2,
.polnohospodarskealesne p,
.polnohospodarskealesne button {
    position: relative;
    z-index: 2;
}

/*scooter*/
.scooter {
    background: url('scooterbanner.png') no-repeat center center;
    background-size: cover;
    /* Make the image more zoomed in */
}

.scooter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    z-index: 1;
}

.scooter h2,
.scooter p,
.scooter button {
    position: relative;
    z-index: 2;
}
/* Hamburger Menu Icon Styles */

.hamburger-icon {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #ec2327;
    position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: #ec2327;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px;
}


/* When menu is active */

.menu-toggle.active .hamburger-icon {
    background-color: transparent;
}

.menu-toggle.active .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger-icon::after {
    transform: rotate(-45deg);
    top: 0;
}


/* Mobile Styles */

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 0;
        /* Position the menu at the top */
        left: 0;
        background-color: #240f0e;
        padding: 1rem 0;
        z-index: 10;
        /* Ensure the menu appears above the banner */
        margin-top: 60px;
        /* Adjust this value to move menu items down */
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }
    .menu-toggle {
        display: block;
    }
    nav {
        width: 100%;
        position: relative;
    }
    .banner {
        margin-top: 0;
        /* Remove any gap created by the banner */
    }
    .banner-slider img {
        width: 100%;
        height: 100px;
    }
    .tyre-categories {
        flex-direction: column;
    }
    .tyre-category {
        margin: 0.5rem 0;
    }
    .banner {
        width: 90%;
        height: 200px;
        /* Adjust height for smaller screens */
    }

    .logo {
        width: 200px; /* Zmenšenie veľkosti loga na menších obrazovkách */
    }
}