body {
    background-color: #ffff;
    color: #333;
    overflow-x: hidden;
}
.logo h1 {
    color: #2c3e50;
}
header {
    background-color: #e7e6e5;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
}
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}
.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}
.info-cards .card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
}
.card-title {
    color: #2c3e50;
}
.badge {
    font-size: 0.9em;
}
.more-section {
    background-color: #ffffff;
    padding: 2em;
    border-radius: 8px;
    overflow: hidden;
}
.slider-section {
    background-color: #e9ecef;
    padding: 2em;
    border-radius: 8px;
    width: 100%;
}
.hero-section {
    padding: 40px 0;
    align-items: center;
}
.hero-section h1 {
    font-size: 2.5rem;
}
.hero-image img {
    max-width: 100%;
    height: auto;
}
.feature-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    height: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
}
.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}
.hero-section {
    padding: 40px 0;
    align-items: center;
}
.hero-section h1 {
    font-size: 2.5rem;
}
.hero-image img {
    max-width: 100%;
    height: auto;
}
.feature-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    min-height: 200px;
    box-shadow: 0px 0px 6px #00000021;
}
.more-card {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    height: 100%;
    box-shadow: 0px 0px 6px #00000021;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .more-card {
        margin: 0 auto;
        width: 100%;
    }
}
.more-card h4 {
    margin-top: 10px;
}
/* Wyśrodkowanie napisu w headerze */
.navbar {
    align-items: center;
}
.cta-button {
    background-color: #ff7f50;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
}
.cta-button:hover {
    background-color: #ff6347;
}
.header-section {
    background-image: url('images/bg.webp');
    background-size: cover; /* Zapewnia, że obraz wypełnia cały obszar */
    background-position: center; /* Ustawia obraz w środku */
    background-repeat: no-repeat; /* Zapobiega powtarzaniu obrazu */
    display: flex;
    align-items: center;
    justify-content: center;
}

.more-card {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    height: 100%;
}
.more-card h4 {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .more-card {
        margin: 0 auto;
        width: calc(100% - 20px); /* Odejmuje margines, aby karty lepiej się mieściły */
        box-sizing: border-box;    /* Upewnij się, że szerokość uwzględnia padding i margines */
    }
}


.more-section .more-card {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    backface-visibility: hidden;
    max-width: 100%;
}


.more-section .more-card.from-left {
    transform: translateX(-200px) rotate(-3deg);
}


.more-section .more-card.from-right {
    transform: translateX(200px) rotate(3deg);
}

.more-section .more-card.animate {
    opacity: 1;
    transform: translateX(0) rotate(0);
}

.section-header {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.section-header.animate {
    opacity: 1;
    transform: translateY(0);
}

.more-section .more-card {
    transition: all 0.3s ease;
}

.more-section .more-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.more-section .col-md-4:nth-child(1) .more-card { transition-delay: 0.1s; }
.more-section .col-md-4:nth-child(2) .more-card { transition-delay: 0.2s; }
.more-section .col-md-4:nth-child(3) .more-card { transition-delay: 0.3s; }
.more-section .col-md-4:nth-child(4) .more-card { transition-delay: 0.4s; }
.more-section .col-md-4:nth-child(5) .more-card { transition-delay: 0.5s; }
.more-section .col-md-4:nth-child(6) .more-card { transition-delay: 0.6s; }

.how-it-works-section {
    padding: 40px 0;
    box-shadow: 1px 1px 10px #00000026;
    border-radius: 10px;
    margin-bottom: 20px;
}

.chat-container {
    max-width: 600px;
    margin: 0 auto;
    height: 600px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.chat-message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    align-items: flex-start;
}

.chat-message.show {
    opacity: 1;
    transform: translateY(0);
}

.chat-message.user {
    background-color: #eeebfa;
    align-self: flex-start;
}

.chat-message.ai {
    background-color: #e0f8e0;
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message p {
    margin: 0;
    padding: 5px 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.user .avatar {
    background-image: url('/images/avatar.webp');
    background-size: cover;
    background-position: center;
}

.ai .avatar {
    background-image: url('/images/logo.webp');
    background-size: cover;
    background-position: center;
}