/* ========== IMPORTANT STYLES ========== */
:root {
    --image-max-size: 30vh;
}
html, body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: clip;
    scroll-behavior: smooth;
}
* {
    cursor: default;
    scrollbar-width: none;
}
.fa-user, .fa-house, .fa-brands, .fa-bars, .fa-music, .fa-xmark, .fa-solid {
    cursor: pointer;
}

/* ========== STREAMING ICONS ========== */
.fa-solid.fa-play {
    color: white;
    background-color: red;
    outline: 1px solid white;
    outline-offset: -5px;
    padding: 3px;
    border-radius: 100%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 80%;
    margin: 0;
}
.fa-solid.fa-music {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: red;
    color: white;
    padding: 3px;
    border-radius: 5px;
}
.fa-brands.fa-spotify {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #11FF55;
    background-color: black;
    padding: 3px;
    border-radius: 5px;
}

/* ========== CONTAINERS ========== */
/* Fixed Logo */
.fixed-logo-container {
    transition: all 0s ease, background-color 0.3s ease;
    position: absolute;
    bottom: 5px;
    left: -10px;
    width: 100px;
    height: fit-content;
    display: flex;
    z-index: 9999;
    mix-blend-mode: difference;
}
.fixed-logo-container::after {
    content: "";
    color: black;
    position: absolute;
    bottom: 5px;
    left: -10px;
    width: 100px;
    height: 100px;
}
.fixed-logo {
    position: relative;
    width: 100%;
    height: auto;
}

/* Main Page Container */
.main-container {
    width: 100%;
    height: 100%;
    overflow-x: clip;
    overflow-y: auto;
}
/* Header Container */
.header-container {
    width: 100%;
    height: fit-content;
    min-height: 20vh;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    padding-left: calc(5vw + 2vh);
}
.header-container .header-name {
    font-size: calc(2.5vw + 2.5vh);
}
/* footer container */
.footer {
    height: fit-content;
    padding: 25px 0;
    margin: 0;
    width: 100%;
    font-size: 50%;
    text-align: center;
    cursor: default;
    transition: all 0.5s ease, opacity 0.5s ease-in-out;
}

/* Songs Containers */
.songs-container {
    width: 100%;
    height: fit-content;
    min-height: 100vh;
    overflow-x: clip;
    overflow-y: auto;
}
.song-section-container {
    width: 100%;
    height: fit-content;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
}
.song-item-container {
    width: calc(100% - 20px);
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 10px 20px;
    padding-left: 0;
}
.section-info {
    padding-left: calc(3vw + 2vh);
}
.song-item-container.seemore {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px 0px;
    width: 100%;
    padding: 0;
}
.song-section-container:not(.first-con) {
    margin-top: 10vh;
}
.song-item {
    position: relative;
    width: 20vw;
    height: 20vw;
    max-width: var(--image-max-size);
    max-height: var(--image-max-size);
    padding: 0;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    margin-left: calc(5vw + 2vh);
}
.song-item img {
    width: 100%;
    height: 100%;
}
.song-item i {
    pointer-events: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: calc(5vw + 5vh);
}
.song-item p {
    pointer-events: none;
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translate(-50%,0);
    opacity: 1;
    text-wrap: nowrap;
    font-size: calc(0.5vw + 0.5vh);
}
.coverImg:not(.loaded) {
    opacity: 0;
}
.coverImg.loaded + i {
    opacity: 0;
}
.song-item.extra-item {
    display: none;
}

.song-item-container .song-item:nth-child(1) {
    margin: 0;
    margin: auto;
    margin-left: calc(5vw + 2vh);
    margin-right: 0;
}
.song-item-container.seemore .song-item {
    margin: 0;
    margin: auto;
}
.song-item-container.seemore .song-item.extra-item {
    display: inline-flex;
}

.section-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.see-more-btn {
    margin-left: 10px;
    cursor: pointer;
}
.see-more-btn:hover {
    text-decoration: underline;
}

/* Popup */
.popup-con {
    pointer-events: all;
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 0;
    width: 80%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
}
.popup-con .song-cover {
    position: relative;
    margin: 0;
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.popup-con .song-cover img {
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 80%;
}
.popup-con .song-info-con {
    width: 100%;
    height: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.popup-con .song-links-con {
    width: 100%;
    height: 15%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}
.popup-con .song-links-con .song-link-item {
    width: fit-content;
    min-width: 25%;
    max-width: 30%;
    margin: 0 1%;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
}
.popup-con .close-btn {
    position: absolute;
    cursor: pointer;
}

/* Context Menu */
.context-menu-container {
    position: absolute;
    width: 150px;
    height: fit-content;
    background: #4a4a4a;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    opacity: 1;
    overflow: clip;
    transition: opacity 0.2s ease;
    z-index: 10000;
}
.context-menu-option {
    background: #4a4a4a;
    color: #d4d4d4;
    padding: 10px;
    border: none;
    border-bottom: 1px solid #242424;
    width: 100%;
    height: fit-content;
    min-height: 1.1rem;
    max-height: 75px;
}
.context-menu-option:hover {
    cursor: pointer;
    color: white;
    filter: brightness(0.8);
    -webkit-filter: brightness(0.8);
}

/* Version Display */
#versionDisplay {
    position: absolute;
    bottom: 0.5%;
    right: 2%;
    font-size: 5px;
    opacity: 0.5;
}

@media only screen and (min-width: 1001px) {
    .song-item {
        width: 15vw;
        height: 15vw;
    }
    .song-item i {
        font-size: calc(5vw + 5vh);
    }
    .song-item-container.seemore {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 20px 0px;
    }
}
@media only screen and (max-width: 1000px) {
    .song-item {
        width: 22vw;
        height: 22vw;
    }
    .song-item i {
        font-size: calc(8vw + 5vh);
    }
}