@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');

* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    ;
    margin: 0;
    padding: 0;
}

:root {
    --color-background-black: rgba(0, 0, 0, 0.87);
    --color-text-white: #fff;
}

html {
    scroll-behavior: smooth;
}


#projectCardContainer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 16px 0;
    gap: 32px;
    margin: 0 32px;
}

@media (max-width: 768px) {
    #projectCardContainer {
        margin: 0 4px;
        /* Reduz a margem para dispositivos móveis */
    }
}

/* Estilização do card */
.project-card {
    position: relative;
    border: 2px solid var(--color-background-black);
    border-radius: 8px;
    width: 360px;
    height: 360px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    box-shadow: 4px 4px 12px var(--color-background-black);
    margin-bottom: 4px;
}

/* Título do projeto */
.title-project {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color-background-black);
    color: var(--color-text-white);
    padding: 8px 0;
    font-size: 1.2rem;
    margin: 2px 0;
    height: 40px;
    border-radius: 4px;
    border: 2px solid #000000;
}

/* Estilização da imagem */
.img-project {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.overlay-tech,
.project-details {
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.888);
    color: black;
    opacity: 0;
    visibility: hidden;
    text-align: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    box-sizing: border-box;
    line-height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}


.project-details {
    text-align: left;
    /* Alinha o texto ao início */
    justify-content: flex-start;
    /* Alinha horizontalmente ao início */
    align-items: flex-start;
    /* Alinha verticalmente ao topo */
    padding: 8px;
    /* Adiciona um espaçamento interno */
    overflow-y: auto;
    /* Permite rolagem se o conteúdo for maior que a altura */
}

.overlay-tech.visible,
.project-details.visible {
    opacity: 1;
    visibility: visible;
}

.overlay-tech img {
    width: 76px;
    height: 76px;
    margin: 0 12px
}

/* Botões de ação */
.actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    border: none;
    color: white;
    cursor: pointer;
    flex: 1;
    font-size: 0.9rem;
    bottom: 0;
    width: 100%;
    margin-bottom: 32px;
    padding: 4px;
}

.actions button {
    width: 100%;
    font-weight: bolder;
    border-radius: 8px;
    background-color: var(--color-background-black);
    color: white;
    cursor: pointer;
    flex: 1;
    font-size: 0.9rem;
    margin: 0;
    transition: all 0.2s ease-in-out;
    height: 48px;
    border: 2px solid var(--color-background-black);
    box-shadow: 4px 4px 12px var(--color-background-black);
}

.actions button:hover {
    background-color: black;
}

.actions button:active {
    box-shadow: 2px 2px 6px var(--color-background-black);
    transform: translate(2px, 2px);
}

/* Detalhes do projeto */
.project-details {
    text-align: justify;
    padding: 16px;
    font-size: 1rem;
    color: black;
}

.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}