body {
  /*font-family: Arial, sans-serif;*/
  background-color: #1f1f1f;
  color: #e0e0e0;
  /*display: flex; */
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  padding: 0;
  font-family: "Courier Prime", monospace;
  font-weight: 400;
  font-style: normal;

  overflow-x: hidden;
  will-change: background-position;
}


.login-box h1 {
  margin-bottom: 20px;
  font-size: 22px;
  color: #ffffff;
}

.logoicon {
  height: 40px;
}

.login-box {
  margin-top: -10vh;
  background-color: #1f1f1f;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 325px;
  gap: 1rem;
}

.landingpage-box {
  background-color: #222;
  padding: 2rem;
  border-radius: 10px;
  /*box-shadow: 0 0 10px rgba(0,0,0,0.5);*/
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 4rem; /* Leave space for site title */
  margin: 2em;
  justify-content: center;
}

  .icon-button {
  background-color: #4CAF50;
      border-radius: 10px;
      padding: 1em ;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.75em;
      color: white;
      font-weight: bold;
      font-size: 1em;
      text-decoration: none;
      width: 150px;
      justify-content: center;
      transition: background-color 0.3s ease, transform 0.2s ease;
      user-select: none;
}

.icon-buttons {
      flex: 1;
      display: flex;
      width: 100%;
      flex-direction: row;
      gap: 2em;
      justify-content: center;
      align-items: center;
      }

.login-box form p {
  padding: 0;
  margin-block-start: 0;
  margin-block-end: 0;
}


.login-box input {
  width: 100%;
  padding: 0.5rem;
  margin: 0.3rem 0;
}

.login-box button {
  padding: 0.5rem;
  width: 100%;
  cursor: pointer;
}

.register-form {
  min-width: 350px
}

/* Inputs */
input[type="text"],
input[type="password"],input[type="token"] {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #444;
  background-color: #3a3a3a;
  color: #f0f0f0;
  border-radius: 5px;
  box-sizing: border-box;
}

/* Buttons */
button {
  width: 100%;
  padding: 10px;
  background-color: #0074d4;
  color: whitesmoke;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background-color: #45a049;
}

.error, .error-message {
  color: red;
}

.message {
  color: blue;
}

/* Small Text & Links */
.small-text {
  font-size: 14px;
  color: #ccc;
}

a {
  color: #4CAF50;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.dark-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* adjust darkness */
  z-index: 0;
}

.movie-card {
  position: relative;
  background-color: #1f1f1f;
  text-align: center;
  margin: 0;
  aspect-ratio: 27 / 40;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s;
}

.movie-card:hover {
  z-index: 10;
  transform: scale(1.03);
  outline: 3px solid white;
  outline-offset: 4px;
  border-radius: 1px;
}


.movie-card .poster {
  width: 100%;
  display: block;
  aspect-ratio: 27 / 40;
  object-fit: cover;
  transition: transform 0.3s ease;
}


.movie-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  color: rgb(255, 255, 255);
  padding: 10px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-align: start;
  font-size: smaller;
  pointer-events: none; /* prevents hover conflict */
  font-family: Arial, Helvetica, sans-serif;
}

.movie-card:hover .movie-card-info {
  opacity: 1;
  pointer-events: auto; /* allow interactions after hover */
}

.movie-card-info img {
  padding: 2.5%;
  width:95%;
  border-radius: 2%;
}

.movie-card-info p {
  margin: 0;
  padding: 0;
  font-size: smaller;
}


/* Headers */
h1 {
  text-align: center;
  font-size: 24px;
  color: #ffffff;
}

.page-wrapper {
  flex: 1; /* Take up remaining space between header and footer */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 100%;
  align-content: center;
  background-color: #0d1117;
}


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111111;
  color: #fff;
  padding: 0 1.5rem;
  min-height: 50px;
  position: relative;
  /*border-bottom:1px solid #ccc;*/
}

.nav-left, .nav-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.nav-link {
  color: #fff;
  text-decoration: none;
}

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

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-template-rows: masonry; /* 🔥 enables natural masonry stacking */
  gap: 1rem;
  padding: 1.5rem;
  margin: 0 auto;
  background: #111111;
  background: linear-gradient(180deg,rgba(17, 17, 17, 1) 0%, rgba(42, 42, 42, 1) 100%);
  align-items: start;
}

