/* body */
body{
    background-color: rgb(39, 36, 36);;
}
/* nav */
nav{
    color:#dce6e3;
}
nav ul li a{
    color:#dce6e3;
}

/* Section titles */
.title{
    margin-bottom: 12px;
}
/* header */
.header-container{
    width: 91.6vw;
    max-width: 1320px;
    margin: 0 auto;
}

#projects-header{
    padding-top: 12.5vh;
    height: 30vh;
    display: flex;
    align-items: center;
    background-color: rgb(39, 36, 36);
    color:#dce6e3;
    text-align: left;
    font-size: 2rem;
}

#projects-body{
    width: 91.6vw;
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    background-color: rgb(39, 36, 36);
    color:#dce6e3;

}

/* project container */
#project-container{
    display: flex;
    overflow-x: scroll;
    scroll-behavior: smooth;

    scrollbar-width: none;
}

#project-container::-webkit-scrollbar{
    display:none;
}

/* scroll buttons */
.scroll-btn{
    appearance: none;
    margin: 1rem 0.5rem 1rem 0;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: bolder;
    background-color: rgb(39, 36, 36);
    border-radius: 0.5rem;
    color:#dce6e3;
    border: 2px solid #dce6e3;
    border-width: 1px;
}

.scroll-btn:hover{
    margin: 0.5rem 0.5rem 0.5rem 0;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: bolder;
    background-color: #dce6e3;
    border-radius: 0.5rem;
    color:rgb(39, 36, 36);
    border: 2px solid rgb(39, 36, 36);
    border-width: 2px;

}

/* project gallery */
#project-container{
    display: flex;
    justify-content: space-between;
    overflow-x: scroll;

    -webkit-mask-image:
        linear-gradient(
            to right,
            black 80%,
            transparent 100%
        );

    mask-image:
        linear-gradient(
            to right,
            black 80%,
            transparent 100%
        );
}

/* project card */

.project{
    width: 30%;
    flex-shrink: 0;
    margin-right: 2%;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;

}


.gallery-cover{
    width: 100%;
    display: block;
    transition: transform 300ms ease-in-out;
    overflow: hidden;
}

.gallery-cover:hover{
    transform: scale(1.1);
    cursor:pointer;
}

/* black transition on cover */

.image-container{
    overflow: hidden;
    position: relative;
}

.image-container::after{
    content: 'VIEW PROJECT';

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 1.5rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: black;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none; /* IMPORTANT */
}

.image-container:hover::after{
    opacity: 0.5;
}

/* project text */

.project-title{
    margin: 20px 0 12px 0;
    font-size: 1.3rem;
}

.project p{
    font-weight: 300;
    font-size: 1.2rem;
    color:  rgb(152, 146, 146); 
}

.project a{
    text-decoration: none;
    color: inherit;
}