#portfolio{
    justify-content: center;
    align-items: center;
}

.project{
    margin: 10px 30px 10px 30px;
    padding: 5px;
    max-width: 410px;
    cursor: pointer;
}

.project h2{
    color: rgb(112, 77, 124);
    text-shadow: 3px 3px 3px rgb(236, 213, 241); 
    font-size: 15px;
    margin-top: 30px;
}

#projectpreviews{
    padding: 20px;
    padding-top: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.project img{
    display:block;
    border: 2px dashed darkorchid;
    box-shadow: 10px 10px 2px grey;
    margin-right: auto;
    margin-left: auto;
    width: 410px;
    height: 230px;
}

#close-button {
    position: absolute;
    cursor: pointer;
    right: 0;
    top: 0;
    font-size: 50px;
    color: dashed rgb(112, 77, 124);
    z-index: 1;
}

#projectoverlay{
    top: 0;
    left: 0;
    width: 80%;
    margin-top: 3rem;
    padding: 15px;
    background-color: rgba(218, 197, 226, 0.951);
    z-index: 9999;
    position: fixed;
    box-shadow: 10px 10px 2px grey;
    border: 4px dashed rgb(202, 155, 200);
    justify-content: center;
    color: rgb(112, 77, 124);
    display: flex;
    flex-direction: column;
    /* flex-wrap: wrap; */
    align-items: center;
    justify-self: anchor-center;
    overflow-y: auto;
    max-height: 90vh;
    padding-top: 100px;
    max-height: 70vh;
}

#projectoverlay .desc{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 20px;
    line-height: 1.3rem;
}

#projectoverlay img{
    border: 2px dashed darkorchid;
    box-shadow: 10px 10px 2px grey;
    margin-right: auto;
    margin-left: auto;
    width: 34.08vw;
    height: 19.17vw;
}

#projectoverlay h2{
    top: 50px;
    font-size: 20px;
    color: rgb(112, 77, 124);
    text-shadow: 3px 3px 3px rgb(236, 213, 241); 
}

.projectcolumn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    vertical-align: middle;
}

.projectcolumn:first-of-type {
    padding-right: 70px;
}

.projectcolumn:last-of-type {
    padding: 15px;
    max-width: 30vw;
}

#projectoverlay em{
    color: grey;
    text-shadow: 3px 3px 3px rgb(236, 213, 241); 
    font-size: 12px;
}

#projectoverlay a{
    margin-top: 20px;
    padding: 10px;
    border: 4px dashed rgb(202, 155, 200);
    font-size: 20px;
    color: rgb(112, 77, 124);
    text-shadow: 3px 3px 3px rgb(236, 213, 241); 
    max-width: 40%;
    max-height: 70px;
    box-shadow: 10px 10px 2px grey;
}

#projectdesc {
    overflow-y: scroll;
    max-height: 20vw;
    vertical-align: top;
    padding-right: 20px;
    font-size: 14px;
}

@media screen and (max-width: 650px){
    .project img{
        width: 240px;
        height: 135px;
    }
}

@media screen and (max-width: 780px){
    #projectoverlay .desc{
        flex-direction: column;
        align-items: center;
    }

    #projectoverlay img{
        flex-direction: column;
        align-items: center;
        width: 50%;
        height: auto;
    }

    .projectcolumn:first-of-type {
        padding-right: 0;
    }

    .projectcolumn:last-of-type {
        padding: 15px;
        max-width: 80%;
    }

    #projectdesc {
        max-height: 40vw;
    }

    #projectoverlay a {
        margin-top: 0px;
        padding: 5px;
        font-size: 13px;
        max-width: 90%;
        max-height: 30px;
        box-shadow: 10px 10px 2px grey;
    }

    #projectoverlay h2 {
        top: 50px;
        font-size: 13px;
    }
}