

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: sans-serif;
  scroll-behavior: smooth;
}
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #111;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  z-index: 1000;
}
.nav-links a {
  color: white;
  margin: 0 1rem;
  text-decoration: none;
}
.nav-links a:hover {
  text-decoration: underline;
}
.hero {
  margin-top: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
}
.hero-text {
  flex: 1;
}
.hero-image {
  flex: 1;
}
.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 10px 20px;
  background: crimson;
  color: white;
  text-decoration: none;
  border-radius:10px ;
  transition: opacity 0.2sec;
}
.btn:hover{
  opacity: 0.7;
}
.btn:active{
  opacity: 0.5;
}
.section {
  padding: 2rem;
}
.card-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.card {
  position: relative;
  border: 1px solid #ccc;
  padding: 1rem;
  width: 200px;
}
.card img {
  width: 100%;
}
.duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.8rem;
  color: gray;
}
.review-form {
  margin-top: 2rem;
}
footer {
  background: #111;
  color: white;
  padding: 2rem;
  text-align: center;
}
.footer-links a,
.social-icons a {
  margin: 0 0.5rem;
  color: white;
  text-decoration: none;
}
.footer-links a:hover,
.social-icons a:hover {
  text-decoration: underline;
}
.back-to-top {
  display: block;
  margin-top: 1rem;
  color: crimson;
  text-decoration: none;
}
.movie-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}


.hover-content {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3sec ease;
}
.movie-card:hover .hover-content {
  opacity: 1;
}


.watch-btn {
  background: crimson;
  color: white;
  padding: 10px 20px;
  margin-bottom: 10px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}
.watchlist-toggle span {
  display: inline-block;
  background: white;
  padding: 5px 12px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: black;
  cursor: pointer;
  transition: background 0.3s;
}


.watchlist-toggle input:checked + span::after {
  content: "✓";
  display: inline;
  color: green;
}

.watchlist-toggle input:checked + span {
  content: "";
  color: green;
}
@media (max-width: 768px) {
  
  .card-container {
    flex-direction: column;
    align-items: center;
  }

  .movie-card {
    width: 90%;
  }

 
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-text, .hero-image {
    width: 100%;
  }


.review-form input,
.review-form textarea {
  width: 100%;
}

footer {
  padding: 1rem;
  font-size: 0.9rem;
}

.nav-links {
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
}
.movie-card img{
  width:100%;
  height:auto;
  display: block;
  border-radius: 8px;
}
.movie-card{
  width:220px;
  max-width: 100%;
}
@media (max-width: 768px){
  .movie-card{
    width:90%;
    max-width: 100%;
  }
}
.card-container{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap : 1.5rem;
}
.show-card {
  width: 220px;
  padding: 1rem;
  border-radius: 10px;
  background: #f8f8f8;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.show-card img {
  width: 100%;
  border-radius: 6px;
}

.learn-btn {
  display: inline-block;
  margin-top: 0.5rem;
  background: #222;
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
}
.hero-image img{
  width: 300px;
  max-width: 100%;
  height:auto;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  flex-wrap: wrap; /* for responsive layout */
}
.review-cards img {
  width: 70px;        
  height: 70px;
  border-radius: 50%;
  object-fit: cover;  
  margin-bottom: 10px;
  margin-top: 5px;
}
.sub{
  padding-top: 6px;
  padding-bottom: 6px;
  padding-left: 15px;
  padding-right: 15px;
  background-color: cadetblue;
  border: none;
  border-radius: 5px;
  transition: opacity 0.3sec;
}
.sub:hover{
  opacity: 0.7;
}
.sub:active{
  opacity: 0.5;
}









