.kapcsolatMain{
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.kapcsolatMain h1{
    padding: 8px 24px;
}
.kapcsolatText{
    padding: 16px;
}

.outerKapcsolat{
    width: 400px;
}
.tiltKapcsolat{
    width: 400px;
}
.tiltKapcsolat img{
    width: 400px;
    animation: vissza 0.3s ease;
    transition: scale 0.3s;
    position: relative;
    display: block;
}
@keyframes oda{
    0% {transform: none};
    100% {};
}
@keyframes vissza{
    0% {transform:
        perspective(1000px)
        rotateX(var(--rotateX))
        rotateY(var(--rotateY));};
    100% {transform: none};
}
.tiltKapcsolat img:hover{
    transform:
        perspective(1000px)
        rotateX(var(--rotateX))
        rotateY(var(--rotateY));
    animation: oda 0.3s ease;
    scale: 1.07;
    transition: scale 0.3s;
}


@media only screen and (max-width: 449px){

    .kapcsolatMain h1{
        font-size: 26px;
    }

    .kapcsolatText h2{
        font-size: 20px;
    }

    .outerKapcsolat{
        width: 270px;
    }
    .tiltKapcsolat{
        width: 270px;
    }
    .tiltKapcsolat img{
        width: 270px;
    }
}

@media only screen and (min-width: 450px) and (max-width: 649px) {

    .kapcsolatMain h1{
        font-size: 26px;
    }

    .kapcsolatText h2{
        font-size: 20px;
    }

    .outerKapcsolat{
        width: 325px;
    }
    .tiltKapcsolat{
        width: 325px;
    }
    .tiltKapcsolat img{
        width: 325px;
    }
}

@media only screen and (min-width: 650px) and (max-width: 999px){

    .kapcsolatMain h1{
        font-size: 26px;
    }

    .kapcsolatText h2{
        font-size: 20px;
    }

    .outerKapcsolat{
        width: 375px;
    }
    .tiltKapcsolat{
        width: 375px;
    }
    .tiltKapcsolat img{
        width: 375px;
    }
}

@media only screen and (min-width: 1000px) and (max-width: 1450px){

    .kapcsolatMain h1{
        font-size: 30px; /*32*/
    }

    .kapcsolatText h2{
        font-size: 22px; /*24*/
    }
}

