#project-popup-main {
    height: 80dvh;
    top: calc(10vh - 1.5rem);
    /* 100-height/2 */
    width: 50dvw;
    left: calc(25vw - 1.5rem);
    /* 100-width/2 */
    border-radius: 0.4rem;
    box-shadow: 0px 20px 50px -10px rgba(0, 0, 0, 0.2);
    position: fixed;
    background-color: var(--color-background);
    z-index: 5;
    padding: 1.5rem;
    visibility: hidden;
}

#project-popup-background {
    height: 100%;
    width: 100%;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(1.5rem);
    z-index: 4;
    visibility: hidden;
}

.project-popup-close {
    min-width: 2.2rem;
    min-height: 2.2rem;
    background-color: var(--color-background);
    color: var(--color-text);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0;
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
}

.project-popup-close:hover {
    background-color: var(--color-special);
    color: var(--color-background);
    box-shadow: 0px 2px 5px -1px rgba(0, 0, 0, 0.2);
}

.project-popup-close:active {
    background-color: var(--color-special);
    color: var(--color-background);
    box-shadow: 0px 3px 3px -1px rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
}

.project-popup-img-container {
    display: flex;
    justify-content: center;
    height: 17.25rem;
}

.project-popup-img {
    max-width: 20dvw;
    /* Because the width of the popup is 50dvw and the picture has to take maximum half of the popup*/
    max-height: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    object-fit: cover;
}

.project-popup-container {
    display: flex;
    flex-direction: row;
}

/* style for child of container */
.project-popup-container>div {
    width: 50%;
    margin: 0.5rem;
}

.project-popup-text {
    font-size: 1rem !important;
    text-align: justify;
}