:root {
    --bg: rgb(0, 0, 0);
    --header: rgb(218, 127, 52);
    --play: grey;
    --text: white;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    background-color: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    overflow: hidden;
    position: fixed;
}

#content {
    text-align: center;
    height: 100%;
    width: 100%;
    padding-top: 3%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#imgwr2 {
    width: 100%;
    max-height: 70%;
    max-width: 900px;
    flex-shrink: 1;
}

#imgwrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
}

#image-container {
    flex: 4;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#image-container img,
#image-container video {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

#imgL,
#imgR {
    flex: 1;
    align-self: center;
    font-size: 3rem;
    font-weight: 900;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

#imgL::before,
#imgL {
    font-family: "Font Awesome 5 Free";
    content: "\f104";
    text-align: right;
    padding-right: 1rem;
}

#imgR::before,
#imgR {
    font-family: "Font Awesome 5 Free";
    content: "\f105";
    text-align: left;
    padding-left: 1rem;
}

#counter {
    padding-top: 0.3rem;
    font-size: 0.8rem;
    font-weight: lighter;
    color: grey;
    max-width: 80vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#audio-section {
    margin-top: 1.5rem;
}

#audwr {
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#audL,
#audR {
    flex: 1;
    align-self: center;
    font-size: 2rem;
    font-weight: 900;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

#audL::before,
#audL {
    font-family: "Font Awesome 5 Free";
    content: "\f104";
    text-align: right;
    padding-right: 0.2rem;
}

#audR::before,
#audR {
    font-family: "Font Awesome 5 Free";
    content: "\f105";
    text-align: left;
    padding-left: 0.2rem;
}

#play {
    color: var(--play);
    border-radius: 7px;
    border: 2px solid var(--play);
    text-align: center;
    padding: 0.4rem 1.5rem;
    min-width: 5rem;
    cursor: pointer;
    font-size: 1.2rem;
    user-select: none;
    -webkit-user-select: none;
    transition: border-color 0.2s, color 0.2s;
}

#play:hover {
    color: white;
    border-color: white;
}

#play.playing {
    color: var(--header);
    border-color: var(--header);
}

#track-name {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    font-weight: lighter;
    color: grey;
    max-width: 80vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#footer {
    position: absolute;
    bottom: 0;
    text-align: center;
    width: 100%;
    padding-bottom: 1rem;
    font-size: calc(8px + 5 * ((100vw - 100px) / 300));
    font-weight: lighter;
    color: grey;
}

.empty-state {
    color: #444;
    font-size: 1rem;
    font-weight: lighter;
}

@media (max-width: 600px) {
    #imgL,
    #imgR {
        font-size: 2rem;
        padding: 0.5rem;
    }

    #imgL::before,
    #imgL {
        padding-right: 0.5rem;
    }

    #imgR::before,
    #imgR {
        padding-left: 0.5rem;
    }
}
