.mainProjects{
    display: flex;
    justify-content: center;
    align-items: center;
}

.projectsCenterDiv{
    width: 80%;
    margin: 2em 0;
    padding: 2em;
    border-radius: 40px;
    background-color: var(--darkGray);
}

.mainTitleProjects{
    font-size: 20pt;
    font-weight: 600;
}

.projectsGridProject{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 1em;
}

.projectBox{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 14pt;
    font-weight: 500;
}

.projectBox a{
    text-decoration: none;
}

.nameProjectHome{
    width: 100%;
    text-align: center;
    border-radius: 0 0 20px 20px;
    padding: 0.5em;
}

.yellow{
    background-color: var(--yellow);
    color: black;
}

.magenta{
    background-color: var(--magenta);
    color: white;
}

.lightBlue{
    background-color: var(--lightBlue);
    color: white;
}

.red{
    background-color: var(--red);
    color: white;
}

.imgHomeProject{
    max-width: 200px;
    max-height: 200px;
    border-radius: 20px 20px 0 0;
}

@media (max-width: 1400px){
    .projectsGridProject{
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 1024px){
    .projectsGridProject{
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px){
    .projectsGridProject{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 425px){
    .projectsCenterDiv{
        width: 90%;
    }
}
