.category-title {
    margin: 10px 0 7px 30px;
    font-size: 25px;
    border-radius: 10px;
    border: 1px solid var(--light-grey);
    width: fit-content;
    padding: 4px 8px;
}

.project-container {
    width: 80%;
    height: 90%;
    position: relative;
    left: 10%;
    top: 5%;
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-template-rows: repeat(20, 240px);
    grid-gap: 10px 10px;
}

@media (max-width: 625px) {
    .project-container {
      grid-template-columns: auto;
    }

    .grid1x2 {
        grid-row: auto;
    }
    
    .grid2x1 {
        grid-column: auto;
    }
    
    .grid2x2 {
        grid-column: auto;
        grid-row: auto;
    }
}
@media (min-width: 625px) {
    .grid1x1 {
        grid-row: auto;
    }

    .grid1x2 {
        grid-row: auto / span 2;
    }

    .grid2x1 {
        grid-column: auto / span 2;
    }

    .grid2x2 {
        grid-column: auto / span 2;
        grid-row: auto / span 2;
    }
}

.project {
    position: relative;
    left: 0;
    top: 0;
    transition: all 0.2s;
    border-radius: 10px;
    border: 1px solid var(--border-grey);
    background-position: center;
    background-size: cover;
    cursor: pointer;
    box-shadow: 0 0 20px 2px #0a0a0d;
    text-decoration: none;
}

    .project:hover {
        background-color: var(--selected);
    }

    .project:active {
        transform: translateY(10px);
    }

.project-title {
    position: relative;
    margin: 7px 0 0 10px;
    width: 80%;
    font-weight: 500;
    font-size: 17px;
    text-shadow: 0 0 5px black;
    color: white;
    font-family: system-ui,-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
}

.project-date {
    position: absolute;
    bottom: 32px;
    left: 10px;
    width: calc(100% - 10px);
    height: 10px;
    font-weight: 400;
    font-size: 13px;
    text-shadow: 0 2px 5px black;
    color: white;
    font-family: system-ui,-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
}

    .project-date.comp {
        bottom: 48px;
        line-height: 25px;
    }

.progress-bar-container {
    border-radius: 10px;
    background-color: var(--selected);
    border: 1px solid var(--light-grey);
    width: calc(100% - 60px);
    height: 7px;
    position: absolute;
    left: 10px;
    bottom: 10px;
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(to right, var(--blue), #2363b1);
    width: 40%;
    height: 100%;
    position: relative;
    box-shadow: 0 0 3px 1px var(--blue);
    transition: width 0.5s;
}

.progress-text {
    border-radius: 10px;
    border: 1px solid var(--light-grey);
    position: absolute;
    text-align: center;
    line-height: 17px;   
    bottom: 5px;
    right: 5px;
    width: 37px;
    height: 17px;
    font-weight: 500;
    font-size: 10px;
    color: white;
    font-family: system-ui,-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
    text-shadow: 0 0 5px black;
}

.info-container {
    position: absolute;
    width: calc(100% - 20px);
    left: 10px;
    top: 35px;
    bottom: 50px;
}

.project-icon {
    position: relative;
    width: 80px;
    height: 80px;
    left: calc(50% - 40px - 20px);
    top: calc(50% - 40px + 20px);
    background: rgba(0, 0, 0, 0);
    transition: 0.5s;
    user-select: none;
    image-rendering: optimizeSpeed;
}

    .project-icon.skewed {
        transform: rotate(-30deg) skew(25deg);
        left: calc(50% - 40px);
        top: calc(70% - 40px);
    }

    .project-icon.skewed-page {
        transform: rotate(-30deg) skew(25deg) scale(1.2);
        left: calc(50% - 50px);
        top: calc(70% - 40px);
    }

    .project-icon.half-skewed {
        transform: rotate(-38deg) skew(12.5deg);
        left: calc(50% - 40px);
        top: calc(70% - 40px);
    }

    .project-icon.pure-skewed {
        transform: skew(12.5deg);
        left: calc(50% - 40px);
        top: calc(70% - 40px);
    }

    .project-icon.rotated {
        transform: rotate(-45deg);
        left: calc(50% - 40px);
        top: calc(70% - 40px);
    }

    .project-icon.flipped img {
        scale: -1 1;
        left: calc(50%);
    }

    .project-icon.increase-scale {
        scale: 1.3;
        left: calc((50% - 40px) / 1.3);
    }

    .project-icon.increase-scale2 {
        scale: 2;
        left: calc((50% - 40px) / 2);
        top: calc(70% - 40px + 20px);
    }

    .project .project-icon img {
        width: 80px;
        position: absolute;
        transition: 0.5s;
        filter: drop-shadow(0 0 10px var(--border-grey)) saturate(0.7);
        transform: translate(20px, -20px);
        opacity: 0.4;
        border-radius: 5px;
        image-rendering: optimizeSpeed;
    }

    .project:hover .project-icon img {
        transform: translate(35px, -35px);
        opacity: 1;
        filter: drop-shadow(0 0 10px var(--border-grey)) saturate(1.3);
    }
    
@keyframes container-load {
    0% {
        display: none;
    }
    90% {
        display: none;
    }
    100% {
        display: block;
    }
}