body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #161616;
}

header {
    display: flex;
    top: 0;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background-color: #000000;
    padding: 1rem;
    position: relative;
    margin-bottom: 0;
    border: 2px solid;
    border-image: linear-gradient(to right, #FF6A00, #2246FD) 1;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 2rem;
}



.menu-toggle {
    display: none;
    background-color: #000000;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    margin-bottom: 1rem;
    position: relative;
    z-index: 20;
}

nav ul {
    list-style: none;
    display: flex;
    padding: 0;
}

nav ul li {
    margin-left: 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    text-shadow: 2px 2px 4px #000000;
}

.textcenter {
    color: #fff;
    text-align: center;
    margin: 2rem 0;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 1rem;
}

.image-gallery img {
    width: 100%;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.pagination button {
    background: #FF6A00;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
}

.pagination button:hover {
    background: #2246FD;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Ensure it’s above other content */
}

.popup-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 5px;
}

.prev-slide,
.next-slide {
    background: #FF6A00;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.2rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1010;
    /* Above the image */
}

.prev-slide:hover,
.next-slide:hover {
    background: #2246FD;
}

.prev-slide {
    left: 10px;
}

.next-slide {
    right: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 1010;
    /* Above the image */
}

.headerLogo {
    display: flex;
    justify-content: center;
    /* Horizontálne centrovanie */
    margin-top: 10px;
    /* Vytvorí priestor medzi logom a navigáciou */
}

.logo {
    width: 150px;
    /* Nastavte veľkosť loga */
    height: auto;
}

footer {
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: rgb(0, 0, 0);
    color: white;
    text-align: center;
    border: 2px solid;
    border-image: linear-gradient(to right, #FF6A00, #2246FD) 1;
    border-radius: 1px;
}


/*phone view menu*/

.hamburger-icon {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    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;
}

@media (max-width: 768px) {
    header {
        padding: 1rem 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    /* Navigation */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #16171a;
        padding: 1rem 0;
        z-index: 10;
    }
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }
    .menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    .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;
    }
}

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.video-container video {
    max-width: 100%;
    width: 80%;
    /* Adjust this value as needed */
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.video-container {
    cursor: pointer;
}

.video-container video {
    max-width: 100%;
    width: 80%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.video-popup-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 5px;
}

.video-prev-slide,
.video-next-slide {
    background: #FF6A00;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.2rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1010;
}

.video-prev-slide:hover,
.video-next-slide:hover {
    background: #2246FD;
}

.video-prev-slide {
    left: 10px;
}

.video-next-slide {
    right: 10px;
}

.video-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 1010;
}