
@media all and (min-width:0px) and (max-width: 1000px) {
  body.bg {
    padding: 0rem !important;
  }
  .login-card {
    max-width: 80vw;
    font-size: 32px !important;
  }
  .title
  {
    margin: 0px;
  }
  .input {
  width: 100%;
  padding: 5px;
  font-size: 32px;
  }
  .button
  {
    font-size: 32px;
  }
  .main-image-wrapper img
  {
    max-width: 80vw !important;
  }
  .king
  {
    max-width: 80vw !important;
    margin-bottom: 40px;
    margin-top:80px; 
  }
  .thumbnail-strip img
  {
    height: 200px !important;
  }
  .button.small
  {
    font-size: 24px;
  }
  #fullscreen-overlay span
  {
    font-size: 40px !important;
  }
}
body.bg {
  background: #840B55;
  background: linear-gradient(320deg,rgba(132, 11, 85, 0.7) 0%, rgba(179, 12, 115, 1) 100%), url('background.jpg') center center;
  background-size: cover;
  color: #fff;
  margin: 0;
  font-family: Cinzel;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
}

.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  width: 100%;
}
.login-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  width: 600px;
  max-width: 80vw;
  backdrop-filter: blur(10px);
  font-size: 16px;
}
.login-icon {
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  padding: 20px;
  margin-bottom: 10px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.input {
  width: 100%;
  padding: 0.6rem;
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.5rem;
  margin: 0.5rem 0;
}
.button {
  background: white;
  color: #6b21a8;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  margin-top: 1rem;
  cursor: pointer;
}
.button:hover {
  background: #ddd6fe;
}
.error-msg {
  color: #fca5a5;
  font-size: 0.9rem;
}
.logout-link {
  align-self: flex-end;
  margin-bottom: 1rem;
  margin-right: 1rem;
  text-decoration: none;
  color: white;
  font-size: 0.9rem;
  opacity: 0.8;
}
.focus-area {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 2rem;
  margin-bottom: 1rem;
}
.main-image-wrapper img {
  max-width: 50vw;
  max-height: 50vh;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  background: #fff;
}
.arrow {
  font-size: 2rem;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  color: white;
  transition: background 0.2s;
}
.arrow:hover {
  background: rgba(255,255,255,0.25);
}
.thumbnail-strip {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  padding: 0.5rem;
  max-width: 90vw;
  margin-bottom: 1rem;
}
.thumbnail-strip img {
  height: 70px;
  border-radius: 0.5rem;
  opacity: 0.7;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}
.thumbnail-strip img.selected,
.thumbnail-strip img:hover {
  opacity: 1;
  border-color: #c084fc;
}
.download-btn {
  margin-bottom: 1rem;
}
.empty-msg {
  color: white;
  text-align: center;
  margin-top: 2rem;
  font-size: 1.2rem;
}
.overlay-buttons {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 0.5rem;
}
.main-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.button.small {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.material-icons {
  font-size: 1rem;
}
#fullscreen-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
}
#fullscreen-overlay img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 1rem;
}
#fullscreen-overlay span {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}
.download-overlay {
  margin-top: 1rem;
  background: white;
  color: #6b21a8;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.fullscreen-hidden {
  display: none;
}
.king
  {
    max-width: 400px;
    margin-bottom: 40px;
  }

/* Custom scrollbar for WebKit (Chrome, Safari, Edge Chromium) */
.thumbnail-strip::-webkit-scrollbar {
  height: 12px;
}

.thumbnail-strip::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
  background-color: #ff009d;
  border-radius: 10px;
}

/* Optional for Firefox */
.thumbnail-strip {
  scrollbar-color: #ff009d rgba(0, 0, 0, 0.4);
  scrollbar-width: auto;
}