

.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 99.5vw;
    height: 35vh;
    background: url("contactbg.jpg");
    background-size: cover;
    background-repeat: no-repeat;
}


.contact-container h1 {
    font-size: 6rem;
}


#contactinfo {
    position: relative;
    display: flex;
    width: 100%;
    justify-content: space-between;
}



#changingtext_container {
    /*border: 0.2rem solid var(--red);*/
    width: 50%;
    height: 40vh;
    margin: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#changingtext_container p {
    font-size: 3rem;
    font-weight: 600;
}

@keyframes changingtextanim {
    0% {
        content: "kérdése van.";
    }

    33% {
        content: "árajánlatot kérne.";
    }
    
    66% {
        content: "segíthetünk valamiben.";

    }

    100% {
        content: "kérdésed van.";
    }
}



#changingtext_container span::before {
    animation: changingtextanim 15s infinite;
    content: " ";
}






#contactinfo_container {
    width: 35%;
    /*border: 0.2rem solid var(--red);*/
    height: 40vh;
    margin: 2rem;
    display: flex;
    flex-direction: column;
    padding: 3rem;
}

#contactinfo_container a svg {
    width: 3rem;
    height: 3rem;
    fill: var(--white);
    transition: 0.6s ease;


}

#contactinfo_container a {
    font-size: 3rem;
    text-decoration: none;
    color: var(--white);
    width: fit-content;
    margin: 1rem 0 1rem 0;
    transition: 0.6s ease;
}


#contactinfo_container a:hover {
    color: var(--red);
    transition: 0.6s ease;
}


#contactinfo_container a:hover > svg {
    fill: var(--red);
    transition: 0.6s ease;

}


#contactform {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    /*border: 0.5rem solid var(--red)*/
    
}

#contactform form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



#contactform label {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
}

#contactform input[type=text] {
    width: 50vw;
    background-color: transparent;
    border: 0.1rem solid var(--white);
    box-sizing: border-box;
    padding: 0.5rem;
    color: white;
}

#contactform input[type=text]:focus {
    border: 0.1rem solid var(--red);

}



#message {
    height: 10rem;
}

#submit {
    width: 10rem;
    height: 4rem;
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    background-color: transparent;
    border: 0.2rem var(--white) solid;
    border-radius: 1rem;
    cursor: pointer;
    transition: 0.4s ease;

}

#submit:hover {
    border: 0.2rem var(--red) solid;
    color: var(--red);
    transition: 0.4s ease;
}

#email p {
    display: inline;
}





@media screen and (max-width: 1279px) {

.contact-container h1 {
    font-size: 4rem;
}

#contactinfo {
    flex-direction: column;
}


#changingtext_container {
    height: auto;
    width: 100%;
    margin: 1rem 1rem -1rem 1rem;
}

#changingtext_container p {
    font-size: 2.5rem;
    font-weight: 600;
}

#contactinfo_container {
    width: 90%;
    height: auto;
    padding: 1rem;
    margin: 0;
}


#contactinfo_container a svg {
    width: 1.5rem;
    height: 1.5rem;
}

#contactinfo_container a {
    font-size: 1.5rem;
    
    width: fit-content;
    margin: 1rem 0 1rem 0;
}

#contactform input[type=text] {
    width: 80vw;
}

#email p {
    display: inline-block;
    width: 85%;
}


}