body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
}

h1 {
    color: #333;
    margin: 150px 40px 0;
}

a {
    color: #1db954;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-top: 170px;
}
p {
    padding: 20px;
    text-align: center;
    max-width: 800px;
    margin: 10px auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #767676;
}
h2 {
    text-align: center;
    font-size: 2rem;
    margin-top: 40px;
    color: #1DB954;
}

ul {
    list-style: none;
    padding: 10px;
    margin: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
ul li {
    background: #1A1A1A;
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    color: #1DB954;
}
ul li:hover {
    transform: translateY(-5px);
    background-color: #1DB954;
    color: #fff;
}

footer {
    background: #1A1A1A;
    padding: 20px;
    text-align: center;
    color: #ccc;
}

footer a {
    color: #1ED760;
    text-decoration: none;
    font-weight: bold;
}
footer a:hover {
    text-decoration: underline;
}

.navbar {
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    margin: auto;
    padding: 25px 0;
    background-color: black;
}

.nav-items {
    margin-right: 35px;
    padding-top: 5px;
    display: flex;
    align-items: center;
}

.nav-logo {
    margin-left: 25px;
    animation: fadeIn 1s ease-out;
}

.nav-link {
    margin-right: 20px;
    margin-top: 7px;
    animation: fadeIn 1s ease-out;
}

.nav-link-menu {
    margin-right: 20px;
    padding-top: 7px;
    animation: fadeIn 1s ease-out;
}

.icon {
    height: 25px;
    color: white;
    font-size: 24px;
}

#logo-big {
    width: 200px;
}

#logo-small {
    width: 50px;
    display: none;
}

.user-info {
    display: inline-block;
    vertical-align: middle;
    height: auto;
}

.user-logo{
    background-color: #414141;
    margin-left: 9px;
    border-radius: 30px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    padding: 6px;
    transition: all .1s ease-in-out;
}

.profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.username {
    max-width: 120px;
    line-height: 36px;
    margin-right: 10px;
    font-family: Circular, sans-serif;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    font-size: 20px;
}

.dropdown {
    position: relative;
    cursor: pointer;
}
  
.dropdown > button {
    width: 170px;
    height: 60px;
    border: 0;
    border-radius: 30px;
    font-family: inherit;
    font-size: 17px;
    background: #3c3c3c;
}
  
.dropdown > .content {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    height: 60px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f7f7f7;
}
  
.dropdown > .content::after {
    content: "";
    position: absolute;
    bottom: 6px;
    right: 10%;
    width: 80%;
    height: 1px;
    transform: scaleX(0);
    transition: 0.3s;
}

.dropdown:hover > .content::after {
    transform: scaleX(1);
}
  
.dropdown > .content > span:first-child {
    font-size: 20px;
}
  
.dropdown > .content > span:last-child {
    margin-left: auto;
}
  
.dropdown > .content > span:last-child {
    transition: 0.3s;
}
  
.dropdown > .menu {
    position: absolute;
    z-index: 1;
    top: -6px;
    left: 50%;
    display: grid;
    width: 110%;
    padding: 70px 0 6px;
    border-radius: 6px;
    translate: -50% 0;
    visibility: hidden;
    opacity: 0;
    scale: 0.85;
    background: linear-gradient(#414141, #1ed760);
    transition: 0.3s;
}
  
.dropdown:hover > .menu {
    visibility: visible;
    opacity: 1;
    scale: 1;
    border-radius: 20px;
    padding-bottom: 15px;
    gap: 10px;
}
  
.dropdown > .menu > a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f7f7f7;
    font-size: 14px;
    padding: 0 24px;
    text-decoration: none;
}
  
.dropdown > .menu > a:hover {
    background: rgb(0 0 0 / 10%);
}
  
