body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: url('bgpage.png') no-repeat center center fixed;
    background-size: cover;
    /* Added to ensure the image covers the whole page */
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #000000;
    padding: 1rem;
    position: relative;
    margin-bottom: 0;
    overflow: hidden;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    padding-top: 2rem;
}

.menu-toggle {
    display: none;
    background-color: #000000;
    color: #FBCA05;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 1rem;
}

.nav-links li a {
    color: #FBCA05;
    text-decoration: none;
    border-radius: 4px;
}

.hero h1 {
    position: relative;
    z-index: 1;
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.banner {
    position: relative;
    width: 100%;
    height: 300px;
    /* Or whatever height you need */
    margin: 0 auto;
    overflow: hidden;
    background-color: transparent;
    padding: 0;
}

.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 entire image is visible without cropping */
}

.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: 2;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.lorem,
.tyre-categories,
.tyre-category,
.contact-us {
    padding: 1rem;
    background-color: #000000;
    text-align: center;
    color: #FBCA05;
    border: 1px solid #FBCA05;
    margin: 1.5rem;
}

.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: #FBCA05;
    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: #000000;
    color: #FBCA05;
    border: 1px solid #FBCA05;
    cursor: pointer;
}

.products {
    padding: 2rem;
}

.product {
    border: 1px solid #ccc;
    margin: 1rem 0;
    padding: 1rem;
}

footer {
    background-color: #000000;
    color: #FBCA05;
    padding: 1rem;
    text-align: center;
}


/* Background Image for Military Tyres */

.military {
    background: url('osobneTyres.png') no-repeat center center;
    background-size: cover;
}

.military::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.military h2,
.military p,
.military button {
    position: relative;
    z-index: 2;
}


/* Background Image for Agro Tyres */

.agro {
    background: url('nakladneBanner.png') no-repeat center center;
    background-size: cover;
}

.agro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.agro h2,
.agro p,
.agro button {
    position: relative;
    z-index: 2;
}


/* Background Image for Industrial Tyres */

.industrial {
    background: url('industrial.png') no-repeat center center;
    background-size: cover;
}

.industrial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.industrial h2,
.industrial p,
.industrial button {
    position: relative;
    z-index: 2;
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #FBCA05;
    margin: 5px 0;
    position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #FBCA05;
    position: absolute;
    left: 0;
}

.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: #000000;
        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;
    }
    .banner-slider img {
        width: 100%;
        height: 100px;
    }
    .tyre-categories {
        flex-direction: column;
    }
    .tyre-category {
        margin: 0.5rem 0;
    }
    .banner {
        width: 90%;
        height: 200px;
    }
    nav {
        width: 100%;
        position: relative;
    }
}

.snowflake {
    position: absolute;
    top: 0.1rem;
    color: white;
    font-size: 1.5rem;
    /* Remove the space */
    user-select: none;
    pointer-events: none;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

.logo-container {
    display: flex;
    justify-content: center;
    /* Horizontálne centrovanie */
    margin-bottom: 5px;
    /* Vytvorí priestor medzi logom a navigáciou */
}

.logo {
    width: 300px;
    /* Nastavte veľkosť loga */
    height: auto;
}