body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #222;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: #0078d7;
    transition: transform 0.3s ease, color 0.3s ease; /* Smooth scaling and color transition */
}

.h3-middle:hover, a:hover {
    transform: scale(1.03); /* Slightly enlarge the link */
    color: #ff9800; /* Change the color on hover */
}
header {
    position: relative;
    background: rgba(0, 0, 0, 0.5); 
    color: #fff; 
    padding-bottom: 20px;
    padding-inline: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    z-index: 10; 
}

.pricing-table {
    margin: 20px auto;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.pricing-table th,
.pricing-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

.pricing-table th {
    background-color: #ff9800;
    color: white;
    font-weight: bold;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr.total td {
    font-size: 1.2rem;
    font-weight: bold;
    background-color: #f5f5f5;
}

.pricing-table tr.total td:first-child {
    color: #ff9800;
}

.pricing-table tr:hover {
    background-color: #f9f9f9;
}

@media (max-width: 768px) {
    .pricing-table table {
        font-size: 0.9rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 10px;
    }
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)); 
    z-index: -1; 
}

.logo img {
    height: 50px;
}

.header-title {
    flex: 1;
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    font-size: 2rem; 
    margin: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%; 
    background: rgba(255, 255, 255, 0.2); 
    transition: background-color 0.3s ease, transform 0.3s ease;
    padding-top: 2px;
}

.social-links a:hover {
    background-color: #ff9800; 
    transform: scale(1.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #ff9800; 
}

header p {
    font-size: 1.25rem;
    margin: 0;
    color: #ddd; 
}

.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px; 
    padding: 5px 10px; 
    background: #fff;
    text-align: center;
    flex-wrap: nowrap;
}

.progress-steps div {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #444;
    position: relative;
    flex: none;
    min-width: 60px;
}

.progress-steps i {
    font-size: 1.5rem;
    color: #ff9800;
    margin-bottom: 4px;
}

.progress-steps .arrow {
    flex: none;
    height: 4px;
    background-color: #ddd;
    border-radius: 3px;
    position: relative;
    margin: 0 5px; 
    overflow: hidden;
    width: 40px;
}

.progress-steps .arrow.active {
    background-color: #ff9800;
}

.progress-steps .arrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ff9800;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.progress-steps .arrow.active::before {
    transform: scaleX(1);
}

