@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inconsolata', monospace;
}

:root {
    --title-height: 2.8em;
    --pfp-size: 2em;
    --color-bg: #0a0a0a;
    --color-title: #1a1a1a;
    --color-title-light: #2a2a2a;
    --color-fg: #eee;
    --color-primary: #fff;
    --color-hyperlink: rgb(134, 136, 255);

    --music-color: #ddd;
    --music-color-start: #ddd;
    --music-color-end: #ddd;
    --music-color-detail: #000;

    --drop-shadow: #0008;

    --status-bg: #000;
    --status-text: #0f0;
}

a {
    color: var(--color-hyperlink);
    text-decoration: none;
}

body {
    background-color: var(--color-bg);
    color: var(--color-fg);
    font-size: small;
    overflow: hidden;
}

input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

select {
    background-color: var(--color-title);
    color: var(--color-fg);
    border: none;
    padding: 0.5rem;
    font-size: 1rem;
}

input {
    background-color: var(--color-title);
    color: var(--color-fg);
    border: none;
    padding: 0.5rem;
    font-size: 1rem;
}

button {
    background-color: var(--color-title);
    color: var(--color-fg);
    border: none;
    padding: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
}

#back-button {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.5rem;
    font-size: 1rem;
    color: aqua;
    cursor: pointer;
}

#content-glow {
    display: none;
    z-index: 0;
    background: linear-gradient(90deg, var(--music-color-end) 0%, var(--music-color-start) 100%);
    position: absolute;
    margin: 0 auto;
    padding: 0px 0.8rem;
    height: 100%;
    width: 30%;
    min-width: 320px;
    right: 0;
}

#content {
    z-index: 2;
    background-color: var(--color-title);
    position: relative;
    margin: 0 auto;
    padding: 0px 0.8rem;
    width: 100%;
    height: var(--title-height);
    text-align: center;
    font-size: 1rem;
    display: flex;
    justify-content: left;
}

#pfp-container {
    position: inherit;
    width: var(--title-height);
    height: var(--title-height);
    display: flex;
    justify-content: center;
    align-items: center;
}

#pfp {
    background-color: var(--color-title-light);
    border-radius: 33%;
    position: relative;
    height: var(--pfp-size);
    width: var(--pfp-size);
}

.content-element {
    position: inherit;
    width: fit-content;
    height: inherit;
    margin-left: 0.5rem;
    line-height: var(--title-height);
    font-weight: bold;
}

#title {
    color: var(--color-fg);
}

#status {
    margin-top: 1.2rem;
    margin-left: 0.8rem;
    background-color: var(--status-bg);
    color: var(--status-text);
    padding: 0.2rem 0.5rem;
    width: min-content;
}

#custom-status {
    margin-top: 0.5rem;
    margin-left: 0.5rem;
}

#content-page {
    /* background-color: red; */
    position: absolute;
    bottom: 1.8rem;
    padding: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1.8rem;
    justify-content: center;
}

#menu {
    line-height: var(--title-height);
    white-space: nowrap;
    overflow: hidden;
    position: inherit;
    flex-grow: 1;
    display: flex;
    justify-content: right;
    gap: 2rem;
}

.button {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 2em;
    filter: blur(.015rem);
}

.crazy-button {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
}

#star-container {
    position: fixed;
    z-index: -1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.5;
    filter: blur(0.5px);
}

.star {
    position: absolute;
    background-color: var(--color-primary);
    width: 2px;
    height: 2px;
    z-index: inherit;
    opacity: inherit;
}

#now-listening-to {
    position: fixed;
    right: 0;
    margin: 0.8rem;
    padding: 0.75rem;
    background-color: var(--color-title-light);
    width: 464px;
    height: 142px;
    border-radius: 12px;
    filter: opacity(0) blur(25px);
    transition: filter 1s ease-in-out;
}

#listening-container {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
}

#song-info {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    justify-content: flex-start;
    flex-grow: 1;
    filter: drop-shadow(0 0.05rem 0.1rem var(--drop-shadow));
}

#song-info a {
    color: var(--color-fg);
    text-decoration: none;
}

#spotify-song {
    font-size: 1.2rem;
    font-weight: 600;
}
#spotify-artist {
    font-size: 1rem;
}
#spotify-album {
    margin-top: 0.2rem;
    font-size: 0.8rem;
}

#spotify-end-time {
    cursor: pointer;
    user-select: none;
}

#spotify-progress-bar {
    width: 100%; max-width: 100%;
    height: 3px; max-height: 3px;
    background-color: var(--color-title);
    border-radius: 1.5px;
}

#spotify-progress-bar-fill {
    background-color: var(--music-color);
    width: 0%;
    height: 100%;
    border-radius: 1.5px;
    transition: width 0.1s ease-in-out;
}

#spotify-timestamps {
    margin-top: .3rem;
    display: flex;
    justify-content: space-between;
}

#spotify-album-cover-container {
    overflow: visible;
    height: 100%;
    aspect-ratio: 1;
    margin-right: 1rem;
}
#spotify-album-cover {
    position: relative;
    background-image: url('https://cdn.uglyburger0.com/placeholder.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: .5rem;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 0.8rem var(--drop-shadow));
}

@media screen and (max-width: 643px) {
    #content {
        flex-direction: column;
        height: auto;
    }

    #menu, #content-glow, #now-listening-to {
        display: none;
    }
}