/*
    Auteur: Pepijn Emmers 
    Aanmaakdatum: 29-12-2020

    stylesheet contact pagina
*/

/* --- main stylen --- */
main a
{
    color: #fff;
}
main
{
    margin-bottom: 15px;
}
section
{
    margin: 0 0 50px 0;
}
section#contactGegevens 
{
    display: flex;
}
section#contactGegevens div
{
    width: 60%;
    margin-right: 50px;
}
ul, li
{
    margin-left: 10px;
    padding-left: 0;
}

/* ---- contactformulier ---- */
#formContainer
{
    background-color: #121212;
    box-shadow: 5px 5px 15px #121212, -5px -5px 15px #121212;
    display: flex;
    width: 80%;
    margin: 0;
}
#contactLeft
{
    background-image: url(../images/contactLeft.jpg);
    background-size: cover;
    width: 40%;
    height: 500px;
    filter: blur(1px);
}
#contactRight
{
    width: 60%;
    display: flex;
    flex-direction: column;
}
#contactRight h3
{
    width: 70%;
    margin: 20px auto 5px auto;
    text-align: center;
    text-decoration: underline #ffee00;
}
.contactInput
{
    background-color: #242424;
    color: #fff;
    width: 80%;
    margin: 20px auto;
    border: none;
    outline: none;
    padding: 10px;
}
.contactInput::placeholder
{
    font-family: 'poppins', sans-serif;
    opacity: 0.8;
    color: #fff;
}
.contactInput:focus::placeholder
{
    opacity: 0.3;
}
textarea
{
    resize: none;
    min-height: 100px;
}

