/********** Template CSS **********/  
:root {
    --primary: #1DB954;
    --secondary: #191C24;
    --light: #6C7293;
    --dark: #000000;
    --hover-glow-color: rgba(29, 185, 84, 0.4);
    --hover-glow-color-intense: rgba(29, 185, 84, 0.8);
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}

/* Button Hover Effect */
.btn:hover {
    background-color: var(--primary);
    color: #fff;
    transform: scale(1.05);
    transition: transform 0.3s ease, background-color 0.3s ease;
}


/*** Layout ***/
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    height: 100vh;
    overflow-y: scroll;
    background: var(--secondary);
    transition: 0.5s;
    z-index: 999;
}

.content {
    margin-left: 250px;
    min-height: 100vh;
    background: var(--dark);
    transition: 0.5s;
}

@media (min-width: 992px) {
    .sidebar {
        margin-left: 0;
    }

    .sidebar.open {
        margin-left: -250px;
    }

    .content {
        width: calc(100% - 250px);
    }

    .content.open {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        margin-left: -250px;
    }

    .sidebar.open {
        margin-left: 0;
    }

    .content {
        width: 100%;
        margin-left: 0;
    }
}


/*** Navbar ***/
.sidebar .navbar .navbar-nav .nav-link {
    padding: 7px 20px;
    color: var(--light);
    font-weight: 500;
    border-left: 3px solid var(--secondary);
    border-radius: 0 30px 30px 0;
    outline: none;
}

.sidebar .navbar .navbar-nav .nav-link:hover,
.sidebar .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
    background: var(--dark);
    border-color: var(--primary);
}

.sidebar .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border-radius: 40px;
}

.sidebar .navbar .navbar-nav .nav-link:hover i,
.sidebar .navbar .navbar-nav .nav-link.active i {
    background: var(--secondary);
}

.sidebar .navbar .dropdown-toggle::after {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.sidebar .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.sidebar .navbar .dropdown-item {
    padding-left: 25px;
    border-radius: 0 30px 30px 0;
    color: var(--light);
}

.sidebar .navbar .dropdown-item:hover,
.sidebar .navbar .dropdown-item.active {
    background: var(--dark);
}

.content .navbar .navbar-nav .nav-link {
    margin-left: 25px;
    padding: 12px 0;
    color: var(--light);
    outline: none;
}

.content .navbar .navbar-nav .nav-link:hover,
.content .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.content .navbar .sidebar-toggler,
.content .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border-radius: 40px;
}

.content .navbar .dropdown-item {
    color: var(--light);
}

.content .navbar .dropdown-item:hover,
.content .navbar .dropdown-item.active {
    background: var(--dark);
}

.content .navbar .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.content .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

@media (max-width: 575.98px) {
    .content .navbar .navbar-nav .nav-link {
        margin-left: 15px;
    }
}


/*** Date Picker ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Testimonial ***/
.progress .progress-bar {
    width: 0px;
    transition: 2s;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 5px solid var(--primary);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--dark);
    border-color: var(--primary);
}


@font-face {
    font-family: 'SpotifyFont'; /*a name to be used later*/
    src: url('fonts/GothamBold.ttf'); /*URL to font*/  
}

@font-face {
    font-family: 'Zebulon'; /*a name to be used later*/
    src: url('Zebulon.otf'); /*URL to font*/    
}

body h1 {
  font-size: 5vw;
}


@media screen and (min-width: 800px) {
    
  #mainTitle {
     font-size: 50px;
  } 
  #meNameTitle {
     font-size: 15px !important;
      margin-top: 65px !important;
  }
    
}



@media screen and (min-width: 1200px) {
    
  #mainTitle {
     font-size: 50px;
  }    
  #meNameTitle {
     font-size: 15px !important;
      margin-top: 65px !important;
  }
    
}


.ml1 {
  font-weight: 900;
  font-size:100%;
}

.ml1 .letter {
  display: inline-block;
  line-height: 1em;
}

