:root {
    --gradient-color-dark: #1A5354;
    --gradient-color-light: #3FBFC1;
}

body {
    background: url("podcast.png") no-repeat fixed, linear-gradient(36deg, var(--gradient-color-dark), var(--gradient-color-light));
    background-size: cover;
    padding: .5em 1em;
    font-family: Helvetica, Arial, sans-serif;
    min-width: 320px;
}

h1, p, a, div {
    color: white;
}

body.episode h1 {
    text-align: center;
}

a {
    font-weight: bold;
}

div.card {
    transition: background-color linear 1s;
    margin: 0 auto 1rem auto;
    display: flex;
    flex-wrap: wrap;
    background: #f0f0f033;
    backdrop-filter: blur(10px);
    border-radius: 2em;
    padding: 1em;
    max-width: 1800px;
}

.block {
    display: block !important;
}

.cardwrapper {
    display: block;
    text-decoration: none;
}

.underline {
    text-decoration: underline;
}

div.card h2 {
    margin-top: 0;
}

div.card .image {
    flex: 1;
    text-align: center;
}

div.card.ai-modified::after {
    content: "PICTURE AI MODIFIED";
    font-family: sans-serif;
    font-weight: bold;
    background: rgba(0, 0, 0, .4);
    font-size: 1.25rem;
    border-radius: 2rem;
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 14rem;
    height: 1.25rem;
    padding: 1rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

div.card .info {
    flex: 1;
    padding: 2em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

img.coverart,
section.genreTracks img {
    background: linear-gradient(144deg, var(--gradient-color-light), var(--gradient-color-dark));
    max-width: min(800px, 100%);
    aspect-ratio: 1/1;
    border-color: transparent;
    border-radius: 1em;
    position: relative;
    display: inline-block;
}

audio {
    border: 2px solid black;
    border-radius: 2em;
    width: 100%;
    background: white;
}

h1,
div {
    text-shadow: 2px 2px 2px rgba(0,0,0,.5);
}

h1 {
    font-size: clamp(1rem, 3vw, 2rem);
}

audio,
img.coverart,
div.card,
div.card img,
div.chips span {
    box-shadow: 2px 2px 2px rgba(0,0,0,.5);
}

nav.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-bottom: 1rem;
}

nav.chips span {
    transition: background-color linear 1s;
    background: #ffffffaa;
    padding: .25em 1em;
    border-radius: 1em;
    text-transform: uppercase;
    text-shadow: none;
}

nav.chips span a {
    color: black;
    text-decoration: none;
    font-weight: bold;
}

span.off {
    opacity: .3;
}

nav.chips span.off a {
    font-width: normal;
    color: gray;
}

section.genreTracks {
    display: flex;
    flex-wrap: wrap;
    gap: max(1vw, 1vh);
    justify-content: space-between;
}

section.genreTracks div.card {
    transition: background-color linear 1s;
    display: block;
    width: 100%;
    max-width: 400px;
    min-height: 400px;
    text-align: center;
}

section.genreTracks div.card:hover,
.button:hover,
.cardwrapper:hover div.card,
nav.chips span:hover {
    background: var(--gradient-color-light);
    cursor: pointer;
    transition: background-color linear .2s;
}

section.genreTracks img {
    max-width: 100%;
    width: 100%;
    min-width: 300px;
    min-height: 400px;
}

footer {
    margin: 1em 0;
    text-align: center;
    color: white;
}

footer span {
    display: inline-block;
}

br {
    display: none;
}

div.bottom {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: space-between;
}

.center {
    text-align: center;
}

.white {
    color: white;
}

div.flex {
    display:flex;
    gap: 1rem
}

.ellipsis {
    text-overflow: ellipsis;
    display: block;
    overflow: hidden;
}

.button {
    transition: background-color linear 1s;
    border-radius: .5rem;
    border-style: ridge;
    border-color: rgba(0, 0, 0, .2);
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 2rem;
    background-color: white;
    color: black;
    text-decoration: none;
    align-content: center;
}

@media (max-width: 1440px) {
    div.bottom {
        flex-direction: column-reverse;
    }

    div.center.r-left {
        text-align: left;
        margin: 2rem 0;
    }
}

@media (max-width: 1024px) {
    div.card {
        flex-direction: column;
    }
    .mobileColumn {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    br {
        display: block;
    }
}

.platform {
    display: flex;
    gap: 1em;
    flex-flow: wrap;
    align-items: center;
}

.platform a {
    position: relative;
    display: flex;
    align-items: center;
    width: 10rem;
    max-width: 25vw;
    height: 40px;
    border-radius: .5rem;
    padding: .5rem .5rem .5rem calc(1rem + 40px);
    background: var(--gradient-color-dark);
    transition: all 0.3s ease-in-out;
    opacity: 0.8;
}

.platform a:hover {
    filter: brightness(1.6);
    transition: all 0.3s ease-in-out;
    opacity: 1;
}

.platform a:before {
    position: absolute;
    top: .5rem;
    left: .5rem;
    background: url("/img/platforms.webp") no-repeat;
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    border-radius: .5rem;
}

#spotify:before {
    background-position: 0 0;
}

#podcast:before {
    background-position: -41px 0;
}

#soundcloud:before {
    background-position: -81px 0;
}

#youtube:before {
    background-position: -121px 0;
}

#tiktok:before {
    background-position: -161px 0;
}

#itunes:before {
    background-position: -201px 0;
}

#deezer:before {
    background-position: -241px 0;
}

#tidal:before {
    background-position: -281px 0;
}

#amazon:before {
    background-position: -321px 0;
}

#bandcamp:before {
    background-position: -361px 0;
}

#demozoo:before {
    background-position: -401px 0;
}

#instagram:before {
    background-position: -441px 0;
}
