@keyframes donationshadow {
    0% {box-shadow: 3px 0 5px #139C43;}
    25% {box-shadow: 0px 3px 5px #139C43;}
    50% {box-shadow: -3px 0 5px #139C43;}
    75% {box-shadow: 0 -3px 5px #139C43;}
    100% {box-shadow: 3px 0 5px #139C43;}
}

@keyframes continuewithspotify {

}

html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

body {
    height: 100%;
    margin: 0;
    padding: 60px 0 50px 0;
    box-sizing: border-box;
}

#tsparticles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: auto; 
}

#tsparticles canvas {
    pointer-events: auto !important;
}

#vignette {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 1; 
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 0.9) 100%);
}

.navbar,
#restpage,
.footer {
    position: relative; /* ensure z-index works */
    z-index: 2;
    }

a {
    text-decoration: none;
    color: #fdfdfd;
}

.navbar {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    min-height: 60px;
    z-index: 1000;
    background-color: rgba(29, 29, 29, 0.863);
    color: #fdfdfd;
    display: flex;
    align-items: center;
    padding: 0 15vw;
    justify-content: space-between;
}

#donation {
    padding: 10px 20px;
    border-radius: 10px;
    background: linear-gradient(27deg,rgba(21, 136, 61, 1) 0%, rgba(29, 185, 84, 1) 80%);
    cursor: pointer;
    transition: all 0.5s;
}

#donation:hover {
    scale: 102%;
    animation: donationshadow 3s linear infinite;
}

#title {
    color: #139C43;
    font-size: 24px;
    margin-top: 5px;
}

#logo {
    width: 138px;
    height: 30px;
}

.footer {
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 40px;
    z-index: 1000;
    background-color: rgba(29, 29, 29, 0.863);
    color: #8f8d8d;
    display: flex;
    align-items: center;
    padding: 0 15vw;
    justify-content: space-between;
}

#legaldiv {
    display: flex;
    gap: 1vw;
}

.legal {
    color: #8f8d8d;
}

#restpage {
    pointer-events: none;
    display: flex;
    vertical-align: middle;
    height: 100%;
}

#restpage * {
    pointer-events: auto;
}

#statscontainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    vertical-align: middle;
    margin: auto;
    min-width: 10vw;
    max-width: 75%;
    border-radius: 15px;
    background-color: rgba(29, 29, 29, 0.95);
    padding: 25px;
    transition: all 0.5s;
}

#statscontainer:hover {
    box-shadow: 0 0 5px inset #139C43,  0 0 5px #139C43;
}

#signintitle {
    display: inline;
    margin: 0;
    font-size: 32px;
    color: #fdfdfd;
    padding-left: 15px;
}

.continuespotify {
  display: flex;
  justify-content: center;
  background: linear-gradient(27deg,rgba(21, 136, 61, 1) 0%, rgba(29, 185, 84, 1) 80%);;
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  align-items: center;
  border-radius: 0.65rem;
  gap: 0.75rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: .6s ease;
}

.continuespotify svg {
  height: 30px;
}

.continuespotify:hover {
    scale: 102%;
    box-shadow: none;
}

#loginhold {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: auto;
    gap: 2vh;
}

#spotifypart {
    display: inline;
    margin: 0;
    font-size: 32px;
    color: #1ebf59;
    text-shadow: 0 0 15px #1c5832;
    padding-right: 15px;
}

#restdocumentlegal {
    position: relative;                       
    z-index: 2;                                
    display: flex;         
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px - 40px);
    padding: 20px 8vw 60px;
}

#restdocumentlegal * {
    pointer-events: auto;
}

#legalhold {
    display: flex;
    flex-direction: column;
    align-items: center;
    vertical-align: middle;
    margin: auto;
    min-width: 10vw;
    max-width: 75%;
    border-radius: 15px;
    background-color: rgba(29, 29, 29, 0.95);
    padding: 25px;
    transition: all 0.5s;
}

#legalhold:hover {
    box-shadow: 0 0 5px inset #139C43,  0 0 5px #139C43;
}

#longtext {
    color: #fdfdfd;
}

.legallink {
    color: #1ebf59;
}

/* Add to your existing styles */
#stats-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(30, 30, 46, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    color: #cdd6f4;
}

.filter-group {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.filter-group label {
    margin-right: 10px;
    min-width: 120px;
    font-weight: bold;
}

.filter-group select {
    padding: 8px;
    border-radius: 4px;
    background: #1e1e2e;
    color: #cdd6f4;
    border: 1px solid #45475a;
    flex-grow: 1;
}

#apply-filters {
    background: #a6e3a1;
    color: #1e1e1e;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 1rem;
    transition: background 0.3s;
}

#apply-filters:hover {
    background: #94e2d5;
}

.stats-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.stats-list li {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(49, 50, 68, 0.5);
    border-radius: 8px;
    transition: transform 0.2s;
}

.stats-list li:hover {
    transform: translateY(-3px);
    background: rgba(69, 71, 90, 0.5);
}

.track-position, .artist-position {
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
    color: #cba6f7;
}

.track-image, .artist-image {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    margin: 0 1rem;
    object-fit: cover;
}

.track-info, .artist-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.track-name, .artist-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.track-artist, .artist-genres {
    font-size: 0.9rem;
    color: #a6adc8;
}

.track-album, .artist-popularity {
    font-size: 0.9rem;
    color: #89b4fa;
    min-width: 150px;
    text-align: right;
}

#login-prompt {
    text-align: center;
    padding: 2rem;
}

#login-prompt button {
    background: #1db954;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 500px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s;
}

#login-prompt button:hover {
    background: #1ed760;
}