body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: black;
  color: white;
}

header {
  background-color: turquoise;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 🔒 FORCE logo size on ALL devices */
.site-logo {
  height: 32px !important;
  max-height: 32px !important;
  width: auto !important;
  max-width: 120px !important;
  object-fit: contain;
  display: block;
}

@media (min-width: 992px) {
  .site-logo {
    height: 48px !important;
    max-height: 48px !important;
    max-width: 180px !important;
  }
}

.navbar {
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.navbar-brand {
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}

footer {
  background-color: turquoise;
  height: 80px;
  padding: 15px 30px;
  margin-top: 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  /* adjust as needed */
}

.center {
  flex: 1;
  text-align: center;
}

.center a {
  text-decoration: none;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  color: black;
}

.center a:hover {
  background-color: gray;
  color: white;
}

.right {
  display: flex;
  gap: 10px;
}

.right button {
  background-color: lightgray;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.right button:hover {
  background-color: gray;
}

main {
  display: flex;
  justify-content: center;

}

main div {
  width: 80%;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 1.5rem;
  margin: 20px 0;
  color: white;
  text-align: left;
}

.carousel {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 15px;
  will-change: transform;
}

.poster {
  width: 150px;
  height: 225px;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  padding: 0 10px;
  z-index: 2;
}

.carousel-btn:hover {
  color: turquoise;
}

.carousel-container {
  display: flex;
  align-items: center;
  position: relative;
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: black;
  padding: 20px;
  border-radius: 8px;
  max-width: 80%;
  max-height: 80%;
  position: relative;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

#modal-video-container iframe {
  width: 100%;
  height: 500px;
}

#signUp {
  color: white;
  padding: 5% 0;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

#logIn {
  color: white;
  padding: 5% 0;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

/*movies page*/
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  justify-items: center;
}

.movies-grid img {
  width: 150px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

.movies-grid img:hover {
  transform: scale(1.05);
}

.site-footer {
  width: 100%;
  background-color: #111;
  padding: 80px 0;
}

.site-footer-container {
  margin-left: auto;
  margin-right: auto;
}

.footer-logo {
  width: 180px;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.footer-text {
  font-size: 15px;
  color: #aaa;
  margin-bottom: 25px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #f5c542;
}

.footer-copy {
  font-size: 13px;
  color: #777;
}

@media (min-width: 768px) {
  .footer-links {
    flex-direction: row;
    gap: 25px;
  }
}

.site-footer,
.site-footer * {
  box-sizing: border-box;
}

.carousel,
.carousel-track {
  display: block !important;
}

.carousel-container { width: 100%; }

.carousel {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 10px 0;
  transform: translateX(0) !important;  /* IMPORTANT: overrides bad JS transforms */
}

.poster {
  width: 150px;
  height: 225px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  border-radius: 8px;
}

.carousel-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 15px;
  align-items: center;
}

.poster {
  width: 150px;
  height: 225px;
  object-fit: cover;
  flex: 0 0 auto;
  display: block;
}

.carousel {
  overflow-x: auto;
  scroll-behavior: smooth;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel {
  overflow-x: auto;        /* IMPORTANT */
  overflow-y: hidden;
  scroll-behavior: smooth;
  width: 100%;
}

.carousel::-webkit-scrollbar {
  display: none;           /* optional: hide scrollbar */
}
