/* Overlay Styles */

.img-info{
    display: none;
}


#overlay-wrap{
    display: none;

    position: fixed;
    z-index: 5;
    top: 0;
    left: 0;

    margin:0;
    width: 100vw;
    height: 100vh;
    
    background-color: rgba(0, 0, 0, 0.616);
}
#overlay-wrap button:hover {
    cursor: pointer;
}

.content-container{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    position: relative;

    margin: auto;
    width: 90%;
    height: 90%;
}

.canvas-container{
    display: flex;
    gap: 3px;
    align-items: center;
    justify-content: center;

    position: relative;

    margin: auto;
    width: 85%;
    height: 85%;

    background-color: #11141c;
    border-radius: 10px;
}

.ui-container{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    position: absolute;

    margin: auto;
    width: fit-content;
    min-width: 80%;
    max-width: 80%;
    height: 95%;

    border-radius: 5px;
    background-color: #1D2434;
}

#canvas-overlay{
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 3 1;

    position: relative;
    margin: auto;

    height: 100%;
    width: 100%;

    object-fit: contain;
    overflow: hidden;

    background-color: #11141c;
    border-radius: 10px;
}

#canvas{
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 3 1;

    position: relative;
    margin: auto;

    height: 100%;

    object-fit: contain;
    overflow: hidden;

    background-color: #11141c;
    border-radius: 10px;

}
#canvas > img,video{
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.nav-btn-l{
    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    left: 0;


    margin: 0.5rem;
    height: 4rem;
    width: 2.5rem;
}
.nav-btn-r{
    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    right: 0;

    margin: 0.5rem;
    height: 4rem;
    width: 2.5rem;
}

#canvas-overlay > button {
    background-color: #FF8F66;
    border: 2px solid  #A7503F;
    border-radius: 3px;
}

#canvas-overlay > button > img {
    position: absolute;
    width: 50px;
}

#btn-next{
    opacity: 0;
    transition: 1s;
}

#btn-back
{
    opacity: 0;
    transition: 1s;
}

.canvas-container:hover #btn-next, .canvas-container:hover #btn-back{
    opacity: 1 !important;
    transition: 1s;
    cursor: pointer;

}

.project-nav-wrap{
    display: flex;
    position: relative;
    flex-direction: row;
    width: 60%;
    top: 20px;
}

.project-nav{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: auto;
    width: 100%;
    height: 100%;
    padding: 5px;
    background-color: #FF8F66;
    border-radius: 5px;
    font-size: 1.2rem;
}

.project-nav > button {
    position: relative;

    padding: 10px 30px;
    margin: 5px;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    background-color: #fff;
    border: none;
    border-radius: 5px;
    
}

.project-nav > button:hover {
    cursor: pointer;
}

.page-num{
    font-weight: 600;
}

.canvas-menu{
    display: flex;
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 2px;
    gap: 2px;
}

.canvas-menu img {
    height: 100%;
    padding: 2px;
}

.square-btn{
    position: relative;
    width: 30px;
    height: 30px;

    border-radius: 4px;
    border: #2b354f solid 2px;
    font-size: larger;
}

.exit-btn{
    position: absolute;
    display: flex;
    justify-content: center;
    top: 0;
    right: 0;
    aspect-ratio: 1;

    margin: 5px;
}

.exit-btn:hover {
    cursor: pointer;
}

/* Text, Desciption Canvas */

.info-wrap{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0.9 0;

    position: relative;
    right: 0;

    height: 100%;

    background-color: #354361;
    border-radius: 5px;
}

.text-wrap{
    flex: 4;

    margin: 5px;
    position: relative;
    width: 95%;
    overflow-y: auto;

    text-align: left;
    color: black;
    border-radius: 5px;
}

.text-wrap p{
    margin: 5px;
    background-color: white;
}

.projectTitle{
    font-weight: bold;
    text-transform: capitalize;
    padding: 10px;
    border-radius: 5px;
}

.projectDescription{
    font-size: 0.6vw;
    height: 100%;
    padding: 10px;
    border-radius: 5px;
}