.ml1 .text-wrapper {
  position: relative;
  display: inline-block;
  padding-top: 1em;
  padding-right: 0.05em;
  padding-bottom: 1em;
}

.ml1 .line {
  opacity: 0;
  position: absolute;
  left: 0;
  height: 3px;
  width: 100%;
  background-color: #1DB954;
  transform-origin: 0 0;
}

.ml1 .line1 { top: 0; }
.ml1 .line2 { bottom: 0; }







/* Style the button that is used to open and close the collapsible content */
.collapsible {
  background-color: transparent;
  cursor: pointer;
  width: 100%;
  border: none;
  outline: none;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .collapsible:hover {
  background-color: transparent;
}

/* Style the collapsible content. Note: hidden by default */
#recentlyPlayedSongsList {
  display: none;
  overflow: hidden;
  background-color: transparent;
}



/* Style the button that is used to open and close the collapsible content */
.collapsible2 {
  background-color: transparent;
  cursor: default;
  width: 100%;
  border: none;
  outline: none;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .collapsible2:hover {
  background-color: transparent;
}

/* Style for the top songs list */
#topSongsList {
  display: block !important;
  overflow: hidden;
  background-color: transparent;
  min-height: 200px;
  transition: max-height 0.5s ease-in-out;
  padding: 10px 0;  /* Add some padding */
  margin-left: -1rem !important;
}

#topSongsList.expanded {
  max-height: 5000px;
}

/* Update the song entry styles */
#topSongsList .song-entry {
  display: flex;
  align-items: center;
  padding: 8px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  gap: 12px;
  margin-bottom: 8px;
  border: 1px solid transparent;
}

#topSongsList .song-entry:hover {
  background-color: rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
  border: 1px solid var(--hover-glow-color);
  box-shadow: 0 4px 12px var(--hover-glow-color);
}

#topSongsList img {
  height: 45px;
  width: 45px;
  border-radius: 5px;
  flex-shrink: 0;
}

#topSongsList .song-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
  padding-right: 20px;
}

#topSongsList p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

#topSongsList .song-name {
  font-size: 16px;
  color: white;
}

#topSongsList .artist-name {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Style for the expand button */
.expand-songs-btn {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background-color: transparent;
  border: 1px solid #1DB954;
  color: #1DB954;
  cursor: pointer;
  font-family: 'SpotifyFont', 'Helvetica';
  transition: all 0.3s ease;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.expand-songs-btn:hover {
  background-color: rgba(29, 185, 84, 0.1);
  box-shadow: 0 0 10px rgba(29, 185, 84, 0.3);
}

/* Hide button when list is expanded */
.expand-songs-btn.hidden {
  display: none;
}

/* Style the button that is used to open and close the collapsible content */
.collapsible3 {
  background-color: transparent;
  cursor: pointer;
  width: 100%;
  border: none;
  outline: none;
}

/* Style the collapsible content. Note: hidden by default */
#topArtistsList {
  display: block !important;
  overflow: hidden;
  background-color: transparent;
  min-height: 200px;
  transition: max-height 0.5s ease-in-out;
  padding: 10px 0;
  width: 100%;
}

#topArtistsList.expanded {
  max-height: 5000px;
}

/* Artist entry styles */
#topArtistsList .artist-entry {
  display: flex;
  align-items: center;
  padding: 8px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  transition: background-color 0.2s;
  width: 100%;
  box-sizing: border-box;
  gap: 12px;
  margin-bottom: 8px;
}

#topArtistsList .artist-entry:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

#topArtistsList img {
  height: 45px;
  width: 45px;
  border-radius: 5px;
  flex-shrink: 0;
}

#topArtistsList .artist-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
  padding-right: 20px;
}

#topArtistsList p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

#topArtistsList .artist-name {
  font-size: 16px;
  color: white;
}

