body {
  background-color: black;
  font-family: "googlesans";
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
}

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  z-index: 999;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.65) 25%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.15) 80%,
    transparent 100%
  );
  box-sizing: border-box;

  display: flex;
  justify-content: end;
  align-items: start;
  padding: 70px 70px;
}

.nav-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  transition: all 0.3s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  cursor: pointer;
}

.nav-icon {
  height: 30px;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tooltip {
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  opacity: 0;
  transition: 0.25s ease;
  pointer-events: none;
  color: black;
  background: white;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 15px;
}

.nav-btn:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.logo {
  height: 90px;
  position: absolute;
  left: 20px;
  top: 30px;
}

.nav-txt {
  font-weight: 900;
  color: #6699ff;
  position: absolute;
  font-size: 20px;
  left: 110px;
  top: 40px;
  letter-spacing: 1px;
}

.slider-section {
  margin-top: 170px;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.slider-container {
  position: relative;
  isolation: isolate;
}

.slider {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  border-radius: 20px;
}

.slider-glow {
  position: absolute;
  top: 30px;
  left: 40px;
  width: calc(100% - 80px);
  height: calc(100% - 20px);
  object-fit: cover;
  filter: blur(100px) saturate(1.8);
  opacity: 0.8;
  transition: opacity 1s ease;
  z-index: -1;
  pointer-events: none;
}

.slider-glow.fade-out {
  opacity: 0;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  position: relative;
  z-index: 1;
}

.slider-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pack-glassbox {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background-color: white;
  border-radius: 10px;
  height: 65px;
  width: auto;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pack-glassbox button {
  height: 45px;
  width: 45px;
  margin-right: 0px;
  background-color: black;
  border: none;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 5px;
  transition: all 0.3s ease;
}

.pack-glassbox button:hover {
  cursor: pointer;
  width: 60px;
}

.pack-glassbox button img {
  height: 25px;
}

.right-btn {
  margin-right: 10px !important;
}

.pack-name {
  font-size: 18px;
  color: black;
  transition: all 0.3s ease;
  font-weight: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-right: 10px;
}

.pack-name img {
  filter: invert(1);
  height: 25px;
  width: 25px;
  margin-left: 5px;
}

.highres-container {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
  background-color: white;
  height: 32px;
  width: 32px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.highres-container img {
  filter: invert(1);
  height: 25px;
}

.image-selection-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.image-selection-overlay[hidden] {
  display: none !important;
}

.image-selection-modal {
  width: 850px;
  max-width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 24px;
  border-radius: 20px;
  background: black;
  color: white;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 4);
  font-family: "googlesans", sans-serif;
}

.image-selection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.image-selection-header h2 {
  margin: 0;
  color: white;
  font-size: 24px;
  font-weight: 100;
}

.image-selection-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.image-selection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.image-selection-actions button {
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.image-selection-actions button {
  background: white;
  color: black;
  transition: all 0.3s ease;
}

.image-selection-actions button:hover {
  background: black;
  color: white;
}

.image-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 14px;
}

.image-selection-item {
  min-width: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #242424;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    opacity 0.2s ease;
  box-sizing: border-box;
}

.image-selection-item.selected {
  border-color: #69a9ff;
  opacity: 1;
}

.image-selection-item:not(.selected) {
  opacity: 0.7;
}

.image-selection-item > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-selection-item input {
  display: none !important;
}

.image-selection-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.selection-count {
  color: white;
  font-size: 14px;
}

.image-selection-download {
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 5px;
  height: 45px;
  width: 45px;
  transition: all 0.3s ease;
}

.image-selection-download:hover {
  cursor: pointer;
  width: 60px;
}

.image-selection-download:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.download-selection-btn {
  filter: invert(1);
}

@media (max-width: 768px) {
  .image-selection-overlay {
    padding: 12px;
  }

  .image-selection-modal {
    padding: 16px;
    max-height: 90vh;
  }

  .image-selection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .nav-bar {
    height: 100px;
    padding: 20px 15px;
    justify-content: flex-end;
  }

  .logo {
    height: 45px;
    left: 12px;
    top: 20px;
  }

  .nav-txt {
    font-size: 15px;
    left: 65px;
    top: 18px;
    letter-spacing: 0;
  }

  .nav-btn {
    font-size: 14px;
    padding: 5px;
  }

  .nav-icon {
    height: 23px;
  }

  .tooltip {
    display: none;
  }

  .slider-section {
    margin-top: 80px;
    padding-left: 10px;
    padding-right: 10px;
    gap: 10px;
  }

  .slider {
    height: 80vh;
  }

  .pack-glassbox {
    height: 50px;
    bottom: 10px;
    right: 10px;
  }

  .pack-glassbox img {
    height: 20px;
  }

  .highres-container {
    top: 10px;
    left: 10px;
  }

  .pack-name {
    font-size: 15px;
  }

  .pack-glassbox button {
    height: 40px;
    width: 40px;
  }
}
