@import '../../css/colors.css';

.body-project.project-view {
    overflow: hidden;
}

.go-back {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    font-size: 24px;
    line-height: 30px;
    text-align: center;
    color: var(--white);
    text-decoration: none;
}

.projects-gallery-container {
    width: calc(100% - 200px);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.project-container {
    width: 300px;
    height: 200px;
    background-color: var(--white);
    box-shadow: 0 0 20px var(--shadow);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cover-section {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    font-size: 24px;
}

.text-section {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    transition: all 0.5s;
}

.view-project {
    width: 30px;
    height: 30px;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    background-color: var(--white);
    color: var(--primary-color);
    font-size: 18px;
}

.viewer-section {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #00000090;
    display: none;
}

.viewer-section.active {
    display: block;
}

.view-project-section {
    width: 900px;
    height: 600px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--white);
    border-radius: 10px;
    background-position: center;
    background-size: cover;
}

.project-container:hover .text-section {
    top: 0;
}

@media (max-width: 900px) {
    .view-project-section {
        width: 100%;
        height: 600px;
        border-radius: 0;
    }
}

@media (max-width: 600px) {
    .projects-gallery-container {
        width: 100%;
    }
    .view-project-section {
        width: 100%;
        height: 400px;
    }
}