@import url('https://unpkg.com/@catppuccin/palette/css/catppuccin.css');

:root {
    font-family: 'Inter', sans-serif;
    --lyric-set-duration: 2s;
}

body {
    margin: 1.5vw;
    margin-bottom: 10vw;
    background-color: var(--ctp-mocha-mantle);
}

a {
    color: #14a0ce;
}

i {
    text-decoration: none !important;
}

.title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--ctp-mocha-rosewater);
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1rem;
    font-weight: normal;
    color: var(--ctp-mocha-rosewater);
    text-align: center;
    margin-bottom: 2rem;
}

.container {
    max-width: 800px;
    margin: auto;
    padding: 10px;
}

#systemBannerCover {
    max-width: 97vw;
    border-radius: 1vw;
    height: 20vw;
    margin-bottom: 1.5rem;
}

#systemBanner {
    height: 100%;
    background-size: cover;
    -moz-background-size: cover;
    -webkit-background-size: cover;
    background-position: center;
    border-radius: 1vw;
    background-position: center;
    flex-shrink: 0;
    flex-grow: 0;
}

#systemMainContainer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    align-content: center;
    padding-top: 1vh;
    margin-bottom: 2rem;
}

#systemIcon {
    border-radius: 1vw;
    width: 256px;
    min-height: 15vh;
    margin-right: 1.5vw;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    flex-grow: 0;
}

#spotifyLyrics {
    position: relative;
    display: inline-block;
}

#spotifyLyrics::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 0, 0.14);
    z-index: 1;
}

.lyricAnimation::before {
    animation: highlight var(--lyric-set-duration, 2s) ease-in-out forwards;
}

@keyframes highlight {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}


.information-box {
    background-color: var(--ctp-mocha-crust);
    color: var(--ctp-mocha-rosewater);
    padding: 15px;
    flex-grow: 1;
    min-height: 15vh;
    border-radius: 1vw;
    max-width: 600px;
    max-height: 512px;
}

.member-card {
    width: 190px;
    height: 300px;
    /* Fixed height for uniformity */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: solid transparent 5px;
    /* Default border to maintain layout */
    box-sizing: border-box;
    overflow: hidden;
    /* Prevent overflow */
    margin-top: 10px;
    margin-left: 5px;

}

.member-detail {
    background-color: var(--ctp-mocha-crust);
    border-radius: 0px 0px 10px 10px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* Change to row to render items inline */
    gap: 10px;
    /* Add some space between items */
}

.member-name,
.member-pronouns {
    display: inline-block;
    /* Ensure items are inline */
    margin: 0 5px;
    /* Add some margin for spacing */
}

.member-avatar {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0px 0px;
    flex-shrink: 0;
    /* Prevent shrinking */
    filter: grayscale(100%);
    /* Apply grayscale filter */
    transition: filter 0.3s ease;
    /* Smooth transition */
}

.member-card>* {
    color: var(--ctp-mocha-rosewater);
    margin: auto;
}

.member-name {
    font-weight: 600;
    font-size: 24px;
}

.member-pronouns {
    font-weight: 400;
}

.members-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: stretch;
    align-content: stretch;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 1.5rem;
    width: 100%;
}

.member-card:hover .member-avatar {
    filter: grayscale(0%);
    /* Remove grayscale filter on hover */
}

.member-avatar.fronter {
    filter: none;
    /* No filter for fronters */
    border-radius: 0px;
}

.member-card.fronter .member-detail {
    background-color: var(--ctp-mocha-rosewater);
    color: var(--ctp-mocha-crust);
    border-radius: 0px;
}

.title {
    padding-top: 3vh;
    color: var(--ctp-mocha-rosewater);
}

.small {
    font-size: 0.8rem;
}

.smallish {
    font-size: 1.25rem;
}

.social-icon {
    padding: 0px !important;
    margin: 0px !important;
    text-decoration: none !important;
}

.highlight {
    background-color: var(--ctp-mocha-rosewater);
    color: var(--ctp-mocha-crust);
    padding: 0.25rem;
    border-radius: 0.25rem;
}

.spotify-now-playing-super-container {
    display: flex;
    flex-direction: row;
    grid-template-columns: repeat(4, 1fr);
    justify-content: space-between;
    width: 100%;
    background-color: var(--ctp-mocha-crust);
    color: var(--ctp-mocha-rosewater);
    flex-grow: 1;
    border-radius: 1vw;
}

.spotify-now-playing-container {
    display: flex;
    flex-direction: row;
    grid-template-columns: repeat(4, 1fr);
    justify-content: flex-start;
    flex-grow: 1;
    flex-wrap: wrap;
}

.spotify-now-playing-icon img {
    width: 60px;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    border-left: solid #2db55a 5px;
    flex-shrink: 0;
    /* Prevent shrinking */
    transition: filter 0.3s ease;
    /* Smooth transition */
}

.spotify-now-playing {
    padding: 10px;
}

.spotify-now-playing-all-to-the-right {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: stretch;
}

.spotify-singalong-button {
    background-color: var(--ctp-mocha-rosewater);
    color: var(--ctp-mocha-crust);
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 10px;
}

.hidden {
    display: none !important;
}

.small-inline-discord-emoji {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

@media (max-width: 850px) {
    .members-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .lyricAnimation {
        display: none;
    }

    .spotify-now-playing-all-to-the-right {
        display: none;
    }
}

@media (max-width: 650px) {
    #systemIcon {
        display: none;
    }

    .members-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 450px) {
    .members-container {
        grid-template-columns: repeat(1, 1fr);
    }
}