/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #111;
  color: #eee;
}

/* Top Navigation */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #222;
  padding: 10px 20px;
}

.logo {
  color: gold;
  font-size: 1.5rem;
  text-decoration: none;
}

.searcher input[type="search"] {
  padding: 6px;
  width: 200px;
  border-radius: 4px;
  border: none;
  margin-right: 10px;
}

.searcher button {
  padding: 6px 10px;
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

/* Main Menu */
.main-menu-container {
  background-color: #1a1a1a;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.main-menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-menu li a {
  text-decoration: none;
  color: #ccc;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s;
}

.main-menu li a:hover,
.main-menu li a:focus {
  background-color: #333;
}

.dropdown {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  list-style: none;
}

.submenu li a {
  display: block;
  padding: 10px;
  color: #333;
  text-decoration: none;
}

.submenu li a:hover {
  background-color: #eee;
}

.dropdown:hover .submenu {
  display: block;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 20px;
}

.highlight-gold { color: gold; }
.highlight-magenta { color: magenta; }
.highlight-green { color: rgb(0, 255, 13); }

/* Movie Grid */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  padding: 20px;
}

.movie-card {
  border: 1px solid #444;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  background-color: #1a1a1a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.movie-card:hover {
  transform: scale(1.05);
}

.thumbnail {
  width: 100%;
  height: auto;
  display: block;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  background-color: #1a1a1a;
  color: #eee;
  margin: 5% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.modal-content img {
  max-width: 100%;
  border-radius: 6px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
}

.close-btn:hover {
  color: red;
}

/* Footer */
.footer {
  background-color: #111;
  color: #aaa;
  padding: 30px 20px;
  font-size: 0.95em;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
}

.footer-column h3 {
  color: white;
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin: 8px 0;
}

.footer-column a {
  color: #aaa;
  text-decoration: none;
}

.footer-column a:hover {
  color: #fff;
}

.social_team i {
  margin-right: 8px;
}

/* Light Mode Support */
body.light-mode {
  background-color: #f4f4f4;
  color: #333;
}

/* Genre Filter Dropdown */
.genre-filter {
  position: relative;
  display: inline-block;
}

#genre-button {
  background-color: #333;
  color: white;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-menu a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-menu a:hover {
  background-color: #ddd;
}

#genre-button:focus + .dropdown-menu,
#genre-button:hover + .dropdown-menu {
  display: block;
}

@media (max-width: 768px) {
  .dropdown-menu {
    width: 100%;
  }
}

/* Newsletter */
.news_form {
  display: flex;
  align-items: center;
}

.letter_form {
  padding: 10px;
  border: none;
  border-radius: 5px 0 0 5px;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  width: 200px;
  margin-right: 10px;
}

.submit {
  padding: 10px 20px;
  background-color: #6c5ce7;
  border: none;
  border-radius: 0 5px 5px 0;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit:hover {
  background-color: #5b4fae;
}

/* Social Icons */
.social_icon {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social_icon li {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: #fff;
  color: #333;
  transition: background-color 0.3s ease;
}

.social_icon li:hover {
  background-color: #6c5ce7;
  color: #fff;
}

.social_icon i {
  font-size: 20px;
}

/* Copyright */
.copyright {
  background-color: #1a1a1a;
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
}

.copyright a {
  color: #fff;
  text-decoration: underline;
}


/* Footer Styling */
footer {
  background-color: #333;
  color: white;
  padding: 40px 0;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.col-md-4 {
  width: calc(33.33% - 20px);
  margin-bottom: 20px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.location_icon li {
  margin-bottom: 10px;
}

.social_icon {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social_icon li a {
  color: white;
  font-size: 24px;
  transition: color 0.3s ease;
}

.social_icon li a:hover {
  color: #007BFF; /* Blue hover color */
}

.news_form input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  margin-right: 10px;
}

.submit {
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit:hover {
  background-color: #0056b3;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  color: #aaa;
}

.copyright a {
  color: #fff;
  text-decoration: underline;
}