#topArtistsList .artist-genres {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Style for the expand button */
.expand-artists-btn {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background-color: transparent;
  border: 1px solid #1DB954;
  color: #1DB954;
  cursor: pointer;
  font-family: 'SpotifyFont', 'Helvetica';
  transition: all 0.3s ease;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.expand-artists-btn:hover {
  background-color: rgba(29, 185, 84, 0.1);
  box-shadow: 0 0 10px rgba(29, 185, 84, 0.3);
}

/* Hide button when list is expanded */
.expand-artists-btn.hidden {
  display: none;
}

.center {
    position: relative !important;
    left: 50%;
    transform: translate(-50%, 0%);
  }





body{
    font-family: 'SpotifyFont', 'Helvetica';
    margin-top: -100vh;

-webkit-user-select: none;  
-ms-user-select: none;
user-select: none;

}


#starz{
   min-height: 100vh;
   background: radial-gradient(ellipse at bottom, rgba(255,255,255,0.25) 0%, rgba(0,0,0,1) 100%);
    position: sticky;
    top: 0;
    height:100%;
    margin: 0px;
}

.star{
   position: absolute;
   background: white;
   border-radius: 50px;
   animation: move;
   animation-iteration-count: infinite;
   animation-timing-function: linear;
}

.type-1{
   width: 1px;
   height: 1px;
}
.type-2{
   width: 2px;
   height: 2px;
}
.type-3{
   width: 3px;
   height: 3px;
}
.type-4{
   width: 10px;
   height: 10px;
}

@keyframes move {
   0%{ transform: translateY(0); }
   100%{ transform: translateY(-1000px); }
}


.rounded{
     background-color: rgba(25, 28, 36, 0.8) !important;
}


.ImageButton {
	background:linear-gradient(to bottom, #44c767 5%, #5cbf2a 100%);
	background-color:#44c767;
    opacity: 0.9;
	border-radius:28px;
	border:1px solid #18ab29;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:'Sans-Serif';
	font-size:17px;
	font-weight:bold;
	padding:8px 15px;
	text-decoration:none;
	text-shadow:0px 1px 0px #2f6627;
}
.ImageButton:hover {
	background:linear-gradient(to bottom, #5cbf2a 5%, #44c767 100%);
	background-color:#5cbf2a;
    opacity: 1;
}
.ImageButton:active {
	position:relative;
	top:1px;
}


/*********** Baseline, reset styles ***********/
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  width: 49.5rem;
  padding: 10px 0;
}

/* Removes default focus */
input[type="range"]:focus {
  outline: none;
}

/******** Chrome, Safari, Opera and Edge Chromium styles ********/
/* slider track */
input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, 
    #663399 0%,    /* Purple/unique */
    #1DB954 50%,   /* Spotify green/middle */
    #90ee90 100%   /* Light green/popular */
  );
  border-radius: 4.5rem;
  height: 0.5rem;
  margin: 10px 0;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

