/* Base styles */
.navbar {
  background-color: #333;
  overflow: hidden;
}

.navbar-menu {
  list-style: none; /* Remove bullets */
  display: flex; /* Horizontal layout */
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif; /* Poppins font */
  font-weight: 500; /* Medium font weight */
  font-size: 20px; /* Adjust font size for readability */
  text-transform: capitalize; /* Capitalize first letters */
}

.navbar-menu li a {
  text-decoration: none; /* Remove default underline */
  color: #ffffff; /* Dark gray color for text */
  padding: 10px 5px 1px; /* Add padding for clickable area */
  border-radius: 5px; /* Rounded corners */
  transition: all 0.3s ease; /* Smooth transitions */
  margin-top: 15px;
}

/* Hover effects */
.navbar-menu li a:hover {
  color: #FFDF00; /* Yellow color on hover */
  background-color: #333333; /* Dark background on hover */
  transform: scale(1.05); /* Slight zoom effect */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}


.navbar-link {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.navbar-brand {
  background: linear-gradient(to right, rgb(246, 246, 0), rgb(255, 223, 0), rgb(255, 200, 0));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none; /* Remove underline */
  font-size: 28px; /* Slightly larger font */
  font-family: 'Poppins', sans-serif; /* Poppins font */
  font-weight: 550; /* Semi-bold for a sharper look */
   /* Uppercase for modern style */
  letter-spacing: 0px; /* Add subtle spacing between letters */
  transition: color 0.3s ease, transform 0.2s ease; /* Smooth transitions */
  margin: 0; /* Remove default margin */
}

/* Add a hover effect for interactivity */
.navbar-brand:hover {
  color: #FFD700; /* A lighter gold on hover */
  transform: scale(1.05); /* Slight scaling effect */
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6); /* Subtle glowing effect */
}


.navbar-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: auto; /* Position the hamburger menu on the right side */
}

.navbar-toggle .bar {
  height: 3px;
  width: 25px;
  background-color: #fff;
  margin: 4px 0;
}

.navbar-item {
  margin-left: 20px;
}

.upload-container {
  max-width: 500px;
  margin: 50px auto;
  text-align: center;
  font-family: 'Poppins';
}
/* h1 styling */
h1 {
  background: linear-gradient(to right, rgb(20, 209, 230), rgb(58, 141, 240), rgb(16, 83, 150));
  box-shadow: 0 0 10px rgba(20, 209, 230, 0.3), 0 0 20px rgba(58, 141, 240, 0.2);
  color: rgb(0, 0, 0); /* Black text color */
  padding: 8px;
  font-family: 'Poppins', 'Montserrat', sans-serif; /* Apply sans-serif font */ 
  font-size: 20px; /* Base font size */
  text-align: center; /* Center align the text */
  white-space: nowrap; /* Ensure text stays on a single line */
  font-weight: 500;

  /* Typing Effect Styling */
  overflow: hidden; /* Hide overflow text for typing effect */
  border-right: 2px solid black; /* Add a blinking cursor effect */
  width: fit-content;
  margin: auto;
  animation: typing 3s steps(30, end), blink-caret 0.7s step-end infinite;
}

/* Typing Animation */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Blinking Caret Animation */
@keyframes blink-caret {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: black;
  }
}

@media (max-width: 1200px) {
  h1 {
    font-size: 16px; /* Adjust font size for smaller screens */
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 16px; /* Adjust font size for smaller screens */
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 14px; /* Adjust font size for smaller screens */
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 10px; /* Adjust font size for smaller screens */
  
  }
}
@media (max-width: 355px) {
  h1 {
    font-size: 6px; /* Adjust font size for smaller screens */
  
  }
}
/* site banner about section */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh; /* Adjust height as needed */
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h2 {
  background-color: rgb(255, 255, 255);
  color: rgb(0, 0, 0);
  padding: 5px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 8px #87CEEB;
  font-family: 'Poppins', sans-serif;
 font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
}
@media (min-width: 768px) {
  h2 {
    text-align: center; /* Center-align for larger screens */
  }
}

#file-list-container {
  max-width: 500px;
  margin: 20px auto;
  text-align: center;
}

#file-list li {
  list-style: none;
  margin: 5px 0;
}

.video-container {
  max-width: 720px;
  margin: 20px auto;
  text-align: center;
  padding: 0 10px; /* Add some padding on smaller screens */
}

.video-item {
  margin-bottom: 20px;
}

