body {
    font-family: sans-serif;
    padding: 0;
    margin: 0;
    color: rgb(179, 179, 179);
    background-color: rgb(33, 33, 33);
    height: 100%;
}

.menu {
    font-size: x-large;
    font-weight: bold;
    background-color: rgb(12, 12, 12);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    height: 80px;
    border-bottom: 2px solid black;
    position: sticky;
    top: 0;     
}

#closeUp {
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s ease-in-out;
    opacity: 0;
    cursor: pointer;
}

#closeUp.show {
    opacity: 1;
}

#closeUpImage {
    border: 1px solid black;
    border-radius: 12px;
    transform: scale(0.5);
    transition: transform 0.2s ease-in-out;
}

#closeUpImage.show {
    transform: scale(1);
}

a {
    text-decoration: none;
    color: rgb(179, 179, 179);
}

a:hover {
    color: white;
}

.content {
    padding-top: 20px;
    width: 100%;
    text-align: center;
    background: linear-gradient(120deg, #1db954, #191414);
    min-height: 100vh;
}

.title {
    font-weight: bold;
    font-size: 60px;
    color: white;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trackList {
    margin-top: 40px;
    height: 70vh;
    width: 90%;
    max-width: 1000px;
    border: 2px solid black;
    border-radius: 12px;
    box-shadow: 0 0 10px rgb(33, 33, 33);
    background-color: rgb(33, 33, 33);
    padding: 0 20px;
    overflow-y: scroll;
}

.sort {
    display: flex;
    justify-content: space-between;
    font-size: x-large;
    border-bottom: 2px solid black;
    padding-bottom: 5px;
    padding-top: 5px;
    margin-bottom: 10px;
}

.sort a {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;  
}

.sort a:first-child {
    text-align: center;
    flex: 0.1;
}

.track {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border: 2px solid black;
    border-radius: 12px;
    align-items: center;
    margin-bottom: 5px;
    background-color: #282828;
}

.track div, .track a, .track img {
    text-align: left;
    white-space: nowrap;  
    overflow: hidden;  
    text-overflow: ellipsis;  
}

.track .ranking {
    text-align: center;
    flex: 0 0 50px;
}

.track .trackImage {
    width: 50px;  
    height: 50px;  
    margin-right: 10px;
    flex-shrink: 0;  
    object-fit: cover;  
    border-radius: 8px;
    cursor: pointer;
}

.track .name {
    flex: 1.5;
}

.track .artist, .track .timeListened {
    flex: 1;
}

.trackList::-webkit-scrollbar {
    width: 20px;
}

.trackList::-webkit-scrollbar-track {
    padding: 2px;
}

.trackList::-webkit-scrollbar-thumb {
    background-color: #282828;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .menu {
        flex-direction: column;
        height: auto;
    }

    .trackList {
        width: 100%;
        padding: 0 10px;
    }

    .sort {
        flex-direction: column;
        align-items: flex-start;
    }

    .track {
        flex-direction: column;
        align-items: flex-start;
    }

    .track .trackImage {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .track .name, .track .artist, .track .timeListened {
        width: 100%;
        flex: none;
    }
}

#siteStats{
    width: 100%;
    height: 15vh;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    font-size: x-large;
    font-weight: bold;
    background-color: rgb(22, 22, 22);
    box-shadow: 0 0 40px rgb(22, 22, 22);

}