section {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.7s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery img,
.section-image {
    width: 100%;
    border-radius: 12px;
    align-self: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover,
.section-image:hover,
.games img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 0 4px #ff9800;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

footer {
    background: #212121;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

footer a {
    color: #ff9800;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .progress-steps {
        gap: 10px;
        padding: 10px 10px;
    }

    .progress-steps div {
        min-width: 40px;
    }

    .progress-steps i {
        font-size: 1.4rem;
    }

    .progress-steps .arrow {
        height: 4px;
        margin: 0 5px;
    }

    header {
        flex-direction: column;
        text-align: center;
    }

    .header-title {
        order: -1;
        margin: 10px 0;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; 
    }

    .gallery img {
        width: 100%;
        border-radius: 8px; 
    }
}

@media (max-width: 992px) {
    .grid {
        grid-template-columns: 1fr; 
    }

    .section-image-container {
        width: 100%; 
        margin-bottom: 10px;
    }

    .section-image-container img {
        max-width: 100%;
        height: auto;
    }
}

.modal {
    display: none;
    position: fixed;
    flex-direction: column;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
    object-fit: contain; 
}

.modal-content.visible {
    opacity: 1;
    transform: scale(1);
}

.h3-middle {
    text-align: center;
    margin: 20px 0;
    font-size: 1.5rem;
    color: #ff9800;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #ff9800;
    text-decoration: none;
    cursor: pointer;
}

.games {
    display: grid;
    grid-template-columns: repeat(3, 200px);
    gap: 10px;
    margin-top: 10px;
    width: 100%; 
    justify-content: center; 
}

.games img {
    width: 100%; 
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.games img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 4px #ff9800;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    z-index: 10;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover,
.next:hover {
    background-color: #ff9800;
}

.prev i,
.next i {
    font-size: 1.5rem;
}

.progress-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.progress-dots .dot {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.progress-dots .dot.active {
    background-color: #ff9800;
}

h2 {
    background-color: #ff9800;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.observe {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.centered-text {
    text-align: center;
    margin: 20px 0;
    font-size: 1.5rem;
    color: #333;
}
.logo-container {
    width: 200px;
    height: 100px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.logo-sd {
    width: 100%;
    height: auto;
}
.section-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative; /* Enable positioning for the overlay */
}

.main-image-overlay {
    display: none;
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the overlay */
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
    color: #fff; /* White text for readability */
    padding: 10px 20px; /* Add padding for spacing */
    border-radius: 8px; /* Rounded corners */
    font-size: 1.5rem; /* Adjust font size */
    font-weight: bold; /* Make text bold */
    text-align: center; /* Center text inside the overlay */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Add a subtle shadow */
    width: 60%; /* Set a width for the overlay */
}
.main-image.loaded + .main-image-overlay {
    display: block; /* Show overlay when the image is loaded */
}
.step-link {
    text-decoration: none; 
    border: 2px solid #ff9800;
    border-radius: 8px; 
    padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.step-link:hover {
    background-color: #ff9800;
    color: white;
    border-color: #e68a00;
}

.step-link:hover i {
    color: white;
}

img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
}

img.loading {
    background-color: #f5f5f5;
    display: block;
    width: 100%;
    height: 150px;
    border-radius: 12px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        background-color: #f5f5f5;
    }
    50% {
        background-color: #e0e0e0;
    }
    100% {
        background-color: #f5f5f5;
    }
}

img.loaded {
    opacity: 1;
}

img.error {
    background-color: #ffcccc; 
    display: block;
    width: 100%;
    height: 150px; 
    border-radius: 12px;
    text-align: center;
    line-height: 150px; 
    color: #900; 
    font-size: 14px;
    font-weight: bold;
    content: "Image failed to load";
}

img:hover {
    transform: scale(1.05); 
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3); 
}

@media (max-width: 768px) {
    .games {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; 
    }

    .games img {
        max-height: 100px; 
        object-fit: cover;
    }
}

.contact-and-reservation {
    margin: 10px 10px;
    border: 4px solid #0078d7;
    border-radius: 12px; 
    padding: 20px;
    background-color: #f5f5f5; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); 
    text-align: center;
}

.wynajem-thebest {
    align-self: center;
    justify-self: center;
    text-align: center; 
    background-color: #0078d7; 
    color: white;
    font-size: 1.5rem; 
    font-weight: bold;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); 
    animation: pulse-highlight 1.5s infinite;
}

@keyframes pulse-highlight {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
}

/* Hamburger Icon */
.hamburger-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.hamburger-icon {
    background: #0078d7;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 1.5rem;
}

.hamburger-icon:hover {
    background: #005bb5;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.menu-overlay.active {
    display: flex; /* Show when active */
}

/* Navigation Menu */
.menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.menu-nav ul li {
    margin: 20px 0;
}

.menu-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.menu-nav ul li a:hover {
    color: #ff9800;
}

.menu-spacer {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3); /* Light white line */
    margin: 10px 0; /* Add spacing above and below the line */
    width: 80%; /* Reduce width for better alignment */
    align-self: center; /* Center the line */
    justify-self: center;
}

/* Back to the Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0078d7; /* Same color as the hamburger menu */
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.back-to-top:hover {
    background: #005bb5; /* Darker shade on hover */
    transform: scale(1.1); /* Slightly enlarge on hover */
}

.regulamin-toggle {
    background: #0078d7;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    transition: background 0.2s;
}
.regulamin-toggle:hover {
    background: #005bb5;
}
.regulamin-content {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 0;
    animation: fadeIn 0.3s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}