/* slider thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -15px;
  background: radial-gradient(circle at center,
    #fff 0%,
    #1DB954 100%
  );
  border-radius: 0.55rem;
  height: 2.5rem;
  width: 1rem;
  cursor: grab;
  box-shadow: 0 0 10px rgba(29, 185, 84, 0.5);
  transition: all 0.2s ease;
}

/*********** Firefox styles ***********/
/* slider track */
input[type="range"]::-moz-range-track {
  background: linear-gradient(90deg, 
    #663399 0%,    /* Purple/unique */
    #1DB954 50%,   /* Spotify green/middle */
    #90ee90 100%   /* Light green/popular */
  );
  border-radius: 4.5rem;
  height: 0.5rem;
  margin: 10px 0;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

/* slider thumb */
input[type="range"]::-moz-range-thumb {
  background: radial-gradient(circle at center,
    #fff 0%,
    #1DB954 100%
  );
  border: none;
  border-radius: 0.55rem;
  height: 2.5rem;
  width: 1rem;
  cursor: grab;
  box-shadow: 0 0 10px rgba(29, 185, 84, 0.5);
  transition: all 0.2s ease;
}

/* Active states */
input[type="range"]::-webkit-slider-thumb:active,
input[type="range"]::-webkit-slider-thumb:hover {
  cursor: grabbing;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(29, 185, 84, 0.7);
}

input[type="range"]::-moz-range-thumb:active,
input[type="range"]::-moz-range-thumb:hover {
  cursor: grabbing;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(29, 185, 84, 0.7);
}

/* Add styles for popularity number container */
.slidecontainer {
  position: relative;
  margin-bottom: 2.5rem; /* Increased margin to accommodate the number */
  text-align: center; /* Center the number */
}

/* Style for the popularity number */
.slidecontainer + p {
  position: absolute;
  width: 100%;
  text-align: center;
  margin-top: 0.5rem !important;
  left: 50%;
  transform: translateX(-50%);
}

/* Adjust the labels position */
.slidecontainer::before {
  content: 'UNIQUE';
  position: absolute;
  left: 0;
  bottom: -35px; /* Moved down to accommodate centered number */
  font-size: 0.8rem;
  color: #663399;
  text-shadow: 0 0 5px rgba(102, 51, 153, 0.5);
}

.slidecontainer::after {
  content: 'POPULAR';
  position: absolute;
  right: 0;
  bottom: -35px; /* Moved down to accommodate centered number */
  font-size: 0.8rem;
  color: #90ee90;
  text-shadow: 0 0 5px rgba(29, 185, 84, 0.5);
}

.pulsate {
    -webkit-animation: pulsate 1.5s ease-out;
    -webkit-animation-iteration-count: infinite; 
    opacity: 0.4;
}
@-webkit-keyframes pulsate {
    0% { 
        opacity: 0.4;
    }
    50% { 
        opacity: 1.0;
    }
    100% { 
        opacity: 0.4;
    }
}



.rotate {
  animation: rotation 120s infinite linear;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}





/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  backdrop-filter: blur(5px);
}

