@font-face {
    font-family: 'Chocolate'; 
    src: url('https://assets.zomboid.pro/font/Chocolate.ttf'); /*URL to font*/
}

h2 {
        margin-top: 0;
    }

a {
    color: #FF5A70;
}

hr {
    border: 1px dashed #FF5A70;
}

body {
    background-image: url('bg.jpg');
    font-family: 'Chocolate';
    font-size: 20px;
}

main {
    background-color: #45BFAA;
    background: linear-gradient(0deg,#45bfabbe 0%, #b7ebe394 100%);
    color: #8C0B21;
    border-radius: 10px;
    margin: 2em auto;
    display: grid;
    padding: 1em;
    height: auto;
    width: 900px;
    grid:
    [row1-start] "playlist photo photo blurb" auto [row1-end]
    [row2-start] "facts photo photo blurb" auto [row2-end]
    [row3-start] "equip equip gall gall" auto [row3-end]
    / 2fr 1fr 1fr 2fr;
    gap: 1em;
}

main > * {
    background-color: #fcd8e9;
    padding: 1em;
    border-radius: 5px;
}

.playlist {
    grid-area: playlist;
    display: grid;
    grid:
    [row1-start] "icon title" 1fr [row1-end]
    [row2-start] "icon info" 1fr [row2-end]
    / 1fr 4fr;
}

.playlist > .icon {
    grid-area: icon;
    display: grid;
    place-items: center;
}

.playlist > .title {
    padding-top: 0.5em;
    grid-area: title;
}

.playlist > .info {
    grid-area: info;
}

.facts {
    grid-area: facts;
    table {
    width: 100%;
        border-collapse: collapse;
    }
    td {
        padding: 0.4em;
    }
    td:first-child {
        font-style: italic;
        color: #FF5A70;
    }
    td:last-child {
        text-align: right;
    }
    tr {
        border-bottom: 1px solid #FF5A70;
    }
    tr:last-child {
        border-bottom: none;
    }
}

.photo {
    grid-area: photo;
    width: auto;
    overflow: hidden;
    img {
        width: 100%;
        object-fit: cover;
        overflow: hidden;
        aspect-ratio: 5 / 7;
    }
}

.blurb {
    grid-area: blurb;
    p {
        text-indent: 1em;
    }
    h2, h4 {
        display: inline;
    }
}

.info {
    grid-area: info;
}

.gall {
    padding: 0.5em;
    grid-area: gall;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gall img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3rem;
    border: 0;
    color: #45BFAA;
    background: #fcd8e9;
    cursor: pointer;
    font-size: 2.5rem;
    opacity: 0.45;
}

.gallery-arrow:hover,
.gallery-arrow:focus {
    opacity: 1;
}

.gallery-arrow-left {
    left: 0;
}

.gallery-arrow-right {
    right: 0;
}

.equip {
    grid-area: equip;
}

.items {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5em;
    justify-content: space-evenly;
}

.item {
    border: 1px solid #FF5A70;
    padding: 0.5em;
    hr {
        width: 100%;
    }
    img {
    aspect-ratio: 1 / 1;
    width: 100px;
    }
    display: flex;
    flex-direction: column;
}

footer {
    background-color: #45BFAA;
    background: linear-gradient(0deg,#45bfabbe 0%, #b7ebe394 100%);
    position: absolute;
    bottom: 1em;
    right: 1em;
    font-size: smaller;
    a {
        text-decoration: none;
    }
}