@media (max-width: 600px) {
  .library-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
  }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.overlay-content {
  background: white;
  padding: 2rem;
  max-width: 800px;
  width: 90%;
  display: flex;
  gap: 2rem;
  border-radius: 10px;
}

.overlay-poster {
  max-width: 250px;
  border-radius: 8px;
}

.overlay-info {
  flex: 1;
}

.info-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.watch-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #222;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  width: max-content;
}

.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  z-index: 10;
}

.container {
  align-self: center;
  padding-left: 20px;
  padding-right: 20px;
  min-height: 90vh;
}

.site-title {
  font-size: 50px;
  position: absolute;
  top: 2rem;
  text-align: center;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #aaa;
  background: #1a1a1a;
}

.account-container {
  display: flex;
  min-height: 80%;
  max-width: 1000px;
  margin: 2rem auto;
  background: #2a2a2a;
  padding: 2rem;
  border-radius: 8px;
  justify-content: space-around; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

h2 {
  margin-top: 0;
}

.account-field {
  margin-bottom: 1rem;
}

.label {
  font-weight: bold;
}

.overlay-content {
  color: #000;
}

.small-text {
  font-size: 0.8rem;
  text-align: center;
}

.poster-wall {
  overflow: hidden;
  pointer-events: none;
}

.scroll-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: scrollHero 120s linear infinite;
}

.slide {
  flex: 0 0 auto;
  width: 300px;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 27 / 40;
}

@keyframes scrollHero {
      0% {
        transform: translateX(0);
      }
      100% {
        transform: translateX(-50%);
      }
}


.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background-color: #2a2a2a;
  color: #fff;
  flex-wrap: nowrap;
}

.spacer {
  flex: 1; /* takes all left space */
}

.search-bar {
  flex: 1 3 400px; /* fixed-ish width but can shrink */
  max-width: 600px;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
  border: none;
  background: #2c2c2c;
  color: white;
  text-align: center;
}

.search-input {
  outline: none;          /* remove browser blue outline */
  width: 35vw;
}

.filter-menu {
  flex-shrink: 0;
}

.filter-menu summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  background: #333;
  color: white;
  border-radius: 8px;
  font-size: 1rem;
  white-space: nowrap;
}

/* Filter options styles remain the same as before */
.filter-options {
  margin-top: 1rem;
  padding: 1rem;
  background: #2a2a2a;
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.filter-options label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}

.filter-options input,
.filter-options select {
  margin-top: 0.25rem;
  padding: 0.5rem;
  border-radius: 6px;
  border: none;
  background: #444;
  color: white;
}

.filter-actions {
  grid-column: span 2;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.apply {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.reset {
  background-color: #888;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

footer {
  z-index: 10
}

.switch-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1em;
}

.switch-label {
  font-weight: bold;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #4caf50;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.courier-prime-regular {
  font-family: "Courier Prime", monospace;
  font-weight: 400;
  font-style: normal;
}

.courier-prime-bold {
  font-family: "Courier Prime", monospace;
  font-weight: 700;
  font-style: normal;
}

.courier-prime-regular-italic {
  font-family: "Courier Prime", monospace;
  font-weight: 400;
  font-style: italic;
}

.courier-prime-bold-italic {
  font-family: "Courier Prime", monospace;
  font-weight: 700;
  font-style: italic;
}

.dropdown-menu {
  display: none;
  position: fixed;
  background: #222;
  padding: 10px;
  z-index: 10;
  color: #ccc;
  border: #4caf50;
  flex-direction: column;
}

.dropdown-menu.show {
  display: flex;
}


#poster-wall-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;  /* limit viewport */
  overflow: hidden;
  z-index: 0;
}

.poster-wall {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-height: 200vh;   /* double viewport height */
  animation: scroll-up 120s linear infinite;
}

@keyframes scroll-up {
  0% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -50%); /* scroll up half of its total height */
  }
  50.0001% {
    transform: translate(-50%, 0);   /* instant reset */
  }
  100% {
    transform: translate(-50%, -50%);
  }
}

.account-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 20px;
  justify-content: center; /* optional, centers on wrap */
}

@media (max-width: 768px) {
  .account-container {
    flex-direction: column;
    align-items: center; /* optional */
    gap: 20px;
  }
}

.payment-container {
    max-width: 600px;
    width: 400px;
}