/* Modal Content/Box */
.modal-content {
  background-color: var(--secondary);
  color: white;
  margin: 15% auto;
  padding: 30px;
  border: 1px solid var(--primary);
  border-radius: 15px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 0 20px rgba(29, 185, 84, 0.3);
  animation: modalFadeIn 0.3s ease-out;
  text-shadow: none;
  font-family: 'SpotifyFont', 'Helvetica';
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* The Close Button */
.close {
  color: var(--light);
  float: right;
  font-size: 28px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.close:hover,
.close:focus {
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

/* Modal Content Styling */
.modal-content h2,
.modal-content h3,
.modal-content h4 {
  font-family: 'SpotifyFont', 'Helvetica';
}

.modal-content p,
.modal-content li,
.modal-content span {
  font-family: 'SpotifyFont', 'Helvetica';
  text-shadow: none;
}

.modal-content ul {
  list-style-type: none;
  padding-left: 0; /* Remove default padding */
  margin-bottom: 15px;
}

.modal-content li {
  color: white;
  margin: 12px 0;
  padding: 8px 12px; /* Add padding around list items */
  background: rgba(255, 255, 255, 0.05); /* Subtle background */
  border-radius: 8px;
  border-left: 3px solid var(--primary); /* Green accent line */
  transition: all 0.2s ease;
}

.modal-content li:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.permission-reason {
  display: block;
  color: var(--primary);
  font-size: 0.9em;
  margin-top: 5px;
  opacity: 0.8;
  font-style: italic;
  padding-left: 0; /* Remove indent */
}

.modal-content h3 {
  margin-top: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(29, 185, 84, 0.3);
  color: var(--primary); /* Make headers Spotify green */
}

/* Remove bullet points styling */
.modal-content li:before {
  display: none; /* Remove bullet points */
}

/* Permission Button Styling */
#permissionsBtn {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 4.8px 9px;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'SpotifyFont', 'Helvetica';
  font-size: 0.8em;
  transition: all 0.3s ease;
  transform: scale(0.6);
}

#permissionsBtn:hover {
  background-color: rgba(29, 185, 84, 0.1);
  box-shadow: 0 0 6px rgba(29, 185, 84, 0.3);
  transform: scale(0.6) translateY(-2px);
}

.letters{
    font-family: 'Helvetica'; 
}


.innerglow{
    -moz-box-shadow:inset 0 0 11px black;
    -webkit-box-shadow:inset 0 0 25px black;
    box-shadow:inset 0 0 25px black;
    border-radius: 25px !important;
    transition: all 0.3s ease;
}

.innerglow:hover {
    box-shadow: inset 0 0 25px black, 
                0 0 20px var(--hover-glow-color);
    transform: translateY(-2px);
}

.bg-secondary {
    background-color: transparent !important;
}

/* Ensure the glow effect works with the existing border styles */
.bg-secondary.innerglow {
    border: 2px solid #147536;
    transition: all 0.3s ease;
}

.bg-secondary.innerglow:hover {
    border-color: var(--hover-glow-color-intense);
}


.shimmer {
  color: grey;
  display:inline-block;
  -webkit-mask:linear-gradient(-60deg,#000 30%,#0005,#000 70%) right/300% 100%;
  background-repeat: no-repeat;
  animation: shimmer 5s infinite;
  font-size: 50px;
  max-width:200px;
}

@keyframes shimmer {
  100% {-webkit-mask-position:left}
}


.entirePage{
 max-width:700px;
    width: 100%;
    height: 100%;
}


.header_beforeLogin{
    background-color: transparent !important;
}
.header_afterLogin{
    background: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%) !important;
}



.dot {
    height: 10px;
    width: 10px;
    border-radius: 100%;
    background: grey;
    position: absolute;
    margin: 10px;
    box-shadow: inset 0.2em 0.2em 0.2em 0 rgba(255,255,255,0.25), inset -0.2em -0.2em 0.2em 0 rgba(0,0,0,0.5);
    opacity: 0.75;
}

.lefttop {
    top: 0;
    left: 0;
}

.leftbottom {
    bottom: 0;
    left: 0;
}

.righttop {
    right: 0;
    top: 0;
}

.rightbottom {
    right: 0;
    bottom: 0;
}








.planet-container {
    border-radius: 50%;
    box-shadow: 5px -3px 10px 3px #5e90f1;
   height: 300px;
    overflow: hidden;
    position: absolute;
    width: 300px;
    z-index: 1;
    border-color: black !important;
}
.night {
    animation: rotate-night 80s linear infinite;
    background-image: url(https://www.solarsystemscope.com/textures/download/2k_earth_nightmap.jpg);
    background-size: 200%;
    height: 300px;
    position: absolute;
    width: 300px;
    z-index: 2;
    border-color: black !important;
}
.day {
    animation: rotate-day 80s linear infinite;
    background-image: url(https://www.solarsystemscope.com/textures/download/2k_earth_daymap.jpg);
    background-size: 200%;
    border-left: solid 1px black;
    border-radius: 50%;
    box-shadow: 5px 0 20px 10px #040615 inset; 
    height: 300px;
    margin-left: 40%;
    position: absolute;
    width: 300px;
    z-index: 3;
    border-color: black !important;
}
.clouds {
    animation: rotate-day 50s linear infinite, spin-clouds 100s ease infinite;
    background-image: url(https://www.solarsystemscope.com/textures/download/2k_earth_clouds.jpg);
    background-size: 200%;
    border-radius: 50%;    
    box-shadow: 5px 0 20px 10px #040615 inset, -9px 0px 20px 10px #5e90f1 inset;
    height: 300px;
    margin-left: 35%;
    opacity: 0.45;
    position: absolute;
    width: 300px;
    z-index: 4;
}
.inner-shadow {
    background: transparent;
    border-radius: 50%;
    box-shadow: -5px 0 10px 1px #152b57 inset, 5px 0 10px 1px #040615 inset;
    height: 300px;
    margin-left: 0;
    position: absolute;
    width: 300px;
    z-index: 5;
    border-color: black !important;
}

@keyframes rotate-day {
    0% { background-position: 120% 0; }
    100% { background-position: -80% 0; }
}
@keyframes rotate-night {
    0% { background-position: calc(120% + 120px) 0; }
    100% { background-position: calc(-80% + 120px) 0; }
}
@keyframes spin-clouds {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(20deg); }
    100% { transform: rotate(0deg); }
}








:root {
	--planet-size: 32vw;
	--planet-spin-period: 25s;
	--planet-night-cycle-period: 40s;

	--planet-orbit-angle: -25deg;

	--planet-angle: 0deg;
}

* {
  box-sizing: border-box;
}

.layout {
  height: 100%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}


@property --planet-angle {
	syntax: '<angle>';
	initial-value: 0deg;
	inherits: false;
}

.planet {
	display: block;
	width: var(--planet-size);
	height: var(--planet-size);
	border-radius: 100%;
    max-width: 290px;
    max-height: 290px;
	position: relative;
    box-shadow: 5px -3px 10px 3px #5e90f1;
}

.planet__day,
.planet__night {
	position: absolute;
	top: 50%;
	right: 50%;
	transform: translate(50%, -50%) rotate(var(--planet-orbit-angle));
}


@keyframes planetPreviewSpin {
	from {
		background-position: 100% 50%;
	}
	to {
		background-position: -100% 50%;
	}
}

.planet__day {
	width: calc(100% - 2px);
	height: calc(100% - 2px);

	border-radius: 100%;
	background-image: url(http://www.shadedrelief.com/natural3/images/earth_no_mts.jpg);

	background-repeat: repeat;
	background-size: cover;
	background-position: 200% 50%;

	animation: var(--planet-spin-period) planetPreviewSpin linear infinite;
}


.planet__night {
	width: 100%;
	height: 100%;

	pointer-events: none;
}

.planet__spinner {
	transform-origin: 50% 50%;
	transform: rotateY(var(--planet-angle));
}


@keyframes planetPreviewRotateDay {
	0% {
		--planet-angle: 0deg;
		opacity: 0;
	}
	24.99% {
		opacity: 0;
	}
	25% {
		opacity: 1;
	}
	74.99% {
		opacity: 1;
	}
	75% {
		opacity: 0;
	}
	100% {
		--planet-angle: 360deg;
		opacity: 0;
	}
}
.planet__spinner--day {
	animation: var(--planet-night-cycle-period) planetPreviewRotateDay linear infinite;
}


@keyframes planetPreviewRotateNight {
	0% {
		--planet-angle: 0deg;
		opacity: 1
	}
	24.99% {
		opacity: 1;
	}
	25% {
		opacity: 0;
	}
	74.99% {
		opacity: 0;
	}
	75% {
		opacity: 1;
	}
	100% {
		--planet-angle: 360deg;
		opacity: 1;
	}
}
.planet__spinner--night {
	animation: var(--planet-night-cycle-period) planetPreviewRotateNight linear infinite;
}


@keyframes planetPreviewFlip {
	0% {
		transform: translateX(50%);
	}
	49.99% {
		transform: translateX(50%);
	}
	50% {
		transform: translateX(0%);
	}
	100% {
		transform: translateX(0%);
	}
}
.planet__flipper {
	animation: var(--planet-night-cycle-period) planetPreviewFlip linear infinite;
}


@keyframes planetPreviewSpinSvg {
	from {
		transform: translateX(-100%);
	}
	to {
		transform: translateX(100%);
	}
}
.planet__night-image {
	animation: var(--planet-spin-period) planetPreviewSpinSvg linear infinite;
}

/* Image Hover Effect */
img:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Grid Layout for Main Content */
.container-fluid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Create 3 equal columns */
    gap: 20px; /* Space between the boxes */
    padding: 20px;
}

/* Flexbox for Navbar */
.navbar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Responsive adjustments for the word cloud */
#genreCloud {
    width: 100%;
    max-width: 600px; /* Adjust as needed */
    margin: 0 auto;
    padding: 10px;
}

@media (max-width: 768px) {
    #genreCloud {
        max-width: 90%; /* Adjust as needed */
    }
}

@media (max-width: 480px) {
    #genreCloud {
        max-width: 100%; /* Full width on very small screens */
    }
}

