/* Go Back Button Styling */
a {
  font-size: 20px; /* Larger font size */
  color: #fff; /* White text color */
  background-color: #141414; /* Blue background color */
  padding: 10px 20px; /* Padding for the button */
  border-radius: 5px; /* Rounded corners */
  text-decoration: none; /* Remove underline */
  transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition */
  display: inline-block; /* Make it behave like a button */
  margin-top: 10px; /* Space above the button */
}

a:hover {
  background-color: #555555; /* Darker blue on hover */
  transform: scale(1.05); /* Slightly increase size on hover */
}

a:active {
  background-color: #b8b8b8; /* Even darker blue on click */
}
/* Body Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  background-image: url('bg.gif'); 
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Title and Subtitle Styling */
.main-title {
  text-align: center;
  margin-top: 20px;
  padding: 10px;
}

.main-title h1 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 5px;
}

.sub-title {
  font-size: 18px;
  color: #ddd;
  font-style: italic;
}

/* Vertical Scroll Container */
.scroll-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 items per row */
  gap: 10px;
  overflow-y: auto;
  padding: 20px;
  max-width: 1000px;
  width: 100%;
  background: rgba(34, 34, 34, 0.8);
  border-radius: 10px;
  margin-top: 20px;
  max-height: 80vh;
}

/* Grid Item Styling */
.grid-item {
  width: 100%; /* Make sure the items take up full width */
  height: 300px; /* Fixed height */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  background: #333; /* Background for grid items */
}

.grid-item img, .grid-item video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Ensure content fits without cropping */
}

.grid-item video {
  height: auto;
}

/* Scrollbar Styling */
.scroll-container::-webkit-scrollbar {
  width: 8px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

/* Link Styling */
a {
  font-size: large;
  color: white;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .scroll-container {
      grid-template-columns: 1fr; /* 1 item per row on smaller screens */
      padding: 10px;
  }

  .grid-item {
      width: 100%;
  }
}