/* --- send button --- */
#contactSend
{
    background:linear-gradient(to bottom, #ffee00 0%, #ffee00 100%);
    background-position: 0 100%;
    background-repeat: repeat-x;
    background-size: 4px 4px;
    color: #fff;
    text-decoration: none;
    transition: background-size 0.5s;
    
    border: none;
    outline: none;
    width: 60%;
    margin: 0 auto 15px auto;
}
#contactSend:hover 
{
    background-size: 4px 50px;
    color: #000;
    font-weight: bold;
}

/* --- buttons --- */
#englishButtons
{
    display: flex;
    align-items: center;
}
.button
{
    background-color: #ffee00;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 50px 0 0;
}
.sendMail
{
    height: 50px;
    width: 190px;
}
#englishCv
{
    height: 50px;
    width: 220px;
}
.sendMail:hover, #englishCv:hover
{
    background-color: #ffbe0d;
}
#contactGegevens span
{
    cursor: pointer;
    text-decoration: underline;
}
#contactGegevens img
{
    cursor: pointer;
}

/* --- social media pop up --- */
#socialMediaPopUp
{
    position: fixed;
    height: 50%;
    width: 100%;
    z-index: 10;
    
    left: 0;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
    
    display: flex;
    justify-content: space-around;
    align-items: center;
    
    transition: 0.2s linear;
    pointer-events: none;
    opacity: 0;
}
#closeMediaPopUp
{
    position: fixed;
    right: 30px;
    top: 20px;
    font-size: 50px;
    cursor: pointer;
}
#bgSocialMedia
{
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: -1;
}
#socialMedia
{
    width: 500px;
    height: auto;
}
.socialMediaIcon, #snapchat
{
    width: 170px;
    height: auto;
}
.socialMediaIcon:hover
{
    transform: scale(1.3);
    transition: 0.2s linear;
}

/* ---- contact card ---- */
#contactCard
{
    margin-top: 80px;
}
.contactCard
{
    position: relative;
    z-index: 1;
    width: 650px;
    height: 350px;
    margin: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    background-image: linear-gradient(135deg, #121212, #242424);
    box-shadow: 10px 10px 5px rgba(0,0,0,0.4);
    color: #fff;
}
/* card image */
.contactCard img
{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 400px;
    transition: 0.5s;
}
.contactCard:hover img
{
    left: 70%;
    height: 430px;
}
/* content container */
.contactCard .cardContent
{
    position: relative;
    width: 35%;
    left: 10%;
    opacity: 0;
    transition: 0.5s;
}
.contactCard:hover .cardContent
{
    opacity: 1;
    left: -28%;   
}
/* content style */
.contactCard .cardContent h2
{
    color: #ffee00;
    text-transform: uppercase;
    padding: 0;
    margin: 0;
}
.contactCard .cardContent p
{
    color: #fff;
    font-size: 16px;
}
.contactCard .cardContent a
{
    position: relative;
    display: inline-block;
    color: #121212;
    padding: 5px 10px;
    border-radius: 10px;
    margin-top: 10px;
    background-color: #ffee00;
    text-decoration: none
}
.contactCard i
{
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 14px;
    opacity: 1;
    transition: 0.5s;
}
.contactCard:hover i
{
    opacity: 0;
}

/* ---- responsive ---- */
@media screen and (max-width: 990px)
{
    section#contactGegevens 
    {
        display: block;
    }
    section#contactGegevens div
    {
        width: 100%;
        margin-bottom: 30px;
    }
    .socialMediaIcon, #snapchat
    {
        width: 130px;
        height: auto;
    }
    figcaption
    {
        font-size: 14px;
    }
    #socialMediaPopUp
    {
        justify-content: space-between;
    }
    #socialMedia
    {
        width: 400px;
        height: auto;
    }
    /* -- contactformulier -- */
    #formContainer
    {
        width: 90%;
        margin: 0 auto;
    }
    #contactLeft
    {
        width: 30%;
    }
    #contactRight
    {
        width: 70%;
    }
}

/* ---- responsive ---- */
@media screen and (max-width: 760px)
{
    /* contact kaart */
    .contactCard
    {
        position: relative;
        width: auto;
        max-width: 650px;
    }
    .contactCard:hover
    {
        height: 500px;
    }
    .contactCard img
    {
        width: 250px;
        height: auto;
    }
    .contactCard:hover img
    {
        width: 300px;
        height: auto;
    }
    /* social media pop up */
    .socialMediaIcon
    {
        width: 90px;
        height: auto;
        margin-left: 50px;
    }
    #snapchat, figcaption
    {
        display: none;
    }
    #bgSocialMedia
    {
        height: 70%;
    }
    #closeMediaPopUp
    {
        top: 75px;
    }
    /* contactformulier */
    #formContainer
    {
        width: 95%;
        margin: 0 auto;
    }
    #contactLeft
    {
        width: 30%;
    }
    #contactRight
    {
        width: 70%;
    }
}    

/* --- responsive --- */
@media screen and (max-width: 580px)
{
    #socialMedia
    {
        width: 300px;
        height: auto;
    }
    #englishButtons
    {
        display: block;
    }
    .contactCard:hover
    {
        height: 550px;
        transition: 0.5s;
    }
    .contactCard img
    {
        width: 220px;
        height: auto;
    }
    .contactCard:hover img
    {
        width: 270px;
        height: auto;
        left: 65%;
    }
    .contactCard .cardContent
    {
        width: 65%;
    }
    .contactCard:hover .cardContent
    {
        opacity: 1;
        left: -10%;   
        top: -20%;   
    }
}   

/* --- responsive --- */
@media screen and (max-width: 500px)
{
    .contactCard:hover
    {
        height: 600px;
        transition: 0.5s;
    }
    .contactCard img
    {
        width: 200px;
        height: auto;
    }
    .contactCard:hover img
    {
        width: 250px;
        height: auto;
    }
    .contactCard:hover img
    {
        left: 50%;
    }
    .contactCard .cardContent
    {
        width: 85%;
    }
    .contactCard:hover .cardContent
    {
        left: 0%;   
        top: -25%;   
    }
    /* social media */
    .socialMediaIcon
    {
        width: 50px;
        height: auto;
    }
    .socialMediaIcon
    {
        margin-left: 25px;
    }
    #socialMedia
    {
        width: 95%;
        height: auto;
    }
    /* contactformulier */
    #formContainer
    {
        width: 100%;
        margin: 0 auto;
    }
    #contactLeft
    {
        display: none;
    }
    #contactRight
    {
        width: 100%;
    }
}