.planet-container:hover {
    box-shadow: 5px -3px 20px 8px var(--hover-glow-color-intense),
                inset 0 0 15px 5px var(--hover-glow-color);
}

/* Add these new styles */
.reverse-rotation .night {
    animation: rotate-night 80s linear infinite reverse;
}

.reverse-rotation .day {
    animation: rotate-day 80s linear infinite reverse;
}

.reverse-rotation .clouds {
    animation: rotate-day 50s linear infinite reverse, spin-clouds 100s ease infinite reverse;
}

/* Add transition for smoother animation changes */
.night, .day, .clouds {
    transition: animation-direction 0.3s ease;
    cursor: pointer;
}

#topSongsList p {
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 60px); /* Adjust max-width to fill more space */
}

.permission-reason {
  display: block;
  color: var(--primary);
  font-size: 0.9em;
  margin-top: 2px;
  opacity: 0.8;
  font-style: italic;
}

.modal-content ul li {
  margin-bottom: 15px;
  color: white;
}

.modal-content h3 {
  margin-top: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(29, 185, 84, 0.3);
}

.module {
  margin: 0px !important;
  margin-bottom: 20px !important;
}

/* Hide scrollbars but keep scrolling functionality */
* {
    -ms-overflow-style: none;  /* Internet Explorer and Edge */
    scrollbar-width: none;     /* Firefox */
}

