/* Основний стиль футера */
footer {
    width: 100%;
    background-color: steelblue;
    color: white;
    display: flex;
    justify-content: left;
    align-items: left;
    padding: 10px 5%;
    box-sizing: border-box;
    position: relative;
    z-index: 100;
    /* Важливо для позиціонування пошукової панелі */
}

/* Контейнер футера */
.footer-container {
    display: flex;
    justify-content: space-between; /* Блоки іконок і тексту в один рядок */
    align-items: left;
    width: 100%;
    max-width: 1200px;
    gap: 50px;
}

/* Контейнер для іконок */
.footer-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Стилі для кнопок-іконок */
.footer-icon {
    font-size: 1.5em;
    color: black;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
}

.footer-icon:hover {
    transform: scale(1.1);
    color: #f0ad4e;
}

/* Блок тексту у футері */
.footer-text {
    font-size: 0.9em;
    text-align: left;
    margin: 0;
    flex: 1;
}

.footer-text p {
    text-align: left;
    line-height: 1.2;
    margin: 0;
}

.footer-text p span {
    display: block;
}

/* Основний стиль для кнопки повернення догори */
.back-to-top {
    position: fixed;
    bottom: 10px;
    right: 25px;
    width: 50px;
    height: 50px;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #27b9fd;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: white;

}

/* Іконка всередині кнопки */
.back-to-top i {
    font-size: 1.5em;
    color: white;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Ефект при наведенні */
.back-to-top:hover {
    background-color: #0288d1;
    transform: scale(1.1);
}

.back-to-top:hover i {
    color: #ffffff;
    transform: scale(1.2);
}

/* Показ кнопки */
.show-BattonUp {
    display: flex;
}

/* Адаптація для мобільних пристроїв */
@media screen and (max-width: 992px) {
    footer {
        width: 100%;
        padding: 15px;

    }

    .footer-container {
        flex-direction: column;
        /* Перехід у вертикальне розташування */
        align-items: center;
        gap: 10px;
    }

    .footer-icons {
        justify-content: center;
        gap: 10px;
    }

    .footer-text {
        text-align: center;

    }

    .footer-text p {
        font-size: 0.8em;
        line-height: 1.4;
        text-align: center;
        width: fit-content; /* Автоматична ширина відповідно до тексту */
        margin: 0 auto; /* Центрування текстового блоку */
    }

    .footer-icon {
        font-size: 1.2em;
        /* Менші іконки */
        width: 35px;
        height: 35px;
    }
}

/* Адаптація для мобільних пристроїв */
@media screen and (max-width: 768px) {
    .back-to-top {
        bottom: 8.5%;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .back-to-top i {
        font-size: 1.2em;
    }
}
