﻿/* 所有文件類別容器 */
.allCategory {
    margin-top: 20px;
    box-sizing: border-box;
}

.spaceCategory
{
   height : 30px;
}

/* 單一文件類別 */
.eachCategory {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    position : relative;
    margin-bottom : 2rem;
}

/* 左方的圖示 */
.categoryThumb
{
    flex-basis : 30%;
    background-repeat:no-repeat;
    background-size:cover;
    position:relative;
    max-width : 300px;
    height: 300px;
}

.hasImage .categoryHeading {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(255,255,255);
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8379726890756303) 21%, rgba(255,255,255,1) 50%, rgba(255,255,255,0.773546918767507) 88%, rgba(255,255,255,0) 100%);
    margin : 0;
    line-height : 1.5em;
    padding : 5px;
}

.noImage .categoryHeading {
    flex-basis: 30%;
    max-width: 300px;
}


/* 右方的文件列表 */
.allDocuments {
    flex-basis: 70%;
    margin : 0;
}

@media (max-width: 480px) {
    /* 單一文件類別 */
    .eachCategory {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: flex-start;
    }
    .categoryThumb {
        flex-basis: 100%;
        max-width: 300px;
        height: 300px;
    }
    .noImage .categoryHeading {
        flex-basis: 100%;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    /* 左方的圖示 */
    .categoryThumb {
        flex-basis: 50%;
        max-width: 200px;
        height: 200px;
    }
}

@media (min-width: 768px) and (max-width: 979px) {
    /* 左方的圖示 */
    .categoryThumb {
        flex-basis: 40%;
        max-width: 250px;
        height: 250px;
    }
}

@media (min-width: 980px) and (max-width:1199px) {
}

@media (min-width: 1200px) and (max-width:1919px) {
}

@media (min-width: 1920px) {
}