/* Existing styles remain the same, adding/modifying video crop styles */
.video-crop {
  width: 100%; /* Take the full width of the container */
  aspect-ratio: 16 / 9; /* Force a 16:9 aspect ratio */
  object-fit: cover; /* Crop the video to fit the 16:9 container */
  object-position: center; /* Center the video content */
}

video {
  max-width: 100%;
  height: auto; /* Maintain aspect ratio for regular videos */
  aspect-ratio: 16 / 9; /* Force 16:9 aspect ratio */
  object-fit: cover; /* Crop video to maintain 16:9 */
  object-position: center; /* Center the video content */
}

.video-actions {
  margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .video-container {
    max-width: 100%;
    padding: 0 5px; /* Reduce padding for smaller screens */
  }
  
  .video-item {
    margin-bottom: 15px; /* Adjust spacing for smaller screens */
  }
}

@media (max-width: 480px) {
  .video-container {
    padding: 0; /* Remove padding on very small screens */
  }
  
  .video-item {
    margin-bottom: 10px; /* Further adjust spacing for very small screens */
  }
}


.download-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: green; /* Green color for the button background */
  color: white; /* Text color */
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  margin-top: 10px;
}

.download-button:hover {
  background-color: darkgreen; /* Darker green on hover */
}

.search-bar {
  display: flex;
  align-items: center;
  margin-left: auto; /* Align to the right */
}

.search-bar input[type="text"] {
  padding: 10px 15px; /* Increased padding */
  margin-right: 8px;
  border: none;
  border-radius: 6px;
  outline: none;
  font-size: 12px; /* Increased font size */
  min-width: 200px; /* Minimum width */
}

.search-bar button {
  padding: 10px 20px; /* Increased padding */
  background: linear-gradient(to right, rgb(246, 246, 0), rgb(255, 223, 0), rgb(255, 200, 0));
  border: none;
  border-radius: 6px;
  color: rgb(0, 0, 0);
  cursor: pointer;
  font-size: 12px; /* Increased font size */
  font-weight: 500;
}

.search-bar button:hover {
  background-color: #a5ae13;
}

/* Responsive styles */
@media (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-menu {
    display: none; /* Hide menu on small screens */
    flex-direction: column;
    width: 100%;
    padding: 10px; /* Add some padding to the menu */
  }

  .navbar-toggle {
    display: flex; /* Show toggle button on small screens */
  }

  .navbar-menu.active {
    display: flex; /* Show menu when toggle button is clicked */
  }

  .navbar-item {
    margin: 10px 0; /* Adjust margin for smaller screens */
    text-align: center; /* Center-align items */
  }

  .upload-container, #file-list-container, .video-container {
    padding: 0 10px; /* Add some padding for smaller screens */
    max-width: 100%; /* Make containers full width */
  }

  .search-bar {
    width: 100%; /* Full width on small screens */
    margin-top: 10px; /* Space above the search bar */
    margin-left: 0; /* Align search bar to the full width */
  }

  .search-bar input[type="text"], .search-bar button {
    width: 100%; /* Full width input and button */
    margin: 5px 0; /* Margin between input and button */
  }
}

@media (max-width: 480px) {
  .navbar-brand {
    font-size: 20px; /* Adjust font size for very small screens */
  }

  .navbar-link {
    font-size: 16px; /* Adjust font size for very small screens */
  }

  .download-button {
    padding: 8px 16px;
    font-size: 14px; /* Adjust font size and padding for very small screens */
  }

  .search-bar input[type="text"], .search-bar button {
    font-size: 14px; /* Adjust font size for very small screens */
  }
}

/* load more button */
.load-more-button {
  display: block;
  margin: 20px auto;
  text-align: center;
  padding: 10px 20px;
  color: white;
  border: none;
  border-radius: 5px;
  background: linear-gradient(to right, rgb(20, 209, 230), rgb(58, 141, 240), rgb(16, 83, 150));
  cursor: pointer;
}

/* footer styling */
.footer {
  background-color: #333;
  color: #fff;
  padding: 1px;
  text-align: center;
  position: relative;
  width: 100%;
  box-sizing: border-box; /* Ensures padding is included in the width */
}



.footer p {
  margin: 10px 0;
  font-size: small;
}

.footer a {
  color: rgb(0, 217, 255);
  text-decoration: none;
  text-shadow: none; /* Removes any text shadow or glowing effect */
}



