html, body {
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    color: white;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('back.png') no-repeat center center fixed;
    background-size: cover;
    opacity: 1;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.container {
    text-align: center;
    width: 80vw;
    max-width: 1000px;
    margin: 2rem 0;
}

#logo {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 3.5s ease forwards;
    animation-delay: 0.1s;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn-custom {
    flex: 1;
    min-width: 80px;
    padding: 1rem;
    border: 1px solid lightgray;
    border-radius: 4px;
    color: lightgray;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    transition: background-color 0.6s ease, color 0.6s ease;
    user-select: none;
}

.btn-custom:nth-child(1) {
    animation-delay: 0.25s;
}

.btn-custom:nth-child(2) {
    animation-delay: 0.4s;
}

.btn-custom:nth-child(3) {
    animation-delay: 0.55s;
}

.btn-custom:nth-child(4) {
    animation-delay: 0.7s;
}

.btn-custom:hover {
    background-color: lightgray;
    color: black;
}

.btn-custom a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

#show-gallery.active {
    background-color: lightgray;
    color: black;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

footer {
    color: #ddd;
    padding: 2rem 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    opacity: 0;
    animation: fadeIn 2.5s ease forwards;
    animation-delay: 0.8s;
    transition: background-color 0.8s ease, color 0.8s ease;
}

footer > div > div > p > a {
    text-decoration: none;
    color: #ddd;
}

.footer-blocks {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.address {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.phone {
    border-left: 1px solid #444;
    border-right: 1px solid #444;
    padding: 0 1rem;
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.open-hours {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

svg {
    margin-right: 5px;
}

@media (max-width: 600px) {
    .footer-blocks {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .address, .phone, .open-hours {
        flex: 1;
        min-width: 150px;
        text-align: center;
    }

    .phone {
        border-left: none;
        border-right: none;
    }
}

.gallery {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery.show {
    display: grid;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}


/* Lightbox */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

#lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    transition: opacity 0.3s ease;
}

#lightbox .close, #lightbox .prev, #lightbox .next {
    position: absolute;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

#lightbox .close {
    top: 20px;
    right: 30px;
}

#lightbox .prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#lightbox .next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#lightbox .close:hover, #lightbox .prev:hover, #lightbox .next:hover {
    color: #ccc;
}

h4 {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    font-size: 0.8rem;
    color: lightgray;
    opacity: 0.4;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: transparent;
    z-index: 1000;
    padding: 0.5rem;
}

@media (min-width: 1251px) {
    .footer-bottom {
        position: fixed;
        bottom: 0.5rem;
        right: 0.5rem;
        flex-direction: row;
        justify-content: flex-end;
    }
}

@media (max-width: 1250px) {
    .footer-bottom {
        position: static;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        margin-top: auto;
    }
}

.footer-bottom a {
    text-decoration: none;
    color: lightgray;
}