.dropdown > .menu > a > span {
    font-size: 18px;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.latest-release {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f3f3f3;
    border-radius: 4px;
}

.album-info {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

.track-name {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

.track-name:hover {
    text-decoration: underline;
}

.artist {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.date {
    font-size: 12px;
    color: #888;
}

.spotify-attribution {
    display: flex;
    align-items: center;
    /* margin-top: 10px; */
}

.spotify-link {
    gap: 5px;
    display: flex;
    align-items: center;
    color: #1DB954;
    font-size: 14px;
    text-decoration: none;
    font-weight: bold;
}

.spotify-link:hover {
    text-decoration: underline;
}

.spotify-logo {
    width: 16px;
    /* margin-left: 10px; */
    /* height: 16px; */
    /* margin-right: 5px; */
}

.no-songs{
    display: flex;
    margin: 50px;
    justify-content: center;
}

.songs-container {
    display: flex;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.grid-item {
    width: 15%;
    margin: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grid-item .name {
    font-weight: bold;
}

.grid-item .artist {
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grid-item .date {
    font-size: 14px;
    color: #888;
}

.grid-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.loader {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: none;
    margin:15px auto;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    box-sizing: border-box;
    animation: animloader 1s linear infinite alternate;
    z-index: 999;
}

#songs-container.loading {
    opacity: 0.5;
    pointer-events: none;
}

.songs{
    margin: 40px 0;
}

.sort-buttons{
    display: flex;
    gap: 50px;
    justify-content: center;
}

#time-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 25px 0;
}

.centered-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.save-all-to-playlist:hover {
    background-color: #0056b3;
}

.data-time-range, .sort, .save-all-to-playlist{
    background-color: #70e000;
    border-radius: 8px;
    border-style: none;
    box-sizing: border-box;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-block;
    font-family: "Haas Grot Text R Web", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    list-style: none;
    margin: 0;
    outline: none;
    padding: 10px 16px;
    position: relative;
    text-align: center;
    text-decoration: none;
    transition: color 100ms;
    vertical-align: baseline;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.data-time-range:hover,
.data-time-range:focus {
  background-color: #008000;
}

.buttons {
    text-align: center;
    margin: 30px 20px;
}

.cta-button {
    background-color: #1DB954;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: #1ED760;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3);
}

@keyframes animloader {
    0% {
      box-shadow: -38px -12px ,  -14px 0,  14px 0, 38px 0;
    }
    33% {
      box-shadow: -38px 0px, -14px -12px,  14px 0, 38px 0;
    }
    66% {
      box-shadow: -38px 0px , -14px 0, 14px -12px, 38px 0;
    }
    100% {
      box-shadow: -38px 0 , -14px 0, 14px 0 , 38px -12px;
    }
  }
  
@media screen and (max-width: 768px) {
    .navbar #logo-big {
        display: none;
    }
    .navbar #logo-small {
        display: block;
    }
    .tool-container {
        padding: 120px 0;
    }
    .nav-items {
        margin-right: 15px;
        padding-top: 0;
    }
    .nav-logo {
        margin-left: 15px;
    }
    .username {
        display: none;
    }
    .profile-image {
        margin-right: 0;
    }
    .user-logo {
        margin-left: 4px;
    }
    .navbar {
        padding: 25px 0 15px;
    }
    .grid-item {
        width: 35%
    }
    h3, h4 {
        margin: 10px 0
    }
    .dropdown > button {
        width: 50px;
        height: 50px;
        border-radius: 25px;
    }
    .dropdown > .content {
        height: 50px;
        padding: 0 5px;
    }
    .dropdown > .content::after {
        bottom: 0;
    }
    .dropdown > .menu {
        top: 100%;
        left: -20%;
        width: 240%;
        padding: 15px 0;
    }
    .dropdown > .menu > a {
        padding: 6px 15px;
        font-size: 14px;
    }
    .dropdown > .menu > a > span {
        font-size: 12px;
    }
    .save-all-to-playlist {
        left: 23%;
    }
    .data-time-range {
        height: 100%;
    }
    #time-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 10px;
    }
    h1 {
        margin: 150px 10px 0;
    }
    .sort-buttons {
        margin-top: 20px;
        margin: 10px;
        gap: 10px;
    }
    .centered-container {
        justify-content: inherit;
    }
}