.meta-wrapper{
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1px;
    width: 95%; height: fit-content;
    margin-bottom: 40px;
    border-radius: 5px;
}

.tag-wrap{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    /* align-items: center; */
    justify-content: center;
    gap: 5px;
    background-color: #2b354f;
    padding: 5px;
    border-radius: 5px;

    color: black;
}
.tag-wrap p{
    flex: 1 1 auto;
    text-align: center;
    font-size: 0.7rem;
    padding: 0.2rem;
    border-radius: 5px;
    max-height: 30px;
    background-color:#A2C1FF;
    align-self: baseline;
}

.meta-wrapper > .cate-info > p{
    background-color: #ffb69b;
}

.software-info{
    flex: 1;
}

.category-info{
    flex: 3;
    align-content: flex-start;
}

.project-wrap{
    height: fit-content;
    width: 100%;
    background: #2b354f;
    border-radius: 5px;
}

.carousel-bar {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex: 0.5 1;
    background-color: #354361;
    height: 100%;
    border-radius: 3px;
    padding: 10px;
    overflow: hidden;
}

.carousel-bar div {
    display: flex;
    flex-direction: column;

    align-items: center;
    gap: 8px;
    padding: 10px 0;
    background-color: #798fbd;
    border-radius: 5px;
    overflow-y: hidden;
}

.carousel-bar > div > button {
    aspect-ratio: 2;
    border-radius: 5px;
    background-color: #A2C1FF;
    margin: auto;
    width: 60px;
    border: 2px solid #5f72a7;
    box-shadow: 1px 2px 2px #334366d9;
}

.carousel-bar > div > div > img{
    aspect-ratio: 1.5;
    object-fit: cover;
    width: 80%;
    border: 2px solid #ffffff;
    border-radius: 5px;
    box-shadow: 1px 2px 2px #334366d9;
}

.carousel-bar > div > div > video{
    aspect-ratio: 1.5;
    object-fit: cover;
    width: 80%;
    border: 2px solid #ffffff;
    border-radius: 2px;
    filter:opacity(70%);
}


.carousel-bar .active{
    filter:saturate(1);
    transform: scale(1.1);
    border: 5px solid #a2c1ff;
}
@media screen and (max-width: 1350px) and (min-width: 600px) {
    .ui-container {
        min-width: 100%;
    }

    .project-nav-wrap {
        width: 90%;
    }
}

@media screen and (max-width: 900px){
    .canvas-container{
        width: 90%;
        height: 85%;
        flex-direction: column;
    }
    .carousel-bar {
        flex-direction: row;
        width: 100%;
    }
    .carousel-bar div {
        flex-direction: row;
        padding: 2px 4px;
        width: 120%;
        height: 100%;
    }
    .carousel-bar > div > div > img {
        width: 15vw;
    }
    .carousel-bar > div > button {
        aspect-ratio: 0;
        height: 100%;
    }
    .info-wrap {
        min-height: 50%;
        width: 100%;
    }
}

@media screen and (max-width: 600px){
    .content-container {
        width: 92%;
        min-height: 500px; max-height: 90%;
    }

    .canvas-container{
        width: 90%;
        height: 85%;
        flex-direction: column;
    }

    .ui-container {
       min-width: 100%;
    }
    .info-wrap {
        min-height: 50%;
        width: 100%;
    }

    .project-nav-wrap {
        width: 85%;
    }

    .project-nav > button {
        padding: 10px 10px;
        font-size: 0.7rem;
    }

    .project-nav {
        height: 100%;
        font-size: 4vw;
    }

    .carousel-bar{
        flex-direction: row;
        width: 100%;
    }
    .carousel-bar div{
        flex-direction: row;
        padding: 2px 4px;
        width: 120%;
        height: 100%;
    }
    .carousel-bar > div > div > img{
        width: 21vw;
    }

    .carousel-bar > div > button{
        aspect-ratio: 0;
        height: 100%;
    }

    .carousel-bar > div > button > img{
        transform: rotateZ(270deg);
    }

    .canvas-menu{
        top: 0; bottom: auto; right: auto; left: 0;
    }
}