/* ######### HOME ######### */

#pdpImage {
    margin-right: var(--max4v);
    margin-bottom: 10px;
    width: var(--ppSize);
    height: var(--ppSize);
    border-radius: calc(var(--ppSize) * 0.2);
}

#pdpText {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: var(--ppSize);
}

@media screen and (min-width: 450px) {
    #pdpImage {
        float: left;
    }
}

.homeSectionH1 {
    margin-top: 5vh;
    margin-bottom: 0;
}

.homeSection {
    margin-top: 4vh;
    margin-bottom: 2vh;
}

.sectionImage {
    width: var(--hSectionW);
    height: var(--hImgH);

    border-radius: calc(var(--ppSize) * 0.2);
    transition: all 0.4s;
}

.homeSection p {
    text-shadow: 0px 0px 0px black;
    transition: all 0.3s;
    /* font-weight: 500; */
}

.homeSection:hover p {
    text-shadow: 0px 0px 0.5px white;
    /* font-weight: 600; */
}

.homeSection:hover .sectionImage {
    border-radius: calc(var(--ppSize) * 0.1);
}

.sectionImage:hover {
    border-radius: calc(var(--ppSize) * 0.05);
}

.sectionText {
    margin-top: 2vh;
}

@media screen and (min-width: 1000px) {
    .sectionImage {
        width: calc(var(--hSectionW) * 0.45);
        height: calc(var(--hImgH) * 0.45);
        float: left;
        margin-right: calc(var(--hImgH) * 0.1);
    }

    .sectionText {
        margin-top: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: calc(var(--hImgH) * 0.45);
    }
}

/* ######### PROJECTS ######### */

.yearTitle {
    margin-top: 6vh;
    margin-bottom: 1vh;
    font-size: xx-large;
}

.project {
    display: flex;
    flex-direction: column;
    justify-content: left;
}

.titleDescription {
    font-size: small;
    color: var(--fgd);
    font-weight: normal;
}

/* Project */

.projectContent {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.projectDescription,
.projectImages {
    width: 48%;
    min-height: 30vh;
}

.projectImages,
.pImg,
.pIntegration {
    border-radius: 10px;
}

.pImg,
.pIntegration {
    width: 100%;
    height: max(100%, 30vh);
}

.pImg {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Responsivity */

@media screen and (max-width: 1000px) {
    .projectContent {
        flex-direction: column;
    }

    .projectDescription {
        margin-top: 8px;
        width: 100%;
        min-height: 2px;
    }

    .projectImages {
        width: 100%;
        height: 30vh;
    }

    .project h3 {
        margin-top: 5vh;
    }
}

/* Project Images */

#pImgChrisT1 {
    background-image: url("../images/projets/christ1.png");
}

#pImgGita {
    background-image: url("../images/projets/gitaGithubCard.jpg");
}

#pImg0xy {
    background-image: url("../images/projets/0xy.png");
}

#pImgJIRSend {
    background-image: url("../images/projets/cs_jirsend_logo.png");
}

#pImgCpoi {
    background-image: url("../images/projets/cpoiGithubCard.jpg");
}

#pImgMsw {
    background-image: url("../images/projets/micasend.png");
}

#pImgInterception {
    background-image: url("../images/projets/interception.jpg");
}

/* #pImgTeaser {background-image: url("../images/projets/");} */
#pImgSavon {
    background-image: url("../images/projets/savon.png");
}

#pImgMdr {
    background-image: url("../images/projets/mdr.png");
}

#pImgLps {
    background-image: url("../images/projets/laperche.png");
}

#pImgBfpp {
    background-image: url("../images/projets/bfppIcon.png");
}

#pImgImmatricat {
    background-image: url("../images/projets/immatricat.png");
}

#pImgMcpp {
    background-image: url("../images/projets/mcpp.jpg");
}

#pImgColors {
    background-image: url("../images/projets/colors.png");
}

#pImgAudible {
    background-image: url("../images/projets/audible.png");
}

#pImgBfcompiler {
    background-image: url("../images/projets/bfcompilerIcon.png");
}

#pImgEasy {
    background-image: url("../images/projets/easy.jpg");
}

#pImgEpt {
    background-image: url("../images/projets/ept.png");
}

#pImgChaline {
    background-image: url("../images/projets/chalineproject.jpg");
}

#pImgAlbum {
    background-image: url("../images/projets/taxi_album.jpg");
}

#pImgTaxi {
    background-image: url("../images/projets/taxi.jpg");
}

/* Description links */

.projectDescription p a,
.project p a:visited {
    color: var(--m1l);
    text-decoration: underline;
    background-color: transparent;
}

.projectDescription p a:hover {
    color: var(--m2l);
    text-decoration: underline;
    background-color: var(--m6a);
}

.projectDescription p a:active {
    color: var(--fg);
    background-color: var(--m5a);
}

/* Keywords */

.projectKeywords {
    margin-top: 0.5vh;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: left;
}

.pkeywd {
    background: var(--fgsd);
    color: var(--bg);
    transition: all 0.2s;
    cursor: pointer;
    padding: 3px;
    border-radius: 7px;
    margin-right: 4px;
    margin-bottom: 4px;
    font-size: 12px;
}

.pkeywd:hover {
    background: var(--fg);
}

.pkeywd:active {
    background: var(--fgd);
}

/* Links */

.projectLinks {
    margin-top: 0.5vh;
    display: flex;
    flex-direction: column;
    justify-content: left;
}

.projectLinks div {
    display: flex;
}

.plink,
.plink:visited {
    background: var(--m1l);
    color: var(--bg);
    transition: all 0.2s;
    padding: 5px;
    border-radius: 7px;
    margin-right: 4px;
    margin-bottom: 4px;
    font-weight: bold;
}

.plink:hover {
    background: var(--m2l);
    text-decoration: none;
}

.plink:active {
    background: var(--m3l);
}

/* ######### CONTACTS ######### */

#contactMethods {
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.contactElement,
.contactElement:visited {
    margin: auto;
    margin-top: 2vh;
    margin-bottom: 2vh;
    padding: 10px;
    border: solid 2px var(--m2);
    border-radius: calc(0.2 * var(--cHeight));
    color: var(--fgsd);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    transition: all 0.2s;
    text-decoration: none;
    width: var(--cWidth);
    height: calc(var(--cHeight) + 24px);
    background-color: transparent;
}

.contactElement:hover {
    color: var(--fgsd);
    border-color: var(--m1);
    text-decoration: none;
    background-color: var(--bgl);
}

.contactSpan {
    height: 100%;
    width: calc(var(--cWidth) - var(--cHeight) - 20px);
}

.contactSpan .contactValue {
    width: 100%;
    text-align: center;
    word-wrap: break-word;
    padding-left: 10px;
}

.contactIcon {
    filter: invert(1);
    width: var(--cHeight);
    height: var(--cHeight);
    vertical-align: middle;
}

@media screen and (max-width: 700px) {
    .contactSpan .contactValue {
        font-size: small;
    }
}
