
.container {
  padding: 0 20px;
  margin: 0 auto;
}

.navLogo {
  z-index: 60;
  vertical-align: middle;
  display: none;
}

#numberNav {
  height: 50px;
  overflow: hidden;
  width: 100vw;
}

#numberNav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style-type: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  background-color: #333;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  text-align: center;
}

#numberNav li {
  padding: 14px 16px;
}

#numberNav li a {
  display: inline-block;
  color: white;
  text-align: center;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.albumCoverBackground {
  margin-top: 70px;
  max-width: 1200px;
  height: 100%;
}

li {
  list-style-type: none;
}

.albumCoverList {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  height: 100%;
}

/* animation */

.albumCoverBackground ol li,
.albumCoverBackground li img {
  -webkit-transition: all 0.1s ease-in-out;
  -moz-transition: all 0.1s ease-in-out;
  -o-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
}

.albumCoverBackground ol li {
  position: relative;
  float: left;
  width: 150px;
  height: 150px;
  z-index: 0;
}

/* Ensure that hover image overlapped the others */

.albumCoverBackground ol li:hover {
  z-index: 5;
}

/* Image is position nicely under li */

.albumCoverBackground ol li img {
  position: absolute;
  left: 0;
  top: 0;
  width: 150px;
  height: 150px;
}

.albumCoverBackground ol li img:hover {
  width: 250px;
  height: 250px;
  margin-top: -150px;
  margin-left: -150px;
  top: 65%;
  left: 65%;
  visibility: visible;
  box-shadow: 30px 30px 25px rgba(0, 0, 0, 0.616);
}

/*-----------------------------------------------------*/

/*The Modal

/* The Modal (background) */

.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 101;
}

.modal-content {
  background-color: rgba(37, 37, 37, 0.966);
  margin: auto;
  padding: 20px;
  border: 3px solid #e6e6e6;
  width: 80%;
  height: 80%;
  box-shadow: 30px 30px 25px rgba(0, 0, 0, 0.616);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
    overflow: auto;

}

.modal_content_cover {
  display: flex;
  flex-direction: row;
  /* flex-wrap: wrap; */
}

.modalAlbumCover {
  border: 2px solid #e6e6e6;
  margin: 10px;
  box-shadow: 15px 15px 10px rgba(0, 0, 0, 0.507);
  max-width: 100%;
}

.infoContainer {
  margin-right: 0;
  display: block;
  padding: 20px;
  width: 50%;
}

.infoContainer h4 {
  font-size: 24px;
  margin: 10px;
  max-width: 400px;
}

.infoContainer h5 {
  margin: 10px;
  font-size: 18px;
}

.infoContainer h4,
.infoContainer h5,
#trackListing li {
  color: #e6e6e6;
}

#trackListing {
  overflow: auto;
}

.infoContainer h6 {
  color: #e6e6e6;
  font-size: 12px;
  margin: 35px 0 0 0;
  padding-bottom: 5px;
}

.infoContainer small {
  color: white;
  font-size: 14px;
}

#discogsLogo {
  display: inline-block;
  position: relative;
  background-color: rgb(163, 29, 36);
  padding: 10px;
  box-shadow: 5px 5px 5px rgba(24, 24, 24, 0.459);
  width: 90px;
}

#discogsLogo:hover {
  background-color: rgb(204, 33, 41);
}

/* The Close Button on modal*/

.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 10px;
  top: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
}

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


/*The Modal
/*-----------------------------------------------------*/

.loading-container {
  text-align: center;
  padding: 60px 20px;
}

.loading-text {
  color: white;
  font-size: 32px;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading-dots {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dot {
  width: 15px;
  height: 15px;
  margin: 0 5px;
  background-color: #333;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both; /* Apply animation */
}

/* Stagger the animation timing */
.dot:nth-child(1) {
  animation-delay: -0.32s;
}

.dot:nth-child(2) {
  animation-delay: -0.16s;
}

/* Define the bounce animation */
@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0); /* Start and end with zero scale (invisible) */
  }
  40% {
    transform: scale(1); /* Full scale (visible) at peak animation */
  }
}

@media screen and (max-width: 840px) {
  .infoContainer {
    padding: 10px;
  }
  .modal_content_cover {
    flex-wrap: wrap;
  }
  .modalAlbumCover {
    max-width: 90%;
    height: auto;
  }

  .infoContainer {
    width: 100%;
  }
}

/* Error Banner Styles */
.error-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease-out;
}

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

.error-content {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.error-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.error-text {
  flex: 1;
}

.error-text h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: white;
}

.error-text p {
  margin: 0;
  font-size: 16px;
  opacity: 0.95;
  color: white;
}

.error-retry {
  background: white;
  color: #667eea;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.error-retry:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.error-retry:active {
  transform: translateY(0);
}

/* Enhanced Mobile Improvements */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 5% auto;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal_content_cover {
    flex-direction: column;
  }
  
  .infoContainer {
    width: 100%;
  }
  
  .close {
    font-size: 40px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
  }
  
  #numberNav ul {
    flex-wrap: wrap;
    height: auto;
  }
  
  #numberNav li {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .albumCoverBackground ol li {
    width: 120px;
    height: 120px;
  }
  
  .albumCoverBackground ol li img {
    width: 120px;
    height: 120px;
  }
  
  .albumCoverBackground ol li img:hover {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .albumCoverBackground ol li {
    width: 100px;
    height: 100px;
  }
  
  .albumCoverBackground ol li img {
    width: 100px;
    height: 100px;
  }
  
  .albumCoverBackground ol li img:hover {
    width: 180px;
    height: 180px;
  }
  
  .error-content {
    flex-direction: column;
    text-align: center;
  }
  
  .error-icon {
    font-size: 36px;
  }
  
  #numberNav li {
    padding: 8px 10px;
    font-size: 12px;
  }
}
