header{padding: 10px 10px 10px 20px;}

.prjNavbar li:nth-child(3){
    cursor: pointer;
    padding: 5px 20px;
    background-color: #a0a0a0;
    border-radius: 11px;

    & a{color: transparent; position: relative;}
    & a::after{content: 'Back'; color: #1a1a1a; position: relative;}
    &:hover{transform: scale(1.05);}
}

.prjBack{
    display: none;
    color: #1a1a1a;
    cursor: pointer;
    padding: 6px 20px;
    background-color: #a0a0a0;
    border-radius: 11px;
    font-family: 'Safiro', 'Codec Pro', sans-serif;
    font-weight: bold;

    & a{color: var(--text);}
}

.prjError{
    width: 100vw;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.prjDiv{
    padding: 20px;
    height: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10% auto;
    position: relative; /* allow absolutely positioned children like .prjBack */
}

.prjDiv.hidden{display: none;}

.prjBack svg {
    opacity: 1;
    pointer-events: none;
    transform: rotate(180deg);

    & path{stroke: var(--text);} 
}

.prjTitle h1{
    color: var(--text);
    font-size: clamp(1rem, 15vw, 15rem);
    font-family: 'Codec Pro', sans-serif;
    white-space: nowrap;
}

.prjTitle h2{
    color: var(--text);
    font-weight: 300;
    font-size: clamp(1.3rem, 2vw, 2rem);
    font-family: "Roboto", sans-serif;
}

.prjLinks{
    margin-top: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.prjLinks a{
    padding: 15px 25px;
    border-radius: 100px;
    font-size: 1.3rem;
    font-family: 'Codec Pro', sans-serif;
}

.prjWebsite{
    color: #a0a0a0;
    background-color: var(--text);
    transition: all .3s ease-in-out;

    &:hover{background-color: #262626;}
}

.prjGithub{
    color: var(--text);
    background-color: #909090;
    transition: all .3s ease-in-out;

    &:hover{background-color: #7e7e7e;}
}

.prjImgMainContainer{
    width: 100%;
    height: 55vw;
    background-color: #929292;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3.5vw;
    margin-top: 200px;
    margin-bottom: 200px;
}

.prjImgMainContainer .prjMainImg{
    width: 50%;
    border-radius: 1.5vw;
}

.prjMainImg{
    width: 100%;
    border-radius: 3.5vw;
    margin-top: 200px;
    margin-bottom: 200px;
}

.prjInfo{
    display: flex;
    flex-direction: column;
    justify-content: start;
    border-radius: 2.5vw;
    margin-top: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.prjInfo h3{
    color: var(--text);
    text-align: left;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
    font-weight: 700;
    font-size: clamp(2rem, 2.5vw, 2.5rem);
    font-family: "Oswald", sans-serif;
}

.prjInfo p{
    width: 70%;
    color: #3a3a3a;
    text-align: left;
    line-height: 1.7;
    margin-bottom: 0.7em;
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.prjFeatures{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.prjFeature{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5%;
}

.prjFeature:nth-child(even){flex-direction: row-reverse;}
.prjFeatureText{width: 100%;}

.prjFeatureText h5{
    color: var(--text);
    text-align: left;
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 10px;
    font-weight: 700;
    font-family: "Oswald", sans-serif;
}

.prjFeatureText p{
    color: var(--text);
    text-align: left;
    font-size: clamp(1rem, 2.3vw, 2.3rem);
    margin-bottom: 10px;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.prjFeature:nth-child(even) .prjFeatureText h5,
.prjFeature:nth-child(even) .prjFeatureText p {
    text-align: right;
}



.prjFeatureImg{width: 100%;}

.prjFeatureImg img{
    width: 100%;
    border-radius: 4vw;
}

.pMIImages img{border-radius: 3.5vw;}

.pMIimgs{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pMIimgs img {
    height: clamp(100px, 50vw, 50vw);
    width: auto;
    object-fit: contain;
    display: block;
}

.pMIimgsDiv {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;

    & img{width: 49%; border-radius: 2vw;}
}

.pMIimgsMini{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.pMIimgsMini img{
    height: auto;
    width: 32%;
    border-radius: 1vw;
}

@media (max-width: 850px){
    nav{display: flex; flex-direction: row; align-items: center;}
    .navbar li:nth-child(3){
        padding: 0;
        background-color: transparent;
        border-radius: 0;

        & a{color: transparent;}
        & a::after{content: 'Projects'; color: #a0a0a0;}
        &:hover{transform: scale(1.05);}
    }
    .prjBack{display: block;}

    .prjFeature{
        width: 100%;
        margin-bottom: 100px;
        flex-direction: column-reverse;
        align-items: start;
    }
    .prjFeature:nth-child(even){flex-direction: column-reverse;}

    .prjFeatureText{margin-bottom: 20px; width: 100%;}
    /* On small screens text should stay left-aligned */
    .prjFeature:nth-child(even) .prjFeatureText h5,
    .prjFeature:nth-child(even) .prjFeatureText p {
        text-align: left;
    }

    .pMIimgsMini{flex-direction: column;}
    .pMIimgsMini img{width: 100%; border-radius: 2.5vw;}
}

@media (max-width: 550px){
    .prjMainImg {
        margin-top: 50px;
        margin-bottom: 80px;
    }
    .prjInfo p{width: 90%;}

    .pMIMoreImages div {
        flex-direction: column;
        & img{width: 100%;}
    }
}