#datamodal {
    color: white;
    background: rgba(11, 18, 47, 0.5);
    display: grid;
    grid-template-areas: 'header header' 'stats items';
    grid-template-columns: 2fr 1fr;
    grid-gap: 1rem;
    padding: 2rem;
}
@media screen and (max-width: 850px) {
    #datamodal {
        grid-template-areas: 'header header' 'stats stats' 'items items';
    }
}
#datamodal header {
    display: flex;
    grid-area: header;
}
#datamodal header img {
    width: auto;
    height: 2.5rem;
}
#datamodal button {
    background: none;
    border: none;
    margin-left: auto;
    cursor: pointer;
}
#datamodal h2 {
    margin: auto;
}

#datamodal section {
    background: rgba(11, 18, 47, 0.5);
    border: 1px solid #fafafa;
    border-radius: 8px;
}
 .stats-grid {
    grid-area: stats;
    display: grid;
    grid-template-areas: 'attr def' 'attack enhance' 'spell enhance' 'img img';
    grid-template-rows: 1fr 0.5fr 0.5fr 2.25fr;
    grid-template-columns: 1fr 1fr;
}
@media (min-width: 555px) {
    #datamodal .stats-grid {
        grid-template-areas: 'attr def img' 'attack enhance img' 'spell enhance img' !important;
        grid-template-rows: 1fr .5fr 0.5fr;
        grid-template-columns: 1fr 1fr .75fr;
    }
}
#datamodal .stats-block {
    text-align: center;
    text-transform: capitalize;
    border: 1px solid #eeba6e;
    border-radius: 5px;
    padding: 3px;
    margin: 3px;
    min-width: 120px;
    background-color: rgba(50, 50, 50, 0.75);
    z-index: 2;
}
#attack {grid-area: attack;}
#attributes {grid-area: attr;}
#defense {grid-area: def;}
#enhancements {grid-area: enhance;}
#spell {grid-area: spell;}
#portrait {
    max-width: 300px;
    height: auto;
    align-self: end;
    margin: 0 auto;
    grid-area: img;
}
#portrait > img {
    width: calc(75px + 100%);
    margin-left: -75px;
}
#portrait > div {
    display: flex;
    justify-content: space-around;
    padding: 14px 14px 0 14px
}
#portrait > div > img {
    max-height: 125px;
    width: auto;
}
#datamodal .attribute {
    color: #d6a131;
 }
 #datamodal .mastery {
    color: #1a8b85;
 } 
#datamodal .stats-block h3 {
    text-decoration: underline;
}
#datamodal .stats-list, #datamodal .item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
#datamodal .stats-list li {
    display: flex;
    justify-content: space-between;
    padding: 4px;
    border-top: 1px solid #d6a131;
}
#datamodal .stats-list li:last-child {
    border-bottom: 1px solid #d6a131;
}
#datamodal .item-grid {
    grid-area: items;
    background-color: rgba(255, 255, 255, 0.1);
    text-align: center;
}
#datamodal .item-list {
    background-image: url('../img/wow-human-silhouette.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: grid;
    grid-template-areas:'. . head . .' 
                        '. . neck shoulder .'
                        '. shirt chest back .'
                        '. mainHand hands wrist trinket2'
                        '. finger1 waist finger2 trinket1'
                        '. . . . .'
                        '. . legs . .'
                        '. . feet . .';
    grid-template-columns: 1fr 36px 36px 36px 1fr;
    grid-row: repeat(36px, 8);
    grid-gap: 1px 1rem;
    flex-wrap: wrap;
    height: 375px;
    margin: 0 auto;
}
#datamodal .item-list li {
    position: relative;
    width: fit-content;
    margin: 0 auto;
    text-align: center;
    cursor: help;
}
#datamodal .item-title {
    position: absolute;
    bottom: -2px;
    left: -100%;
    white-space: nowrap;
    z-index: 9;
}