.hidden {
    display: none;
}

#collection {
    display: grid;
    grid-template-columns: auto auto auto auto auto;
    grid-gap: 10px;
    margin: 6em 0 0 0;
    justify-content: space-between;  /* 横向：首元素对齐左边缘，末元素对齐右边缘 */
    align-items: center;             /* 纵向：居中对齐 */   
}

.switch {
    height: 4em;
    width: 4em;
    background-color: rgb(0, 0, 0, 0);
    border: none;
}
.switch:hover {
    background-color: none;
}

#left_button {
    order: 1;
}
#right_button {
    order: 5;
}

#switch-left {
    height: 4em;
    width: 4em;
}
#switch-left:hover {
    filter: drop-shadow(6px 8px 10px gray);
}
#switch-right {
    height: 4em;
    width: 4em;
}
#switch-right:hover {
    filter: drop-shadow(8px 8px 10px gray);
}

.myCanvas {
    display: block;
    margin: 0 auto;
    border: 1px solid grey;
    box-shadow: 1px 5px 3px #CCCCCC;
    background: #FFFFFF;

    transition: transform 0.8s, order 0.1s, index 0.1s;
    transition-timing-function: ease;
}

#canvas1 {
    order: 2;
}
#canvas2 {
    transform: scale(1.5, 1.5);
    order: 3;
}
#canvas3 {
    order: 4;
}

#container{
    width: 100%;
    height: auto;
}

#brief_description {
    height: 10.5em;
    width: 25em;
    border: 1px solid black;

    margin: 7em auto 0 auto;
}

.description {
    text-align: center;
    font-weight: bold;
}

#for-more {
    position: relative;
    width: 2em;
    height: 2em;

    border: 1px solid black;
    left: 22.5em;
}
#for-less {
    display: none;
    position: relative;
    width: 2em;
    height: 2em;

    border: 1px solid black;
    left: 22.5em;
}

#detailed_description {
    display: none;
    height: 10.5em;
    width: 50em;
    border: 1px solid black;

    margin: 1em auto 0 auto;
}

#detailed_description h3 {
    display: block;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    margin-inline-start: 1em;
    margin-inline-end: 0px;
    font-size: 1.17em;
    font-weight: bold;
}
#details {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 2em;
    margin-inline-end: 2em;
}