@import url("variables.css");

@media (max-width: 600px) {
    div.paralax-content {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: clamp(50%, 90%, 100%);
        display: none;
        max-width: 100%; /* Add this to override the 450px limit */
    }

    div.paralax-content > h1 {
        /* Change from .paralax-content h1 */
        font-size: 2rem;
    }

    div.paralax {
        max-width: 100%;
        /* margin-top: 30px; */
        /* background-position: -900px -265px; */
        height: 300px;
        background-attachment: unset;
    }

    div.paralax-1 {
        background-image: url(../../assets/top_1.jpeg);
        background-size: 113%;
        background-position: 54% 0px;
    }
}

.paralax-1 {
    background-image: url(../../assets/gtp_logo1.png);
}

.paralax {
    max-width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* KLUCZ */
    display: flex;
    align-items: center;
    justify-content: center;

    background-position-y: -70px;
    position: relative;
}
.paralax-2 {
    background-image: url("../../assets/paralax2.png");
    background-position-y: -100px;
}

.paralax-content {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    position: absolute;
    top: 50%;
    left: 40px;
    background: #ffffffe3;
    backdrop-filter: blur(10px);
    padding: 10px;
    max-width: 450px;
    border-radius: 0.45rem;
    transform: translate(0, -50%);
}

.paralax-content > h1 {
    font-size: 3rem;
    margin: 0;
    padding: 0;
}

.paralax-content > h3 {
    padding: 0;
    margin: 0;
}
