body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f8f8f8;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed; /* Fixes the header */
    top: 0; /* Sticks it to the top */
    width: 100%; /* Full width */
    z-index: 1000; /* Ensures it stays above other content */
}

.store-name {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    flex-grow: 1;
}

.contact-info {
    text-align: right;
}

.celebrate-image {
    width: 100%;
    height: 400px;
}

/* phone */
.phone-button {
    background-color: #007bff; /* Button background */
    border: none; /* No border */
    border-radius: 50%; /* Makes the button round */
    width: 48px; /* Button width */
    height: 48px; /* Button height */
    display: flex; /* Flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    color: white; /* Icon color */
    font-size: 24px; /* Icon size */
    text-decoration: none; /* Remove underline */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Shadow for depth */
    transition: background-color 0.3s; /* Smooth transition */
    position: absolute;
    right: 60px;
}

.phone-button:hover {
    background-color: #0056b3; /* Darker on hover */
}

/* content */

.content {
    padding-top: 80px; /* Відступ для контенту, щоб не перекривав header */
    padding-left: 20px;
    padding-right: 20px; /* Відступ справа */
}

.services, .gallery {
    padding: 20px;
    background-color: #f0f0f0;
    margin: 10px 0;
    border-radius: 8px;
}

.service-item {
    margin-bottom: 15px;
}

.service-title {
    font-weight: bold;
    font-size: 18px;
}

/* gallery */

.carousel {
    display: flex;
    overflow: hidden;
    position: relative;
    justify-content: center;
    align-items: center;
    height: 600px; /* Height of the carousel */
    border-radius: 10px; /* Rounded corners for the whole carousel */
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease; /* Smooth transition for slide effect */
    width: 100%; /* Ensure the container takes full width */
}

.carousel-image {
    min-width: 100%; /* Each image takes full width of the carousel */
    max-height: 600px; /* Limit image height */
    object-fit: cover; /* Maintain aspect ratio */
    border-radius: 10px; /* Rounded corners */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth transition */
}

.carousel-image:not(.show) {
    opacity: 0; /* Hide non-active images */
}

.carousel-image.show {
    opacity: 1; /* Show active image */
    transform: scale(1.05); /* Scale up active image */
}

.carousel-button {
    /* background-color: #007bff; */
    background-color: rgba(255, 255, 255, 0.5); /* Біла з прозорістю */
    color: white;
    border: none;
    padding: 14px;
    cursor: pointer;
    position: absolute;
    top: 90%;
    transform: translateY(-50%);
    border-radius: 10px; /* Додаємо закруглення кутів */
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.carousel-button:hover {
    background-color: rgba(255, 255, 255, 0.5); /* Solid white on hover */
}


/* footer */

footer {
    background-color: #f8f8f8;
    padding: 20px;
    border-top: 1px solid #ddd;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.work-schedule, .instagram-qr, .map {
    flex: 1;
    margin: 10px;
    min-width: 250px; /* Мінімальна ширина для кожного блоку */
}

h3 {
    margin-top: 0;
}

.celebrate-image {
    padding-top: 40px;
    width: 340px;
    height: 500px;
}

/* Media Query for Mobile Devices */
@media (max-width: 768px) {
    .store-name {
        font-size: 20px;
        text-align: left;
    }

    .carousel {
        height: 300px; /* Зменшена висота для мобільних пристроїв */
    }

    .carousel img {
        max-height: 300px; /* Обмеження висоти зображень для мобільних */
    }
    .celebrate-image {
        width: 100%;
        height: 400px;
    }
}
