body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #240f0e;
    padding: 1rem;
    position: relative;
}

header h1 {
    margin: 0;
    color: #ec2327;
    text-align: center;
}

.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;
}

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;
}

.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;
}

.about-section {
    padding: 2rem;
    background-color: #f4f4f4; /* Similar to the .lorem section */
    text-align: center;
    border: 1px solid #ccc; /* Border similar to .lorem */
    margin: 2rem auto; /* Center the section with auto margins */
    max-width: 800px; /* Optional: Limit the maximum width */
    border-radius: 8px; /* Optional: Add some rounding to the corners */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
}

.about-section h2 {
    color: #212430;
    margin-bottom: 1rem;
    font-size: 1.5rem; /* Match the size to your design */
    text-transform: uppercase; /* Optional: Make the text uppercase */
    font-weight: bold;
}

.traktor-image {
    max-width: 100%; /* Ensure the image does not exceed the width of the container */
    height: auto; /* Maintain the aspect ratio */
    margin-top: 1rem; /* Space between the text and the image */
    border-radius: 8px; /* Optional: add some rounding to the corners */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
}

.about-section p {
    color: #333;
    line-height: 1.6;
    margin: 0; /* Remove default margin */
}

footer {
    background-color: #240f0e;
    color: #ec2327;
    padding: 1rem;
    text-align: center;
}

@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;
        margin-bottom: 1rem;
    }
    nav {
        width: 100%;
        position: relative;
    }

    .logo {
        width: 200px; /* Zmenšenie veľkosti loga na menších obrazovkách */
    }
}

.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 {
    padding: 1rem;
    background-color: #f4f4f4;
    text-align: center;
    border: 1px solid #ccc;
    margin: 1rem;
}

/* 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;
}
