body {
  font-family: Arial, sans-serif;
  margin: 10px;
  padding: 0;
  background: black;
  color:whitesmoke;
  user-select: none;
  overflow: scroll;
}
nav {
  display: flex;
  justify-content: center;
  padding: 1rem;
}
.router-button {
  display: inline-block;
  background-color: #4caf50;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  margin: 0 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.router-button:hover {
  background-color: #3e8e41;
}
.router-button.router-link-exact-active {
  background-color: #2196f3;
}
.movie-crud {
  padding: 20px;
}
.search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.search-container input {
  padding: 8px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-right: 10px;
}
.search-container button {
  padding: 8px 16px;
  font-size: 16px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.movie-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 20px;
}
.movie-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.movie-card img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 4px;
}
.movie-card h3 {
  margin-top: 10px;
  font-size: 18px;
}

/* Sticky Message Display */
.message-display {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #f8f9fa;
  color: #333;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
/* Modal Styles */
.modal {
  color:black;
  display: flex;
  justify-content: center;
  align-items: center;
  
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  overflow: scroll;
}
.modal-content {
  margin-right:20px ;
  margin-left:20px ;
  margin-top: 60%;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  overflow: scroll;
  box-sizing: border-box;
}
.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
}
/* Responsive Image */
.modal-content img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
}
/* Responsive Modal Content */
@media (max-width: 700px) {
  .modal-content {
    width: 95%;
    max-width: 400px;
  }
}
.backdrop-image {
  width: 100%; /* Make backdrop image full width */
  height: auto; /* Maintain aspect ratio */
}
.poster-image {
  width: 200px; /* Set a specific width for the poster */
  height: auto; /* Maintain aspect ratio */
}


/* Shows CRUD Page */
.shows-crud {
  padding: 20px;
}
.show-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 20px;
}
.show-card {
  color:black;
  background-color: #f0f0f0;
  border-radius: 5px;
  padding: 10px;
  text-align: center;
}
.show-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 5px;
}
.show-card h3 {
  margin-top: 10px;
  font-size: 18px;
}
.show-card p {
  margin-top: 5px;
  font-size: 14px;
}
.show-card button {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.show-card button:hover {
  background-color: #0056b3;
}
/* Modal Styles */
.modal-content {
  margin-right:20px ;
  margin-left:20px ;
  margin-top: 60%;
  background-color: #fefefe;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 800px;
  overflow: scroll;
}
.modal-content h2 {
  margin-top: 0;
}
.modal-content .backdrop-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 5px;
}
.modal-content .poster-image {
  width: 200px;
  height: 300px;
  object-fit: cover;
  border-radius: 5px;
  float: right;
  margin-left: 20px;
}
.modal-content p {
  margin-top: 10px;
}
.modal-content .input-fields {
  margin-top: 20px;
}
.modal-content .input-fields label {
  display: block;
  margin-bottom: 5px;
}
.modal-content .input-fields input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.modal-content button {
  margin-top: 20px;
  padding: 8px 16px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.modal-content button:hover {
  background-color: #0056b3;
}

/* Toggle Button Styles */
.toggle-container {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.toggle-container label {
  margin-left: 10px;
  font-size: 14px;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

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

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

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

input:checked + .slider {
  background-color: #2196f3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

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