/* Webkit browsers like Chrome, Safari */
*::-webkit-scrollbar {
    display: none;
}

/* Ensure content still scrolls */
body {
    overflow-y: scroll;
    overflow-x: hidden;
}

.sidebar {
    overflow-y: scroll;
}

#popularityHeatmap {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 10px;
    background-color: rgba(0,0,0,0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.popularity-cell {
    aspect-ratio: 1/1;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.popularity-heatmap-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.popularity-heatmap-legend div {
    flex: 1;
    text-align: center;
    color: white;
    padding: 5px;
    font-size: 0.7em;
    opacity: 0.8;
}

/* Add these styles for the clickable album art */
#topSongsList .album-link {
    position: relative;
    text-decoration: none;
    transition: transform 0.2s ease;
    display: block;
}

#topSongsList .album-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512" fill="%231DB954"><path d="M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8zm100.7 364.9c-4.2 0-6.8-1.3-10.7-3.6-62.4-37.6-135-39.2-206.7-24.5-3.9 1-9 2.6-11.9 2.6-9.7 0-15.8-7.7-15.8-15.8 0-10.3 6.1-15.2 13.6-16.8 81.9-18.1 165.6-16.5 237 26.2 6.1 3.9 9.7 7.4 9.7 16.5s-7.1 15.4-15.2 15.4zm26.9-65.6c-5.2 0-8.7-2.3-12.3-4.2-62.5-37-155.7-51.9-238.6-29.4-4.8 1.3-7.4 2.6-11.9 2.6-10.7 0-19.4-8.7-19.4-19.4s5.2-17.8 15.5-20.7c27.8-7.8 56.2-13.6 97.8-13.6 64.9 0 127.6 16.1 177 45.5 8.1 4.8 11.3 11 11.3 19.7-.1 10.8-8.5 19.5-19.4 19.5zm31-76.2c-5.2 0-8.4-1.3-12.9-3.9-71.2-42.5-198.5-52.7-280.9-29.7-3.6 1-8.1 2.6-12.9 2.6-13.2 0-23.3-10.3-23.3-23.6 0-13.6 8.4-21.3 17.4-23.9 35.2-10.3 74.6-15.2 117.5-15.2 73 0 149.5 15.2 205.4 47.8 7.8 4.5 12.9 10.7 12.9 22.6 0 13.6-11 23.3-23.2 23.3z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#topSongsList .album-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#topSongsList .album-link:hover::after,
#topSongsList .album-link:hover::before {
    opacity: 1;
}

#topSongsList .album-link:hover {
    transform: scale(1.1);
}

#topSongsList .album-link:active {
    transform: scale(0.95);
}