body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: black; /* Black background while loading */
}

.spinner-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black; /* Black background for the spinner */
}

.spinner {
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none; /* Hide the video until loaded */
}

.buttons {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: none; /* Hide the buttons until video is loaded */
  justify-content: center;
  flex-wrap: wrap;
}

.buttons.hidden {
  display: none; /* Hide the buttons initially */
}

.buttons a {
  margin: 10px;
}

.buttons img {
  width: 150px;  /* Increased width */
  height: 150px; /* Increased height */
  cursor: pointer;
  transition: transform 0.2s;
}

.buttons img:hover {
  transform: scale(1.1);
}

@media (min-width: 768px) {
  .buttons {
    flex-wrap: nowrap;
  }
}

@media (max-width: 767px) {
  .buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two buttons per line */
    gap: 20px; /* Spacing between buttons */
    justify-content: center;
    bottom: 50px; /* Adjust bottom position */
  }

  .buttons img {
    width: 120px; /* Adjusted width */
    height: 120px; /* Adjusted height */
  }
}
