#main_image {
    background-image: url(../files/images/dodgeblue.jpg);
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-position-x: right;
    background-position-y: center;
    display: flex;
    align-items: center;
}
#a {
    text-decoration: none;
}

#uslugi {
    background-image: url(../files/images/tlokey1.jpg);
    padding: 100px;
    padding-left: 200px;
    padding-right: 200px;
    background-position-x: right; 
    background-repeat: no-repeat;
    background-size: cover;
    background-position-y: center;
    display: flex;
}

.teksto strong {
    text-align: center;
    font-size: 2rem; /* Rozmiar czcionki */
    display: block; /* Upewnij się, że tekst jest blokowy */
    margin-left: 750px;
    margin-top: 1250px;
}

.usluga {
    width: 30%;
    height: 200px; 
    background: rgba(0, 0, 0, 0.45);
    margin: 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
    overflow: hidden; 
    border-radius: 20px;
    font-style: italic;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.usluga:hover {
    transform: translateY(-5px);
}

.usluga h2 {
    color: white; 
    font-size: 20px;
    align-items: center; 
}

#uslugi-wrapper {
    max-width: 1280px;
    margin: auto;
}

.usluga-text-wrapper {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
}

.usluga-text-wrapper img {
    width: 80px;
    height: auto;
    margin: 10px;
}

#maintxt {
    margin: 200px;
    font-size: 5rem;
    position: relative;
    animation: slideIn 1s ease-out;
}
#maintxt h1, #maintxt h1 {
    margin: 0;
    padding: 0;
    line-height: 0.5;
}

#maintxt h2 {
    font-weight: 300;
}



/* Kontakt */
.contact-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    color: #fff;
    max-width: 1200px;
    margin: 20px auto;
    border-top: 1px solid #fff; /* Biała kreska nad tekstem i obrazkiem kobity */
}

.contact-text {
    flex: 1;
    font-size: 1.8rem;
    line-height: 1.6;
    text-align: left;
    justify-content: center;
    text-align: center;
    margin-left: -100px;
}
.contact-text a {
    text-decoration: none;
}

.contact-text i {
    margin-right: 10px;
    color: #ffffff; /* Kolor ikony telefonu */
}

.contact-image {
    flex: 1;
    text-align: right;
    padding: 10px;
    font-size: 80px;
}

.contact-image img {
    max-width: 100%;
    border-radius: 60px;
    height: auto;
    margin-left: 150px;
    font-size: 100px;
}




@media (max-width: 1450px) {
    .limitter p {
        font-size: 20px;
    }
    .contact-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        font-size: 6px;
        border-top: 0px solid #fff;
    }

    .contact-text, .contact-image {
        text-align: center;
        font-size: 5px;
    }
    .contact-text p {
        text-align: center;
        font-size: 25px;
        margin-left: 80px;
    }

    .contact-image img {
        margin-top: 50px;
        font-size: 25px;
        margin-left: -50px;
        height: 30vh;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.contact-text.animate {
    animation: slideInLeft 1s ease-out forwards;
}

.contact-image.animate {
    animation: slideInRight 1s ease-out forwards;
}
.animate-text {
    animation: slideIn 1s ease-out forwards;
}




/* Definicja animacji */
@keyframes slideIn {
    from {
        transform: translateX(45%); 
        opacity: 0; 
    }
    to {
        transform: translateX(0); 
        opacity: 1; 
    }
}

@media (max-width: 1350px) {
    #maintxt {
        margin: 150px;
        font-size: 4rem;
    }
}

@media (max-width: 1279px) {
    .usluga {
        width: 500px;
        height: 400px; 
    }
    .usluga h2 {
        font-size: 30px;
    }
    #uslugi {
        padding: 50px;
    }
}

@media (max-width: 1050px) {
    #maintxt {
        text-align: center;
        margin: 0;
        font-size: 3.5rem;
    }
    #main_image {
        justify-content: center;
    }
}

@media (max-width: 750px) {
    #maintxt {
        font-size: 3rem;
    }
    .usluga {
        width: 400px;
        height: 300px; 
        font-size: 20px;
    }
    #uslugi {
        padding: 20PX;
    }
}

@media (max-width: 650px) {
    #maintxt {
        font-size: 2.5rem;
    }
    .contact-image img {
        height: auto;
        width: 80%;
    }
}

@media (max-width: 500px) {
    .usluga {
        width: 300px;
    }
    .usluga h2 {
        font-size: 16px;
    }
    .usluga-text-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 450px) {
    #maintxt {
        font-size: 2rem;
    }
}

@media (max-width: 400px) {
    .usluga {
        width: 230px;
    }
}



