#덱정보 {
    padding: 1em;
    border-radius: 1em;
    margin-bottom: 1em;
}

#덱정보 > div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#위쪽정보 {
    font-size: 1.5em;
    font-weight: 900;
}

#아래쪽정보 {
    font-size: 1.3em;
    font-weight: 700;
}

#기능버튼 { margin-top: .5em; }

#ImageDeck {
    display: grid;
    grid-template-areas: 
    "list list list list side"
    "list list list list side"
    "hand hand hand hand side";
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5em;
}

#ImageDeck > div {
    padding: .5em;
    border-radius: 1em;
    font-weight: 900;
}

#Side > div > .imgBox {
    height: 100%;
    width: 100%;
}

@media screen and (min-width: 768px) {
    #ImageDeck {
        aspect-ratio: 16 / 12;
    }

    #Side {
        height: 100%;
        overflow-y: scroll;
    }
}

.sideBox {
    position: relative;
    flex-direction: column;
    flex-wrap: wrap;
    flex-grow: 1;
}

.sideImg {
    position: absolute;
    width: 100%;
}

#Side > div > .imgBox {
    height: 10%;
    width: 100%;
}

.gridBox {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.25em;
}

@media screen and (max-width: 768px) {
    #Side > div {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: .25em;
    }

    #ImageDeck {
        grid-template-areas:
        "list"
        "hand"
        "side";
        grid-template-columns: auto;
    }

    #Side {
        overflow-y: none;
    }

    .sideImg {
        position: relative;
        width: 100%;
    }
}

#List { grid-area: list; }
#Side { grid-area: side; }
#Hand { grid-area: hand; }

/* #List > div > .imgBox, #Hand > div > .imgBox {
    width: 20%;
} */

.cardImg {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.overflow-hd {
    overflow: hidden;
    overflow-x: scroll;
}

.hoverOn {
    transition: height 0.3s ease;
}

.구획명 {
    font-weight: 900;
}

.텍스트구획 {
    margin-bottom: .5em;
    padding: .25em;
}

.텍스트구획 > table {
    margin-bottom: 0;
}

#덱설명 {
    padding: 1em;
    border-radius: 1em;
}
#덱설명 a {
    color: rgba(var(--bs-link-color-rgb));
}

#덱설명 > h4 {
    font-weight: 900;
}

img {
    object-fit: cover;
    max-width: 100%;
}

.개추버튼 {
    width: 75px;
    height: 75px;
    border: 1px solid #000;
    border-radius: 50%;
    padding: .5em;
}

.개추버튼 > img {
    width: 43px;
}

button.pressed > img {
    filter: invert(73%) sepia(31%) saturate(6009%) hue-rotate(0deg) brightness(105%) contrast(105%);
}

.imgBox {
    position: relative;
}
.미발매 {
    position: absolute;
    top: 64%;
    right: 10%;
    font-size: 1.2em;
    color: red;
}