/* Specific styles for GIF container */
.gif-container {
  text-align: center; /* Center-align the image within the container */
}

/* Specific styles for GIF image */
.gif-container img {
  max-width: 90%; /* Scale the image to a maximum of 90% of the container width */
  display: inline-block; /* Ensure the image is centered */
}

/* Media query for larger screens */
@media (min-width: 768px) {
  .gif-container img {
      width: 30%; /* Adjust image width for large screens */
  }
}

/*upload.html styling*/
/* Upload container styling */
/* Upload container styling */
.upload-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

/* Heading (h1) styling */
.upload-container h1 {
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}



/* Input field for video name */
.upload-container input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s;
}

.upload-container input[type="text"]:focus {
  border-color: #6a5acd;
}

/* File input */
.upload-container input[type="file"] {
  display: block;
  margin: 10px auto 20px;
  padding: 10px;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 5px;
  font-size: 16px;
}

/* Upload button */
.upload-container button {
  padding: 12px 25px;
  background: linear-gradient(to right, #4CAF50, #2E8B57);
  background: linear-gradient(to right, rgb(76, 175, 80), rgb(56, 142, 60), rgb(38, 94, 50));

  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.upload-container button:hover {
  background-color: #45a049;
}

/* Status message */
#status_message {
  margin-top: 20px;
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

/* Responsive styles */
@media (max-width: 768px) {
  .upload-container {
    padding: 15px; /* Reduced padding for smaller screens */
    margin: 20px; /* Adjust margin for smaller screens */
  }

  .upload-container h1 {
    font-size: 20px; /* Adjust heading size */
  }

  .upload-container input[type="text"],
  .upload-container input[type="file"],
  .upload-container button {
    font-size: 14px; /* Adjust button and input size */
  }

  .upload-container button {
    padding: 10px 20px; /* Adjust button padding */
  }
}

@media (max-width: 480px) {
  .upload-container {
    margin: 10px; /* Further adjust margin for very small screens */
  }

  .upload-container h1 {
    font-size: 15px; /* Smaller heading size for mobile */
  }

  .upload-container input[type="text"],
  .upload-container input[type="file"],
  .upload-container button {
    font-size: 12px; /* Further adjust button and input size */
  }

  .upload-container button {
    padding: 8px 15px; /* Further adjust button padding */
  }
}

/* --- YOUTUBE-LIKE VIDEO GRID FOR DESKTOP/LAPTOP --- */
@media (min-width: 1024px) {
  .video-container {
    max-width: 1400px;
    margin: 30px auto;
    text-align: left;
    padding: 0 30px;
  }
  #video-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
    margin-top: 24px;
    grid-auto-flow: dense; /* Helps with filling gaps */
  }
  #video-list > .video:last-child:nth-child(4n - 1) {
    grid-column: span 2; /* Make the last video span 2 columns if it would be alone */
  }
  #video-list > .video:last-child:nth-child(4n - 2) {
    grid-column: span 3; /* Make the last video span 3 columns if it would be nearly alone */
  }
  .video {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 12px 12px 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    min-width: 0;
  }
  .video:hover {
    box-shadow: 0 4px 24px #0f9bf880; /* Sky blue shadow */
    background-color: #f0f8ff; /* Light sky blue background */
    transform: translateY(-2px); /* Slight lift effect */
    transition: all 0.3s ease;
}
  .video h2 {
    font-size: 16px;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Poppins', sans-serif;
    font-weight: 540; /* Medium weight like Google uses */
    margin: 12px 0 10px 0;
    text-align: left;
    width: 100%;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    color: #202124; /* Google's text color */
    line-height: 1.4;
    letter-spacing: 0.2px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}
  .video video {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    object-fit: cover;
    background: #000;
    margin-bottom: 8px;
  }
}

/* --- END YOUTUBE-LIKE VIDEO GRID FOR DESKTOP/LAPTOP --- */

/* Specific styles for aboutsite.png */
.video-container > img[src="aboutsite.png"] {
    display: block;
    margin: 20px auto;
    max-width: 800px; /* Maximum width on larger screens */
    width: 90%; /* Take up 90% of container width on smaller screens */
    height: auto;
    border-radius: 8px; /* Optional: adds slight rounded corners */
}

/* Adjust aboutsite.png size for different screens */
@media (max-width: 992px) {
    .video-container > img[src="aboutsite.png"] {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .video-container > img[src="aboutsite.png"] {
        max-width: 100%;
        margin: 15px auto;
    }
}
