/* Base styles */
body,
html {
  margin: 0;
  padding: 0;
  font-family: "Arial", sans-serif;
  background-color: black;
}

.like-btn {
  background-color: #000000; /* Bootstrap primary color */
  color: white;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  transition: background-color 0.3s;
}

.like-btn:hover {
  background-color: #0056b3; /* Darken the button on hover */
}

.like-btn.liked {
  background-color: #28a745; /* Bootstrap success color */
}

.library-title {
  text-align: center;
  margin-top: 20px;
  font-size: 28px;
  color: white;
}

/* Main content container */
.main-content {
  padding: 20px;
  margin-top: 50px;
}

.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.5);
  color: black;
  text-align: left;
  padding: 10px;
  font-size: small;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto; /* Increased top margin to vertically center */
  padding: 20px;
  border: 1px solid #888;
  width: 60%;
  max-width: 800px;
}

.modal-content iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: none;
}

.close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

footer {
  padding: 10px;
  bottom: 0;
  width: 100%;
  color: white;
}

/* Video gallery styles */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 15px;
  padding: 20px;
}

.video-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-card:hover {
  transform: scale(1.03);
}

.video-card img {
  width: 100%;
  height: auto;
  display: block;
}

.video-info {
  padding: 10px;
  color: #333;
}

.video-info h3 {
  margin: 0;
  color: #444;
}

.video-info p {
  font-size: 0.9em;
  color: #666;
}

.video-info a {
  text-decoration: none;
  color: #1a0dab;
}

.video-info a:hover {
  text-decoration: underline;
}

/* Responsive layout for small screens */
@media (max-width: 768px) {
  .video-gallery {
    grid-template-columns: 1fr;
  }
}