@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --discord-dark: #202225;
    --discord-card-bg: #2f3136;
    --discord-text-white: #ffffff;
    --discord-text-light: #b9bbbe;
    --discord-status-online: #3ba55d;
    --discord-status-idle: #faa81a;
    --discord-status-dnd: #f04747;
    --discord-status-offline: #747f8d;
    --discord-pfp-ring: #202225;
    --discord-bubble-bg: #2d2f34;
    --spotify-green: #1DB954;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    overflow: hidden;
    background-color: var(--discord-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

#backgroundCanvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    color: var(--discord-text-white);
    text-align: left;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--discord-card-bg);
    border-radius: 8px;
    padding: 1rem;
    width: 300px;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    gap: 0;
    overflow: hidden;
    margin-bottom: 5px;
}

#musicStatus {
    width: 320px;
    background-color: var(--discord-card-bg);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    display: none;
}

#musicHeader {
    color: var(--spotify-green);
    font-size: 0.7rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

#songDetails {
    display: flex;
    align-items: flex-start;
}

#albumArt {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 10px;
}

#songText {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#songText p {
    margin: 0;
    line-height: 1.3;
}

#songTitle {
    color: var(--discord-text-white);
    font-weight: 700;
    font-size: 0.9rem;
}

#songArtist,
#songAlbum {
    color: var(--discord-text-light);
    font-weight: 400;
    font-size: 0.85rem;
}

#statusBubble {
    position: relative;
    margin-top: 15px;
    width: 300px;
    background-color: var(--discord-bubble-bg);
    border-radius: 20px;
    padding: 12px 15px;
    color: var(--discord-text-white);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    z-index: 5;
    display: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#bubbleContent {
    direction: rtl;
    text-align: right;
    font-family: inherit;
}

#bubbleTail {
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: var(--discord-bubble-bg);

    top: -10px;
    left: 20px;

    clip-path: polygon(0% 100%, 50% 0%, 100% 100%);
    transform: none;
}

.pfp-container {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 0.5rem;
}

.pfp {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0;
    border: 3px solid var(--discord-pfp-ring);
    z-index: 2;
}

.activity {
    position: absolute;
    bottom: -3px;
    right: -3px;

    width: 22px;
    height: 22px;
    border-radius: 50%;
    z-index: 3;
    background-color: var(--discord-status-offline);

    border: 5px solid var(--discord-card-bg);

    box-shadow: none;
    transition: background-color 0.3s ease;
}

.info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    width: 100%;
    padding: 0;
}

.info h1 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
    color: var(--discord-text-white);
}

.info h3 {
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
    font-weight: 400;
    color: var(--discord-text-light);
}

#status {
    font-weight: 700;
    color: var(--discord-text-light);
}

.socials {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
}

i {
    color: var(--discord-text-light);
    font-size: 1.2rem;
    cursor: pointer;
    will-change: transform, color, box-shadow;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1),
        color 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

i:hover {
    color: var(--discord-text-white);
    transform: scale(1.15);
    animation: pulse-hover 1s infinite alternate cubic-bezier(0.65, 0, 0.35, 1);
}

i:active {
    transform: scale(0.9);
    animation: none;
}

@keyframes pulse-hover {
    0% {
        box-shadow: 0 0 0 0 rgba(var(59, 165, 93), 0.7);
    }

    100% {
        box-shadow: 0 0 0 20px rgba(var(59, 165, 93), 0);
    }
}

.hotbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3vh;
    background: linear-gradient(90deg, #3ba55d, #faa81a, #f04747, #406aa0, #3ba55d);
    background-size: 500% 100%;
    animation: hotbarAnimation 10s linear infinite;
    z-index: 10;
    align-items: end;
    justify-content: end;
}

@keyframes hotbarAnimation {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 0%;
    }
}

.menu {
    position: fixed;
    font-family: "Raleway", sans-serif;
    color: var(--discord-text-white);
    top: 5vh;
    left: 50%;
    transform: translate(-50%, 0);
    width: 200vw;
    height: 10vh;
    justify-content: center;
    background-color: var(--discord-card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border-radius: 16px;
    transform-origin: center center;
    animation: openFromMiddle 1.5s ease-out forwards;
}

@keyframes openFromMiddle {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
        transform: translate(-50%, 0) scale(0);
    }

    100% {
        width: 95vw;
        height: 10vh;
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

.content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    font-size: 1.2rem;
    color: var(--discord-text-white);
    font-weight: bolder;
}

.content button {
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    color: var(--discord-text-white);
    font-size: large;
    font-weight: bolder;
}

.home.active {
    border-radius: 30px;
    border: none;
    background-color: #22252b;
    color: var(--discord-text-white);
    padding: 1%;
}