/* page style */
#pr p {
    font-family: 'Saira';
    color: var(--text-color-brown);
}

/* slider style */
#pr .slider {
    background: #dbd0bc00;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    overflow-x: scroll;
    scrollbar-color: var(--dark-green) var(--menu-color);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    display: grid;
    grid-row: span 2;
    grid-gap: 1rem;
    grid-auto-flow: column;
    min-height: 80vh;
    max-width: 90vw;
}

#pr .projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: center;
    font-family: 'Saira';
}

#pr .projects:first-child {
    margin-left: 2em;
}

#pr .project {
    height: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--menu-color);
    border-radius: 1rem;
    border: solid var(--light-green) 2px;margin-top: 2em;
    margin-bottom: 1em;
    color : var(--text-color-brown);
    overflow: hidden;
}

#pr .project:not(.active) .content {
    height: 100%;
    width: 100%;
    object-fit: cover;
    margin-bottom: 0px;
    border-radius: 0% 0% 1em 1em;
    overflow: hidden;
}

#pr .project .preview {
    width: 100%;
    height: auto;
    transition: all .2s ease-in-out;   
}

#pr .project:not(.active):hover .preview {
    transform: scale(1.5);
    filter: blur(2px);
}

#pr .project .hovertext {
    transition: all .2s ease-in-out;
    position: relative;
    text-align: center;
}

#pr .project:not(.active) .hovertext p {
    transition: color .2s ease-in-out, background-color .2s ease-in-out;
    font-size: 20px;
}

#pr .active .hovertext p {
    font-size: 25px;
}

#pr .project:not(.active):hover .hovertext {
    top: 30%;
    z-index: 10;
}


#pr .project:not(.active):hover .hovertext>p {
    color: var(--text-color-brown);
    font-family: saira;
    font-weight: bolder;
    background-color: var(--bg-color);
}

/* Style of active projects */

#pr .active .preview {
    width: 33%;
    margin: 0%  ;
    height: auto;
    left: 0px;
}

#pr .active .content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#pr .active .cardElem {
    display: flex;
    overflow-y: scroll;
    scrollbar-color: var(--dark-green) var(--menu-color);
    scrollbar-width: thin;
}

#pr .active .detail {
    max-width: 100%;
}

/* nav button  */
#left_button, #right_button {
    position: sticky;
    top : 50%;
    z-index: 100;
}
#right_button {
    right: 0px;
    height : 0;
    width : 0;
    border-top : 25px solid transparent;
    border-bottom : 25px solid transparent;
    border-left : 25px solid var(--dark-green);
}

#left_button {
    left: 0px;
    height : 0;
    width : 0;
    border-top : 25px solid transparent;
    border-right : 25px solid var(--dark-green);
    border-bottom : 25px solid transparent;
}

#pr .project:not(.active) .detail {
    display: none;
}
/* active project */

#pr .reduce {
    display: none;
}


#pr .project:not(.active) {
    transition: width 0.5s ease-in-out;
    transition: height 0.5s ease-in-out;

}

#pr .active {
    width: 85vw;
    height: 100%;
    transition: width 0.5s ease-in-out;
    transition: height 0.5s ease-in-out;
    z-index: 200;

}

#pr .active .cardElem .detail {
    text-align: left;
    margin-left: 1%;
    margin-right: 1%;
}

#pr .active .techno ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

#pr .active .techno li {
    background-color: var(--bg-color);
    color: var(--text-color-brown);
    border-radius: 10px;
    padding: 10px;
    margin: 10px;
    text-align: center;
}

#pr .active .detail {
    font-size: 20px;
}

@media screen and (max-width: 600px) {
    #pr>p {
        font-size: 25px;
    }

    #pr .project:not(.active) {
        width: 40vw;
    }

    #pr .active .cardElem {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }


    #pr .active .preview {
        width: 75%;
        height: auto;
    }
}

@media screen and (min-width: 601px) {
    #pr>p {
        font-size: 40px;
    }
    #pr .project:not(.active) {
        width:20vw;
    }

    #pr .active .preview {
        left: 0;
        min-width: 45%;
        width: 45%;
        height: auto;
    }

    #pr .active .cardElem {
        flex-direction: row;
        justify-content: flex;
        align-items: flex-start;
    }
}