/* Webpage design and front-end development by Rainy. */
/* @Copyright 2023 | SunStonePower & RainyDesign */



/* Global class */



/* Global style */
/* background no repeat, set in center, cover sizing */
.temp{
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
/* background only for icons and descriptions */
.download_table table td:last-child:before{
    background-image: url(../img/icons.svg);
    background-repeat: no-repeat;
    background-size: auto;
}
/* z-index set-up */
.temp{
    z-index: 1;
}
.download_preview_window,
.download_preview_window div img{
    z-index: 2;
}
.download_preview_window div p,
.download_preview_window div:after,
.download_preview_window .inquiry{
    z-index: 3;
}
/* Before and after */
.download_table table td:last-child:before,
.download_preview_window div:after{
    content: '';
    display: block;
    position: relative;
}



/* Downloads */
.container, .download_contents, .download_list{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.download_contents th, .download_contents td{
    text-indent: 2.4rem;
    text-align: left;
}
/* Container*/
.container{
    align-items: flex-start;
    padding: 7.2rem calc(50% - 57.2rem);
}
/* Download contents */
.download_contents{
    flex-direction: column;
    width: calc(100% - 38.4rem);
}
/* Downloads in list*/
.download_list{
    flex-direction: column;
    width: 100%;
}
.download_table{
    width: 100%;
    height: auto;
    max-height: 3.6rem;
    margin: 0 0 3.6rem;
    overflow: hidden;
}
.download_table table{
    width: 100%;
    opacity: 0;
}
.download_table table td:last-child a,
.download_table table td:last-child p{
    line-height: 3.4rem;
    text-indent: 5.4rem;
    height: 100%;
}
.download_table table td:last-child:before{
    position: absolute;
    width: 2rem;
    height: 2rem;
    left: 3.6rem;
    top: calc(50% - 1rem);
    background-position: -24rem -23.6rem;
    filter: grayscale(1);
}
/* Downloads collapse actived */
.download_table.actived{
    max-height: 1000rem;
    overflow: visible;
}
.download_table.actived table{
    margin: 1.6rem 0 0;
    opacity: 1;
}

/* Download previews */
.download_preview_window{
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(100% - 9.6rem);
    background: var(--ssp_50_trans_gray);
    transform: scale(0);
}
.download_preview_window div{
    max-height: calc(100% - 21.6rem);
    margin: 0 auto 4.8rem;
}
.download_preview_window div:after{
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(255,255,255,0) 25%, rgba(255,255,255,100) 100%);
}
.download_preview_window div img{
    max-width: 120rem;
    width: auto;
    height: 100%;
    object-fit: cover;
}
.download_preview_window div p{
    position: absolute;
    width: 100%;
    bottom: 10%;
    text-align: center;
    z-index: 4;
    filter: drop-shadow(0 .1rem .3rem rgba(255,255,255,1));
}
.download_preview_window .inquiry{
    max-width: 64rem;
    border: none;
    color: white;
    background: var(--ssp_main_color);
}
.download_preview_window span:last-child:not(.download_preview_window * span:last-child){
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
.download_preview_window.actived{
    transform: scale(1);
}



/* Animations */
.download_table table td:hover:before{
    filter: grayscale(0);
}
/* .download_table table td p:hover{
    color: var(--ssp_main_color);
    cursor: pointer;
} */
/* Animation duration */
.download_table, .download_table table,
.download_preview_window{
    transition: .3s all ease;
}





/* Responsive */
/* Width over than 1920px */
@media (min-width: 1920px){

}

/* Width less than 1280px & greater than 479px */
@media (max-width: 1279px){
    .container{
        justify-content: center;
        padding: 6rem 0 2.4rem;
    }
    .download_contents{
        width: unset;
        padding: 0 calc(50% - 34.8rem);
    }
    /* Downloads side navigation */
    .downloads .side_nav{
        padding: 75% 1.2rem 4.8rem;
    }
    /* Download previews */
    .download_preview_window{
        height: calc(100% - 6rem);
    }
    .download_preview_window div{
        padding: 0 3.6rem;
    }
    .download_preview_window div img{
        width: 100%;
    }
    .download_preview_window div:after{
        width: calc(100% - 7.2rem);
        left: 3.6rem;
    }
    .download_preview_window div p{
        width: calc(100% - 7.2rem);
    }
}

/* Width less than 768px & over than 479px */
@media (max-width: 767px){
    th, td {
        text-indent: 0;
    }

    .container{
        padding: 3.6rem 0 0;
    }
    .download_contents{
        padding: 0 2.4rem;
    }
    .download_list{
        margin: 0 auto;
    }
    .download_list .download_table{
        max-width: 31.2rem;
        margin: 0 0 1.6rem;
    }
    .download_list .download_table:last-child{
        margin: 0 auto;
    }
    .download_table table td:last-child a,
    .download_table table td:last-child p{
        font-size: 0;
        /* text-indent: 2.6rem; */
    }
    .download_table table td:last-child:before{
        /* left: 1.2rem; */
        left: calc(50% - 1.2rem);
    }
    .download_contents th, .download_contents td{
        text-indent: 0;
    }
    /* Download previews */
    .download_preview_window .inquiry{
        max-width: unset;
        width: calc(100% - 7.2rem);
    }
}

/* Width less than 480px */
@media (max-width: 479px){
    /* Download previews */
    .download_preview_window{
        height: calc(100% - 4.8rem);
    }
}